This repository has no description

dsh-plugins fix-workspace-multiple-writers: note the cross-instance session reuse trap master

Clicking a workspace in a second instance can open a session the first instance owns, and the first prompt then fails with `SessionAlreadyOwnedError`. Records the mechanism: `connectWorkspace` returns an existing session id instead of creating one whenever its scan matches, the `blank` term in that scan is the client's conservative local mirror rather than the session's real state, and `workspace.sessionIds` — which this plugin is what makes cross processes — supplies the eligibility. Notes that a session log has exactly one live writer, that the trap is reachable without this plugin at all because the workspace account is loaded from the shared store at boot, that archiving the peer's session is the workaround, and where the fix belongs.


Author Yuto Nishida Committer Tangled Date Commit 1b950fdb Parent 8bcda0c1 Change ID yxlstsoq
+29
1 changed file