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

Open Beginner friendly
#67,749 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

The issue points to the permission prompt’s onSelect check for session.parentID, but gives no file path. Start by searching the TUI for that check and compare how the subagent reject reason box is staged. Done means the main session also shows the reason box, and submitting it empty still performs a plain reject.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
230k
Forks
31.3k
Avg merge
6h 58m
Merged PRs (30d)
471

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anomalyco/opencode

All issues in anomalyco/opencode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.