Repository navigation
fix(ios): keep consecutive commands on one line in chat - #207242
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 groups consecutive commands across automatic continuations and makes their full history available in the iOS tool inspector. Example: An OpenAI turn performs eight operations across automatic continuations, including a failed cat sample.conf.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a concrete chat presentation defect still present on current main; no definite introduced correctness bug was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared Swift chat presentation consumes recorded messages and live tool events, then produces transcript rows, completed-work disclosures, and inspector items. flowchart TD
A[Recorded chat history] --> C[Transcript presentation]
B[Live tool events] --> C
C --> D[Activity stretch grouping]
D --> E[Working line or disclosure]
D --> F[Tool inspector]
Technical reviewBest possible solution: Keep grouping in the existing transcript owner and let the inspector consume its membership while preserving visible commentary and input boundaries. Do we have a high-confidence way to reproduce the issue? The prior run-ID fence and run-only inspector filter explain the reported failures, supported by before/after simulator captures and reported base/head regressions; no target code was executed during this read-only review. Is this the best way to solve the issue? The repair uses the existing grouping owner, continuation metadata, and parent-call identities without changing stored history or adding a competing renderer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b0a577e8fb44. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +307, Tests +74. Total +381 across 9 files. Added test files: 1. 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:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 27, 2026, 11:59 PM ET / November 28, 2026, 04:59 UTC. |
31da591 to
6b06fb4
Compare
f14948d to
b5a3dd1
Compare
b5a3dd1 to
83ed97c
Compare
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
What Problem This Solves
While the assistant works on iPhone, every command can become its own row and the list keeps growing. This happened when an OpenAI turn kept waking after a command: the earlier operations stayed in the chat, but tapping the working line showed only the last two. Eight operations inside one uninterrupted OpenAI run already folded correctly. With eight direct Claude CLI calls, the line already stayed folded, but tapping it showed only the latest command.
User Impact
Tap the current step to see all eight operations in order, including the failed command. When the turn finishes, the commands share a disclosure above the answer. A new user message or visible commentary still separates stretches of work. No setting or migration is required.
Why This Change Was Made
An automatic continuation can change the run ID without starting a new turn. The transcript now keeps those linked steps together and gives their membership to the existing inspector. A code-mode batch title and the command it ran describe two linked operations, not two copies of one command. An imported Claude CLI shell call is different: its title and command belong to the same operation.
Evidence
On an iPhone 17 Pro simulator, the focused regression covered three eight-operation histories, both running and finished. On the starting revision, the single OpenAI run passed twice; the resumed OpenAI turn failed twice; the direct Claude CLI history failed only while running. Each OpenAI outer result was a separate message, and one outer call owned both a skill read and a shell command. All six passed with the fix. One tap on the working line opened all eight steps in order and identified the failed command. The uninterrupted OpenAI run kept its existing “Worked” disclosure; the resumed OpenAI turn and direct Claude CLI calls finished with “Ran commands.” The first command no longer moves the text or claw down 5 points. On settlement, the icon center stayed fixed and the top of the first letter differed by one physical pixel. A streaming answer kept the same position as on the starting revision, with or without tools.
Of 20 existing chat-history methods, 14 passed and the same six failed on both revisions. Five failures were identical. The existing assertion at
apps/shared/OpenClawKit/Tests/OpenClawKitTests/ChatSessionsCodingTests.swift:537expects “Ran commands, read files”; once the group forms it gets “Read files, ran commands.” No existing expectation was changed.The comparison used fixture data, not a live model service. It did not cover a physical iPhone, other providers, or the full test suite.
Stacked on #206685.
🦞 Made with OpenClaw