feat: add opt-in agent position numbers in sidebar - #1
Open
amberpixels wants to merge 6 commits into
Open
Conversation
amberpixels
force-pushed
the
feat/sidebar-compact
branch
5 times, most recently
from
June 26, 2026 11:17
826c7c6 to
6f5390b
Compare
Add [ui] options to tune sidebar density without changing the default layout: - sidebar_single_line: render each workspace as `name • branch` on one row - spaces_row_gap / agents_row_gap: independently drop the blank row between entries in the spaces and agents lists - agent_panel_numbers: show the 1-9 position under each agent's icon, matching the focus_agent shortcuts All default to current behavior, so existing setups are unchanged.
amberpixels
force-pushed
the
feat/sidebar-compact
branch
from
June 29, 2026 15:39
6f5390b to
9d9de58
Compare
resolve conflicts: keep opt-in sidebar density toggles (sidebar_single_line, row-gap options) alongside upstream sidebar_collapsed_mode; drop duplicate truncate_text in favor of upstream's display-width-aware truncate_end.
Resolve to master's sidebar as the source of truth; the compact layout and agent numbering are reimplemented minimally on top of master's configurable token-row sidebar in a follow-up commit.
Layer three UI toggles on top of master's token-row sidebar, each defaulting to the current behavior so the sidebar is byte-identical unless opted in: - ui.space_panel_row_gap (default true): drop the blank row between spaces for a compact list. - ui.agent_panel_row_gap (default true): drop the blank row between agents for a compact list. - ui.agent_panel_numbers (default false): show each agent's 1-9 position under its icon, matching the focus_agent shortcuts. The agent hit-test mirrors the render's optional gap so clicks stay aligned.
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.
Add an opt-in
[ui]option to show agent positions in the sidebar:agent_panel_numbers(defaultfalse): show each agent's 1-9 position under its icon, matching thefocus_agentindexed shortcuts. The numbering follows the agent panel's entry order, so it stays correct when scrolled or re-sorted.Defaults to the current behavior, so the sidebar is unchanged unless opted in.
P.S. PR initially was broader (including compact-mode) that is already implemented in
master, that's why we have so many commits here