The plugin_manager description now says that an applied change is in
effect and needs no restart, so models stop inferring restart needs
from other evidence.
Refs #8614
* 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.
The service held a table of the two DeepSeek route ids, which are ids of
its consumers. connect() now takes the provider route its plugin
registers, and routeKind() answers the kind connected under that id, so
the service names no route.
A conversation recorded on deepseek-account or deepseek-official whose
route plugin is not mounted is ordered as any other route: the API key,
then the account sign-in. Before, such a conversation tried only the API
key. With both route plugins mounted the order is unchanged.
dsh-credentials stores and reads credentials, and its unusableApiKeyMessage
named the Models page, a page of its consumers. The package keeps
normalizeApiKey, which answers the trimmed key or the reason a key cannot
be used, and exports no diagnostic text.
DeepSeek request authentication and llm-pi-ai each word the failure for
that reason. Both texts are unchanged, and each caller's tests assert its
text in full.
- Name the model-visible page limits once and derive the schema text from them.
- Type the intermediate Session rows and make list_workspace's execute async.
- Document that blank Sessions are listed and that unscoped listing has unit
coverage only.
- State that the Workspace registry adds no model-visible surface of its own
while the optional listing tools expose its metadata.
- SessionReferenceResolver injects sessions and sessionProjections, which
sessionQuery now requires; its absent-registry label branch is unreachable
and is removed.
- The translator paid fixture mounts the projection registry beside its
SQLite query service.
- dsh-tool-session-list follows the master release version 0.2.2-rc.3.
Address review on #8238:
- Replace the Workspace.sessionHeaders property with getSessionHeaders(). The
public contract states only membership and order; the in-memory header index
is documented on the implementation.
- SessionQueryEngine now injects sessionProjections, registers the
sessionListMetadata projection in Service.init, and exposes
getListMetadata(session). Disposing the service releases the registration.
The Session API and list_session read metadata through ctx.sessionQuery;
registerSessionListMetadata and the passed reader closure are removed.
- SqliteSessionQueryEngine injects sessionProjections and chains Service.init.
- Tests: a newly attached Session appears in a later getSessionHeaders()
result; query-service disposal removes the projection; test query services
run Service.init; projection-order expectations follow the new registration
order.
The minimal compositions in the dsh-llm, dsh-web, and dsh-tool-web READMEs
mount a DeepSeek route or the DeepSeek web backend, which start only beside
the authentication service. Each example gains its row and one sentence
that says why.
The decision record said both web providers report a route whose settings
do not resolve as WEB_PROVIDER_MISCONFIGURED. Messages search reports
WEB_PROVIDER_ERROR, and only the Search and Fetch APIs word their failures
from the candidates.
The upgrade guide again states that the account route plugin owns the
sign-out cancellation and that the account package drops its dsh-agent and
dsh-llm peer dependencies.
The graph still drew the web providers' edges to dsh-llm, the account
service, and the launch environment, which they dropped when they began to
ask ctx.deepseekAuth.
The config catalog listed the two DeepSeek web providers without their
deepseekAuth injection, and the persistence catalog and the event table
pointed at line numbers of dsh-llm sources from before the credential
types left them. The capability seam table listed the web providers as
consumers of ctx.llm, ctx.credentials, and ctx.deepseekAccount; with
ctx.deepseekAuth between them, the consumers of those three services are
the loop and compaction, the authentication service and pi-ai, and the
authentication service and the account route.
Persisted type digests are unchanged: the persistence catalog diff is
source line numbers only.
The decision record and the upgrade guide described credentials that each
DeepSeek model route published through ctx.llm.providerCredential(). The
routes, the Search and Fetch APIs, and Messages search ask ctx.deepseekAuth
instead, so both documents describe that service: who orders the two
credential kinds, where each kind's deployment comes from, what a consumer
declares, and which alternatives lost. Both take the name of the subject
they cover.
The upgrade guide adds the steps this change asks of a composition: mount
@deepseek-ai/dsh-deepseek-auth beside any DeepSeek route or web provider,
and take the key check from @deepseek-ai/dsh-credentials.
Five older decision records and nine package READMEs still said that routes
publish credentials, that consumers read keys themselves, or that a request
credential carries a bare value. They state the current mechanism, and the
model service README drops the source-map row of the key check that moved
to dsh-credentials.
AccountRequestCredential carried the bare token beside the request headers for
the route credential grant that ctx.deepseekAuth replaced. Its only caller,
ctx.deepseekAuth, forwards the headers, the sign-out signal, and reject(), so
the field has no reader left. Test stand-ins and the billing snapshot fixture
stop supplying it.
Issue: #8255
The two DeepSeek route plugins read their own credential and published it through `ctx.llm.providerCredential()` for the web providers. Those providers now ask `ctx.deepseekAuth`, so nothing reads the publication. Each route asks the same service for the credential of its own requests: the API-key route for its key in `x-api-key`, the account route for the account sign-in, both for destinations under the origin of the route's base URL.
`LlmAdapter.providerCredential()`, `LlmRuntime.providerCredential()`, `ProviderCredential`, `ProviderCredentialGrant`, and `LlmCredentialKind` are removed from `dsh-llm`, and the `credential` option and `DeepSeekProviderCredentialOptions` from the DeepSeek transport. `DeepSeekRequestAuth` keeps the headers, the withdrawal signal, and the failure callback; its bare `value` and `reject` served only the publication.
The API-key route reports an unusable key as `INVALID_CREDENTIAL` with the text it had. Tests of the publication are replaced by tests of the deployment each route connects.
Both route plugins now require the DeepSeek authentication service and connect the deployment their settings name: the API-key route its base URL and key reference, the account route its base URL. Other DeepSeek consumers will bind each credential kind to that deployment through the service.
The `base` and `sdk-minimal` bundles mount the service, and the SDK server mounts it with its fallback route when the composition has none. Tests that mount a route plugin by hand mount the service first; the pinned row list of the `sdk-minimal` bundle gains the `deepseek-auth` row.
DeepSeek APIs accept the API key, the account sign-in, or both, and gain account authentication one API at a time. `ctx.deepseekAuth` gives every consumer one operation: the consumer names the kinds its API accepts and the billing its settings choose, and the service orders the kinds, binds each to the deployment its credential belongs to, and releases the request headers of the first kind that has a credential.
Model route plugins connect the deployment their settings name. Without a connection the API key is `DEEPSEEK_API_KEY` at the official API and the account sign-in goes to the deployment `DEEPSEEK_BASE_URL` names. The service depends on the credential store and, optionally, the account service, and on no consumer. Nothing consumes it yet.
Brings master (through feat/session-panel) into this branch. Master changed
controls this branch had moved into the Session panel, so its changes are
carried over to their new homes:
- Jobs: master hides the stop control without `job/kill` access in the
header list this branch removed; the panel's Background jobs section now
reads `useAccess('job/kill')` the same way.
- Forge: master takes the sign-in command from the provider
(`readiness.signIn`) in the sidebar tab this branch removed; the panel's
sign-in row now does, for any code host, instead of building a GitHub
command itself.
- Agent team: the team settings pane and its copy from master, with this
branch's Shared tasks section registration.
- Tests: master's helpers for the team settings pane and its numbered
reference helper are combined with this branch's panel steps; the
status fixture gains master's `completionFailed`.
- READMEs of ui-agent-team and client-ui-forge are merged sentence by
sentence; generated catalogs, the persistence schema, and pairing
records are regenerated.
The upgrade guide moves to docs/upgrade-guide/v0.2.2-rc.3, the root
version after master's release.