Skip to content

Let Better Sidebar name agent rows by the terminal's live title - #35

Merged
munza merged 1 commit into
mainfrom
sidebar-agent-title
Nov 19, 2026
Merged

munza merged 1 commit into
mainfrom
sidebar-agent-title

Conversation

@munza

@munza munza commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds the opt-in setting asked for in #16. It's off by default, so nothing changes unless you set it.

 agentName(a)
-  name = a.tab_name || label
+  name = rowName(a, label)

+rowName(a, label)
+  tab = a.tab_name || label
+  if settings.agent_name == "title"
+    return clean(a.title) || tab   // leading spinner glyphs stripped
+  return tab
 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

  • Before: no setting. A row always shows 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 name
    • default: always the tab's name, whatever the title
  • better-sidebar 55/55, better-config 18/18 (it checks each schema against DEFAULT_SETTINGS, now found in defaults.js), site 13/13, and herdr-app check passes.

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_SETTINGS into defaults.js touches the spaces view's settings loading, which the existing spaces and lists tests cover.

🤖 Generated with Claude Code

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>
@munza
munza merged commit 1abf487 into main Nov 19, 2026
2 checks passed
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.

1 participant