Skip to content

[建议 / Feature] Enter=排队 / queue, Ctrl+Enter=引导 / steer (对齐 Codex 行为) #95

Open

Description

@vtsixthai

提交前确认 · Pre-submission checklist

  • 我已搜索过现有 issue,确认这不是重复提议 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.

问题类别 · Category

UI / 界面体验 · UI / UX

涉及的 Agent 框架 · Agent framework

ZCode Agent(自研)

使用场景 · Use case

When a ZCode Agent turn is running, I often want to send two different kinds of follow-up:

  1. A queued message — "answer/continue this after the current turn" (today's default Enter behavior).
  2. A steer / guide — "inject this into the running turn right now" (mid-flight course correction).

Today ZCode only exposes queue-vs-steer as a global setting (zcodeInteractionBehavior: "queue" | "guide" in setting.json, default "queue"). So I'm forced to pick ONE mode globally. To steer even once I have to flip the global setting, which then changes behavior for every subsequent message and is awkward to toggle mid-flow.

Frustrating part: the choice should be per-message, not global. In Codex I pick at send time with a modifier key — queue normally, steer occasionally — without leaving the keyboard or touching settings.

建议方案 · Proposal

Match Codex's chat-input behavior for steering a running turn:

  • Enter → queue the message (delivered when the current turn ends) — i.e. today's default session/send.
  • Ctrl+Enter (Cmd+Enter on macOS) → steer / guide (injected live into the running turn) — session/steer.

The protocol plumbing for steer already exists in 3.2.5:

  • JSON-RPC method session/steer,
  • events turn.steerQueued / turn.steerDrained,
  • client steerSession() already returns kind:"queued".

But the task facade currently returns {kind:"unsupported", message:"ZCode Protocol steering is not wired yet."}, and the main composer's onKeyDown only handles Escape — there is no Ctrl+Enter path to session/steer (and Ctrl+Enter isn't in the registered shortcut set). So the ask is to wire that facade through to the composer and bind Ctrl+Enter to it, leaving Enter on session/send.

Keep the global zcodeInteractionBehavior setting as the default mode if desired — the modifier key would override it per-send, giving both behaviors without removing the setting.

预期价值 · Expected value

  • Per-message control of queue-vs-steer without leaving the keyboard — no global toggle, no mode-switch friction.
  • Parity with Codex (and broadly with how Claude Code / other agents handle live steering), lowering the switching cost for users coming from those tools. There's already visible demand for ZCode↔Codex/Claude-Code parity (e.g. open issue on GLM-5.2 output differences across agents).
  • Unlocks a real workflow: let a long task keep running, queue follow-ups for after, but nudge it immediately with a steer when it goes off track — all from the same input box.
  • Little UI surface: it's a keybinding on an already-existing protocol, not a new panel or setting screen.

你认为的优先级 · Your perceived priority

None

你使用的 ZCode 版本 / 环境 · ZCode version / environment

ZCode 3.2.5 (desktop / Electron), Windows 11 10.0.26200, GLM-5.2 (builtin:bigmodel-coding-plan)

补充材料 · Additional context

Reference: OpenAI Codex CLI chat input — Enter queues the message; Ctrl+Enter sends it as a steer.

Evidence from the ZCode 3.2.5 bundle (app.asar, read-only inspection):

  • Protocol has steer: session/steer, events turn.steerQueued / turn.steerDrained, steerSession() → kind:"queued".
  • Task facade currently a stub: steerPrompt() returns {kind:"unsupported", message:"ZCode Protocol steering is not wired yet."}.
  • Main composer <form>: onSubmit → session/send; onKeyDown only handles Escape. No Ctrl+Enter → steer path.
  • Registered Ctrl+X shortcuts: A,B,C,D,L,M,N,O,P,R,S,W,X,Y,Z — Ctrl+Enter is not among them.
  • Global toggle only: zcodeInteractionBehavior ∈ {"queue","guide"}, default "queue".

Happy to attach logs / a screen recording on request (Export Logs from the app menu, or %USERPROFILE%.zcode\logs).

Activity

  1. added
    status: 待评估
    type: 功能建议
    on Jul 6, 2026
  2. github-actions commented on Jul 6, 2026

    @github-actions

    👋 感谢你的反馈,我们已经收到。

    • 维护者会在 3 个工作日内 给出首次响应。
    • 状态保持为 status: 待评估,你可以随时补充信息。
    • 信息不全时我们会打上 needs: 更多信息 标签并 @ 你。

    👋 Thanks — we've received your issue.

    • A maintainer will respond within 3 business days.
    • Status stays at status: 待评估 (Triage); feel free to add context.
    • If we need more details, we'll add needs: 更多信息 and ping you.
  3. panda920 commented on Aug 30, 2026

    @panda920
    Collaborator

    进展同步(v3.10.0 起):新增修饰键发送:全局为「引导」时 Ctrl/Cmd+Enter 改为排队,全局为「队列」时 Ctrl/Cmd+Enter 为立即发送;仍不是逐条选择「引导」。

    这条我们仍保持打开,剩余部分会继续跟进,有更新会在这里同步。


    Progress update (since v3.10.0): Added modifier-key sending: with Guide mode Ctrl/Cmd+Enter queues instead; with Queue mode it sends immediately. Per-message steer is still not exactly as requested.

    Keeping this open — we're still tracking the remaining part and will update here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: P2status: 待评估type: 功能建议

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions