Repository navigation
cmux NEXT: a finished steered turn folds each part's work below its steer - #23771
Conversation
…elow its steer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a15d1f-ca00-7e31-b882-4d3c03033ee2&host=cosmic-gray
…wn Worked for A steer split nothing once the turn ended: shapeTurn put all the turn's work in one fold under its first prompt, above every steer, so under Leo's latest message only the answer showed and the calls that ran after it seemed gone. Each part of the turn (the prompt's, then each steer's) now folds its own work under its own Worked for, timed from that prompt or steer, and Find opens the fold of the part a row ran in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a15d1f-ca00-7e31-b882-4d3c03033ee2&host=cosmic-gray
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Gallery before/after for
States
Pick other states with a Tour of |
|
Found 1 test failure on Blacksmith runners: Failure
|
|
Bead |
Review of #23771: a prompt that failed to send mid-turn draws among the turn's rows and opens no fold, yet turnFoldFor stopped at it, so Find on a later call opened nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a15d1f-ca00-7e31-b882-4d3c03033ee2&host=cosmic-gray
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a15d1f-ca00-7e31-b882-4d3c03033ee2&host=cosmic-gray
|
Fleet run of the seven turn and fold test files (
dfdd5e2 then makes Reds at 304e2d2 that are not from this PR:
|
Review of #23771: turnView opens the chat's first turn with its first prompt even when that prompt failed to send, so turnFoldFor falls back to it when nothing before it opens a turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a15d1f-ca00-7e31-b882-4d3c03033ee2&host=cosmic-gray
|
Review (subagent, correctness first): SHIP at 3fa9b98 An independent reviewer agent (acpmux session steerfolds-review) read the full diff, then re-reviewed each later commit, and returned SHIP. It found two problems in
None of the remaining reds come from this PR:
|
|
The feat-cmux-next push run https://github.com/manaflow-ai/cmux/actions/runs/39692485830 at 7692cfb failed: cmux-next fast tier. |
|
Shipped in:
|
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Summary
Leo, on nightly 3a63d6d: "HOW DID YOUR THINKING LITERALLY GET REMOVED, THOSE TOOL CALLS?" When a steered turn ended, every tool call and thought seemed to vanish, and under his latest message only the reply showed.
Nothing was deleted; it was moved. Since #22691,
shapeTurnput all of a finished turn's work into one "Worked for" fold under the turn's first prompt, above every steer. So the calls that ran after a steer jumped up above it when the turn ended. Leo's Claude turns are mostly steers (his live session: 24 prompts, 19 of them steers), so his latest bubble was left with only the answer under it. Codex turns without steers were not affected.shapeTurn: splits a finished turn into parts: the prompt's, then one per steer. Each part folds its own work under its ownWorked for Xs ›(worked-<prompt id>,worked-<steer id>), timed from that prompt or steer to where the part ended (its reply, or the next steer). The steer bubble stays where it was. A reply a steer followed stays visible, as before. Only the last part carries the turn's status, so a Stop reads "You stopped after" on the part it stopped.turnFoldFor(Find, a shell row's reveal, message links): opens the fold of the part the row ran in, which is the nearest prompt or drawn steer before it.steeredAnswers, and the steer clause instaysOut, are gone: a steer now opens its own part.transcript/steer-endedshows a finished steered turn, and its play opens the steer's fold.Changelog
Testing
transcript-steer-continuous.test.tsx:turnFoldForfor every row.Observed / Not run
transcript/steer-endedis the visual check, and the gallery advisory run renders it on Linux.No capture: the change is how webview rows are ordered; the gallery advisory run captures
transcript/steer-ended.Agent session: cosmic-gray
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Fixes finished steered turns so tool calls no longer appear to vanish below a steer: previously all work folded into one "Worked for" above every steer, so under Leo's latest message only the answer showed.
turnFoldFor—Find, a shell row's reveal, and message links—opens the fold of the part a row ran in, walking past a prompt that failed to send mid-turn (which opens no fold, except the chat's first prompt, whose turn still opens); the shaped-turn cache keys on all open folds, not only the prompt's.steeredAnswersand the steer clause instaysOutare removed.transcript/steer-endedand tests, including a Claude turn steered twice.Written for commit 3fa9b98. Summary will update on new commits.