Skip to content

feat(ui): an ended turn's line names the messages it folds (D-261) - #241

Merged
blove merged 1 commit into
mainfrom
blove/line-counts-folded-messages
Nov 20, 2026
Merged

blove merged 1 commit into
mainfrom
blove/line-counts-folded-messages

Conversation

@blove

@blove blove commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

What

A finished turn draws its last message and folds everything before it behind one line. The line counted steps only, so a turn whose first message was a table and a code block read 1 step · 17s with no sign that a reply was inside.

  • An ended line now names the folded messages first: 2 messages · 1 step · 17s. Where only a message folds it reads 1 message with Show, in place of Show working.
  • Counted: the agent's own messages with text. Not counted: thoughts, plans, empty messages, a sub-agent's messages.
  • A running, waiting or stopping line is unchanged, and so is a line that folds no message.
  • A failed turn whose line already reads N failed draws no Turn failed. note. The note stays for a failed turn with no failed step, a stopped turn and a turn with no outcome.

The fold itself is unchanged. The owner chose this over keeping long messages outside the line, and chose to keep N steps over counts by kind.

Evidence

  • New tests failed first: theLineCountsTheMessagesItFolds, foldedMessagesAloneAreNamedAndNotShowWorking, onlyTheAgentsOwnWordsAreCounted, aRunningLineNamesNoMessages, foldedMessagesLeadTheLine, aFailedTurnWhoseLineSaysFailedHasNoNote, aStoppedTurnWithAFailedStepKeepsItsNote.
  • On screen in a Local build of this branch: the Codex test turn that read 1 step · 17s reads 1 message · 1 step · 17s.

Gates

  • WorkspaceStorageTests + CoordinatorTests: 529 tests in 68 suites passed.
  • Everything else: 1748 tests in 187 suites passed.
  • swift format lint --strict and Scripts/docs-index.sh --check clean.

Not checked

A failed turn without its note on screen (tests only); the phone; VoiceOver. The captures under docs/screenshots were not regenerated, and transcript-activity-failed-closed-* still show the note.

🤖 Generated with Claude Code

An ended line reads "2 messages · 1 step · 17s", and "1 message" with Show
where only a message folds. A failed turn whose line already reads
"N failed" draws no "Turn failed." note. The fold is unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@blove
blove enabled auto-merge November 20, 2026 03:43
@blove
blove added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 4c30a19 Nov 20, 2026
18 of 20 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