The checkout row asks for an automatic refresh on mount, which now precedes the
deferred follow, so the Host found no panel and the client throttled the next
refresh. A refresh asked for before the first panel state now waits for it.
A change request staged for a Session that leaves the store is forgotten.
The panel follow resolved its Session argument by resuming the Agent while the
main view was still opening the same Session, so the Host read the Session log
twice. The follow stream now holds a forgePanel Session reference and waits for
the Session's history to open before following. refresh, reviewStage, and
worktreeCleanup only need the identity, so they take a SessionId and no longer
resume an Agent; worktrees.cleanupOf takes the id as well.
The page's twelve files sat in the flat src/client directory beside the changes view's Review* files, which draw
review comments and are unrelated to the page. They move to src/client/review-page; only import paths change. The
README's file table gains the folder and the Host's list reader.
The menu listed the repositories the shown lists name. Lists read in one repository name only that one, so choosing a
repository left the menu with a single entry, and another repository took a detour through All repositories. The page
now records the repositories of the lists read in every repository and keeps offering them, with the chosen one
marked. While no such read has finished, the menu says that the lists are still read.
The fold of the review summary's checks and reviewers blocks drew the section header's chevron, right when folded and
down when listing everything, beside a label that says to fold. It now points down to list and up to fold, as the
Session panel's fold does.
The summary drew the rows of the Session panel's expanded card in one bordered box, indented for a card title that
is not there. It now shows a column of blocks: the merge state, the checks that need attention with the rerun and a
fold that lists every check by group, each reviewer with the review request, and the changed lines with the linked
issues. The blocks reuse the card's rows, check grouping, complete-checks read, and review-request menu items, which
ChangeRequestOverview and ChangeRequestCard now export.
Master added removal with undo for saved review comments. The changes view keeps both that and the review page's
quote copy, and the review page's changes face reports notices through the notice store directly, as the Session
panel's face now does.
The list column showed plain blocks until its first frame and one block per unread list. It now draws rows laid out
as the items of the reader's view, detailed or compact, with the fill and pulse of the changes view's reading state,
so the column keeps its geometry when the items arrive.
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.
* fix(forge): remove saved comment cards from the changes view
A comment added to the main input left a card beside its code that the
reader could not remove, also after its code changed or its file left
the diff. The card's menu now offers Remove for a reference and for a
publication receipt; the notice that follows offers Undo, which puts the
card back at its place. Removing a card changes neither the main input
nor the code host.
The three browser-kept cards share the thread card's geometry and its
header menu. A browser draft's Edit and Delete move into the menu, its
deletion asks first, and its move into the pending review is named Start
review while the user has none, as the comment form names it. The card
title "Your comment" is gone: the header shows the lines and the state.
* fix(forge): keep a draft's Delete while it is edited and let the view name each notice's tone
A browser draft being edited hid its menu, so a draft whose text the
reader emptied could be neither finished nor deleted. The menu now stays
during editing and offers Delete, which asks first as before.
The changes view passed its notices to a per-mount function that chose
the tone from a list of keys and forwarded the undo action. A second
mount with its own copy of that function would show a removal as a
failure without Undo. The view now passes the tone and the undo action
with each notice, and the mount hands them to the notice store as given.
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.
Brings in master and the required onWorkspaceSelected callback of conversation.content.
Adaptations:
- The review chat handles a picked Workspace itself: it connects the Workspace's blank, keeps only the latest pick of
the conversation still shown, moves the draft while both Sessions are retained, and reports a failed connection.
- The compact list title uses the shared MarqueeText instead of the title marquee this stack carried.
- Master moved the change request cards into the Session panel: the review detail reuses the card's merge action and
rows and draws its own ready-for-review action, and keeps its own Refresh status label.
* feat(client): retain recent sessions and skip conversation folding while unrendered
* docs(notes): state that attention-protected recent views are unbounded
* refactor(ui-workspace): derive recent views from visit order and make the limit configurable
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.
* refactor(session-controller): report facet counts through retainInfo instead of SessionBinding
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.
* feat(client): keep drafts with a connectionless Session hold and fold only the last page on return
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.
* refactor(session-controller): share retain-info counting with the test fixture
* fix(client): keep gap repair, disconnect, and recent-view counting correct while Sessions are buffered
- 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.
* fix(session-controller): consume an arrived older page before buffering the window
* feat(ui-workspace): sync the recent-view limit from the Host Config
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.
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.
The sandbox policy derived a linked checkout's shared Git directory from its
`.git` pointer and granted it. That put Git worktree knowledge and a
worktree-only entry (`prepare`) into a generic service. The policy now bounds
a Session by its directory and adds only configured directories and those a
Host plugin registered through `registerWritableRoot`; relative to the lower
branch its source changes in one place, the root it reads.
- `prepare`, the derivation state, its three listeners, and
`src/linked-checkout.ts` are removed.
- The worktree service creates under the Session's policy as on the lower
branch; removal and restoration swap the root for the source checkout. The
forge panel's blocker reads the Session's root alone.
- A Session that works in a linked worktree cannot write the repository's Git
directory under workspace-write without a grant. Tests pin the denial and
that a registered grant admits creation, restoration, and a commit.
Granting the Git directory of the checkout a Session works in is left to a
separate plugin that reads the layout and registers the directory.
The owner gateway worker runs `process.execPath`, which the Desktop shell
resolves to the Electron binary. Electron selects Node mode from
`ELECTRON_RUN_AS_NODE`, and the spawn forwarded only transport variables, so
the worker started as a second GUI application that the shell's single-instance
lock ended with exit code 0 before any worker code ran. Every share stayed
unregistered, and the supervisor kept starting replacements.
Forward the Host's own Node mode with the spawn. A plain Node Host has no mode
to forward and keeps its current environment.
The spec hardcoded a live horizon of 2026-11-14, which the host compares
with Date.now(), so it failed from that date on.
Fixes#8465
Co-authored-by: Turtle <[email protected]>
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.
The inbox listener of the forge panel held a turn for every inserted
message. A notice queued for the next step, such as the approval policy
notice that follows a switch to or from full access, opens no turn, so
the hold only created the requested worktree before any message was
sent. The same listener started the removed-worktree check for such
notices.
Hold only for a message in the next-turn queue. A steered message that
wakes an idle Agent keeps the creation at the first step proposal.