Skip to content

remove flicker when navigating sidebar#376

Merged
asheshgoplani merged 1 commit intoasheshgoplani:mainfrom
naps62:feature/dont-shift
Mar 26, 2026
Merged

remove flicker when navigating sidebar#376
asheshgoplani merged 1 commit intoasheshgoplani:mainfrom
naps62:feature/dont-shift

Conversation

@naps62
Copy link
Copy Markdown
Contributor

@naps62 naps62 commented Mar 18, 2026

remove the 1-char shift that happens when navigating the sidebar, due to the number disappearing when hovering a session

this is a UI annoyance only

Copilot AI review requested due to automatic review settings March 18, 2026 15:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the left sidebar’s group-row rendering to avoid a visual “shift” by keeping the root group hotkey indicator visible even when the group is selected.

Changes:

  • Always render the root group hotkey indicator (1–9) regardless of selection state.
  • Update the related inline comment to match the new behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +9139 to 9141
if item.Level == 0 {
if item.RootGroupNum >= 1 && item.RootGroupNum <= 9 {
hotkeyStr = GroupHotkeyStyle.Render(fmt.Sprintf("%d·", item.RootGroupNum))
Comment on lines +9136 to 9142
// Hotkey indicator (subtle, only for root groups)
// Uses pre-computed RootGroupNum from rebuildFlatItems() - O(1) lookup instead of O(n) loop
hotkeyStr := ""
if item.Level == 0 && !selected {
if item.Level == 0 {
if item.RootGroupNum >= 1 && item.RootGroupNum <= 9 {
hotkeyStr = GroupHotkeyStyle.Render(fmt.Sprintf("%d·", item.RootGroupNum))
}
@naps62 naps62 changed the title feat: add auto_create worktree config option remove flicker when navigating sidebar Mar 18, 2026
@naps62 naps62 force-pushed the feature/dont-shift branch from f0e6275 to 01db686 Compare March 19, 2026 17:27
Steven17D pushed a commit to Steven17D/agent-deck that referenced this pull request Mar 25, 2026
@asheshgoplani asheshgoplani merged commit ccfb9f4 into asheshgoplani:main Mar 26, 2026
Steven17D pushed a commit to Steven17D/agent-deck that referenced this pull request Mar 28, 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.

3 participants