Skip to content

feat: add busy input mode selector (queue/interrupt/steer) to main chat - #2454

Open
tcszh wants to merge 2 commits into
EKKOLearnAI:mainfrom
tcszh:feat/busy-input-mode
Open

feat: add busy input mode selector (queue/interrupt/steer) to main chat#2454
tcszh wants to merge 2 commits into
EKKOLearnAI:mainfrom
tcszh:feat/busy-input-mode

Conversation

@tcszh

@tcszh tcszh commented Aug 9, 2026

Copy link
Copy Markdown

What

The WebUI input box was never locked, but messages sent while the AI is processing were silently queued until the current run finishes — with no way to interrupt or steer. This makes the existing (previously unwired) busy_input_mode setting actually work in the main chat, giving users the same interrupt/steer semantics the CLI has.

Changes

  • DisplaySettings.vue: NSelect dropdown with three options — Queue (default) / Interrupt / Steer
  • chat.ts sendMessage:
    • steer mode: while a bridge run is live, rewrite the message to /steer <text> so it is injected into the current run instead of queued (skipped for coding-agent sessions and explicit slash commands)
    • interrupt mode: emit abort and wait for abort.completed before sending, so the new message is processed immediately
  • i18n: en/zh labels + hints for the three modes
  • tests: flipped the old 'does not expose the unwired toggle' assertion into positive coverage (selector visible + chosen mode saved)

Why

Investigation showed the WebUI only had a queue — no interrupt/steer entry point for the main chat (group chat already had interruptAgent). busy_input_mode existed only in API types and i18n strings; this wires it up end-to-end, client-side only (server already handles abort and /steer).

Verification

  • vue-tsc -b passes
  • display-settings.test.ts 7/7 pass (new positive tests)
  • chat store suite 7 files / 48 tests pass
  • Full npm run build passes; built artifacts contain busy_input_mode||"queue", abort.completed, and the three option labels
  • Manually tested in the running WebUI: queue shows the queue panel; interrupt stops the current run and responds immediately

tcszh added 2 commits August 9, 2026 23:04
The WebUI input box was never locked, but messages sent while the AI was
working were silently queued until the current run finished — with no way
to interrupt or steer. This adds a real, working control for the existing
busy_input_mode setting:

- DisplaySettings: NSelect dropdown with Queue / Interrupt / Steer
- chat store sendMessage: steer mode rewrites the message to /steer while
  a bridge run is live (skipped for coding-agent sessions and explicit
  slash commands); interrupt mode emits abort and waits for abort.completed
  before sending, so the new message is processed immediately
- i18n: en/zh labels and hints for the three modes
- tests: flip the old 'does not expose the unwired toggle' assertion to
  positive coverage (selector visible, mode saved)
Harness requires a docs/chat-chain-changes fragment when the chat session
chain is touched (chat.ts changed for the busy input mode feature).
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