Skip to content

vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594

Open

Description

@amrmelsayed

Problem

The VS Code status bar shows "N held" (with a warning icon once a row crosses the escalation age), but there is no way inside VS Code to see whose message is held, to whom, why, or for how long. Every GUI surface (status-bar chip, activity-bar badge, web dashboard badge) is count-only and read-only by Spec 1313 Decision 8; inspection and dismissal are CLI-only via afx inbox.

Motivating case (2026-09-03): the chip read "1 held" while the held row was an architect-to-architect contract ruling stalled for 4 hours, silently blocking a plan gate. Nothing in the editor could reveal that; it took the CLI to find out.

Owner decision

Amr has authorized revisiting Decision 8 for the VS Code extension: the held indicator may become an entry point to held-mail detail, including dismissal.

Proposal

  1. Make the held status-bar item clickable: opens a quick-pick listing held rows, one per line: from -> to · age · reason · workspace (metadata only, mirroring GET /api/inbox, which never returns bodies in the list).
  2. Quick-pick actions per row:
    • Show: fetch GET /api/inbox/:id and render the full row (body included) in a read-only document, following the codev-issue: TextDocumentContentProvider pattern from view-issue.ts.
    • Dismiss: POST /api/inbox/:id/dismiss behind an explicit confirmation dialog (dismissal deletes a pending message; make the confirm name the sender and recipient).
  3. The escalation toast (mailbox-escalation) should deep-link to the same quick-pick instead of only naming the CLI.
  4. Count-only behavior elsewhere (activity-bar badge, web dashboard) is unchanged; this issue is extension-only.

Scope notes

  • No Tower work. All three endpoints exist and are already consumed by the afx inbox CLI (packages/codev/src/agent-farm/commands/inbox.ts).
  • The extension will need thin SDK wrappers (list/show/dismiss) on tower-client, and the inbox row shapes currently live in packages/codev/src/agent-farm/commands/inbox.ts; they should be declared in (or mirrored into) codev-types as wire contracts. That contract hunk routes to the main architect's stakeholder seat pre-gate per the standing arrangement.
  • Update the Spec 1313 decision record (or note the amendment in this lane's review) so Decision 8's narrowing is traceable.

Activity

  1. added
    area/vscode
    on Sep 3, 2026
  2. amrmelsayed commented on Sep 22, 2026

    @amrmelsayed
    CollaboratorAuthor

    Durable reply to the codev-ide finding (relayed 2026-09-22), which lands in three parts:

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

    area/vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions