Skip to content

fix(session): reselect live session after archive - #675

Merged
mohitranka merged 1 commit into
mainfrom
fix/investigate-archive-context
Sep 14, 2026
Merged

mohitranka merged 1 commit into
mainfrom
fix/investigate-archive-context

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Archiving the selected session left internal selection on the hidden archived row while the navigator cursor fell back to index 0, so context and navigation disagreed.

  • Supervisor ArchiveSession now moves durable selection to first active session and emits Selected (mirrors remove path).
  • TUI Roster now treats Archived/Removed as non-live for selection fallback and chrome filtering.
  • Extends d_archives_an_idle_managed_session to select-then-archive and assert selection lands on a live session.

Validation:

  • cargo test --package forge-tui --locked multi_task
  • cargo test --package forge-session --locked archive
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings

Archiving the selected session left selection pointed at the hidden archived row while the navigator cursor fell back to index 0. Supervisor now moves durable selection to the first active session and emits Selected; TUI treats archived/removed roster rows as non-live for fallback.
@mohitranka
mohitranka merged commit dc76718 into main Sep 14, 2026
3 checks passed
@mohitranka
mohitranka deleted the fix/investigate-archive-context branch September 14, 2026 14:45
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