Skip to content

Agent: keep the folder readable in the project chip and quiet the picker - #1554

Merged
AnthonyRonning merged 2 commits into
masterfrom
draft-context-followups
Nov 11, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
draft-context-followups

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Follow-ups from the reviews of #1517 and #1516, both merged.

Before and after

Real chat screen rendered offscreen with sample data, dark theme. "Before" is master at 317c1603; "after" is this branch.

A paired computer with a long name. The chip was capped at 260 px and cut from the end, so the folder was the part that disappeared. The chip now uses the row it already has to itself.

Before After
Before: the chip reads the computer name and cuts the folder to two letters After: the chip shows the computer name and the folder whole

Both names long.

Before After
Before: the folder is cut to one letter After: both names shown whole

Both names long in a 640 px window. When the row really runs out, a long computer name shortens first but keeps its first several letters, then the folder.

Before After
Before, narrow window: the folder is cut to one letter After, narrow window: the computer name is shortened and the folder is whole

A short computer name is never the part that shortens (after only; wide, then a 640 px window):

After: a short computer name and a short folder

After, narrow window: a short computer name stays whole beside a long folder

The picker with two computers, with the divider between them (after only):

After: the project picker lists two computers with a divider between them

In that last image the picker covers its own chip: with two computers it is too tall to fit above or below the chip in a 740 px window. That comes from where the picker sits since #1517 and is not changed here.

What changes

  • Project chip. The 260 px cap is gone; the chip is bounded by the row above the composer. On a paired computer the computer and folder are separate pieces: a long computer name shortens first, down to about eight letters, then the folder. A computer name of ten characters or fewer stays whole. The accessible name is still the full "computer · folder".
  • Opening the project picker. A computer that is slow or away no longer raises an error notice just because the picker opened; the failure is logged and that computer keeps its last list. The recents no longer blink empty on every open: a computer's answer replaces its previous list when it arrives, and only a computer that has left is dropped up front.
  • Menu separator. It collapsed to nothing in a menu tall enough to scroll. It no longer shrinks, and the multi-computer picker uses it instead of a hand-drawn line.
  • Cleanups. chip() no longer styles itself on id == "root-picker"; the project chip has its own builder over a shared frame. The branch label uses gpui::text! so accessibility sees it. Comments that still said "header" for the project chip are corrected.

Not in this PR

  • A saved task shows no title or folder when the sidebar is collapsed. That is a design decision.
  • The two-computer picker covering its chip in a short window, as noted above.
  • Branch watching still runs for saved tasks, where nothing shows the branch. Stopping it cleanly means re-reading git on each return to a new task, which costs more than the idle watcher.
  • The recency write after an accepted message is still awaited. Detaching it would race an existing test.
  • New folders are still named Untitled project-<uuid>, with "Untitled project" in English on the host.

Verification

  • just ci-lint and just ci-test pass in the pinned Nix shell on 9cf90092 (the pre-commit hook).
  • project_chip_shortens_the_computer_before_the_folder covers: both names whole when the row has room; the chip staying inside the composer's width when it does not, with the computer at its floor and the folder cut; a short computer name staying whole.
  • The screenshots above come from the real ChatScreen with seeded state. Not run against a live paired computer.

🤖 Generated with Claude Code

@marksftw

Copy link
Copy Markdown
Collaborator

lgtm

marksftw
marksftw previously approved these changes Nov 10, 2026
AnthonyRonning and others added 2 commits November 10, 2026 17:40
Follow-ups from the reviews of #1517 and #1516.

On a paired computer the project chip reads "computer · folder" inside
a 260 px cap and was cut from the end, so a long computer name hid the
folder. The two are now separate: the computer name shortens first and
the folder only once the name is down to its ellipsis.

Opening the project picker no longer shows an error notice when a
computer is slow or away, and no longer blinks its recents empty while
each computer answers; a computer's answer replaces its last list.

Also: the chip helper no longer styles itself by element id, the branch
label is visible to accessibility, the multi-computer menu uses the
menu's own separator, and comments that still said "header" are fixed.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…visible

The chip above the composer was capped at 260 px, though it has that
row to itself. It now shows its text whole while the row has room and
only shortens when it does not. On a paired computer a long computer
name shortens first, but keeps its first several letters, and a short
one stays whole; the folder shortens after that.

The menu separator collapsed to nothing in a menu tall enough to
scroll, which hid the divider between computers in the project picker
once that menu used it. It no longer shrinks.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@AnthonyRonning
AnthonyRonning force-pushed the draft-context-followups branch from 9cf9009 to 2e737c9 Compare November 11, 2026 02:00
@AnthonyRonning
AnthonyRonning merged commit a183957 into master Nov 11, 2026
23 checks passed
@AnthonyRonning
AnthonyRonning deleted the draft-context-followups branch November 11, 2026 02:05
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.

2 participants