Repository navigation
Let Better Sidebar name agent rows by the terminal's live title - #35
Merged
Merged
Conversation
A new agent_name setting: "tab" (default, as before) names a row after its tab, "title" after the terminal's live title, which agents set to what they're doing. Either falls back to the other. The defaults move to defaults.js so the agents view can read settings too. (#16) 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.
Summary
Adds the opt-in setting asked for in #16. It's off by default, so nothing changes unless you set it.
better-sidebar/mods/better-sidebar/ +├── defaults.js # DEFAULT_SETTINGS, now read by spaces and agents views ├── views/spaces.js # imports it instead of defining it ├── views/agents.js # loads settings for agent_name └── mod.schema.json # agent_name: "tab" | "title" ("Tab name" / "Terminal title")Better Config shows the new setting as a choice between "Tab name" and "Terminal title". Version 3.6.1 → 3.7.0. The README settings table and RECIPE are updated.
Evidence
tab_name, which is never empty (an unnamed tab shows its number), so the live title was never used.After: new tests:
agent_name: "title"from mod.json:{ tab_name: "2", title: "✳ Fix login redirect" }→Fix login redirect; no title → the tab's name; a title that's only a spinner → the tab's nameDEFAULT_SETTINGS, now found indefaults.js), site 13/13, andherdr-app checkpasses.Checked in the running app on macOS. With the default, rows read "Claude Code" and "github-issue" (tab names). With
"agent_name": "title"in the installed mod.json, the same rows read "Repo issues single PR" and "Code review for branch…", with the leading spinner glyph stripped.Merge Danger
Door: two-way
Blast Radius: small
Off by default. Moving
DEFAULT_SETTINGSintodefaults.jstouches the spaces view's settings loading, which the existing spaces and lists tests cover.🤖 Generated with Claude Code