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.
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.
The package entry now default-exports the Host Service
`ctx.upstreamSkills` and exports only types. A CLI app plugin calls
`register` once with its entry skill and pinned upstream files; the
Service downloads the files, lists the entry skill through `ctx.skills`,
and withdraws both when the plugin unloads.
`skillsUrls` and `skillsTimeoutMs` are Service settings; `skillsDir`
stays a key of each plugin, passed in its registration. The base bundle
loads the Service, so the package gains locale metadata and leaves the
library and optional-package lists. Snapshot compositions that disable
the skill registry disable this row too.
The package entry now default-exports the Host Service `ctx.cliAccounts`
and exports only types. A CLI app plugin calls `register` once with its
CLI, account, and Plugins page text; the Service adds the CLI path to
runtime context, runs the account operations, registers the account on
the Plugins page, and withdraws all of it when the plugin unloads.
`commandTimeoutMs` is one Service setting. The base bundle loads the
Service, so the package gains locale metadata and leaves the library
and optional-package lists.
* feat(forge): name worktree branches, start them from remote branches, and show changes being read
The New Session worktree option's base menu now searches local branches and
each remote's branches, pins the current branch and every remote's default
branch, and names each remote group by its repository. Its last row opens a
dialog that names the new branch, starting from `worktreePrefix` and checking
Git's branch-name rules; the Host refuses an invalid or taken name. A request
records the full ref of its base and the optional name; every attempt uses the
name.
A remote-tracking base is fetched first: the worktree service gains a
`fetch` request field and a `fetch` phase, fetching only that branch without
tags. A failed fetch leaves the message waiting with Retry, Use the last
fetched version, and Continue without a worktree; a taken name offers Rename.
While the changes view reads changes it has not shown yet, it says
"Reading changes" above file card placeholders, and the files menu names no
count.
* fix(worktree): forward only the declared create_worktree arguments
The create_worktree parameter object is open, and the tool passed it to the
worktree runtime unchanged. Now that a runtime request can ask to fetch, an
undeclared `fetch: true` from the model would have fetched, or refused a local
`from`. The tool now forwards only `name` and `from`, so it never fetches.
* docs(forge): say that only generated worktree branch names come from the Session id
* fix(forge): keep the collapsed change request status on one line
In the Session panel the collapsed card's number line kept every part at
full width inside a clipping row, so a narrow panel cut the most urgent
flag off without an ellipsis, such as "有冲突" after "3 项检查失败".
The number and status now form one MarqueeText line as wide as the row.
While the line with failed checks does not fit, they take the shorter
wording without their count; a line that still does not fit ends in an
ellipsis and crawls into view with the title while the pointer rests on
the card's head. The line measures again when its width or the fonts
change. Expanded cards keep their branch names as before.
* fix(forge): hide remote credentials and read the branch a tag shares its name with
The base menu named an unrecognized remote's group by its fetch URL as
`git remote -v` prints it, so a token in the URL, such as
`https://oauth2:[email protected]/...`, reached the browser and showed
in the menu. The group now shows the URL without its user name and password.
Inspection read the checked-out branch with `symbolic-ref --short HEAD`,
which prints `heads/main` while a tag is also named `main`; the New Session
option then requested `refs/heads/heads/main` and every worktree attempt
failed. Inspection now reads the full ref and takes the name under
`refs/heads/`, so the option, the pinned current branch, and the checkout
row name `main`. HEAD that names a ref outside `refs/heads/` reads as no
branch.
* test(worktree): set up nested remotes and line endings the CI runners' Git accepts
Git 2.55 on the CI runners refuses `git remote add team` next to an
existing `team/fork` remote; the check runs only in `git remote add`, so
the longest-remote case now writes the second remote with `git config`, as
configuration written earlier or by hand holds it. The test clone also
turns off `core.autocrlf`, as `repository` does, because the Windows
runner's global setting checked the fetched file out with CRLF.
`get(session)` is the only read of a Session's directory again. `rootOf` and
the `workspaceRoot` projection are removed: the directory relative paths
resolve from is the workspace root.
The difference the second read expressed lives in the `workingDirectory` fold.
`workspace-root/change`, the event Host moves record, sets the directory. A
stored `working-directory/change`, whose directory the model could choose, sets
it only when the directory lies inside the Session's original project; a
directory outside the project returns the Session to the project, and the next
request's context reports it. The fold state gains the original project, so
its state version is 2. The forge worktree fold reads stored changes by the
same rule.
The subagent manager resolves a child's directory as on master. The compaction
snapshot fixture records its fixed directory as a Host move.
master moved the `workingDirectory` projection-key declaration to
`src/types.ts`; this branch's `workspaceRoot` key follows it there. The three
recorded scenarios master added (`session-list-tools`,
`computer-use-cua-driver-mcp-ptc`, `sdk/subagent-dsh-sdk-empty-route`) drop the
removed `working_directory` tool and the delegation `cwd` parameter from their
sidecars.
The generator mounts the DeepSeek Search and Fetch provider beside the web
tools. That provider requires ctx.deepseekAuth, so without the service it
never started. The generator mounts the service first.
The generated tool catalog is unchanged: the web tools' schemas do not
depend on which provider is registered.
Replace the per-message human prefix with one sentence in the child delegation context, so direct human messages keep their original content in logs, UI, titles and exports.