ACP: first prompt can miss MCP tools supplied to session/new (2.0.18 / 2.0.22)
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
MCP tools supplied through ACP session/new can be absent from the first model-visible tool catalog, even after session/new has returned successfully. A later prompt in the same session sees them.
Reproduced on 2.0.18 and 2.0.22 on macOS arm64. Two independent 2.0.18 runs both showed: immediate prompt = tools absent; prompt after 500 ms = tools present. A diagnostic control that waits for actual tool registration makes the first prompt include them.
The diagnostic observer records tool registration and model context, then deliberately stops before provider dispatch. These observations do not require a model/API request. Native permissions were ask, with the test MCP namespace allowed.
Expected: the first prompt should use the tools supplied for that session without the ACP client needing an arbitrary sleep.
Suspected location in v2.0.22: packages/core/src/tool/mcp.ts debounces subsequent updates by 100 ms, but flush only awaits the initial registration. packages/core/src/session/context.ts then takes the tool snapshot. This appears to leave a readiness gap for MCP servers added by ACP; please confirm the diagnosis.
Plugins
Custom diagnostic observer only; separate control adds a tool-readiness wait. No third-party plugin pack.
OpenCode version
2.0.18 and 2.0.22
Steps to reproduce
- Start opencode acp with a clean runtime/config directory.
- Complete ACP initialize.
- Call session/new with an absolute cwd and a local stdio MCP server exposing two fixed tools. Allow this MCP namespace.
- Wait for the successful session/new response, then immediately call session/prompt.
- Inspect the model-visible tool catalog: the supplied MCP tools may be missing, while the registry logs show them arriving shortly afterward.
- Send another prompt in the same session after 500 ms: the tools are now present.
Control: wait for the supplied tools to enter the registry before preparing the first prompt; the first context then includes them. This control is a diagnostic workaround, not an upstream fix.
Screenshot and/or share link
No response
Operating System
macOS, Darwin 27.0.0, Apple Silicon arm64
Terminal
ACP stdio client launching opencode acp (not the TUI)
- Lingua principale
- TypeScript
- Stelle
- 213k
- Fork
- 28.4k
- Merge medio
- 8h 15m
- PR unite (30g)
- 330
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di anomalyco/opencode
-
web: model tooltip always shows "No reasoning" because capabilities.reasoning is hard-coded falseApertapending close triaging
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anomalyco/opencode#54472 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
desktop: nested markdown blocks (li, td, blockquote p) render LTR when message dir=auto resolves LTRForse già presa @argszero l’ha presa 1 giorno fa. Apertareproduced
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
anomalyco/opencode#54471 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Copy failures are silently swallowed — TUI shows "Copied to clipboard" even when nothing is copiedApertapending close triaging
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anomalyco/opencode#54413 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
anomalyco/opencode#54406 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
reproduced
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anomalyco/opencode#54371 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di anomalyco/opencode
Issue simili
-
nextjs-tracking
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
cloudflare/vinext#3887 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
apache/rocketmq-dashboard#6331 ·
I maintainer di solito rispondono entro 5 giorni
-
bug cache clinical-safety P1-critical
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
juspay/blend-design-system#1788 ·
I maintainer di solito rispondono entro 1 giorno
-
[Analytics] Add Focus Time-Block Efficiency Ratio Calculator in src/lib/focus/efficiency-ratio.tsApertaanalytics beginner friendly community contributions-welcome enhancement good first issue hacktoberfest help wanted up-for-grabs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno