Repository navigation
🤖 feat: compact transcript by default: each turn is the prompt, one work line and the reply - #8141
ammar-agent wants to merge 37 commits into
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (3)
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5678802500
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🟢 e2e stories (Haiku): 14 passed22 agent steps · 7 replayed from cache · 15 model calls · 47.1k tokens (23% cached) All 14 tests in 9 files
e2e 0.20.0 · 1m 23s · web · run artifacts 🟢 e2e Electron stories (Haiku): 3 passed3 agent steps · 3 model calls · 7.9k tokens (22% cached) All 3 tests in 3 files
e2e 0.20.0 · 26.8s · electron · run artifacts 🟢 e2e agent repros (Haiku): no tests selectedSpend: $0.00 of the $1.00 cap (proxy ledger) e2e 0.20.0 · 8.0s · 2 targets (web, phone) · run artifacts |
|
@codex review Addressed the quadratic tail check; please take another look. |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review Reworked summary-line copy/typography and trimmed success-only chrome from tool rows; please take another look. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e4271cf2ae
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review Updated the stale selector in sendModeDropdown; please take another look. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
… scripts (critic rounds 1-3)
|
@codex review Unified the transcript row primitives (gutter, chevron, rail, status), quieted reasoning rows and made code execution a collapsible "Script" row; please take another look. |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
…s; update copy in tests
|
@codex review Routine folding now leaves background bash spawns and bash_output polls as their own rows; test copy updated. Please take another look. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c67addf273
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review Head dd1bf17 addresses both findings on 2813e74 (earlier plans are keyboard-operable; a script's earlier-calls cut keeps MCP App views) and the |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 0c9d38c4ef
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: c8a30410ce
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
…ws the whole transcript
… behind a line that says what they did; an opened line pins to the top
…d webview tests follow the per-update fold
|
@codex review Head 2f36160:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2f36160057
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
…wrote, which Compact folds
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Summary
The transcript is redesigned so that it reads as a conversation first. At the new default density (Compact), what the agent writes stays in view as regular text, and the steps between two of its updates fold behind one muted line that says what they did (
Read 2 files, ran 1 command). The steps are one click away, in place. Detailed density keeps every step as a row, with runs of routine calls folded into the same kind of line. The desktop chat no longer replaces older replies with "Some messages are hidden for performance" markers: the mount window bounds the DOM instead.Background
The earlier rounds on this PR made each row quieter (folded runs, one chevron, one rail, collapsible scripts), and the result was still judged far too noisy. The next design folded a whole turn behind one line (
Worked for 2m 14s) and showed only its last narration. That went too far the other way: closed, the line said too little about a long turn, and opened it put the whole log on the page, with the line that closes it a long scroll away.This design is the one Claude Code Desktop and Codex use while a turn runs: the agent's status updates as regular text, with the tool calls between them folded. Each fold is the stretch between two updates, so it is short, it says what it did, and it opens and closes in place.
Folding exposed an older mechanism. The store kept the newest 64 displayed rows and, above them, only the prompts, with a marker for each gap (#2498). Folded steps count as rows there, so the markers reached the first screen of any long session, and the replies above them were gone. The chat pane has had a tail-first mount window since #4293, which makes that cap redundant on desktop.
Feedback this PR answers, by round:
Interrupted · ContinueOpen question. A finished turn keeps its updates in view, as Claude Code Desktop does. Codex folds a finished turn to one line plus the reply. I asked which is wanted and built the first, which the second can be layered on.
What the user sees
Compact (default)
Read 2 files, ran 1 command,Edited 1 file, ran 1 command · 1 failed,Thought,Updated the todo list.Running the test suite. The text changes in place, so no row mounts for a call and unmounts for the next one. Once the agent writes again, the line settles to what the stretch did.Question <text> · <answer>).Plan <title>once a newer plan exists. A plan card shows its title once.Both densities
Sub-agent <title> Completed. Who wrote it (agent type, model, thinking level) and the report are in the opened row. Wake-up and nudge chips sit on the left for the same reason.Interrupted · Continue(the keyboard shortcut is unchanged).Detailed
Settings: Transcript density is
Compact/Detailed.Screenshots
Two turns at rest. Updates are text, and each line stands for the steps between:
A line opened in place:
A question, a plan and a live turn, whose last line names the running step:
A stretch of 40 steps opened and scrolled to its middle. Its line (
Read 40 files) is pinned at the top:Sub-agent reports and the wake-up as steps. The first turn was stopped by the user and has no divider:
The end of a long session (six turns of thirty steps each):
A prompt hovered (its row is under the bubble), then an older reply hovered. Nothing moves:
Phone (390px, touch: every action row is shown):
A session at Detailed density
The two hover shots were taken before the last round, when the line above the reply read
Worked for …. The action rows they show are unchanged. No screenshot shows theInterrupted · Continueline: no story reaches a user-aborted tail.InterruptedBarrier.test.tsx, the VS Code webview test andtests/ui/rightSidebar/sideChat.test.tscover it.Implementation
transcriptRenderProjection.tscomputeWorkBundleInfos: a stretch is a maximal run of steps (isStepRow: reasoning, a tool call that is not a question, a plan or an app view, or a machine prompt). What the agent writes is never a step, so it gets no info and renders as a plain row. Each row of a stretch getskey,headIndex,state,summaryandvisibleWhenFolded. A stretch with no step of the agent's own gets no line.summaryisdescribeStepswhen settled (thesummarizeOperationalBundlewording, with its failure detail) anddescribeLiveStepwhen live (LIVE_STEP_DESCRIBERS, exhaustive over the tool categories: a shell call uses the model's stated intent, a read or an edit its file name, a script its latest nested call).showsThroughFoldkeeps two rows in view under a closed line: a call inapprovalToolCallIds, and the interrupted row at the transcript's tail.computeOperationalBundleInfoshas one mode, the routine-run fold, and is used by Detailed only. Compact's opened line lists its steps one by one.computeWindowRowIndicesandselectTranscriptWindowRowsgive the mount window the rows that mount. The steps behind a closed line mount nothing, and counting them made every budget of the window many times too small.machineRows.ts:isMachineRowdecides which user-role rows the machine wrote mid-work, with the checks the renderer already uses to pick their presentation (including the layout nudge that main added). A goal continuation or a budget wrap-up is not one: it starts a turn the way a prompt does.TranscriptBundles.tsxrenders each stretch as one block (WorkBlock): the line, then the opened steps on a rail, or under a closed line the rows that show through. The block bounds how far the opened line sticks. It is shared by the desktop ChatPane and the VS Code webview.WorkBundleMessage.tsxis the line. Opened, it isposition: stickyat the top of the scrollport, with the transcript's surface.WorkspaceStore.tsturns the aggregator's 64-row cap off for desktop workspaces, and hands out the set of calls that wait for a sandbox approval (getBashSandboxApprovalToolCallIds, one stable set while the calls are the same). The approval lives in the store, not in the row, soChatPanepasses the set to the projection. The VS Code webview has no approvals and passes none./refine applykeeps its reach.findRenderedRefineProposalHashaccepted only a proposal among the rows the display cap kept, and this PR turns the cap off on desktop, so the check now takes the newestMAX_DISPLAYED_MESSAGESdisplayed rows itself. Showing more of the transcript does not widen what the command accepts.useBoundedTranscriptRevealis unchanged:ChatPanehands it the window rows and translates its indices back. The cap, the marker row and "Load all" remain for the VS Code webview, which has no mount window.MessageWindow.tsxdecides which action rows are quiet, and where each sits: in the flow under a reply, floating under a prompt's bubble, floating at the end of a step's line. It gains astepvariant for machine-written rows.useUserMessageNavigationand the newfindLastEditablePrompt(chatEditing.ts, used by ArrowUp) useisMachineRowtoo, so the fold, the prev/next targets and the ArrowUp target agree on which prompts are the user's.InterruptedBarrier.tsxrenders only where the turn can be continued. Both hosts still mount it for every interrupted row and passresumable."normal"and"hyper"so settings survive an upgrade or a downgrade."hyper"now means Compact and is the default; a stored choice is kept.CompactMachineSteps(reports, the wake-up, the missing divider) andCompactLongStretchOpened(the pinned line).Validation
CompactLongStretchOpenedopens a 40-step stretch, scrolls to its middle, and asserts that the line is at the top of the scrollport, that the pointer reaches it, and that a click closes the stretch. Withstickyremoved it fails ("The opened line is -830px from the top of the transcript").TranscriptBundles.test.tsxcovers the rendering: steps open in place between two texts, each stretch is its own block, a mounted range that starts below a closed line mounts nothing for it, and Detailed has run folds and no work lines.tests/ui/chat/longTranscript.test.ts(wastruncation.test.ts) asserts that every turn of a transcript past the old cap shows. It fails with the cap restored.tests/ui/tasks/awaitVisualization.test.ts, and the two TODO-nudge repros (🤖 fix: let the turn-end TODO nudge continue with the turn's tools #7027, 🤖 refactor: keep the tool block stable under caller tool policies #7029).BashMonitorWakeMessagesstory asserted that wake-up chips are right-aligned. It now asserts the left.WorkspaceMenuBartest, fails without this change too), the VS Code webview tests, 16tests/uifiles (66 tests, Node 22), typecheck, oxlint, type-aware ESLint on the changed files, the format check, the phone chrome check, andmake crap-checkwith and without coverage.make test-e2e-perf), which are not part of PR CI.Risks
getBashSandboxApprovalToolCallIds, its card would be behind a closed line.showsThroughFoldis the one place to extend./refine applyrefuses a proposal more than 64 rows back, as before on a capped transcript. On desktop that row is now on the page, so the refusal ("no staged /refine proposal is visible in this chat") can read as wrong. Running/refineagain stages a current proposal.position: stickyinside the transcript scrollport. It sits above the steps (z-20) and covers the scrollport's top padding with a pseudo-element. On a phone it pins under the fixed header's spacer."hyper"changed. Those users had a turn-level fold; it is now a fold per update.Edited 3 files, as the run summary in Detailed already did, and a file a script or a shell command changed is not counted as an edit.Follow-ups
Thought, with no duration. Reasoning rows carry no end time to compute one from.Using <tool name>. Tools that deserve their own wording can be added toTOOL_CATEGORY_BY_NAME.Pains
tests/uineeds 22+, so the default flip could not be checked until a second Node was installed.make static-checkcannot complete locally (uv.lockmismatch in the Python steps), so its parts were run one by one. The commit hook's CRAP gate is skipped for the same reason, and CI scores with coverage while the local default scores complexity only, so a function can pass one and fail the other./refine apply, each on a new way a row can be mounted and not seen (the mount window, a hidden side pane, aninvisibletranscript). The fix that ended them removed the DOM check and restored the rule the command had before this PR.Generated with
xum• Model:anthropic:claude-fable-5-2• Thinking:high• Cost:$570.39