Skip to content

Inbox: an Agents view for the thread list - #3764

Merged
backnotprop merged 4 commits into
mainfrom
feat/inbox-agents-view
Nov 20, 2026
Merged

backnotprop merged 4 commits into
mainfrom
feat/inbox-agents-view

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Adds a third list view, Agents, to the list's ⋮ View menu. The list then shows the person's agents, with each agent's threads under it. Smart groups stays the default. A choice is remembered in the same cookie the other views use.

What it draws

  • Each agent has a row with its face at 44 px (the same face store, still animated, and a click opens the face picker), its name and newest time, and "project · machine · state".
  • Agents with something waiting on the person come first and start open. The others start folded. A folded agent shows its summed open counts, or else its thread count, and draws no rows. Opening or folding an agent is remembered for that agent.
  • Under an open agent, threads are one line each, in today's urgency order and then newest first. After five threads a "N more" button shows the rest.
  • A thread with several agents shows once, under the agent it was sent to (or else its author). The other agents show as small icons on the row.
  • Ended agents go under an "Ended" band. Threads with no agent go under a "No agent" band.
  • Rows keep what a row does today: open, selection, unread weight, counts, the hover action, the row menu, phone swipe, picking, and ↑/↓ stops. No new shortcuts.
  • Held order works as it does in List: rows and agents stay in place until the list is sorted as a whole. If an agent ends in the meantime, only its state word changes.
  • Filters apply before grouping.

Server (Bun only): the agents list now keeps ended sessions from the last seven days instead of today only, so their threads keep their agent's name and face. ended_today still counts today's sessions only. The sidebar already leaves ended agents out.

Structure: the row parts moved out of InboxList.tsx into components/rowParts.tsx without changes, so the list file shrinks (its size ceiling is lowered to match). The new code is in packages/inbox/agentsView/.

Tests: the grouping model, folds, the view cookie, a DOM test of the list in this view (added to tests/dom-test-list.txt), the 44 px face and its picker, and the server's week of ended sessions. The existing menu tests now expect three view options.

A third choice in the list's View menu: each agent with its threads under
it. Agents with something for the person come first and open; the others
fold, and a fold is kept per agent. A thread with several agents shows
once, under the agent it was sent to. Ended agents sit under an Ended band
and threads with no agent under No agent. Rows keep everything a row does
today and hold their places until the list settles.

The agent's face is drawn at 44 px with its picker. The server's agents
list keeps a week of ended sessions so their threads keep their agent;
ended_today still counts today's only.
Archived rows keep Unarchive; Select all picks only drawn rows; a fold gives
way to a new waiting row and Show opens the agents its rows land under;
a list read redraws only the changed row and its agent; ordering, keep,
focus after N more, Ended aria-owns, agent heads slide on settle; the
44 px face picker stays inside the list pane; look fixes.
Nothing clips the face picker or anything above its plate again (the clip
stopped its blur, the sidebar's too); a face in the list keeps its choices
inside the pane. No agent's rows count in what a Show brings; a Show that
sorted nothing opens nothing later; a fold holds against the rows it was
made over; other-agent icons drop whole; a folded agent's marks carry no
one thread's details.
@backnotprop
backnotprop marked this pull request as ready for review November 20, 2026 05:10
@backnotprop
backnotprop merged commit 6b34ec9 into main Nov 20, 2026
79 of 80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant