Skip to content

fix(session): moving a window into a saved-only session no longer loses its windows - #145

Open
bsommers wants to merge 2 commits into
mainfrom
fix/drawer-m1-move-and-last-session
Open

bsommers wants to merge 2 commits into
mainfrom
fix/drawer-m1-move-and-last-session

Conversation

@bsommers

Copy link
Copy Markdown
Owner

Root cause R3 in docs/plans/drawer-session-model.md: move_window_to_session built an empty background session for a session that exists only on disk, then overwrote its layout. Now hydrates the target first and rolls back on failure. tests/session_move_saved_target.rs (3 of 4 fail before). verify PASS 218/218. Also carries the plan doc commit.

🤖 Generated with Claude Code

bsommers and others added 2 commits November 20, 2026 14:54
…d-session

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
move_window_to_session built an empty BackgroundSessionState for a session that
existed only on disk and overwrote its layout, losing the saved windows. Restore
it through the normal restore path first; on failure the source is untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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