ACP: mark the continuation nudge as harness-originated, emit it to clients, and allow disabling it
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
Hướng nghiên cứu
Start in dist/cli.mjs at createContinuationProvider, endsWithDanglingIntent, and the dangling-intent and exclusion regexes; trace how the continuation message is injected and how ACP session updates are emitted. The issue asks for harness-origin labeling, a continuation_recovery update with the injected text and attempt counts, a way to disable or limit recovery, and exclusions for the three deferred-completion phrases. Done when these behaviors are covered and hosts can observe or disable the nudge.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Description
In cmd acp (v1.88.5), when a turn's final text ends with "I'll …" or "Let me …", the continuation provider (createContinuationProvider / endsWithDanglingIntent) appends a user-role message:
You ended your turn right after saying you were about to do something, without doing it. Do it now — make the tool calls or produce the output you described; do not restate the plan. If the task is actually complete, state the final result instead.
For ACP hosts I'd like four changes:
- Mark the nudge as coming from the harness, for example with system-reminder style wording, instead of a plain user turn. Right now the model can't tell it apart from the real user.
- Emit it to the ACP client. Send a
session/updateforcontinuation_recovery(kind, attempt, maxAttempts) that includes the injected text. Today it has nosession/updatemapping, so the host can't show or explain it. - Make it possible to turn off. Add a config setting, env var, or
session/new_metafield that disables intent recovery or lowers its attempt count.createContinuationProvider({})is hardcoded today. - Recognise deferred-completion phrasing. Add "as soon as it lands", "when it finishes" and "once it completes" to the exclusion regex, so a turn that is deliberately waiting isn't treated as unfinished.
Use Case
ACP hosts that run sub-agents depend on the model ending its turn while background work runs. T3 Code my fork works this way: an async delegate_task tool result tells the model "Completion wakes this thread, so end your turn. Do not wait on it or poll it."
What happened in a real session (Command Code over ACP, DeepSeek V4.1 Flash):
- The model delegated a review to another agent (Opus 5.5) and correctly ended its turn with: "I'll report its verdict as soon as it lands."
- Two seconds later Command Code injected the "Do it now" nudge as a user message.
- The model's reasoning: "the user overrode: … Do it now." It polled the delegate four times, stopped waiting, and did the delegated work itself. That included destructive file changes the delegate had been asked to review first.
- The host's UI showed no injected message, so from the user's side the model just turned impatient for no reason.
With the nudge marked as harness-originated, visible to the client, and possible to turn off, hosts could either show it or turn it off for sessions that intentionally wait.
Additional Context
- The code is in
dist/cli.mjs:createContinuationProvider,endsWithDanglingIntent, and the dangling-intent and exclusion regexes. The counter allows 2 intent nudges per streak and resets only after a turn with tool calls. - My T3 Code fork works around this on the host side by changing the delegate tool's wording so models end with a status line ("It is running.") instead of a promise. That only helps when the model follows the wording, which is why an upstream fix matters: https://github.com/timm-u/t3code
- Related: a Windows bug where editor-supplied stdio MCP servers fail silently when the command path has spaces (filed separately). In this same session it was the reason the model fell back to shell-based tool calls in the first place.
How important is this to you?
Important for my workflow
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4.2k
- Fork
- 377
- Merge trung bình
- 1 ngày 17 phút
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommandCodeAI/command-code
-
Provider /v1/messages rejects role:"system" inside messages[] — Claude Code ≥ 2.1.154 incompatibleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
CommandCodeAI/command-code#1085 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature request: auto-reconnect remote control (/rc) after restartCó thể đã có người làm @aliarain đã nhận 20 ngày trước. Đang mởp2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
CommandCodeAI/command-code#992 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#933 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#855 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
grep tool passes empty file type to ripgrepCó thể đã có người làm @ahmadbilaldev đã nhận 19 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#655 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CommandCodeAI/command-code
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
developmentwithyash/yaan#60 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/billing area/config comp/tui-gateway P2 provider/openrouter type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
NousResearch/hermes-agent#153086 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
ai-generated structs tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày