Transcript draws calls as opencode 2's TUI does (#210) #238

Merged
cmoriarty merged 1 commit from feat/210-transcript-like-opencode into main 2026-10-22 01:52:43 -04:00
Owner

Closes #210.

The agent transcript now reads like opencode v2's CLI (opencode's web app was looked at and rejected: light chat UI, live-only, needs auth/proxy).

  • Edits show their diff from metadata.files[].patch: line numbers, +/− marks, teal/maroon tints, split into two columns when the pane is >= 1000px, one column otherwise; several files named each.
  • Writes show the written content numbered from 1, and read Wrote <file> once done; while the input streams the row already names the file (the adapter reads path from session.tool.input.delta; production had 49 pending writes with no path).
  • Commands show $ cmd and their last ten lines, N earlier lines · show all.
  • Row and block share one panel; opencode's marks (← # $ ✱ % ◈); greps show match counts; + Thought · 2s.
  • No more vanishing live text: a part that gives way to the next is held on screen until its settled event arrives (browser test samples every frame; it fails without the fix).

Tests: unit 4738 passed; vitest 958 passed; browser lane 357/358, with the one failure (a fixture run inheriting succeeded) fixed and re-run green. Visual checks against screenshots of opencode's TUI, reviewed by a vision model at 1600px and 900px.

Closes #210. The agent transcript now reads like opencode v2's CLI (opencode's web app was looked at and rejected: light chat UI, live-only, needs auth/proxy). - **Edits** show their diff from `metadata.files[].patch`: line numbers, +/− marks, teal/maroon tints, split into two columns when the pane is >= 1000px, one column otherwise; several files named each. - **Writes** show the written content numbered from 1, and read `Wrote <file>` once done; while the input streams the row already names the file (the adapter reads `path` from `session.tool.input.delta`; production had 49 pending writes with no path). - **Commands** show `$ cmd` and their last ten lines, `N earlier lines · show all`. - Row and block share one panel; opencode's marks (`←` `#` `$` `✱` `%` `◈`); greps show match counts; `+ Thought · 2s`. - **No more vanishing live text**: a part that gives way to the next is held on screen until its settled event arrives (browser test samples every frame; it fails without the fix). Tests: unit 4738 passed; vitest 958 passed; browser lane 357/358, with the one failure (a fixture run inheriting `succeeded`) fixed and re-run green. Visual checks against screenshots of opencode's TUI, reviewed by a vision model at 1600px and 900px.
feat(transcript): draw calls as opencode 2's TUI does (#210)
Some checks failed
test / fast-lane (push) Failing after 4m44s
test / fast-lane (pull_request) Successful in 23m2s
78bd138a43
- edits show their diff (split when the pane is >=1000px, else one
  column), writes their content, commands their last ten lines; the
  row and its block share one panel; opencode's marks per tool kind
- a write names its file while its input streams (v2 adapter reads the
  target from session.tool.input.delta)
- a part that gives way to the next is held on screen until it
  settles, so live text no longer vanishes and reappears higher up
- + Thought · 2s
- run_tools fixture from a real opencode 2.1.2 session
cmoriarty deleted branch feat/210-transcript-like-opencode 2026-10-22 01:52:43 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/braid!238
No description provided.