ACP plan revision discards client feedback text

Aperta Adatta ai principianti
#4,548 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@markankamaransheogarat-sys ci sta già lavorando.

Dal 31/10/2026.

  • #4571 di @markankamaransheogarat-sys — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli

Direzione di ricerca

Segui l’esito dell’autorizzazione ACP plan_revise attraverso la mappatura delle risposte di revisione del piano del server e individua dove l’opzione selezionata viene convertita nella risposta di approvazione del motore. Leggi prima quella mappatura e i test vicini; aggiungi la copertura per un esito con text di tipo stringa e conferma che diventa feedback, mentre gli esiti esistenti senza testo continuano a comportarsi come prima.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

When an ACP client selects plan_revise and includes revision text in the selected permission outcome, the ACP server drops that text instead of forwarding it as the engine's plan revision feedback.

This affects mobile ACP clients that let the user explain how the proposed plan should be changed. The plan is rejected for revision, but the user's actual revision request never reaches the agent.

Steps to Reproduce

  1. Start a plan-review interaction through ACP.
  2. When the client receives the request_permission request for the plan, select the plan_revise option.
  3. Include revision text in the selected outcome, for example:
{
  "outcome": {
    "outcome": "selected",
    "optionId": "plan_revise",
    "text": "Add a wireframe before implementing the page"
  }
}
  1. Inspect the approval response delivered to the engine.

Expected Behavior

The engine receives an approval response equivalent to:

{
  "decision": "rejected",
  "selectedLabel": "Revise",
  "feedback": "Add a wireframe before implementing the page"
}

The agent can use the user's feedback to revise the plan.

Actual Behavior

The engine receives only:

{
  "decision": "rejected",
  "selectedLabel": "Revise"
}

The revision text is silently discarded.

Suggested Fix

Pass the complete selected outcome into plan-review response mapping. When the selected option is plan_revise and the outcome contains a string text field, map it to the approval response's feedback field while preserving existing behavior for clients that do not send revision text.

Lingua principale
TypeScript
Stelle
8k
Fork
1.3k
Merge medio
16h 17m
PR unite (30g)
161

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MoonshotAI/kimi-code

Tutte le issue di MoonshotAI/kimi-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.