Repository navigation
Show Send on idle queued message cards - #28648
brennanb2025 wants to merge 3 commits into
Conversation
|
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 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 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. |
|
Fixed on main by #36588. |
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:
Current code, idle after tapping Send:
Current code, working:
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
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:nodeandpnpm --dir mobile typecheck.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:ciinvoking the missing localbun checkscript. 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 atbrowser-popup-background-cdp-probe.ts:131waiting 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
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
N/Awith reason — native Send-action evidence; missing pre-change and full-session proof stated abovepnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — targeted tests/typechecks and Electron build passed; static baseline exceptions listed above.