Skip to content

Transcript: a Codex turn header reads N previous messages over a mix, Worked for over one stretch - #31825

Merged
teamleaderleo merged 3 commits into
feat-cmux-nextfrom
leo/codex-worked-header
Nov 2, 2026
Merged

teamleaderleo merged 3 commits into
feat-cmux-nextfrom
leo/codex-worked-header

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Reply footer, part 3 of 3: Codex's turn header.

Leo, 2026-11-02: "compared to claude code our bottom thing looks bad ... i assume the x previous messages are when there's a mix and the worked for is if it's one contiguous thing. notice how on hover it reveals the exact timestamp. let's follow those."

A finished Codex turn's header now follows Codex:

  • "N previous messages ›" when the fold mixes the agent's own messages with its work. N counts the agent's messages, each call or thought in the work, and each received report. The answer stays below the header.
  • "Worked for 54s ›" when the fold is one stretch of work with no message between.

The chevron and hairline rule are the existing .cv-worked disclosure, unchanged. The turn.previous.one/other strings were already translated in Localizable.xcstrings, though nothing had set row.previous since turns without a summary stopped folding.

Codex turns only. Claude turns keep their per-run folding from #30176 and draw no header. #30176 is not reversed.

Code. turns.ts foldMixesMessages / foldedMessages set previous on the WORKED row, and workedLabel already reads it. The model.ts comment is updated.

Tests

  • New unit test conversation/codexHeader.test.ts: one stretch reads "Worked for 1m"; a mix of 5 calls and 1 note reads "6 previous messages"; a Claude turn draws no header.
  • New gallery variant agent-pane.transcript codex-turn-headers (a Codex chat). In Chromium the labels read ["5 previous messages", "Worked for 54s"]. Invariant and shift baselines were added for it.
  • 41 test files that mention "Worked for" or "previous message" were run at this tree and at base on the Linux pool: the same 7 failures on both (base reds), none new.
  • Typecheck and fmt are clean.

Viewed after image: yes. 2x captures of the new gallery variant in light and dark show "5 previous messages ›" over the first turn and "Worked for 54s ›" over the second, each with its hairline rule, and the answer below.

Agent session: agent session

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Finished Codex turns now draw a turn header that matches Codex's own: "N previous messages" when the fold mixes the agent's messages with its work, "Worked for 1m" when the fold is one contiguous stretch of work.

  • The header is Codex-only; Claude turns keep their per-run folding and draw no header.
  • Adds codexHeader.test.ts covering the mixed, contiguous, and Claude cases, plus a codex-turn-headers gallery variant with baselines.

Written for commit bba7ba2. Summary will update on new commits.

View guided diff

teamleaderleo and others added 3 commits November 2, 2026 04:35
Codex folds a turn with the agent messages between its work under
N previous messages, and one stretch of work under Worked for.
Claude turns keep their per-run folding (#30176).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-e9d08b9237cbd1067052
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-e9d08b9237cbd1067052
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review bba7ba2: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr31825 -f ref=leo/codex-worked-header -f platform=macos -f backend_mode=local

Gallery before/after for bba7ba2: 16 states rendered, 12 images differ, 2957 more touched states not rendered. Images are in the run's artifact, not on this public PR; the independent review of this head reads them on its own, so the PR needs no hand-made screenshots of these states.

gh run download 41390288269 -R manaflow-ai/cmux -n gallery-advisory-31825-bba7ba2ce89a37f118096181fc1ffa31a10ecb71 (then read gallery-review.json)

States
State Theme Status Diff Picked by
agent-pane.prompt-after-tool-rows/centered Apple System Colors changed 0.0276% own model.ts
agent-pane.prompt-after-tool-rows/centered Apple System Colors Light unchanged 0% own model.ts
agent-pane.recorded-chats/claude-long-turn Apple System Colors Light unchanged 0% own turns.ts
agent-pane.recorded-chats/claude-long-turn Apple System Colors unchanged 0% own turns.ts
agent-pane.recorded-chats/codex-steered-turn Apple System Colors Light changed 0.191% own turns.ts
agent-pane.recorded-chats/codex-steered-turn Apple System Colors changed 0.19% own turns.ts
agent-pane.recorded-chats/codex-steered-turn-expand Apple System Colors changed 0.207% own turns.ts
agent-pane.recorded-chats/codex-steered-turn-expand Apple System Colors Light changed 0.206% own turns.ts
agent-pane.transcript/codex-turn-headers Apple System Colors Light new 0% own transcript.gallery.ts
agent-pane.transcript/codex-turn-headers Apple System Colors new 0% own transcript.gallery.ts
agent-pane.transcript/grid-rhythm Apple System Colors Light changed 0.0576% own transcript.gallery.ts
agent-pane.transcript/grid-rhythm Apple System Colors unchanged 0% own transcript.gallery.ts
agent-pane.transcript/grid-waiting Apple System Colors Light unchanged 0% own transcript.gallery.ts
agent-pane.transcript/grid-waiting Apple System Colors unchanged 0% own transcript.gallery.ts
agent-pane.transcript/grid-settled Apple System Colors Light unchanged 0% own transcript.gallery.ts
agent-pane.transcript/grid-settled Apple System Colors unchanged 0% own transcript.gallery.ts
agent-pane.transcript/grid-rhythm-hover Apple System Colors Light changed 0.0912% own transcript.gallery.ts
agent-pane.transcript/grid-rhythm-hover Apple System Colors changed 0.0376% own transcript.gallery.ts
agent-pane.transcript/activity-tone-secondary Apple System Colors Light unchanged 0% own transcript.gallery.ts
agent-pane.transcript/activity-tone-secondary Apple System Colors unchanged 0% own transcript.gallery.ts
agent-pane.transcript/activity-tone-tertiary Apple System Colors Light unchanged 0% own transcript.gallery.ts
agent-pane.transcript/activity-tone-tertiary Apple System Colors unchanged 0% own transcript.gallery.ts
agent-pane.transcript/activity-tone-readable Apple System Colors Light unchanged 0% own transcript.gallery.ts
agent-pane.transcript/activity-tone-readable Apple System Colors unchanged 0% own transcript.gallery.ts
agent-pane.access-offer/turn-no-credits Apple System Colors Light unchanged 0% imports turns.ts (1 hops)
agent-pane.access-offer/turn-no-credits Apple System Colors unchanged 0% imports turns.ts (1 hops)
agent-pane.access-offer/turn-low-credits Apple System Colors Light unchanged 0% imports turns.ts (1 hops)
agent-pane.access-offer/turn-low-credits Apple System Colors unchanged 0% imports turns.ts (1 hops)
agent-pane.access-offer/turn-no-offer Apple System Colors Light unchanged 0% imports turns.ts (1 hops)
agent-pane.access-offer/turn-no-offer Apple System Colors unchanged 0% imports turns.ts (1 hops)
agent-pane.acpmux-batch-send/batches Apple System Colors Light changed 0% imports model.ts (1 hops)
agent-pane.acpmux-batch-send/batches Apple System Colors changed 0% imports model.ts (1 hops)

Pick other states with a Gallery: entry.id, entry.id/variant line in the PR body.

Shipped in:

@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Nov 2, 2026
@teamleaderleo
teamleaderleo merged commit 787e4fe into feat-cmux-next Nov 2, 2026
49 of 86 checks passed
@teamleaderleo
teamleaderleo deleted the leo/codex-worked-header branch November 2, 2026 04:46
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Owned by an agent session · session

This branch was successfully deployed

No deployments
ci-routing-agent — bba7ba2c Deployed Nov 2, 2026 by teamleaderleo via cmux-tui tree preflight #99297
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant