agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

bug(chat): Steer control unclickable while agent is working — #4248 composer redesign turned Queue/Steer chips into inert spans (mouse path gone, ⌘ shown on Linux/Windows)

Open OrcInc opened this issue 3 months ago • 2 comments

Bug

While a turn is running, the Steer control in the chat composer looks like a button but cannot be clicked — no pointer events, no hover state, nothing. Clicking it does nothing. Since #4248 shipped in v0.12.7, the only way to steer a running turn is the keyboard shortcut Cmd/Ctrl+Enter, and on Linux/Windows the chip even displays a ⌘ symbol that does not exist on the user's keyboard.

Source: reported by Akash in Discord #bug-triage | AO v0.12.7 | Fedora 43, codex session Analyzed against: tag v0.12.7 (4c3f4d72e) and origin/main (ed52364e3) — present in both Confidence: High — exact diff and mechanism traced; reporter's phrasing ("grayed out") corrected below Priority: P1 — steering is a core interaction; mouse-only users are fully locked out of it

Reproduction

  1. Open a Chat session (any ACP harness; reporter used codex) and send a prompt.
  2. While the turn is running (Working for Xm), look at the delivery row in the composer: ⏎ Queue / ⌘⏎ Steer, next to the Default ⌄ approvals dropdown.
  3. Click Steer (with the mouse).
  4. Nothing happens. No hover cursor, no pressed state, no steering.

Expected: clicking Steer arms steering for the next submit (as it did through v0.12.6), or the chips are clearly indicators, not affordances.

Root Cause

PR #4248 ("Feat/chat composer redesign", merged 2026-08-21, first shipped in v0.12.7) rewrote DeliveryChoice from interactive buttons into inert indicator spans.

v0.12.6 — frontend/src/renderer/components/chat/ChatComposer.tsx, DeliveryChoice rendered <button> elements with onClick={() => onChange(option)} and aria-pressed, i.e. clicking Steer armed steering.

v0.12.7 / current origin/main — ChatComposer.tsx:782-819:

export function DeliveryChoice({ value, disabled }: { value: "steer" | "queue"; disabled?: boolean }) {
  return (
    <div role="group" aria-label="Where this message goes while the agent is working" ...>
      <span className={... "inline-flex h-7 items-center gap-1.5 rounded-lg px-3 ..." ...}>
        <CornerDownLeft ... /> Queue
      </span>
      <span className={...}>
        <Command ... /> <CornerDownLeft ... /> Steer   // ← inert span: no onClick, no role, no tabindex
      </span>
    </div>
  );
}

No onChange prop is even accepted anymore; the component is purely presentational. The composer arms steering exclusively via modifier key: activeDelivery = metaHeld && canSteerDraft ? "steer" : "queue" (ChatComposer.tsx:563), where metaHeld comes from a window-level keydown/keyup listener for e.metaKey || e.ctrlKey. onSubmit then reads that armed state.

So the mouse path (click a chip → armed) that existed before #4248 is gone. What the reporter sees is not "grayed out / disabled" — the control was restyled as a keyboard-hint indicator, but it still looks clickable (chip background on the active one, button-sized hit target, arrow affordances), so users reasonably try to click it.

Two aggravators that make this worse than a simple lost toggle:

  1. Wrong modifier icon off macOS. The Steer chip hardcodes lucide Command (⌘) — ChatComposer.tsx:812. There is no Mac check here, unlike frontend/src/renderer/components/CenterPane.tsx:81 which correctly gates Mac chrome on isMacPlatform(). On Fedora/Windows the UI advertises ⌘⏎, a key that does not exist; the actual shortcut is Ctrl+Enter (the wantsSteer check accepts event.metaKey || event.ctrlKey, ChatComposer.tsx:524). A Linux user who trusts the chip has no way to discover the real chord.
  2. Queued dock lost its steer path too. ChatWorkspace.tsx no longer passes onPromoteQueuedTurn / renders a dock "Steer" button (the pre-#4248 queuedDock promote control wired at ChatWorkspace.tsx:689 on older main). v0.12.7 renders <QueuedMessageDock messages={queuedMessages} /> (ChatWorkspace.tsx:802-806) with no steer affordance — a queued message can no longer be promoted into the running turn by mouse either.

Note the steering backend is unaffected — Cmd/Ctrl+Enter still steers correctly via useConversation.ts:305 (POST /conversation/steer). This is purely a lost pointer path in the redesigned composer.

Related but distinct: #4428 tracks the a11y semantics (spans expose no aria-pressed). This issue is the interaction loss — the two should land together in a fix that restores buttons with proper semantics, but neither is a duplicate of the other.

Fix

Restore an interactive delivery choice in DeliveryChoice (v0.12.7+ ChatComposer.tsx):

  1. Accept onChange again and render actual <button type="button"> chips with aria-pressed={value === option} (also resolves the #4428 semantics for these controls), disabled only while steerPending.
  2. Clicking a chip sets the armed delivery so the next submit (button click or Enter) uses it — pointer and keyboard paths must agree, mirroring the pre-#4248 contract the tests in ChatSteer.test.tsx still encode (getByRole("button", { name: "Steer this turn" }), aria-pressed, click-to-steer).
  3. Gate the ⌘ icon on isMacPlatform() (pattern: CenterPane.tsx:81); show Ctrl on Linux/Windows.
  4. Restore the queued-dock promote-to-steer affordance (onPromoteQueuedTurn path) or state in the PR body why it's intentionally dropped.

Tests: ChatSteer.test.tsx already has coverage expectations from the pre-redesign era (click Steer → onSteer called, aria-pressed on the active chip, disabled while pending) — update/extend rather than delete.

Impact

  • Any user on v0.12.7+ who tries to steer a running turn with the mouse: silent no-op, feels like "Steer is broken/disabled" (this report).
  • Linux/Windows users additionally shown a nonexistent ⌘ shortcut with no discoverable alternative.
  • Users who queue a message mid-turn can no longer promote it into the running turn from the dock.
  • Regression window: v0.12.7 (2026-08-25) → present, including all v0.12.7/v0.12.8 nightlies.

Related

  • Introduced by #4248 (chat composer redesign)
  • #4428 — a11y selected-state semantics for the same chips
  • #4081 — prior steering-send edge case (closed), shows the intended click-to-steer contract
  • #4092 — open PR touching steering attachments, does not restore clickability

OrcInc avatar Aug 26 '26 17:08 OrcInc

Thanks for contributing to Agent Orchestrator.

This issue is being picked up by the current external contributor on-call pair:

  • @illegalcall
  • @somewherelostt

If someone is already working on this, please continue as usual. The on-call pair is added for visibility, tracking, and support, not to take over the work. If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @somewherelostt here.

For faster context or live questions, you can also join the AO Discord.

Join the session here: https://discord.gg/H6ZDcUXmq

Come by if you want to see what is being built, ask questions, or just hang around with the community.

somewherelostt avatar Aug 27 '26 15:08 somewherelostt

Closing this out, it's already been fixed.

#4671 removed the Queue/Steer chips from the composer, so that dead Steer control (and the wrong ⌘ hint on Linux/Windows) is gone. Enter still queues while a turn is running; Cmd/Ctrl+Enter still steers if you know the shortcut. And you can promote a queued message into the running turn from the dock again with the Steer button.

Different approach than restoring the old chips, but the original bug shouldn't show up anymore.

Annieeeee11 avatar Sep 07 '26 22:09 Annieeeee11