Skip to content

fix(worktree): handle historical session toggles - #1818

Merged
bobleer merged 2 commits into
GCWing:mainfrom
bobleer:bob/fix-worktree-session-toggle
Jul 28, 2026
Merged

fix(worktree): handle historical session toggles#1818
bobleer merged 2 commits into
GCWing:mainfrom
bobleer:bob/fix-worktree-session-toggle

Conversation

@bobleer

@bobleer bobleer commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • locate view-only persisted sessions by their owning project and restore empty sessions before rebinding
  • reject sessions with history or active processing at the final session mutation lock, with safe worktree rollback
  • serialize each complete session binding transition so concurrent callers cannot create competing worktrees
  • keep the desktop toggle synchronized after historical hydration and coalesce repeated clicks
  • preserve structured worktree errors so the UI never renders [object Object]
  • apply the same history guard and project locator in CLI, and accept Windows-style home-relative worktree roots

This is a follow-up to #1815.

Verification

  • cargo test -p bitfun-core execution_binding --lib
  • cargo test -p bitfun-core service::worktree --lib
  • cargo test -p bitfun-cli worktree --bin bitfun
  • cargo test -p bitfun-services-integrations --features git git::managed_worktree::tests --lib
  • cargo check --workspace
  • cargo check -p bitfun-desktop
  • pnpm run lint:web
  • pnpm run type-check:web
  • focused Vitest suite: 26 tests
  • pnpm run check:repo-hygiene

@bobleer
bobleer merged commit f7b9199 into GCWing:main Jul 28, 2026
7 checks passed
1688mengdie pushed a commit to 1688mengdie/BitFun that referenced this pull request Jul 28, 2026
* fix(worktree): handle historical session toggles

* fix(worktree): serialize session binding transitions
1688mengdie pushed a commit to 1688mengdie/BitFun that referenced this pull request Jul 28, 2026
* fix(worktree): handle historical session toggles

* fix(worktree): serialize session binding transitions
1688mengdie pushed a commit to 1688mengdie/BitFun that referenced this pull request Jul 28, 2026
* fix(worktree): handle historical session toggles

* fix(worktree): serialize session binding transitions
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