🎫 Tickets 265 (steer a running turn) and 266 (steer from Zed, ACP v2); 264 in the Providers epic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f6e03cd parent: 55c8f33 modified
.tickets/issues/0264-razorbill-provider-with-autostart.yaml +1 -0 | @@ -12,6 +12,7 @@ labels: | ||
| 12 | 12 | - enhancement |
| 13 | 13 | - kind::feature |
| 14 | 14 | milestone: v2.1.1 |
| 15 | +epic: Providers (LLM Engine) | |
| 15 | 16 | related: |
| 16 | 17 | - 223 |
| 17 | 18 | - 252 |
| @@ -12,6 +12,7 @@ labels: | |||
| 12 | - enhancement | 12 | - enhancement |
| 13 | - kind::feature | 13 | - kind::feature |
| 14 | milestone: v2.1.1 | 14 | milestone: v2.1.1 |
| 15 | +epic: Providers (LLM Engine) | ||
| 15 | related: | 16 | related: |
| 16 | - 223 | 17 | - 223 |
| 17 | - 252 | 18 | - 252 |
added
.tickets/issues/0265-steer-a-running-turn-a-message-typed-during-a-turn.yaml +135 -0 | new file mode 100644 | ||
| @@ -0,0 +1,135 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 265 | |
| 3 | +title: "Steer: a message typed during a turn reaches the model at its next call, without stopping the turn" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T11:30:00.000Z | |
| 9 | +updatedAt: 2026-11-26T12:30:00.000Z | |
| 10 | +labels: | |
| 11 | + - enhancement | |
| 12 | + - kind::feature | |
| 13 | +milestone: v2.1.1 | |
| 14 | +epic: Loop | |
| 15 | +related: | |
| 16 | + - 155 | |
| 17 | + - 251 | |
| 18 | + - 266 | |
| 19 | +body: | | |
| 20 | + Asked by the user (2026-11-26): "comment mettre en place le steer avec | |
| 21 | + mini-me ?" — steer = what Codex and Claude Code do: while the agent | |
| 22 | + works (tool calls, generation), the user types a message; it is given | |
| 23 | + to the model in the CURRENT turn, at its next call, and the turn goes | |
| 24 | + on with it. Today the window QUEUES such a message until the turn ends | |
| 25 | + (ticket 155) — the model only sees it once it has finished, often after | |
| 26 | + going the wrong way for many tool calls; the editor (ACP) makes a second | |
| 27 | + prompt wait; the line mode does not read the terminal during a turn. | |
| 28 | + | |
| 29 | + ## How it fits in mm (read in the code, 2026-11-26) | |
| 30 | + - Injection point: the `WrapModel` hook of the turn's middleware | |
| 31 | + (internal/engine/engine.go, the `capture` middleware) runs before EVERY | |
| 32 | + model call of the turn, and already rewrites | |
| 33 | + `params.Request.Messages` there (compactInTurn, ticket 251) — Genkit | |
| 34 | + builds the next calls from the changed history and the session keeps | |
| 35 | + it. A steer is one more step there: drain an inbox, append each | |
| 36 | + message as a user message after the last tool results. | |
| 37 | + - Inbox: one per turn, carried by the turn's context (like the speed | |
| 38 | + meter): `engine.Steer(ctx, text)` from the front end, read in | |
| 39 | + WrapModel. Only from the turn's second call on (tools have run): before | |
| 40 | + the first call the message is simply part of the question. | |
| 41 | + - What the model reads: a user message, marked so it is not taken for a | |
| 42 | + new task, e.g. `[message from the user during this turn] <text>`. A | |
| 43 | + user message after `tool` messages is valid OpenAI wire; to check on | |
| 44 | + the llama.cpp / MLX templates that are strict about roles (Gemma, | |
| 45 | + Qwen, LFM, gpt-oss). | |
| 46 | + - A message the turn could not take — typed while the model writes its | |
| 47 | + final answer, no further call — is not lost: it becomes the next | |
| 48 | + question, as the queue does today. | |
| 49 | + - Expansion: `@path` and `$skill` expanded as for a question; the | |
| 50 | + preGeneration hook does not run on a steer (it runs once per turn) — | |
| 51 | + to be decided. | |
| 52 | + - Display: `↪ steered: <text>` in the transcript when the model gets it | |
| 53 | + (not when it is typed), so the user knows from which call it counts. | |
| 54 | + - Session: the injected message stays in the history (it is part of the | |
| 55 | + turn); /resume replays it. | |
| 56 | + | |
| 57 | + ## Front ends | |
| 58 | + - Window (internal/tui): Enter during a turn = steer; the queue of | |
| 59 | + ticket 155 kept for an explicit "after this turn" (a key to choose: | |
| 60 | + Alt-Enter? a `/queue` prefix?). Slash commands keep their current | |
| 61 | + rules (control commands at once, others queued). | |
| 62 | + - Line mode (internal/agent): no steer (user's decision). | |
| 63 | + - Editor (ACP): moved to ticket 266 (blocked on ACP protocol v2 in | |
| 64 | + acp-go-sdk and Zed). | |
| 65 | + - `-p` and asked agents: nothing (no user during the turn). | |
| 66 | + | |
| 67 | + ## Decided | |
| 68 | + - 2026-11-26, user: in the window, Enter during a turn STEERS; the | |
| 69 | + queue of ticket 155 needs another trigger: BOTH Alt-Enter and a | |
| 70 | + `/queue <text>` command (works whatever the terminal sends) — user's | |
| 71 | + agreement 2026-11-26. | |
| 72 | + | |
| 73 | + - 2026-11-26, user: NO steer in the line mode (it keeps reading the | |
| 74 | + terminal only between turns). | |
| 75 | + - 2026-11-26, user: in the window, a second message sent before the | |
| 76 | + turn ends is a steer. | |
| 77 | + - Milestone v2.1.1. | |
| 78 | + | |
| 79 | + | |
| 80 | + ## Acceptance criteria | |
| 81 | + - In the window, a message typed during a tool-calling turn is read by | |
| 82 | + the model at its next call, the turn is not cancelled, the transcript | |
| 83 | + shows when it was taken, and the session keeps it. | |
| 84 | + - A message that arrives too late runs as the next question. | |
| 85 | + - Unit tests (engine inbox drained before a call, not on the first; | |
| 86 | + message kept in the history; late message handed back); live check on | |
| 87 | + llama.cpp and razorbill with a tool-calling model. | |
| 88 | + - Docs EN+FR (how-to "steer a running turn", window keys reference). | |
| 89 | +tasks: | |
| 90 | + - id: 1 | |
| 91 | + title: "Engine: per-turn steer inbox in the context, drained in WrapModel from the second call on" | |
| 92 | + state: open | |
| 93 | + priority: high | |
| 94 | + author: | |
| 95 | + name: k33g | |
| 96 | + email: ph.charriere@gmail.com | |
| 97 | + createdAt: 2026-11-26T11:30:00.000Z | |
| 98 | + updatedAt: 2026-11-26T11:30:00.000Z | |
| 99 | + - id: 2 | |
| 100 | + title: "Window: Enter during a turn steers; queue on Alt-Enter and /queue <text>; transcript line when taken" | |
| 101 | + state: open | |
| 102 | + priority: high | |
| 103 | + author: | |
| 104 | + name: k33g | |
| 105 | + email: ph.charriere@gmail.com | |
| 106 | + createdAt: 2026-11-26T11:30:00.000Z | |
| 107 | + updatedAt: 2026-11-26T11:30:00.000Z | |
| 108 | + - id: 4 | |
| 109 | + title: "Line mode: no steer (user's decision, 2026-11-26)" | |
| 110 | + state: closed | |
| 111 | + priority: low | |
| 112 | + author: | |
| 113 | + name: k33g | |
| 114 | + email: ph.charriere@gmail.com | |
| 115 | + createdAt: 2026-11-26T11:30:00.000Z | |
| 116 | + updatedAt: 2026-11-26T12:00:00.000Z | |
| 117 | + closedAt: 2026-11-26T12:00:00.000Z | |
| 118 | + - id: 5 | |
| 119 | + title: "Check role order on strict chat templates (user after tool) with llama.cpp and razorbill" | |
| 120 | + state: open | |
| 121 | + priority: medium | |
| 122 | + author: | |
| 123 | + name: k33g | |
| 124 | + email: ph.charriere@gmail.com | |
| 125 | + createdAt: 2026-11-26T11:30:00.000Z | |
| 126 | + updatedAt: 2026-11-26T11:30:00.000Z | |
| 127 | + - id: 6 | |
| 128 | + title: Docs EN+FR | |
| 129 | + state: open | |
| 130 | + priority: medium | |
| 131 | + author: | |
| 132 | + name: k33g | |
| 133 | + email: ph.charriere@gmail.com | |
| 134 | + createdAt: 2026-11-26T11:30:00.000Z | |
| 135 | + updatedAt: 2026-11-26T11:30:00.000Z | |
| new file mode 100644 | |||
| @@ -0,0 +1,135 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 265 | ||
| 3 | +title: "Steer: a message typed during a turn reaches the model at its next call, without stopping the turn" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T11:30:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T12:30:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - enhancement | ||
| 12 | + - kind::feature | ||
| 13 | +milestone: v2.1.1 | ||
| 14 | +epic: Loop | ||
| 15 | +related: | ||
| 16 | + - 155 | ||
| 17 | + - 251 | ||
| 18 | + - 266 | ||
| 19 | +body: | | ||
| 20 | + Asked by the user (2026-11-26): "comment mettre en place le steer avec | ||
| 21 | + mini-me ?" — steer = what Codex and Claude Code do: while the agent | ||
| 22 | + works (tool calls, generation), the user types a message; it is given | ||
| 23 | + to the model in the CURRENT turn, at its next call, and the turn goes | ||
| 24 | + on with it. Today the window QUEUES such a message until the turn ends | ||
| 25 | + (ticket 155) — the model only sees it once it has finished, often after | ||
| 26 | + going the wrong way for many tool calls; the editor (ACP) makes a second | ||
| 27 | + prompt wait; the line mode does not read the terminal during a turn. | ||
| 28 | + | ||
| 29 | + ## How it fits in mm (read in the code, 2026-11-26) | ||
| 30 | + - Injection point: the `WrapModel` hook of the turn's middleware | ||
| 31 | + (internal/engine/engine.go, the `capture` middleware) runs before EVERY | ||
| 32 | + model call of the turn, and already rewrites | ||
| 33 | + `params.Request.Messages` there (compactInTurn, ticket 251) — Genkit | ||
| 34 | + builds the next calls from the changed history and the session keeps | ||
| 35 | + it. A steer is one more step there: drain an inbox, append each | ||
| 36 | + message as a user message after the last tool results. | ||
| 37 | + - Inbox: one per turn, carried by the turn's context (like the speed | ||
| 38 | + meter): `engine.Steer(ctx, text)` from the front end, read in | ||
| 39 | + WrapModel. Only from the turn's second call on (tools have run): before | ||
| 40 | + the first call the message is simply part of the question. | ||
| 41 | + - What the model reads: a user message, marked so it is not taken for a | ||
| 42 | + new task, e.g. `[message from the user during this turn] <text>`. A | ||
| 43 | + user message after `tool` messages is valid OpenAI wire; to check on | ||
| 44 | + the llama.cpp / MLX templates that are strict about roles (Gemma, | ||
| 45 | + Qwen, LFM, gpt-oss). | ||
| 46 | + - A message the turn could not take — typed while the model writes its | ||
| 47 | + final answer, no further call — is not lost: it becomes the next | ||
| 48 | + question, as the queue does today. | ||
| 49 | + - Expansion: `@path` and `$skill` expanded as for a question; the | ||
| 50 | + preGeneration hook does not run on a steer (it runs once per turn) — | ||
| 51 | + to be decided. | ||
| 52 | + - Display: `↪ steered: <text>` in the transcript when the model gets it | ||
| 53 | + (not when it is typed), so the user knows from which call it counts. | ||
| 54 | + - Session: the injected message stays in the history (it is part of the | ||
| 55 | + turn); /resume replays it. | ||
| 56 | + | ||
| 57 | + ## Front ends | ||
| 58 | + - Window (internal/tui): Enter during a turn = steer; the queue of | ||
| 59 | + ticket 155 kept for an explicit "after this turn" (a key to choose: | ||
| 60 | + Alt-Enter? a `/queue` prefix?). Slash commands keep their current | ||
| 61 | + rules (control commands at once, others queued). | ||
| 62 | + - Line mode (internal/agent): no steer (user's decision). | ||
| 63 | + - Editor (ACP): moved to ticket 266 (blocked on ACP protocol v2 in | ||
| 64 | + acp-go-sdk and Zed). | ||
| 65 | + - `-p` and asked agents: nothing (no user during the turn). | ||
| 66 | + | ||
| 67 | + ## Decided | ||
| 68 | + - 2026-11-26, user: in the window, Enter during a turn STEERS; the | ||
| 69 | + queue of ticket 155 needs another trigger: BOTH Alt-Enter and a | ||
| 70 | + `/queue <text>` command (works whatever the terminal sends) — user's | ||
| 71 | + agreement 2026-11-26. | ||
| 72 | + | ||
| 73 | + - 2026-11-26, user: NO steer in the line mode (it keeps reading the | ||
| 74 | + terminal only between turns). | ||
| 75 | + - 2026-11-26, user: in the window, a second message sent before the | ||
| 76 | + turn ends is a steer. | ||
| 77 | + - Milestone v2.1.1. | ||
| 78 | + | ||
| 79 | + | ||
| 80 | + ## Acceptance criteria | ||
| 81 | + - In the window, a message typed during a tool-calling turn is read by | ||
| 82 | + the model at its next call, the turn is not cancelled, the transcript | ||
| 83 | + shows when it was taken, and the session keeps it. | ||
| 84 | + - A message that arrives too late runs as the next question. | ||
| 85 | + - Unit tests (engine inbox drained before a call, not on the first; | ||
| 86 | + message kept in the history; late message handed back); live check on | ||
| 87 | + llama.cpp and razorbill with a tool-calling model. | ||
| 88 | + - Docs EN+FR (how-to "steer a running turn", window keys reference). | ||
| 89 | +tasks: | ||
| 90 | + - id: 1 | ||
| 91 | + title: "Engine: per-turn steer inbox in the context, drained in WrapModel from the second call on" | ||
| 92 | + state: open | ||
| 93 | + priority: high | ||
| 94 | + author: | ||
| 95 | + name: k33g | ||
| 96 | + email: ph.charriere@gmail.com | ||
| 97 | + createdAt: 2026-11-26T11:30:00.000Z | ||
| 98 | + updatedAt: 2026-11-26T11:30:00.000Z | ||
| 99 | + - id: 2 | ||
| 100 | + title: "Window: Enter during a turn steers; queue on Alt-Enter and /queue <text>; transcript line when taken" | ||
| 101 | + state: open | ||
| 102 | + priority: high | ||
| 103 | + author: | ||
| 104 | + name: k33g | ||
| 105 | + email: ph.charriere@gmail.com | ||
| 106 | + createdAt: 2026-11-26T11:30:00.000Z | ||
| 107 | + updatedAt: 2026-11-26T11:30:00.000Z | ||
| 108 | + - id: 4 | ||
| 109 | + title: "Line mode: no steer (user's decision, 2026-11-26)" | ||
| 110 | + state: closed | ||
| 111 | + priority: low | ||
| 112 | + author: | ||
| 113 | + name: k33g | ||
| 114 | + email: ph.charriere@gmail.com | ||
| 115 | + createdAt: 2026-11-26T11:30:00.000Z | ||
| 116 | + updatedAt: 2026-11-26T12:00:00.000Z | ||
| 117 | + closedAt: 2026-11-26T12:00:00.000Z | ||
| 118 | + - id: 5 | ||
| 119 | + title: "Check role order on strict chat templates (user after tool) with llama.cpp and razorbill" | ||
| 120 | + state: open | ||
| 121 | + priority: medium | ||
| 122 | + author: | ||
| 123 | + name: k33g | ||
| 124 | + email: ph.charriere@gmail.com | ||
| 125 | + createdAt: 2026-11-26T11:30:00.000Z | ||
| 126 | + updatedAt: 2026-11-26T11:30:00.000Z | ||
| 127 | + - id: 6 | ||
| 128 | + title: Docs EN+FR | ||
| 129 | + state: open | ||
| 130 | + priority: medium | ||
| 131 | + author: | ||
| 132 | + name: k33g | ||
| 133 | + email: ph.charriere@gmail.com | ||
| 134 | + createdAt: 2026-11-26T11:30:00.000Z | ||
| 135 | + updatedAt: 2026-11-26T11:30:00.000Z | ||
added
.tickets/issues/0266-acp-steer-from-zed-once-acp-v2-prompts-during-a-turn.yaml +92 -0 | new file mode 100644 | ||
| @@ -0,0 +1,92 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 266 | |
| 3 | +title: "ACP: steer from Zed — a session/prompt received during a turn goes to the steer inbox (needs ACP v2)" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T12:30:00.000Z | |
| 9 | +updatedAt: 2026-11-26T12:30:00.000Z | |
| 10 | +labels: | |
| 11 | + - enhancement | |
| 12 | + - kind::feature | |
| 13 | +epic: ACP integration | |
| 14 | +related: | |
| 15 | + - 265 | |
| 16 | +body: | | |
| 17 | + Split from ticket 265 at the user's request (2026-11-26). Goal: the | |
| 18 | + steer of ticket 265 (a message typed during a turn reaches the model at | |
| 19 | + its next call) from the editor, mm running as `mm -acp`. | |
| 20 | + | |
| 21 | + ## Why it is blocked (looked into 2026-11-26) | |
| 22 | + - Zed (docs, Agent Panel): a message sent while an external agent | |
| 23 | + generates is QUEUED by Zed and sent when the turn ends; "Send Now" | |
| 24 | + (double Enter) stops the turn then sends; the "Steer" toggle exists | |
| 25 | + for the Zed Agent only — "Zed can't detect turn boundaries for | |
| 26 | + external agents". mm therefore receives nothing during a turn today. | |
| 27 | + https://zed.dev/docs/ai/agent-panel | |
| 28 | + - ACP v2 prompt RFD (Preview, 2026-11-20): a client MAY send | |
| 29 | + session/prompt while foreground work is active; the agent inserts it | |
| 30 | + at once or holds it (held prompts answered -32800 on cancel). | |
| 31 | + Explicit steering/queueing capabilities are left to a later RFD; no | |
| 32 | + capability flag (v2 sits behind the `unstable_protocol_v2` build | |
| 33 | + feature). https://agentclientprotocol.com/rfds/v2/prompt | |
| 34 | + - mm is on github.com/coder/acp-go-sdk v0.13.5 (protocol v1). | |
| 35 | + - A promising lead (user, 2026-11-26): Zed PR #59310 "agent_ui: | |
| 36 | + Refactor the queue feature and add steering ability" (merged | |
| 37 | + 2026-06-26, commit 5c58d5c) — https://github.com/zed-industries/zed/pull/59310. | |
| 38 | + It gave Zed's queue stable entry ids, made "send at the end of the | |
| 39 | + generation" the default for every agent, and added a per-message | |
| 40 | + "Steer" toggle that sends a queued message at the next turn boundary | |
| 41 | + — for the Zed Agent only, since the PR could not do it for external | |
| 42 | + agents. The place to follow: once ACP v2 lets Zed send a prompt | |
| 43 | + during an external agent's turn, that toggle is the natural trigger | |
| 44 | + for mm's steer. Users asked for steering as the default since (Zed | |
| 45 | + issue #64505, closed). | |
| 46 | + - Vendor extensions exist (`_session/steering` in some Claude Code / | |
| 47 | + Codex adapters, `_reasonix.io/session/steer`); Zed calls none. | |
| 48 | + | |
| 49 | + ## What to do once unblocked | |
| 50 | + - acp-go-sdk with protocol v2; Zed sending session/prompt during a turn | |
| 51 | + to external agents. | |
| 52 | + - internal/acp: a prompt received while a turn runs on the session is no | |
| 53 | + longer serialised behind `turnMu` — it goes to the turn's steer inbox | |
| 54 | + (ticket 265's engine part) and is inserted at the next model call; | |
| 55 | + report the accepted user message with session/update as v2 says. | |
| 56 | + - A prompt that arrives too late (no further model call) is held and | |
| 57 | + run as the next turn, in order; a cancel answers held prompts -32800. | |
| 58 | + - Watch for the later steering RFD and a capability to advertise. | |
| 59 | + | |
| 60 | + ## Acceptance criteria | |
| 61 | + - With a Zed build that sends prompts during a turn: a message typed | |
| 62 | + while mm runs tools reaches the model in the same turn; tests on the | |
| 63 | + ACP façade (prompt during a turn → inserted; late → held; cancel → | |
| 64 | + held prompts -32800); docs EN+FR. | |
| 65 | +tasks: | |
| 66 | + - id: 1 | |
| 67 | + title: "Watch acp-go-sdk and Zed for ACP v2 (prompts during active work)" | |
| 68 | + state: open | |
| 69 | + priority: medium | |
| 70 | + author: | |
| 71 | + name: k33g | |
| 72 | + email: ph.charriere@gmail.com | |
| 73 | + createdAt: 2026-11-26T12:30:00.000Z | |
| 74 | + updatedAt: 2026-11-26T12:30:00.000Z | |
| 75 | + - id: 2 | |
| 76 | + title: "ACP façade: a session/prompt during a turn goes to the steer inbox; late ones held in order" | |
| 77 | + state: open | |
| 78 | + priority: medium | |
| 79 | + author: | |
| 80 | + name: k33g | |
| 81 | + email: ph.charriere@gmail.com | |
| 82 | + createdAt: 2026-11-26T12:30:00.000Z | |
| 83 | + updatedAt: 2026-11-26T12:30:00.000Z | |
| 84 | + - id: 3 | |
| 85 | + title: Docs EN+FR | |
| 86 | + state: open | |
| 87 | + priority: low | |
| 88 | + author: | |
| 89 | + name: k33g | |
| 90 | + email: ph.charriere@gmail.com | |
| 91 | + createdAt: 2026-11-26T12:30:00.000Z | |
| 92 | + updatedAt: 2026-11-26T12:30:00.000Z | |
| new file mode 100644 | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 266 | ||
| 3 | +title: "ACP: steer from Zed — a session/prompt received during a turn goes to the steer inbox (needs ACP v2)" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T12:30:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T12:30:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - enhancement | ||
| 12 | + - kind::feature | ||
| 13 | +epic: ACP integration | ||
| 14 | +related: | ||
| 15 | + - 265 | ||
| 16 | +body: | | ||
| 17 | + Split from ticket 265 at the user's request (2026-11-26). Goal: the | ||
| 18 | + steer of ticket 265 (a message typed during a turn reaches the model at | ||
| 19 | + its next call) from the editor, mm running as `mm -acp`. | ||
| 20 | + | ||
| 21 | + ## Why it is blocked (looked into 2026-11-26) | ||
| 22 | + - Zed (docs, Agent Panel): a message sent while an external agent | ||
| 23 | + generates is QUEUED by Zed and sent when the turn ends; "Send Now" | ||
| 24 | + (double Enter) stops the turn then sends; the "Steer" toggle exists | ||
| 25 | + for the Zed Agent only — "Zed can't detect turn boundaries for | ||
| 26 | + external agents". mm therefore receives nothing during a turn today. | ||
| 27 | + https://zed.dev/docs/ai/agent-panel | ||
| 28 | + - ACP v2 prompt RFD (Preview, 2026-11-20): a client MAY send | ||
| 29 | + session/prompt while foreground work is active; the agent inserts it | ||
| 30 | + at once or holds it (held prompts answered -32800 on cancel). | ||
| 31 | + Explicit steering/queueing capabilities are left to a later RFD; no | ||
| 32 | + capability flag (v2 sits behind the `unstable_protocol_v2` build | ||
| 33 | + feature). https://agentclientprotocol.com/rfds/v2/prompt | ||
| 34 | + - mm is on github.com/coder/acp-go-sdk v0.13.5 (protocol v1). | ||
| 35 | + - A promising lead (user, 2026-11-26): Zed PR #59310 "agent_ui: | ||
| 36 | + Refactor the queue feature and add steering ability" (merged | ||
| 37 | + 2026-06-26, commit 5c58d5c) — https://github.com/zed-industries/zed/pull/59310. | ||
| 38 | + It gave Zed's queue stable entry ids, made "send at the end of the | ||
| 39 | + generation" the default for every agent, and added a per-message | ||
| 40 | + "Steer" toggle that sends a queued message at the next turn boundary | ||
| 41 | + — for the Zed Agent only, since the PR could not do it for external | ||
| 42 | + agents. The place to follow: once ACP v2 lets Zed send a prompt | ||
| 43 | + during an external agent's turn, that toggle is the natural trigger | ||
| 44 | + for mm's steer. Users asked for steering as the default since (Zed | ||
| 45 | + issue #64505, closed). | ||
| 46 | + - Vendor extensions exist (`_session/steering` in some Claude Code / | ||
| 47 | + Codex adapters, `_reasonix.io/session/steer`); Zed calls none. | ||
| 48 | + | ||
| 49 | + ## What to do once unblocked | ||
| 50 | + - acp-go-sdk with protocol v2; Zed sending session/prompt during a turn | ||
| 51 | + to external agents. | ||
| 52 | + - internal/acp: a prompt received while a turn runs on the session is no | ||
| 53 | + longer serialised behind `turnMu` — it goes to the turn's steer inbox | ||
| 54 | + (ticket 265's engine part) and is inserted at the next model call; | ||
| 55 | + report the accepted user message with session/update as v2 says. | ||
| 56 | + - A prompt that arrives too late (no further model call) is held and | ||
| 57 | + run as the next turn, in order; a cancel answers held prompts -32800. | ||
| 58 | + - Watch for the later steering RFD and a capability to advertise. | ||
| 59 | + | ||
| 60 | + ## Acceptance criteria | ||
| 61 | + - With a Zed build that sends prompts during a turn: a message typed | ||
| 62 | + while mm runs tools reaches the model in the same turn; tests on the | ||
| 63 | + ACP façade (prompt during a turn → inserted; late → held; cancel → | ||
| 64 | + held prompts -32800); docs EN+FR. | ||
| 65 | +tasks: | ||
| 66 | + - id: 1 | ||
| 67 | + title: "Watch acp-go-sdk and Zed for ACP v2 (prompts during active work)" | ||
| 68 | + state: open | ||
| 69 | + priority: medium | ||
| 70 | + author: | ||
| 71 | + name: k33g | ||
| 72 | + email: ph.charriere@gmail.com | ||
| 73 | + createdAt: 2026-11-26T12:30:00.000Z | ||
| 74 | + updatedAt: 2026-11-26T12:30:00.000Z | ||
| 75 | + - id: 2 | ||
| 76 | + title: "ACP façade: a session/prompt during a turn goes to the steer inbox; late ones held in order" | ||
| 77 | + state: open | ||
| 78 | + priority: medium | ||
| 79 | + author: | ||
| 80 | + name: k33g | ||
| 81 | + email: ph.charriere@gmail.com | ||
| 82 | + createdAt: 2026-11-26T12:30:00.000Z | ||
| 83 | + updatedAt: 2026-11-26T12:30:00.000Z | ||
| 84 | + - id: 3 | ||
| 85 | + title: Docs EN+FR | ||
| 86 | + state: open | ||
| 87 | + priority: low | ||
| 88 | + author: | ||
| 89 | + name: k33g | ||
| 90 | + email: ph.charriere@gmail.com | ||
| 91 | + createdAt: 2026-11-26T12:30:00.000Z | ||
| 92 | + updatedAt: 2026-11-26T12:30:00.000Z | ||