A panel row laid its trailing content, such as a count, before the 38px it keeps for the unpin action, so the content
sat away from the row's end with an empty gap after it. Where the pointer hovers, the unpin action shows only on hover
or keyboard focus, so the content now rests in the action's place and gives way to it, as a Session row's time gives
way to its actions. On a touch device the action always shows and the content stays before it.
The summary route serves the directory the turn started in, and the
changed-files card and review tab resolve listed paths against it instead of
the directory the Session works in when they are read.
The forge worktree option counts the policy's additional writable roots when
it checks that the common Git directory is writable.
The connection row's trustedHosts expression reads webStartup, which the
worker preview never provides; resolving its raw Config before activation
threw on every graph composition and logged a console error.
Move shortcuts, account notifications, Models onboarding, document preview,
account contact, and connection recovery off their own webserver/index-inject
page globals onto top-level volatile Config fields that reach each browser face
as SyncedConfig. Keep cordis.yml keys and defaults, keep a typed Host config
parameter so the config catalog still lists these packages (also restoring
ui-context-menu), and regenerate catalogs.
The content factory took an optional onWorkspaceSession and otherwise opened the picked Workspace as the main
Session itself. Every occurrence now passes onWorkspaceSelected(workspaceId, adopt): the main shell and the subagent
Sidebar chat pass Workspace navigation's openWorkspace, so their behavior is unchanged, and an embedded owner shows
the Session itself and calls adopt to move the draft in the step that shows it. The content keeps only the draft
move; the latest-pick check and the failure notice it carried for embedded owners move to those owners.
recentViewLimit becomes a volatile field of the ui-workspace Host Config
(z.natural().default(10)). The browser receives it through synced plugin
configuration, and RecentSessionViews reconciles whenever it changes, so a
cordis.yml edit takes effect without a page reload. Until a value arrives,
every counted recent view is kept.
The package gains a Host compiler face: src/types.ts holds the shared
Config type, tsconfig.host.json and tsconfig.client.json replace the single
Client config, and every reference names the face it compiles against.
- Only page reads before the window take buffered records; a live gap repair
reads the Host.
- A resync whose teardown a disconnect interrupted stays cold.
- A Session the main view already retains takes no recent-view slot before
show(), so losing its unread protection during retention evicts nothing.
- Buffering marks the window partial, so the start-of-history marker survives
after the buffer runs out.
Session references gain connection (true by default). When no reference keeps
it, the Session disconnects and empties its window while keeping its scope.
When the last facet is released, the Session keeps only its last Turn-aligned
page visible and its event stream buffers the older records, answering page
reads from that buffer before the Host. BoundConversation folds only while the
conversation facet is retained and drops its fold on release. The input hub
holds a Session with { source: 'draft', connection: false } while its draft has
attachments, replacing the root-level draft-attachment ownership; reload marks
remain.
SessionBinding stays unchanged; SessionRetainInfo gains optional retainedFacets
counts beside retainedBy, and owners derive their facet from retainInfo and the
current binding. Adds the upgrade guide for Client plugins that render a Session
they retain, and updates two web e2e expectations: a recently viewed Session now
keeps its right Sidebar view state when the main view returns to it.
Recent views now hold exactly the Sessions one idempotent sync() selects from
the visit order and current snapshots, so navigation reports the shown Session
once and the main-view Session never counts. A failed Conversation resumption
leaves the binding stale so the next window change rebuilds the whole window.
Replace the observable SessionInput.referenceInsertionAllowed with
canInsertReferences(), a read that addReferences rechecks before editing.
The file context menu now observes only the locale; a draft that becomes
uneditable while the menu stays open reports failure on selection. The
input facade reads Session and composer-block facts through plain
functions, matching the quote-insertion dependency.
SessionInputShell now receives the Session and composer-block sources
directly and evaluates removal, subagent mode, and blocks in one private
check shared by quote insertion and referenceInsertionAllowed. The
separate draft-editability helper is removed.
Review of the consumers layer:
- `SandboxPolicyRequest.root` is removed. `resolve` answers only for a Session.
`prepare` accepts a Session or a checkout directory and returns that
checkout's validated Git administration directories. The worktree service
builds the policy of removal and restoration itself: the Session's mode and
grants, the source checkout as the root, and that checkout's derived
directories. The forge panel swaps the root for its two reads of the source
repository.
- The Git layout reads move to `src/linked-checkout.ts` with direct tests; the
security rationale stays in the README, which the function comment links.
- `resolve` and the model-visible policy share one merge of configured,
registered, and derived writable roots.
- `workspace-files` takes a live Session's root from the sandbox policy instead
of repeating its fallback chain.
- `TurnRecorder` takes a fixed directory and an explicit `moveTo`, which the
plugin calls on `workspace-root/change`; each turn keeps its own canonical
paths.
A real-sandbox test restores a missing worktree of a linked source checkout in
a process that never worked in it.