Repository navigation
fix(tui): keep assistant text chronological across tool calls and resume; condense tool cards - #103147
fix(tui): keep assistant text chronological across tool calls and resume; condense tool cards#103147fluffyxenia wants to merge 9 commits into
Conversation
0660aeb to
1eff879
Compare
|
Codex review: found issues before merge. Reviewed August 24, 2026, 5:40 PM ET / 21:40 UTC. ClawSweeper reviewWhat this changesThis PR segments streamed assistant text around tool calls, condenses terminal tool cards, and shows a one-line tool-activity summary when verbose mode is off. Merge readinessKeep open for a maintainer product decision: current main already owns the chronology repair, but the compact-card and verbose-off activity proposal remains distinct. The branch cannot land as written because it retains the superseded transcript state model. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe terminal UI turns agent stream and tool events into the operator’s chat transcript, then rebuilds that transcript from session history on resume. Verbosity controls how much tool activity reaches the terminal view. flowchart LR
A[Agent stream events] --> B[TUI event routing]
B --> C[Transcript state]
B --> D[Tool activity display]
E[Session history] --> C
C --> F[Terminal renderer]
D --> F
F --> G[Operator view]
Decision needed
Why: The chronology defect is already fixed on main; the remaining behavior changes are intentional terminal-product choices rather than repairs to an established contract. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +244, Tests +395. Total +639 across 14 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Decide whether compact cards and verbose-off activity are desired, then rebuild only those presentation behaviors on current main’s transcript and safe-renderer owners with focused PTY proof. Do we have a high-confidence way to reproduce the issue? No current-main reproduction is needed for the original chronology report: current source and tests show it is fixed. The contributor’s recorded real-terminal run demonstrates the proposed presentation behavior, but this review did not rerun it. Is this the best way to solve the issue? No: retaining the branch is not the best fix because main now has a richer transcript owner. A focused rebuild is appropriate only after the presentation direction is approved. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5f9fda20c930. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
408d51b to
87340b8
Compare
|
Thanks — acting on all three P1s: Split done. This PR is now rendering-only (chronological ordering fix + tool-card condensing + verbose-off activity summary); the title and body were updated to match. Shell persistence moved to #103648 with its own evidence and a redesigned consent model. Duplicate-persist finding: confirmed and fixed (in #103648, where the code now lives). A failed spawn emits both On the maintainer decision (persist-by-default vs explicit sharing): #103648 now implements the review's recommended option. Ordinary PTY evidence: rendering behavior is covered by the fake-backend PTY lane plus the chat-log regression tests in this PR; the @clawsweeper re-review 🤖 Generated with Claude Code |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
87340b8 to
fded082
Compare
A failed spawn emits both 'error' and a subsequent 'close'; both handlers called persistResult, appending two bashExecution transcript rows for one command. Add a settled guard so only the first terminal event persists. Addresses ClawSweeper review finding on PR openclaw#103147.
- record a segment boundary for replayed tool calls even when verbose is off, so a turn's later cumulative text cannot rewrite pre-tool text in place on the default resume path; replay now routes through the same activity-summary path a live verbose-off run uses - truncate the combined tool-card header to the render width (ANSI-aware) instead of letting it wrap and break the condensed card layout - drop the bashExecution history-replay branch: shell persistence and its replay rendering belong to the persistence PR (openclaw#103648)
…or the LOC ratchet
…-category type local
d640183 to
3ad39dd
Compare
|
Triage update: the narrowly reproducible assistant/tool chronology and revised-stream snapshot fixes from this proposal have landed on main in #114869 (eeba5a3), with your co-author credit preserved in the landed commit. The changes are independently covered by full TUI, real-terminal, and real-Gateway proof. This PR is intentionally remaining open: its additional tool-card and verbosity/presentation changes are a separate product decision and were not claimed as fixed or superseded. Thank you for the original diagnosis. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
What Problem This Solves
Two user-visible TUI rendering defects and one readability problem:
Why This Change Was Made
Scope note: this PR originally also carried persistence for
!/!!local shell commands; per review feedback it was split out and now lives in #103648. This PR is purely rendering/display.User Impact
Evidence
src/tui/components/chat-log.test.ts— regression tests for chronological segmentation live and on replay.src/tui/tool-activity-summary.test.ts— activity summary behavior.src/tui/tui-event-handlers.test.ts,src/tui/tui-session-actions.test.ts— event wiring and resume-ordering coverage.src/tuisuite green locally; fake-backend PTY lane green (test/vitest/vitest.tui-pty.config.ts).🤖 Generated with Claude Code