Skip to content

feat: add opt-in agent position numbers in sidebar - #1

Open
amberpixels wants to merge 6 commits into
masterfrom
feat/sidebar-compact
Open

feat: add opt-in agent position numbers in sidebar#1
amberpixels wants to merge 6 commits into
masterfrom
feat/sidebar-compact

Conversation

@amberpixels

@amberpixels amberpixels commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Add an opt-in [ui] option to show agent positions in the sidebar:

  • agent_panel_numbers (default false): show each agent's 1-9 position under its icon, matching the focus_agent indexed 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

@amberpixels
amberpixels force-pushed the feat/sidebar-compact branch 5 times, most recently from 826c7c6 to 6f5390b Compare June 26, 2026 11:17
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
amberpixels force-pushed the feat/sidebar-compact branch from 6f5390b to 9d9de58 Compare June 29, 2026 15:39
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.
@amberpixels amberpixels changed the title feat: add opt-in sidebar layout options feat: add opt-in compact sidebar and agent numbering options Jul 15, 2026
@amberpixels amberpixels changed the title feat: add opt-in compact sidebar and agent numbering options feat: add opt-in agent position numbers in sidebar Jul 15, 2026
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