Repository navigation
Sidebar and window title show the harness's live status mark, frame by frame - #34
Merged
Merged
Conversation
…y frame A harness animates a spinner in its OSC title (Claude Code's ✳/·✢✶✻✽, braille, ◐◓◑◒). The sidebar only saw that title through the 4 s status poll, and it stripped a fixed list of glyphs that missed some (◑ leaked into the name). The daemon already pushes a title event on every change; the window now streams them (SessionHost.watchTitles, kept open by LiveTitles, newest frame per session coalesced for the EDT). Titles split into a leading mark (any run of non-ASCII symbols before a space, no glyph list) and the name: the mark is shown exactly as written before the name in the row, tooltip and window title (throttled to 4/s); sorting and rename logic see only the name. The poll keeps the name fresh and is the mark's fallback when no stream is available. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Harnesses animate a status mark in their terminal title (Claude Code's
✳/·✢✶✻✽, braille spinners,◐◓◑◒). The sidebar now shows that mark exactly as the harness writes it, frame by frame, instead of sampling the title every 4 s and stripping a fixed glyph list (which let◑leak into names).How
titleevent on each change.SessionHost.watchTitles(implemented bySessionServerHostover the watch stream) feedsLiveTitles, which keeps the stream open with backoff and coalesces bursts to the newest frame per session before handing them to the EDT. Frames may be skipped, never invented.SidebarEntry.TitlePartssplits a leading run of non-ASCII symbols (So/Sm, plus·•) followed by a space from the name. No glyph list. The name alone drives sorting, renames and change detection, so a new frame repaints one row and never re-sorts.readheader already showed the raw title. The phone page doesn't use harness titles.Tests
watchTitles.LiveTitlesTest: burst coalescing, reopening after a failed or ended stream, host with no stream.SidebarViewTest: mark/name split (including◐◓◑◒, emoji, ASCII non-marks), live vs polled precedence, rename, Codex.Not yet checked by eye in the running app.
🤖 Generated with Claude Code