Skip to content

fix(ui): stabilize agent pane index display#102

Draft
TechDufus wants to merge 1 commit intomainfrom
task/agent-count-bug
Draft

fix(ui): stabilize agent pane index display#102
TechDufus wants to merge 1 commit intomainfrom
task/agent-count-bug

Conversation

@TechDufus
Copy link
Copy Markdown
Owner

Summary

The [X/Y] pane indicator in the agent view header was flickering because Go map iteration order is non-deterministic. Sorting pane IDs ensures consistent ordering across renders.

Changes

  • Sort running pane IDs before calculating the focused pane's position
  • Use slices.Sort for deterministic ordering

Test Plan

  • Built successfully with go build ./...
  • All tests pass with go test ./...
  • Manual verification: the pane indicator now shows stable values instead of flickering

The [X/Y] pane indicator in the agent view header was flickering because
Go map iteration order is non-deterministic. Sorting pane IDs before
calculating the index ensures consistent ordering across renders.
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