feat: per-client active workspace views - #5
Draft
Castrozan wants to merge 1 commit into
Draft
Conversation
Each attached app client now views its own workspace independently instead of mirroring one shared foreground view. A ClientView bundle holds the per-client, workspace-relative state: active and selected workspace by stable id, mode, view geometry, the navigator, the interaction singletons (copy mode, selection, context menu, drag, press tracking), the modal payloads (worktree create/open/remove, rename target, release notes, product announcement, keybind help), the name input, and the per-view scrolls and collapse set. The bundle is saved per ClientConnection and swapped into the single AppState around each client's render and input boundaries, including the resize path before a client is promoted to foreground. Saved views are reconciled against the live workspace set whenever a view is loaded, so workspace removal falls a client back to its selected or the first workspace, and clients attached before the first workspace existed adopt it once created. Server-wide truth (the workspace tree itself, global settings and palette, terminal appearance) stays in shared AppState and is not carried per client.
Castrozanforce-pushed
the
feat/per-client-active-workspace
branch
from
July 12, 2026 20:35
5228b73 to
65d6079Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft preview of the upstream PR against ogulcancelik/herdr. Base branch
upstream-mastermirrors upstream master (4617456), so the diff is exactly the single feature commit and its fix. Makes the active workspace per-client via a ClientView context swap, so each attached terminal gets its own independent workspace view (the tmux model, no shared mirror).