Skip to content

fix(ui): respect sort order; add 'status' sort mode#108

Merged
hyldmo merged 3 commits into
mainfrom
hyldmo/stable-tab-order
May 6, 2026
Merged

fix(ui): respect sort order; add 'status' sort mode#108
hyldmo merged 3 commits into
mainfrom
hyldmo/stable-tab-order

Conversation

@hyldmo
Copy link
Copy Markdown
Owner

@hyldmo hyldmo commented May 6, 2026

Summary

  • Tabs were unconditionally reordered to push terminal-state processes (finished/stopped/failed/skipped) to the bottom, overriding sort: 'config' (and 'alphabetical' / 'topological').
  • Reordering now only applies under a new sort: 'status' mode. Existing explicit sort modes preserve their order strictly.
  • Updated README and CLI help to list the new mode.

Test plan

  • bun run typecheck
  • bun test (670 passing)
  • Added validator test: sort: 'status' is preserved
  • Added manager test: sort: 'status' returns config order (reorder happens in TabBar)
  • Existing getDisplayOrder helper tests retained — still drives 'status' mode

🤖 Generated with Claude Code

hyldmo and others added 3 commits May 6, 2026 11:18
Tabs were always reordered to push terminal-state processes (finished,
stopped, failed, skipped) to the bottom, overriding sort: 'config' (and
'alphabetical'/'topological'). Reordering now only applies under the new
sort: 'status' mode; explicit sort modes preserve their order strictly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyldmo hyldmo merged commit 1e3cc3e into main May 6, 2026
2 checks passed
@hyldmo hyldmo deleted the hyldmo/stable-tab-order branch May 6, 2026 09:38
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🎉 This PR is included in version 2.16.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant