You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594
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
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).
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).
The escalation toast (mailbox-escalation) should deep-link to the same quick-pick instead of only naming the CLI.
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.
Durable reply to the codev-ide finding (relayed 2026-09-22), which lands in three parts:
The empty-window/$HOME adoption is its own defect, filed as vscode: an empty window adopts $HOME as the workspace and badges unrelated held mail #1722 (area/vscode): an empty window must not adopt $HOME as a Codev workspace for badge/mailbox purposes; if a count renders at all it must be labeled with the workspace it belongs to. Independent corroboration: an unscoped /api/overview probe on the same Tower reported heldCount 25 / mailboxEscalated true on 2026-09-19 - the $HOME rows dominate the global count.
Activity
amrmelsayed commentedon Sep 22, 2026
Durable reply to the codev-ide finding (relayed 2026-09-22), which lands in three parts:
The empty-window/$HOME adoption is its own defect, filed as vscode: an empty window adopts $HOME as the workspace and badges unrelated held mail #1722 (area/vscode): an empty window must not adopt $HOME as a Codev workspace for badge/mailbox purposes; if a count renders at all it must be labeled with the workspace it belongs to. Independent corroboration: an unscoped /api/overview probe on the same Tower reported heldCount 25 / mailboxEscalated true on 2026-09-19 - the $HOME rows dominate the global count.
The two tower-side halves (no-live-pty holds for dead sessions never reach a terminal disposition; workspace-scoped afx inbox hides other workspaces' mail entirely) are filed together as held-mail lifecycle: no-live-pty rows for dead sessions never resolve, and workspace-scoped inbox hides them (global badge 25, every inbox 0) #1723 (area/tower), with the disposition policy deliberately NOT age-based expiry - provably-unreturnable recipients (the afx consistency check: reconcile registry vs git worktrees vs live processes (the independent observation that catches both under- and over-reporting) #1714/architect liveness: characterize dead-architect visibility and send behavior (prior claims partly retracted); architect table pid=0; no architect recover command #1717 reconciliation classes) get owner escalation + audit-preserving bulk dismissal; plausibly-returnable ones keep holding.
This issue (vscode: held-mail drill-in — clickable held indicator with inspect + dismiss (revisits Spec 1313 Decision 8) #1594, the drill-in) stays as scoped: the in-editor inspect/dismiss surface. It would consume held-mail lifecycle: no-live-pty rows for dead sessions never resolve, and workspace-scoped inbox hides them (global badge 25, every inbox 0) #1723's disposition affordances and would have made vscode: an empty window adopts $HOME as the workspace and badges unrelated held mail #1722's phantom badge diagnosable in-editor, so the three are cross-referenced, not merged.