Skip to content

fix(pi): reuse delayed header parsing in detail view#260

Merged
vakovalskii merged 1 commit into
vakovalskii:mainfrom
timseriakov:fix/pi-detail-title-header
Jul 21, 2026
Merged

fix(pi): reuse delayed header parsing in detail view#260
vakovalskii merged 1 commit into
vakovalskii:mainfrom
timseriakov:fix/pi-detail-title-header

Conversation

@timseriakov

Copy link
Copy Markdown
Contributor

Summary

  • share Pi/OhMyPi delayed session-header detection between summary parsing and detail loading
  • start detail message reads after the actual session record when metadata lines precede it
  • add regression coverage for Oh My Pi title-before-session detail loading

Why

PR #231 fixed session scanning for newer Oh My Pi logs that can write a title metadata record before the session record. The detail loader still had the old line 1 is header assumption. It did not break current message display because it ignores non-message records, but reusing the same header detection keeps both code paths consistent and avoids future drift if more pre-header metadata appears.

Validation

  • node --check src/data.js
  • node --test test/pi-session.test.js → 15 pass, 0 fail

@vakovalskii

Copy link
Copy Markdown
Owner

Exactly the follow-up from #231 — thanks for circling back! Extracting findPiSessionHeaderLine and reusing it in both the parse and the detail path is clean, and the added test covers it. Merging.

@vakovalskii
vakovalskii merged commit bf74c44 into vakovalskii:main Jul 21, 2026
6 checks passed
vakovalskii added a commit that referenced this pull request Jul 21, 2026
Ships the changes merged since 7.14.5: native Add-project folder picker
(desktop), Oh My Pi title-before-session parsing (#231/#260), GitHub avatar
CSP fix (#249), Overview/Recommended full-width tiles (#243), Neuraldeep
footer, and signed-release docs + manual npm publish workflow.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants