Skip to content

Coalesce same-tool transcript rows and stream live shell output - #920

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-7758-coalesce-consecutive-same-tool-rows-and-stream-live-shell
Sep 11, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-7758-coalesce-consecutive-same-tool-rows-and-stream-live-shell

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Consecutive same-tool transcript calls collapse into one row with a count chip (· ×N) and a past-tense settle head. spawn_agent stays one row per dispatch; manage_tasks paints no row.
  • Pending run_shell rows stream up to three live output lines from a bounded per-call 8 KiB feed, then a last-three preview and a non-zero exit N at settle.

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • bun run check exited 0 (oxfmt/oxlint, tsc --noEmit, build, guarded suite 6914 pass / 0 fail)

Fixes CL-7758

@linear-code

linear-code Bot commented Sep 11, 2026

Copy link
Copy Markdown

CL-7758

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Independent critic

Meets CL-7758 on the happy path: same-tool lanes with a count chip, spawn_agent excluded, manage_tasks rowless, pending run_shell live tail settling to last-3 + exit N.

Blocking: none. Merge.

Non-blocking: pwd-probe marker can flash in the live tail; Alt+C/preview follow last-merged result not row.callId; folding a second in-flight shell drops the tail until the next poll.

The transcript treated each call as its own row and hid live shell
output until settle, so long turns were noisy and a running command
gave no signal.
A rate-limited second write could sit until the next chunk or settle, and a shared feed mixed parallel run_shell tails. Hydrate and rollback also dropped older member ids and truncated call snapshots.
@TheGreatAxios
TheGreatAxios force-pushed the cl-7758-coalesce-consecutive-same-tool-rows-and-stream-live-shell branch from 36a33e1 to 2f28a4a Compare September 11, 2026 22:35
@TheGreatAxios
TheGreatAxios merged commit 450e4ba into main Sep 11, 2026
9 checks passed
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