Skip to content

Thread list: show each thread's project name in the Custom organization #4810

Description

@hxy91819

The workflow

I work across several projects and keep the sidebar in Organize → Custom so recently active threads float to the top regardless of project. Thread titles alone ("Fix flaky test", "Update deps") do not say which repository a row belongs to, so I either hover and guess from the title, open the wrong thread, or switch back to By project and lose the cross-project chronology.

What happens today

A row only carries project information when it sits under a different project's section. ThreadTreeNodeRow computes crossProjectId as "this thread's project differs from the containing project":

const rowProjectId = node.thread.projectId;
const crossProjectId = rowProjectId !== projectId ? rowProjectId : null;

ThreadRow then draws a FolderExport icon with an "In project X" tooltip:

const crossProjectName = useSidebarProjectName(crossProjectId);
const crossProjectLabel =
crossProjectId === null
? null
: crossProjectName
? `In project ${crossProjectName}`

{crossProjectLabel !== null ? (
<Tooltip>
<TooltipTrigger asChild>
<span
data-sidebar-thread-cross-project=""
role="img"
aria-label={crossProjectLabel}
className="relative z-[31] flex size-5 shrink-0 items-center justify-center text-muted-foreground"
onClick={(event) => {
event.preventDefault();
event.stopPropagation();
rowLinkRef.current?.click();
}}
>
<Icon name="FolderExport" className="size-3.5" aria-hidden />
</span>
</TooltipTrigger>
<TooltipContent side="top">{crossProjectLabel}</TooltipContent>
</Tooltip>

In Custom mode the containing project is the thread's own project, so crossProjectId is null and no project indicator is shown at all. The project name is not visible without hovering or opening the thread.

Checked against origin/main today: ThreadRow still only has the cross-project icon path; there is no project label for chronological rows. Open and closed issues searched for "project name sidebar", "project label", "project badge", "chronological project": no existing request. #1811 (nested projects) and #1614 (project section ordering) concern By project mode, not labelling rows in Custom.

What I would expect

  • In Custom mode, every thread row shows a small project-name label after the title (truncated, with a Project: <name> title attribute). Personal-project threads show the personal project's name.
  • The label appears in the Threads section, custom sections, and Pinned (including pinned environment/worktree groups and nested children) while in Custom mode.
  • By project and By machine are unchanged: the containing section already names the project, and the existing cross-project icon keeps covering the moved-thread case.
  • The row link's accessible name includes the project: Open <title> in <project>.
  • No new preference; the label follows the organization mode.

Prototype

Fork branch, based on desktop-v0.45.0 (129f6217): desktop-v0.45.0...hxy91819:bb:feature/thread-project-label

3 commits, 7 files, +82/−4. Implementation:

  • plugins/thread-list/app/rows/ThreadRow.tsx: new showProjectName prop; resolves the name with the existing useSidebarProjectName and renders a [data-sidebar-thread-project-name] chip plus the extended link label.
  • plugins/thread-list/app/list/ProjectRow.tsx, PinnedThreadTree.tsx, ProjectList.tsx: thread the flag down from organizationMode === "chronological"; ProjectThreadTree (By project) passes false.
  • Tests: ThreadRow.test.tsx asserts the chip text and the link name; app.test.tsx and ProjectRow.interactions.test.tsx are updated for the new prop.

CONTRIBUTING.md asks for an issue before a PR for UI changes, so I am opening this first. I will open the PR once the proposal has sign-off and I am approved as a contributor.

AGENT GENERATED

Activity

  1. added a commit that references this issue on Oct 3, 2026
  2. added
    ui
    on Oct 3, 2026
  3. bb-slop-cop commented on Oct 3, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied the missing classifications:

    • Type: Feature
    • Priority: Low
    • Effort: Medium
    • Labels: ui

    This adds project identification to an existing sidebar view rather than correcting unexpected behavior. Alternative organization modes provide a workaround; supporting all row variants requires coordination across several UI components. No existing classifications were replaced.

    No reproduction report or pull request: the verified Type is Feature, so this rule skips bug reproduction and fixes.

  4. added a commit that references this issue on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions