Skip to content

Fix tab ordering across multiple instances#143

Merged
andyrewlee merged 1 commit intomainfrom
tab-ordering
Feb 1, 2026
Merged

Fix tab ordering across multiple instances#143
andyrewlee merged 1 commit intomainfrom
tab-ordering

Conversation

@andyrewlee
Copy link
Copy Markdown
Owner

@andyrewlee andyrewlee commented Feb 1, 2026

Pre-create tabs as placeholders synchronously in persisted order, then attach to tmux sessions asynchronously via the existing reattach pattern. This ensures tabs always appear in the same order regardless of which goroutine completes first.

  • Add addPlaceholderTab() and reattachToSession() helpers
  • Replace createAgentTabWithSession in RestoreTabsFromWorkspace/AddTabsFromWorkspace
  • Sort discovered tmux tabs by @amux_created_at timestamp
  • Persist CreatedAt in TabInfo for stable ordering across restarts
  • Fix scrollback prepend for placeholder tabs on reattach

Open with Devin

Pre-create tabs as placeholders synchronously in persisted order, then
attach to tmux sessions asynchronously via the existing reattach pattern.
This ensures tabs always appear in the same order regardless of which
goroutine completes first.

- Add addPlaceholderTab() and reattachToSession() helpers
- Replace createAgentTabWithSession in RestoreTabsFromWorkspace/AddTabsFromWorkspace
- Sort discovered tmux tabs by @amux_created_at timestamp
- Persist CreatedAt in TabInfo for stable ordering across restarts
- Fix scrollback prepend for placeholder tabs on reattach

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 5 additional flags.

Open in Devin Review

@andyrewlee andyrewlee merged commit 133e263 into main Feb 1, 2026
1 check passed
@andyrewlee andyrewlee deleted the tab-ordering branch February 1, 2026 20:53
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