GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tui): name the asking subagent in the permission prompt — follow-up PR #384 left behind · Issue #389 · developing-today-forks/opencode

feat(tui): name the asking subagent in the permission prompt — follow-up PR #384 left behind #389

New issue
Copy link
New issue
Copy link
Closed
#401
Closed
feat(tui): name the asking subagent in the permission prompt — follow-up PR #384 left behind#389
#401
Copy link
Labels
app/tuiPackage: tui (pkgs/ or apps/ in this repo)kind/featureNew feature or capability request

Description

@dezren39
dezren39
opened on Oct 24, 2026
Issue body actions

Finding

PR #384 fixed #124 in the app: the root session's permission and question docks now name the subagent that asked ("From <title>", falling back to "From subagent"). Its scope notes explicitly left the same gap in the TUI as a follow-up:

"The TUI permission prompt has the same gap (noted on #124); it is left for a follow-up — this PR covers the app docks per the issue's acceptance criteria."

That follow-up was never filed (issue searches for "TUI permission subagent", "permission prompt subagent", and in:title TUI return only the unrelated #78), and the gap is still live on current main. This issue tracks it, the same way #78 tracks the follow-up PR #64 left behind.

Evidence

  • PR: feat(app): name the subagent that asked in permission and question docks #384 (commit 6a9fcf2, merged as 0a101b7), scope notes quoted above.
  • feat(app): permission and question docks don't say which subagent asked #124's body documents the TUI side: child-session permissions surface in the viewed (root) session's TUI, and the prompt header is just "Permission required" — the user cannot tell whether the root agent or a subagent is asking.
  • Current main 977ff07, packages/tui/src/routes/session/permission.tsx:
    • line 120: const session = createMemo(() => data.session.get(props.request.sessionID)) — the requesting session is already loaded (currently used only for the parentID reject check at line 249); its title is available but never shown.
    • lines 204 and 219: the header and prompt title are the bare literal Permission required, regardless of which session asked.
    • line 269: permissionSemanticLabel likewise names only the action/title of the tool, never the session.
  • Same generic title in the mini permission footer: packages/tui/src/mini/footer.permission.tsx:185 returns "Permission required" with no source session.

Why it matters

In the TUI a user can be asked to approve a shell command, edit, or external-directory access issued by a nested subagent while viewing the root session, with no indication of which agent is asking — exactly the ambiguity #124 called out for the app ("the user cannot tell whether the root agent or a subagent is asking before approving"). Approving the wrong agent's request is a real footgun; the app fix proves the label is cheap to compute from data the prompt already has.

Acceptance criteria

  • When a permission request's sessionID differs from the viewed session, the TUI permission prompt (packages/tui/src/routes/session/permission.tsx) names the asking session (its title when loaded, a generic "subagent" fallback when not), mirroring PR feat(app): name the subagent that asked in permission and question docks #384's app behaviour.
  • A request from the viewed session itself renders exactly as today (no label).
  • The mini permission footer (packages/tui/src/mini/footer.permission.tsx) is checked for the same gap and either gains the label or an explicit note on this issue records why it does not need one.
  • Covered by a test or story that renders a child-session request in a parent session's prompt and asserts the label, and a same-session request asserting no label.

Activity

  1. dezren39
    closed this as completedin #401on Oct 24, 2026
  2. dezren39
    added a commit that references this issue on Oct 24, 2026

    docs: record the #397, #389 and #398/#399 completions in ROADMAP Done (…

    c45147f
  3. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    More actions

    AUDIT-7 Lane 2 slice 3 — closing evidence. Verified against the issue body and merged implementation PR(s):

    • PR #401 — feat(tui): name the asking subagent in the permission prompt (merged 2026-10-24)

    The issue had zero comments in the fresh pre-action read; this comment records the missing close evidence.

  4. dezren39
    added
    kind/featureNew feature or capability request
    app/tuiPackage: tui (pkgs/ or apps/ in this repo)
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/tuiPackage: tui (pkgs/ or apps/ in this repo)kind/featureNew feature or capability request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.