(chore) Approval resolutions are stored in two different shapes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend
Direzione di ricerca
Start with services/runner/src/engines/sandbox_agent/run-turn.ts at settleInBandInteractions, then read acp-interactions.ts and transcript.ts to trace how gateway approvals are written and read. Check the sessions interaction schema and its tests; done means all paths write the chosen resolution shape, readers handle existing rows, and the schema documents it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Approval resolutions are stored in two shapes. Gateway tool approvals store {"approved": true} or {"approved": false}. Other approval paths store {"verdict": "approved"} or {"verdict": "denied"} (with tool_call_id). Both end with status resolved.
Reproduction
- Approve and deny a gateway
run_toolapproval on an agent. Read the session interaction rows:resolutionis{"approved": ...}. - Approve and deny a built-in approval (for example Bash).
resolutionis{"verdict": ...}.
Seen in the v0.121.7 QA on staging.
Why it matters
Any reader of the audit history (inbox, reports, API clients) must handle both shapes. A new reader that checks only one will miss half of the decisions.
Pointers
The runner writes the {verdict} form in services/runner/src/engines/sandbox_agent/run-turn.ts:1052-1080 (settleInBandInteractions). The {approved} form is the in-band answer payload that the gateway gate reads back (see acp-interactions.ts:171 and transcript.ts:53). I did not trace the exact writer of the gateway row.
Proposed fix
Pick one shape ({verdict, tool_call_id} is the richer one), write it from every path, and have readers normalize the old rows. Document the shape in the sessions interaction schema.
- Lingua principale
- TypeScript
- Stelle
- 4.8k
- Fork
- 690
- Merge medio
- 20h 11m
- PR unite (30g)
- 448
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 Agenta-AI/agenta
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Agenta-AI/agenta#7936 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Jinja2 variables used only inside {% if %} / {% for %} are missing from input_keys, so invoke returns 400Forse già presa @mmabrouk l’ha presa 14 giorni fa. Apertabug frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Agenta-AI/agenta#7669 · 3 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Agenta-AI/agenta#7654 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Agenta-AI/agenta#7468 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
(bug) The Stop button disappears for a moment before an approval card showsForse di nuovo libera @rishu685 l’ha presa 25 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Agenta-AI/agenta#7446 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Agenta-AI/agenta
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
remotion-dev/remotion#12905 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
supermomonga/paseo-plugin-zcode-provider#83 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
oxidecomputer/skepsis#102 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
voidzero-dev/void#677 ·
I maintainer di solito rispondono entro 1 giorno