Repository navigation
fix(ui): fold background command wakes into chat activity - #207305
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesThis PR joins adjacent tool activity across background-command wakes while preserving separation around narration, replies, and other continuation sources. Example: A background wake separates
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR demonstrates a focused presentation improvement, with no blocking correctness or security defect found. Reviewed head: Before mergeNone. Findings
Agent review detailsHow this fits togetherThe Control UI groups projected chat history into assistant frames and expandable activity logs; this change adjusts presentation without changing execution or stored transcripts. flowchart LR
A[Projected chat history] --> B[Continuation projection]
B --> C[Activity grouping]
C --> D[Agent run frames]
D --> E[Activity join owner]
E --> F[Chat transcript]
Technical reviewBest possible solution: Keep the existing activity-join owner and document the exception for adjacent tool activity across exec wakes. Do we have a high-confidence way to reproduce the issue? Current-main source explains the split, and the supplied browser comparison demonstrates it with a fixed transcript; no target code or tests were executed during this review. Is this the best way to solve the issue? The patch is a small presentation change using the existing join checks, preserving visible boundaries without adding state or another grouping path. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f866b6618bd3. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +3, Tests +13. Total +16 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 28, 2026, 2:18 AM ET / 07:18 UTC. |
45af885 to
3a899dd
Compare
|
Merged via squash.
|
…or baseline * commit '2f2edbf36836a8ddc6758dfdcce872d4414a3a92': (520 commits) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) chore(i18n): refresh native locales (#207796) fix: name safe recovery when agent schema markers disagree (#207705) improve(ui): show only setup warnings on skill pages (#203750) fix(gateway): keep Linux legacy lock recovery explicit (#207340) fix: deliver a saved child answer after a Gateway crash (#207706) fix(ui): fold background command wakes into chat activity (#207305) fix: restore the Feishu proxy transport tests (#207782) ...
…aseline * commit '2f2edbf36836a8ddc6758dfdcce872d4414a3a92': (520 commits) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) chore(i18n): refresh native locales (#207796) fix: name safe recovery when agent schema markers disagree (#207705) improve(ui): show only setup warnings on skill pages (#203750) fix(gateway): keep Linux legacy lock recovery explicit (#207340) fix: deliver a saved child answer after a Gateway crash (#207706) fix(ui): fold background command wakes into chat activity (#207305) fix: restore the Feishu proxy transport tests (#207782) ...
…aseline * commit '2f2edbf36836a8ddc6758dfdcce872d4414a3a92': (520 commits) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) chore(release): update appcast for 2026.11.11 (#207504) fix: let updates back up deeply nested databases (#207756) fix(telegram): stop resending earlier messages to the model on every turn in DM topics (#207684) feat(workboard): choose which sessions appear on a board (#207781) fix: acknowledge updates when the Gateway first becomes ready (#207819) chore: stop the cron recovery test from failing CI on slow runners (#207837) fix: queue follow-ups when session creation reuses an active chat (#207800) feat(clawrouter): consume qualified native memory embeddings (#191874) fix: save the account for main-session prompts and converted reminders (#207776) test(infra): measure worker Buffer storage directly (#207663) feat(workboard): hide sessions and filter subagents per board (#207744) chore(i18n): refresh native locales (#207796) fix: name safe recovery when agent schema markers disagree (#207705) improve(ui): show only setup warnings on skill pages (#203750) fix(gateway): keep Linux legacy lock recovery explicit (#207340) fix: deliver a saved child answer after a Gateway crash (#207706) fix(ui): fold background command wakes into chat activity (#207305) fix: restore the Feishu proxy transport tests (#207782) ...
…07305) * fix(ui): fold background command wakes into chat activity * fix(ui): use a consistent gap between chat activity rows




What Problem This Solves
When a command in the background resumes a chat turn, the transcript can show “A background command finished” immediately before the tool activity that already explains what happened. If the wake falls between two command blocks, it can also split one stretch of work into two “Ran commands” rows. An older spacing rule also adds extra space where commands meet subagent events in that same turn.
User Impact
When visible tool activity follows a background command wake, it carries the turn forward without a separate notice. Adjacent command blocks can share one expandable log, with commands and results in their original order. A wake followed only by prose, an explicit wait, and a subagent completion still appear separately. The wake remains visible when tool calls are hidden.
Why This Change Was Made
Chat already groups compatible tool activity. Apply the same grouping across automatic command wakes and skip the notice only when a visible tool block follows. Use the regular activity gap between adjacent command and subagent rows. The underlying wake and command records are unchanged.
Risk and coverage
The change is limited to transcript presentation. The same Chromium scenario showed three standalone command notices on main and zero with this change. It also checks command order inside the disclosure, subagent completion, prompt boundaries, and reload. Five focused browser tests passed, including explicit waits. The UI type check, focused lint and formatting passed, and Codex review found no actionable issues in the grouping change. The spacing follow-up was verified with the same Chromium scenario; the two extra 8 px gaps are gone. Stylesheet lint and formatting passed.
Evidence
Same synthetic conversation in the bundled Control UI with an isolated mock Gateway. Baseline:
0af40be44838.Clean and annotated Chromium comparison for this revision. The same fixture was used before and after, with matched crops.