Files
openchamber/packages
JovinesandJovines 7582db6df6 fix(mobile): sync project switch with draft target state (#1307)
When a new session draft is open on mobile and the user switches
projects via the ProjectBar, the draft target was not updated,
causing a mismatch with the desktop project/branch selectors.

handleProjectSwitch now mirrors the desktop handleDraftProjectChange:
when a draft is open, it uses setActiveProjectIdOnly +
setNewSessionDraftTarget instead of setActiveProject. The draft is
also guarded against preserveDirectoryOverride to prevent
overwriting a worktree-locked directory.

When no draft is open, the original setActiveProject behavior is
preserved.

Co-authored-by: Jovines <jovines@qq.com>
2026-05-18 17:54:54 +03:00
..
2026-05-18 01:01:31 +03:00
2026-05-18 01:01:31 +03:00
2026-05-18 01:01:31 +03:00
2026-05-18 01:01:31 +03:00