Repository navigation
feat(web): a thread's family shows as tabs under the chat header - #973
Merged
Merged
Conversation
Each project can now name one thread its lead chat: the place to drop work for the project, whose agent coordinates threads for it (docs/design/lead-chat.md, piece 1 of 4). The project keeps a pointer to its lead (`leadThreadId`, migration 116), set with `project.lead.set` and carried on the existing project update event. Archiving or deleting the lead ends it in the same decision; the lead can't be put back under a parent or moved to another computer, and a pointer at an archived or missing thread reads as no lead. The lead's agent hears its role at the start of every turn, and may start 10 threads and send 20 messages per user message instead of 5 and 10. In the app the lead is set and unset from the thread menu, the project menu (Open or New lead chat), the command palette and a keybinding command. Its row sorts first in the sidebar with a flag and never wraps up on its own; the chat shows a Lead chat label and invites work in the composer. The app guide has a lead chat topic.
KeybindingCommand is a closed set that older clients decode strictly. A user rule naming navigate.leadChat would make an older client reject the whole keybinding list, and with it the computer's config. Go to lead chat stays in the command palette.
…threads The project's lead chat can now pass a message to a thread the user started by hand (docs/design/lead-chat.md, piece 2 of 4). A pass is one-way: the message lands in that thread as the lead's and the answer stays there. It carries the lead's access as a ceiling, checked again whenever its turn would start (from the queue, on retry and resend), and is taken back with a line in the thread and a note for the lead when the thread has more access by then. Rooms, threads another thread owns, threads the user stopped and threads whose last turn failed are refused. A thread a pass started can't start threads until a person writes there. The approval card for several threads gets a checkbox per thread on servers that can take a partial answer; unchecked ones are declined in the same answer and the agent is told which. thread_list marks the lead and adds last activity and known pull requests; outside agents see each project's lead. Retry no longer picks a message still waiting in the queue, and the queue moves on when a queued message is taken back instead of sent. The thread tools' descriptions grew 383 bytes (agentContextBudget.json): ACP agents learn the pass and lead rules only from them.
A lead chat hands work to many threads, and there was no single place to see
how they were all doing: the sidebar shows families, not the whole project.
A new right-panel tab, Threads ("This project's threads."), on every thread of
a workspace project. It lists the project's threads on every computer in view
in six groups: Needs you, Ready for review, Working, Landing, Idle, and Done
(wrapped in the last 7 days, closed by default). Filing comes first, from the
sidebar's own InboxEntry.isDone, except that a wrapped thread whose pull
request is still open stays under Ready for review or Landing. Ready for
review rows say what the pull request waits on, with the Pull requests page's
own wording. Groups over 8 fold behind "Show N more". Rows are one line like
the sidebar's child rows; a click opens the thread with the tab still beside
it, and right-click is the sidebar's thread menu. The header counts what needs
you and links to the lead chat from other threads.
- projectBoard.logic.ts holds the pure grouping; the status-to-group table now
lives in threadStatusGroups.ts, read by it and by the new-thread map.
- The first time a thread becomes a lead on this device, its Threads tab
opens: setProjectLead queues the tab and the thread route opens it.
- The badge's click handler moved to useOpenThreadPullRequest so the sidebar
and the panel share it.
- App guide: the lead-chat topic describes the panel.
…ts keys The first lead on a device opened the Threads tab only on wide layouts, and the device's once-only flag was spent either way, so a first lead made on a narrow window never showed the board. It now opens as the sheet there. A board row's Enter and Space handler also caught keys from the pull request badge inside it, so the badge opened the thread instead of its pull request. The row now answers only its own keys.
A parent thread and the threads it started now show as one row of tabs under the chat header, on the parent and on each of its threads, so the parent (a project's lead chat included) is always one click away (docs/design/lead-chat.md rev 4, piece 5). A tab opens that thread, the same chat with its own message box and draft. The row lists exactly the members the sidebar shows under the parent, from one extracted rule (liveFamilyOf), and belongs to the family, so switching between members keeps it mounted and still. While it shows, the header's Lead chat and Started by chips give way to it. The Threads panel no longer opens by itself the first time a thread becomes the lead; the tabs are how a lead's threads are reached. Its tab queue and that behaviour's test are removed. The plan's thread.family.next and previous keybinding commands are left out: KeybindingCommand is a closed set older clients decode strictly.
The tabs stretched to share the whole row, so three tabs took a third each. Each is now as wide as its title up to 200px and the row packs to the left, like the right panel's tab strip; tabs shrink only when the row is crowded.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
…ll requests stay in their repository A thread working on something the lead chat passed on could still message its own threads, including one the user had raised above the lead's access, so the lead's work could run there with more access than the lead has. The pass's ceiling now stays on the thread (passCeiling, the narrowest of the passes since the user wrote): sends to a child above it, or on another computer, are refused until the user writes. thread_list matched a branch's pull request on owner/name alone, so another host's or another GitLab group's repository with the same short name and branch could show up. It now matches on the project remote's host and whole path.
…fore it runs The user can raise a thread's access after the decider let a queued pass through but before the turn reaches the agent. The provider layer now reads the ceiling from the stored message and refuses the turn when the thread or its live runtime is above it, as it already does for outside agents. This covers sent, queued, retried and resent passes. A new agent's history (the hand-off context seed) also leaves out messages still waiting in the queue: no agent was sent them yet. A message taken back or refused at that last check still reaches history; recording delivery on the message is left open.
…ut of every agent's history A pass taken back at the queue, taken off it by the user, or refused at the provider layer's last ceiling check stayed in the chat as if sent. A later agent (after a provider switch, a fork, or joining a room) could then read it as history while running with more access than the lead. Such a pass is now OrchestrationMessage.notSent: the shared unqueue fold marks a pass taken back, and the reactor's last-check refusal dispatches thread.lead-pass.not-run, which marks it, writes the line in the thread and the lead's note. One shared rule, reachedAgent (not notSent, not still queued), filters the hand-off seed, a fork's context and the room catch-up note. thread_read and room_history keep the message, labelled notSent. A notSent message is never retried or resent. On screen the pass says Not sent.
…ys not sent Three gaps in the not-sent mark: - A Stop that lands while a released pass's turn is prepared dropped the turn without marking it. The reactor now sends thread.lead-pass.not-run with reason stopped, so the line and the lead's note say so. - A retry accepted just before the mark landed could still run the pass. The reactor refuses a pass marked not sent when its turn is prepared. - A move to another computer dropped the mark: thread.message-sent had no field for it, and the linked-computer import didn't copy it. The payload now carries notSent, folded by the projector, the SQLite pipeline and the web store.
# Conflicts: # apps/server/src/orchestration/Layers/ProjectionPipeline.ts # apps/server/src/orchestration/projector.ts # apps/web/src/store.ts # packages/contracts/src/orchestration.ts
… never sent Only the user's own queued messages move with a thread. An agent's message still waiting in the queue (a lead chat's pass) is already written into the chat, so the export sent it as ordinary history and the other computer's agent could be given it. The export now marks it notSent, which keeps it out of every history there.
…he user's A context seed after a provider switch, and a fork's context, named only an outside agent's message. A lead chat's pass, a parent's request, a child's report and a room agent's message all read as "User", so a new agent could take them for the user's instructions. They are now named as another agent's, as thread_read and room_history already did.
On a starved CI tab the row once still held two of its three tabs when the default one-second wait ran out. The waits now allow 10 seconds; every assertion is unchanged.
Main is the squash of the piece below, which this branch already contains, so the merge changes no code.
Main is the squash of the piece below, which this branch already contains, so the merge changes no code.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stacked on #972.
Problem
Reading a thread another thread started meant leaving the parent, and getting back meant finding it in the sidebar.
Change
A thread that started other threads, and each thread it started, show one row of tabs under the chat header: the parent first, then its threads with their status dots. Each tab opens the full chat. The row uses the sidebar's own family rules, so the two always agree, and it stays in place when switching between members. While it shows, the Started by and Lead chat labels in the header give way to it. The Threads panel no longer opens by itself.
No keyboard shortcuts: a new shortcut name would make an older client reject its settings.
Checks
fmt, lint, typecheck and the full browser suite pass, including a test that reads the row after every paint across a switch. Reviewed by GPT-6.1 Sol: three findings, all handled. The later tab-width fix (one class change) was not reviewed. One existing test changed: the Started by label is now checked under a wrapped parent, where it still shows.