Skip to content

feat(pi-kit): lane transcript capture and full-screen lanes TUI#46

Merged
ElbertePlinio merged 2 commits into
mainfrom
fix/pi-kit-line-count
Jul 19, 2026
Merged

feat(pi-kit): lane transcript capture and full-screen lanes TUI#46
ElbertePlinio merged 2 commits into
mainfrom
fix/pi-kit-line-count

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

What

Rescues and lands the transcript/TUI work-in-progress, rebased onto async lanes (#45).

  • Raw per-lane JSONL transcripts under raw/<run>/<lane>.jsonl (LaneRunner tap)
  • LaneTranscript reducer: thinking/text/tool entries for live tailing and archived replay
  • Full-screen /lanes tui browser (run rail + per-lane transcript view)
  • Logical line-count fix for compact read/write tool rows
  • journal-core: rawRunDir, listRuns

Review fixes (second commit)

  • P1: transcript polling sliced a UTF-16 string by a byte offset — silently dropped events after any non-ASCII char; now reads bytes at offset, clamps to the last complete newline, decodes after slicing
  • P2: half-flushed trailing lines were consumed and lost; the newline clamp holds them for the next poll
  • P3: raw.end() ran before the child's final stdout flush, truncating abandoned/failed lane transcripts; moved into the child close handler

Validation

  • tsc clean, 81/81 vitest (79 + 2 new: multibyte tailing across polls, partial-line holding — both through real files and the real journal path)
  • Fix-verification review: clean

Raw per-lane JSONL transcripts under raw/<run>/<lane>.jsonl, a
LaneTranscript reducer for live tailing and archived replay, a
full-screen /lanes tui browser, and a logical line-count fix for
compact read/write tool rows.
…am close

Poll lane transcripts by byte offset with complete-line clamping so
multibyte characters and half-flushed lines are never split or dropped;
close the raw JSONL stream only after the child's final stdout flush so
abandoned and failed lanes keep their transcript tail.
@ElbertePlinio
ElbertePlinio merged commit 8176f0c into main Jul 19, 2026
2 checks passed
@ElbertePlinio
ElbertePlinio deleted the fix/pi-kit-line-count branch July 19, 2026 13:44
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.

1 participant