Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
eea048e
feat: a project can have a lead chat
badcuban Nov 16, 2026
c5a9917
fix(web): drop the lead chat's keybinding command
badcuban Nov 16, 2026
fd22ec8
feat: the lead chat passes work to threads, and the card starts some …
badcuban Nov 16, 2026
2dd3060
feat(web): a Threads panel groups a project's threads by what needs you
badcuban Nov 16, 2026
cb3fe3a
fix(web): the Threads tab opens on a phone too, and its badge keeps i…
badcuban Nov 16, 2026
447606b
feat(web): a thread's family shows as tabs under the chat header
badcuban Nov 16, 2026
0e896a4
fix(web): family tabs fit their titles and pack to the left
badcuban Nov 17, 2026
a011b7e
feat: a usage limit pauses a thread an agent started instead of faili…
badcuban Nov 17, 2026
f708791
fix(web): the lead chat's mark is a crown
badcuban Nov 17, 2026
1337ea0
fix: passed work keeps the lead's access when handed on, and known pu…
badcuban Nov 17, 2026
fd1a2df
Merge remote-tracking branch 'origin/main' into feat/lead-chat-2-pass
badcuban Nov 17, 2026
009a921
Merge branch 'feat/lead-chat-2-pass' into feat/lead-chat-3-panel-stacked
badcuban Nov 17, 2026
ef9f7f1
Merge branch 'feat/lead-chat-3-panel-stacked' into feat/lead-chat-5-tabs
badcuban Nov 17, 2026
a42f100
Merge branch 'feat/lead-chat-5-tabs' into feat/lead-chat-4-pause
badcuban Nov 17, 2026
866a436
Merge branch 'feat/lead-chat-4-pause' into feat/lead-chat-6-crown
badcuban Nov 17, 2026
c30e6b8
fix: a lead chat's pass is checked against its ceiling again right be…
badcuban Nov 17, 2026
5fc5d1f
Merge branch 'feat/lead-chat-2-pass' into feat/lead-chat-3-panel-stacked
badcuban Nov 17, 2026
fa6af50
Merge branch 'feat/lead-chat-3-panel-stacked' into feat/lead-chat-5-tabs
badcuban Nov 17, 2026
931c7fa
Merge branch 'feat/lead-chat-5-tabs' into feat/lead-chat-4-pause
badcuban Nov 17, 2026
ead62d6
Merge branch 'feat/lead-chat-4-pause' into feat/lead-chat-6-crown
badcuban Nov 17, 2026
fdb3039
fix: a lead chat's pass that never ran is marked not sent and stays o…
badcuban Nov 17, 2026
8502866
fix: a pass stopped while prepared, or moved to another computer, sta…
badcuban Nov 17, 2026
4ff5e65
Merge branch 'feat/lead-chat-2-pass' into feat/lead-chat-3-panel-stacked
badcuban Nov 17, 2026
ecd3b3e
Merge branch 'feat/lead-chat-3-panel-stacked' into feat/lead-chat-5-tabs
badcuban Nov 17, 2026
51623cb
Merge branch 'feat/lead-chat-5-tabs' into feat/lead-chat-4-pause
badcuban Nov 17, 2026
22c6ad9
Merge branch 'feat/lead-chat-4-pause' into feat/lead-chat-6-crown
badcuban Nov 17, 2026
facda57
Merge remote-tracking branch 'origin/main' into feat/lead-chat-2-pass
badcuban Nov 17, 2026
0f5007d
fix: an agent's message still queued when its thread moves arrives as…
badcuban Nov 17, 2026
48194cf
Merge branch 'feat/lead-chat-2-pass' into feat/lead-chat-3-panel-stacked
badcuban Nov 17, 2026
d33e3d5
Merge branch 'feat/lead-chat-3-panel-stacked' into feat/lead-chat-5-tabs
badcuban Nov 17, 2026
fcaa33e
Merge branch 'feat/lead-chat-5-tabs' into feat/lead-chat-4-pause
badcuban Nov 17, 2026
92f91ec
Merge branch 'feat/lead-chat-4-pause' into feat/lead-chat-6-crown
badcuban Nov 17, 2026
f64279e
fix: history handed to an agent never calls another agent's message t…
badcuban Nov 17, 2026
a8da9ad
test(web): the family tabs test waits as long as a slow CI runner needs
badcuban Nov 17, 2026
5dee061
Merge branch 'feat/lead-chat-5-tabs' into feat/lead-chat-4-pause
badcuban Nov 17, 2026
ba03cba
Merge branch 'feat/lead-chat-4-pause' into feat/lead-chat-6-crown
badcuban Nov 17, 2026
f526932
Merge remote-tracking branch 'origin/main' into feat/lead-chat-2-pass
badcuban Nov 17, 2026
e12c1a4
Merge branch 'feat/lead-chat-2-pass' into feat/lead-chat-3-panel-stacked
badcuban Nov 17, 2026
1435486
Merge branch 'feat/lead-chat-3-panel-stacked' into feat/lead-chat-5-tabs
badcuban Nov 17, 2026
ffb6103
Merge branch 'feat/lead-chat-5-tabs' into feat/lead-chat-4-pause
badcuban Nov 17, 2026
fff434c
Merge branch 'feat/lead-chat-4-pause' into feat/lead-chat-6-crown
badcuban Nov 17, 2026
5fb5471
Merge main into feat/lead-chat-3-panel-stacked
badcuban Nov 17, 2026
0b8f4d9
Merge branch 'feat/lead-chat-3-panel-stacked' into feat/lead-chat-5-tabs
badcuban Nov 17, 2026
1e99230
Merge main into feat/lead-chat-5-tabs
badcuban Nov 17, 2026
df930af
Merge remote-tracking branch 'origin/main' into feat/lead-chat-5-tabs
badcuban Nov 17, 2026
618b100
Merge remote-tracking branch 'origin/feat/lead-chat-5-tabs' into feat…
badcuban Nov 17, 2026
5a9b064
Merge remote-tracking branch 'origin/main' into feat/lead-chat-4-pause
badcuban Nov 17, 2026
45dc42e
Merge branch 'feat/lead-chat-4-pause' into feat/lead-chat-6-crown
badcuban Nov 18, 2026
efd6f88
Merge remote-tracking branch 'origin/main' into feat/lead-chat-6-crown
badcuban Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/server/src/guide/topics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ When an agent asks to start several threads, the card has a checkbox per thread,

Only one thread leads a project; making another the lead replaces it. "Stop using as lead chat" turns it back into an ordinary thread, and the threads it started stay with it. Archiving or deleting the lead ends it. A lead can't move to another computer, and each computer keeps its own lead for a project.

The lead's row sits at the top of the sidebar with a flag, says Lead where the project name goes, and never wraps up on its own. The chat shows a Lead chat label beside the title, or, once it has started threads, the family tabs with the lead first.
The lead's row sits at the top of the sidebar with a crown, says Lead where the project name goes, and never wraps up on its own. The chat shows a Lead chat label beside the title, or, once it has started threads, the family tabs with the lead first.

The Threads tab in the right sidebar shows the project's threads on every computer you can see, grouped as Needs you, Ready for review, Working, Landing, Idle and Done. Open it from the sidebar's list of panels or its + menu, on any thread of the project. A thread you wrapped up goes under Done (for 7 days, closed until you open it) unless its pull request is still open, which keeps it under Ready for review or Landing. Ready for review says what the pull request waits on, as the Pull requests page does. Click a row to open the thread, or right-click it for the thread's menu. The top line counts what needs you and what's working, with a Lead chat link when you're on another thread.

Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/components/CommandPaletteDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import {
Trash2Icon,
UsersRoundIcon,
MonitorUpIcon,
FlagIcon,
CrownIcon,
FolderSyncIcon,
WaypointsIcon,
CalendarClockIcon,
Expand Down Expand Up @@ -487,7 +487,7 @@ const PALETTE_THREAD_ACTIONS: Partial<
> = {
lead: {
searchTerms: ["lead chat", "lead", "coordinate", "project lead"],
icon: <FlagIcon className={ITEM_ICON_CLASS} />,
icon: <CrownIcon className={ITEM_ICON_CLASS} />,
},
rename: {
title: "Rename thread",
Expand Down Expand Up @@ -2238,7 +2238,7 @@ export function OpenCommandPaletteDialog() {
searchTerms: ["lead chat", "lead", project.name],
title: "Go to lead chat",
description: project.name,
icon: <FlagIcon className={ITEM_ICON_CLASS} />,
icon: <CrownIcon className={ITEM_ICON_CLASS} />,
run: async () => {
await navigate({
to: "/$environmentId/$threadId",
Expand Down Expand Up @@ -2275,7 +2275,7 @@ export function OpenCommandPaletteDialog() {
searchTerms: ["new lead chat", "lead chat", "lead", "coordinate"],
title: "New lead chat",
description: leadScopeProject.name,
icon: <FlagIcon className={ITEM_ICON_CLASS} />,
icon: <CrownIcon className={ITEM_ICON_CLASS} />,
run: async () => {
const leadRef = await createLeadChat(leadScopeProject);
if (leadRef !== null) {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/chat/ChatHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
CornerDownRightIcon,
FolderInputIcon,
FolderOpenIcon,
FlagIcon,
CrownIcon,
GitForkIcon,
GlobeIcon,
MessagesSquareIcon,
Expand Down Expand Up @@ -431,7 +431,7 @@ export const ChatHeader = memo(function ChatHeader({
{isLeadChat ? (
<span data-testid="lead-chat-chip" className={STARTED_BY_CHIP_CLASS}>
<span className="inline-flex min-w-0 items-center gap-1">
<FlagIcon aria-hidden="true" className="size-3 shrink-0" />
<CrownIcon aria-hidden="true" className="size-3 shrink-0" />
Lead chat
</span>
</span>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/chat/FamilyTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import { parseScopedThreadKey, scopedThreadKey } from "@threadlines/client-runtime";
import type { ScopedThreadRef } from "@threadlines/contracts";
import { useNavigate } from "@tanstack/react-router";
import { CheckIcon, FlagIcon } from "lucide-react";
import { CheckIcon, CrownIcon } from "lucide-react";
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
import { create } from "zustand";

Expand Down Expand Up @@ -248,7 +248,7 @@ const FamilyTabButton = memo(function FamilyTabButton({
>
{tab.kind === "parent" ? (
tab.lead ? (
<FlagIcon aria-hidden="true" className="size-3 shrink-0" />
<CrownIcon aria-hidden="true" className="size-3 shrink-0" />
) : null
) : tab.done ? (
<CheckIcon aria-hidden="true" className="size-3 shrink-0 text-muted-foreground" />
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/chat/ProjectBoardPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import { scopedThreadKey, scopeProjectRef, scopeThreadRef } from "@threadlines/client-runtime";
import type { EnvironmentId, ProjectId, ScopedThreadRef, ThreadId } from "@threadlines/contracts";
import { CheckIcon, ChevronDownIcon, FlagIcon } from "lucide-react";
import { CheckIcon, ChevronDownIcon, CrownIcon } from "lucide-react";
import React, { memo, useCallback, useMemo, useState } from "react";

import { type InboxEntry, useInboxThreads } from "../../hooks/useInboxThreads";
Expand Down Expand Up @@ -167,7 +167,7 @@ export const ProjectBoardPanel = memo(function ProjectBoardPanel({
className="inline-flex shrink-0 cursor-pointer items-center gap-1 rounded-sm text-[12px] text-muted-foreground transition-colors hover:text-foreground focus-ring"
onClick={() => onOpenThread(scopeThreadRef(environmentId, leadThreadId))}
>
<FlagIcon aria-hidden="true" className="size-3" />
<CrownIcon aria-hidden="true" className="size-3" />
Lead chat
</button>
) : null}
Expand Down Expand Up @@ -357,7 +357,7 @@ const BoardRow = memo(function BoardRow({
/>
)}
{entry.isLead ? (
<FlagIcon aria-label="Lead chat" className="size-2.5 shrink-0 text-muted-foreground" />
<CrownIcon aria-label="Lead chat" className="size-2.5 shrink-0 text-muted-foreground" />
) : null}
<span
className={cn(
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/chat/ProjectThreadMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { PULL_REQUEST_SETTLED_LIST_LIMIT, type ScopedProjectRef } from "@threadl
import { useNavigate } from "@tanstack/react-router";
import { useId, useMemo, useState } from "react";
import { useShallow } from "zustand/react/shallow";
import { FlagIcon } from "lucide-react";
import { CrownIcon } from "lucide-react";

import { useRelativeTimeTick } from "../../hooks/useRelativeTimeTick";
import {
Expand Down Expand Up @@ -553,7 +553,7 @@ export function ProjectThreadMap({
}}
type="button"
>
<FlagIcon aria-hidden="true" className="size-3" />
<CrownIcon aria-hidden="true" className="size-3" />
Lead chat
</button>
) : null}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/sidebar/InboxRows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Clock3Icon,
CloudIcon,
CornerDownRightIcon,
FlagIcon,
CrownIcon,
LinkIcon,
MonitorUpIcon,
GitForkIcon,
Expand Down Expand Up @@ -1143,7 +1143,7 @@ export const InboxThreadRow = memo(function InboxThreadRow(props: InboxThreadRow
data-testid={`thread-lead-mark-${thread.id}`}
className="inline-flex shrink-0 items-center justify-center text-muted-foreground/50"
>
<FlagIcon className="size-2.5" />
<CrownIcon className="size-2.5" />
</span>
) : null}
{threadProject && showProjectMark ? (
Expand Down
2 changes: 1 addition & 1 deletion docs/design/lead-chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ always one click away, and so is every thread it started.
member while its parent is live. A thread with no family has no row. A child the
user made its own, or whose parent is wrapped or archived, has no row and keeps
today's "Started by" chip.
- **A tab.** The parent's tab is its title; a lead's is the flag and "Lead". A child's
- **A tab.** The parent's tab is its title; a lead's is the crown and "Lead". A child's
is its status dot (the family child rows' colours and words; a check once wrapped
and still in the family) and its title. The open one has a quiet fill. Hover is a
colour shift. Right-click or a long press opens the sidebar's thread menu. There is
Expand Down
Loading