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(web): attention inbox for threads that need you by adampeterhiggins · Pull Request #96 · adampeterhiggins/t3code

Conversation

@adampeterhiggins

@adampeterhiggins adampeterhiggins commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Problem

Threads that need the user (a pending approval, an unanswered agent question, a failed turn, finished work not yet opened) are scattered across projects, environments and chat tabs. Tabs hidden behind a group row or snoozed/settled threads make them easy to miss. Inspired by T3 Kanban's inbox.

Fix

  • Shared derivation (packages/client-runtime/src/state/attentionInbox.ts): resolveThreadAttention picks one reason per thread in the sidebar's status order (approval > input > failed > completed). Anything still running or doing background work is skipped. buildAttentionInbox dedupes by environmentId:threadId, leaves out archived and still-snoozed threads (a snoozed thread that raised its hand comes back through the existing effectiveSnoozed), and sorts by urgency, then newest first. hasUnseenCompletion moved here, and the sidebar's version now delegates to it, so unread has a single definition.
  • Purely client-side: built from the thread shells already in memory plus the existing threadLastVisitedAtById read markers. No new server state, contracts or websocket payload.
  • Web: an inbox button in the sidebar header, shown only while something needs attention, with a count. Its popover lists the entries. Clicking one navigates to that thread's own route, i.e. the exact tab, not the tab group's last-opened tab. Failed and completed entries have a "Mark as read" check. The reverse is the existing Mark unread thread action, and opening the thread also clears them. Approvals and questions stay until answered.
  • Command palette: a Needs attention submenu with the same entries, plus a new attentionInbox.open keybinding (mod+alt+n, !terminalFocus) that opens the palette on that view. It uses the same pattern as theme.select.
  • Docs: docs/fork-differences.md (new "Attention inbox" section) and docs/user/thread-sidebar.md ("See what needs you").

Hit every surface

  • Entry points: sidebar header popover, command palette view, and keybinding (listed in Settings → Keybindings as "Attention Inbox: Open"). The legacy sidebar has no header button, but the palette and keybinding cover it.
  • Clients: web and desktop (desktop wraps web). Mobile is deliberately left out: the mobile client keeps no read markers, so it could only show approvals, questions and failures, and its thread list already shows those states per row. The derivation lives in client-runtime, so mobile can adopt it once it tracks reads.
  • Providers: provider-agnostic. It uses shell fields every adapter already fills.
  • Contracts: only the keybinding command literal. No schema or payload change.
  • Reverse states: mark read has Mark unread. Snoozed threads return when they wake or raise their hand. Entries disappear when resolved.
  • Connection modes: shells from every connected environment are included, keyed per environment. Read markers are per client, the same as the sidebar's unread dot.
  • Docs: updated as above.

Testing

  • vp test run packages/client-runtime/src/state/attentionInbox.test.ts (new: reason priority, visit semantics, running/background exclusion, dedupe, cross-environment keys, archived/snoozed handling)
  • Sidebar.logic.test.ts, CommandPalette.logic.test.ts, KeybindingsSettings.logic.test.ts, contracts and server keybindings.test.ts all pass
  • tsc --noEmit for apps/web and packages/client-runtime; targeted vp lint and vp fmt --check on changed files

UI evidence is pending. No browser was run for this change, so before/after screenshots still need to be captured.

Implemented by Claude Opus 5.5 via Claude Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@adampeterhiggins @claude
feat(web): attention inbox for threads that need you
dd9915b
Lists threads across every environment, project and chat tab that are
waiting on an approval or an answer, failed, or finished unread, one
entry per thread with its most urgent reason. Opening an entry lands on
that exact tab. Derived client-side from thread shells and the existing
read markers; the derivation lives in client-runtime.

Surfaces: a sidebar header button with a count and popover, a "Needs
attention" command palette view, and the attentionInbox.open keybinding
(mod+alt+n). Failures and completions can be marked read; the thread
menu's Mark unread brings a completion back.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@adampeterhiggins
adampeterhiggins merged commit 19f30b5 into main Sep 30, 2026
@adampeterhiggins
adampeterhiggins deleted the ah/attention-inbox branch September 30, 2026 22:53
@adampeterhiggins adampeterhiggins mentioned this pull request Sep 30, 2026
feat: watch a linked pull request and follow up on checks, reviews, and conflicts #98
Merged
This was referenced Oct 25, 2026
chore(sync): merge upstream/main through e57c093cdd #488
Merged
merge upstream/main into fork #502
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@adampeterhiggins
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — 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.