Skip to content

fix(ios): keep consecutive commands on one line in chat - #207242

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/ios-tool-calls-fold
Nov 28, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/ios-tool-calls-fold

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

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.

A resumed OpenAI turn while it is still working, light appearance. Before, on the left, six earlier commands each have their own row above the working line. After, on the right, only the working line "Running git diff --stat" shows.

One tap on the working line. Before, on the left, the sheet lists only the last two steps. After, on the right, it lists all eight in order and marks the failed one.

The finished turn. Before, on the left, all eight rows stay above the answer. After, on the right, one "Ran commands" disclosure sits above the answer.

The running comparison in dark appearance.

Eight direct Claude CLI calls, one tap on the working line. Before, on the left, the sheet shows only the latest command. After, on the right, it shows all eight.

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:537 expects “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

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: Earlier commands occupy separate transcript rows, while the working-line inspector shows only the latest two operations.
  • After: One working line opens the complete operation history, and completion produces one disclosure above the answer.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) A focused, source-supported repair with useful visual comparisons and distinct regression cases, limited by incomplete required production-flow proof.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A busy iPhone chat expands earlier commands into separate rows and omits earlier operations from the working-line inspector.
Reason: The focused repair restores complete inspection and compact presentation; maintainer authorship establishes the product direction.

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: f14948d74ea749ee4fb2319bd4e1ad25e7a29f06

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Continuation boundaries and nested activity changes intended behavior with a stated reason (8eef2f4: The earlier working-line implementation bounded activity by run identity and kept unfinished activity under the narrated working line.)
  • Completed activity grouping keeps the original intent (c9285dd: The transcript redesign grouped adjacent tool-only work while preserving narration, replies, launches, and input boundaries.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +307, Tests +74. Total +381 across 9 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 8 327 20 +307
Tests 1 74 0 +74
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 401 20 +381

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the Gateway-backed scenario described in the proof assessment.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 27, 2026, 11:59 PM ET / November 28, 2026, 04:59 UTC.

Base automatically changed from brzezowski/ios-talk to main November 28, 2026 06:01
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos scripts Repository scripts size: XL and removed size: M labels Nov 28, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/ios-tool-calls-fold branch from f14948d to b5a3dd1 Compare November 28, 2026 06:23
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed docs Improvements or additions to documentation app: macos App: macos scripts Repository scripts size: XL labels Nov 28, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/ios-tool-calls-fold branch from b5a3dd1 to 83ed97c Compare November 28, 2026 06:43
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 28, 2026 07:19
@vyctorbrzezowski
vyctorbrzezowski merged commit 3320cd3 into main Nov 28, 2026
65 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/ios-tool-calls-fold branch November 28, 2026 07:19
vincentkoc added a commit that referenced this pull request Nov 28, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Nov 28, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Nov 28, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant