Skip to content

Show Send on idle queued message cards - #28648

Closed
brennanb2025 wants to merge 3 commits into
mainfrom
brennanb2025/queue-idle-card-send-label
Closed

brennanb2025 wants to merge 3 commits into
mainfrom
brennanb2025/queue-idle-card-send-label

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​104 $\color{#cf222e}{\Huge{\mathbf{−}}}$​86 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​18
Prod 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​53 $\color{#cf222e}{\Huge{\mathbf{−}}}$​17 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​36

ELI5

A waiting message card says “Steer” even when the agent is idle. Pressing it starts a new turn, so the label makes it unclear how to send a message saved across a restart. Desktop and phone now show “Send” with the paper-plane icon at idle, and “Steer” while a turn is running.

What Changed

Both clients pass the chat’s existing working state to the card action. The label, icon, desktop tooltip and phone accessibility label follow that state. Clicking still uses the existing host-owned card send operation. Returned cards, failed sends, commands and the Stop restriction keep their existing rules.

Why

The working state answers whether there is a turn to steer. Reusing it and the existing Send labels and icons avoids a second delivery path or a new notice. The queueing capability remains disabled; this PR only corrects cards already shown.

Linked Issue

N/A (maintainer PR).

Visual Proof

Native iOS component fixture (iPhone 17 Pro, iOS 26.5): idle shows Send with the paper plane; working shows Steer with the corner arrow. Tapping each control removed its card and reached the simulated callback. The fixture uses the real card component and this branch’s Metro bundle, with input through Orca emulator and screenshots from the exact simulator device.

Current code, idle before tapping Send:

Native iOS idle card before Send

Current code, idle after tapping Send:

Native iOS after Send reaches the fixture callback

Current code, working:

Native iOS working card with Steer

BLOCKED — full desktop and paired-phone session validation. The isolated macOS Electron rig reached onboarding and confirmed the intended worktree through Playwright CDP, but did not reach a queued card. The native phone fixture supplies working state directly; it does not prove live overlay/controller wiring or provider delivery. No pre-change code screenshot is claimed; the before/after images above show the Send action on the current code. Returned, failed/paused, command and Stopping states were not exercised in native phone QA. Both QA runs used Codex gpt-5.6-terra at medium reasoning and cleaned up their owned processes/device.

Testing

  • I manually tested these changes locally — native iOS component fixture; full-session gaps above
  • Automated tests added/updated, or explained why not below

Existing desktop and phone card tests now cover working → idle, the icon change, and clicking Send through the existing action. Passed on macOS:

  • pnpm test src/renderer/src/components/native-chat/NativeChatQueuedMessageList.test.tsx src/renderer/src/components/native-chat/NativeChatQueuedMessageList.inline-edit.test.tsx src/renderer/src/components/native-chat/structured-agent-session-queued-cards.test.ts — 69 passed in the final run. Two redundant icon/layout tests were removed; the render transition test replaces the old card-only label matrix.
  • pnpm test src/renderer/src/components/native-chat/NativeChatAgentMessageRow.test.tsx — 10 tests.
  • pnpm --dir mobile test src/session/MobileNativeChatQueuedMessages.test.tsx src/session/use-mobile-native-chat-composer-tray.test.tsx — 27 tests.
  • pnpm test src/main/native-chat/agent-session-wire/structured-agent-session-queued-card-holds.test.ts — 17 passed. The existing host/client-view fixture now passes its computed working state to the renderer label helper and expects Send at idle; the SQLite suite is registered in the existing Node-runtime list.
  • pnpm tc:web, pnpm tc:node and pnpm --dir mobile typecheck.
  • QA driver built the Electron bundle with pnpm exec electron-vite build --mode e2e.

orca-ci-checks --no-typecheck — 19/21 checks passed, with only the two documented main failures below. Plain lint, type-aware lint, changed-code quality, React checks, localization and all other static checks passed. The touched projects were typechecked separately through the machine-wide queue.

Known failures already on main, left untouched: the native audit’s five mobile import-cycle warnings in transport/client-context.tsx, transport/host-client-hooks.ts, terminal/document/fit-scale.ts (two) and terminal/document/mouse-report-cell.ts, independently reproduced against clean base 83ddc89; and typecheck:ci invoking the missing local bun check script. The brief also names the node clock error at structured-agent-session-message-options.ts:30 (#28629) and stale Spanish localization keys; node typechecking and localization passed here. Linux, Windows, live SSH and folder-workspace flows were not exercised.

CI on commit 02c7f0c851f: static analysis/typecheck, mobile verification, mobile bundle, repository guards, test-size check, relay integration, cross-version wire compatibility, and both package builds passed. The fail-fast watch ended on an untouched browser popup timing failure in unit shard 5/5: browser-popup-background-compatibility.electron.test.ts, the route/opaque case, timed out at browser-popup-background-cdp-probe.ts:131 waiting for native request count to exceed 100. That shard passed 2,411 other files and 23,722 tests. The coordinator classified it as an unrelated flaky failure and authorized leaving browser behavior untouched; a separate baseline reproduction was not established. Four other unit shards were still pending when the watch ended. Failed browser job.

Review

Self-reviewed the client state flow and unchanged host action. No persistent state, queue ordering, host mutation, wire field or capability was added.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Mixed versions: an old client on a new host retains its existing wording; a new client on an old host corrects the wording using working state and card actions already supported. SSH and remote hosts keep ownership of sending; client disconnects add no execution inference. Folder workspaces use the same session state without requiring Git. The phone uses the same label rule as desktop. macOS, Linux and Windows reuse their existing icons and translations; no paths or shortcuts changed.

Intended: saved cards keep the existing silent restart hold and explicit card action. The clearer Send label makes that action discoverable while preserving the approved restart rule. This PR introduces no temporary difference.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason — native Send-action evidence; missing pre-change and full-session proof stated above
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred) — targeted tests/typechecks and Electron build passed; static baseline exceptions listed above.

@brennanb2025

brennanb2025 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Queued message cards offered Steer even when the chat was idle and pressing the button started a new turn. The label followed the card's hold rather than whether work was running. Desktop and phone now offer Send with the paper-plane icon at idle, and keep Steer during a running turn and the transition to the next queued turn through the existing host action.

Two review findings are fixed at 9f21d4bd0544: the idle desktop session test still expected Steer, and phone labels briefly disagreed with desktop between queued turns. Both clients now use one derived presentation rule. The SQLite list entry routes an already-discovered fixture to Node; it was not excluded by CI test discovery.

Two review rounds, the readiness checklist and a dedicated performance pass found no further source issue. The fix passed 55 desktop and 31 phone tests, native TypeScript and phone app TypeScript. Final-head CI passed all five unit shards, static analysis/typechecking, phone verification and bundle, relay integration, and both package jobs.

CI remains red on three untouched cross-version test assertions. The tests now select release v1.4.225, which already supports ephemeral browser keys and runtime-source checking, while the assertions expect an older host. I verified the release's source; no clean-base job reproduction or CI rerun was performed. Failed compatibility job.

Rendered QA is partial. An isolated hidden app attached through Playwright CDP and showed an owned test project, but onboarding opened Add project again before a structured queued card could be exercised. Live desktop card delivery, a main/branch card-screen comparison and paired-phone delivery remain unverified. Full queued-session UI testing is deferred to the switch-on PR, after the queue changes land; no new screenshot is presented as card proof.

Deferred outside this PR: offered card actions can be refused while an approval/question waits, and command-card visibility can differ between queued turns. Optional phone test-tree compilation also reported 538 existing-expression fixture errors; a clean-base compiler reproduction was not run. The PR stays draft for the final main sync and compatibility-test baseline repair.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Fixed on main by #36588.

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