[FEATURE]: Reject reason box in main sessions, not only subagents

Aperta Adatta ai principianti
#67,749 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

L’issue indica il controllo di onSelect per session.parentID nella richiesta di autorizzazione, ma non specifica alcun percorso di file. Inizia cercando questo controllo nella TUI e confronta come viene mostrato il riquadro del motivo di rifiuto del subagent. Il lavoro è terminato quando anche la sessione principale mostra il riquadro del motivo e l’invio del riquadro vuoto continua a eseguire un semplice rifiuto.

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

Descrizione

area/tui type/feature version/v2
Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

In the TUI, "Reject" only asks "Tell OpenCode what to do differently" in a subagent session. In the main session it rejects with no message and the turn ends, so I have to type the correction as a new prompt and the agent starts that work over.

This bites most with edits. The model often sends several edits in one step, and rejecting one rejects all of them. With a message the loop just continues: on 2.4.3 I replied reject with a message over the API to one of three pending edits in a main session, and the model got the message on all three and carried on. So the backend already handles it, only the TUI holds it back. The check is in the permission prompt's onSelect: if (session.parentID) { stage = "reject" } else { reply("reject") }.

Proposal: show the reason box in main sessions too. Enter with an empty box keeps today's behaviour (plain reject, turn ends), so nothing changes for anyone who doesn't type a reason.

Related: #28910 asked for the same box in the Desktop app (closed as stale). Happy to open the PR if this sounds right.

Lingua principale
TypeScript
Stelle
230k
Fork
31.3k
Merge medio
6h 58m
PR unite (30g)
471

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 anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.