Commit Graph
27672 Commits
Author SHA1 Message Date
LegGasai e3cd2edebf refactor(sandbox-policy): resolve policies only for Sessions; callers build maintenance policies
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.
2026-11-17 15:09:22 +08:00
LegGasai 0ae2613c98 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers
The lower branch merged master, which added a fetch of the remote base branch
to worktree creation. On this branch a Session opened in a linked checkout can
create worktrees, and the fetch writes the Git directory that checkout shares
outside its root. The fetch now runs under the policy resolved after
`prepare`, which grants that directory, as the later writes do. A real-sandbox
test fetches from a linked checkout.
2026-11-17 12:00:08 +08:00
LegGasai 53168773c2 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/persistence-schema.json
2026-11-17 11:35:50 +08:00
LegGasai 2decbbc718 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
# Conflicts:
#	docs/subsystems/worktrees.i18n.yaml
#	packages/experimental/client-ui-forge/README.i18n.yaml
#	packages/experimental/client-ui-forge/README.md
#	packages/experimental/client-ui-forge/README.zh.md
#	packages/experimental/client-ui-forge/src/worktree.ts
#	packages/experimental/tool-worktree/README.i18n.yaml
#	packages/experimental/tool-worktree/README.md
#	packages/experimental/tool-worktree/README.zh.md
#	packages/experimental/tool-worktree/src/index.ts
#	packages/experimental/tool-worktree/tests/loader-composition.spec.ts
#	packages/experimental/worktree/README.i18n.yaml
2026-11-17 11:25:21 +08:00
LegGasai 58d8ccc11f Merge pull request #8256 from deepseek-harness/refactor/llm-route-credential
refactor(llm): publish DeepSeek route credentials through ctx.llm
2026-11-17 11:09:59 +08:00
imccyu 20b83df745 Merge pull request #8445 from deepseek-harness/chore/cordis-loader-rc9
chore(cordis): sync loader 1.0.0-rc.9 and include 1.2.0
2026-11-17 10:51:08 +08:00
LegGasai c12f7ff609 test(terminal-bash): give Sessions without a header directory the sandbox root as their directory default
The sandbox policy bounds a Session by `ctx.workingDirectory.get`. Two tests
resolve the policy for a Session that records no directory and expect the
configured sandbox root, while their directory fixture defaulted to the launch
directory. The fixture now uses the same root, as a deployment that sets the
sandbox `workspaceRoot` sets the directory service's `defaultDirectory`.
2026-11-17 01:14:19 +08:00
LegGasai 0c8078e196 feat(forge): name worktree branches, start them from remote branches, and show changes being read (#8536)
* 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.
2026-11-16 16:13:00 +00:00
LegGasai efd4c8e44c Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers
The lower branch now ignores stored `working-directory/change` events. On this
branch the sandbox test asserts that such an event moves neither the directory
nor the write boundary, the boundary upgrade guide says so again, and the
working-directory README drops the limitation about stored subdirectories.
2026-11-16 23:54:27 +08:00
Shigma 0fcc29cee0 fix(app-boot): apply the requested platform's path rules to include filenames 2026-11-16 23:52:08 +08:00
LegGasai ad70a73280 feat(working-directory): ignore stored working-directory/change events
Earlier releases recorded both a model's `cd` and an entered worktree as
`working-directory/change`, and a log cannot tell them apart. The fold kept
such a directory when it lay inside the Session's original project. That let a
stored `cd` into a subdirectory narrow the workspace once consumers follow the
directory, and dropped a worktree outside the directory a Session was opened in.

Readers now ignore the event: a stored Session resumes in its original project,
or in the directory of its last `workspace-root/change`, and returns to a
worktree through `enter_worktree`. The fold state is the directory alone (state
version 3), and the forge worktree fold reads only `workspace-root/change`
(state version 7). Tests and Web fixtures that simulated a Host move with the
old event record `workspace-root/change`.
2026-11-16 23:34:54 +08:00
LegGasai 7f7033b9a4 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers 2026-11-16 22:43:54 +08:00
LegGasai 5dfdf834d7 fix(session-controller): adopt a named Session requested through a symlinked directory
`session.create` records the canonical spelling of the project directory in the
Session header, and compared a later request's own spelling with it. A second
request for the same explicit Session id through a symlinked path, such as a
macOS temporary directory, failed with `session/conflict`.

The check now accepts the recorded spelling or one whose canonical form the
header records. The ACP image-offload expectation compares the model-visible
directory with the canonical spelling of the scenario directory.
2026-11-16 22:43:00 +08:00
LegGasai c9b9859b74 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers
The lower branch removed `rootOf` and the `workspaceRoot` projection: a Session
has one directory, read through `ctx.workingDirectory.get`. This merge moves the
consumers of this branch to that read.

- sandbox-policy, workspace-files, and workspace-changes read `get`; the
  `recordedRootOf` read is removed. With the working-directory service mounted,
  a Session without a header directory is bounded by that service's default
  directory.
- The skill catalog, sidebar terminals, project instructions, `@` file
  candidates, the LSP workspace, and skill lookup return to the lower branch's
  code, which already reads the directory.
- The client helper exports `selectSessionDirectory` and `sessionDirectory`
  in place of the `{ root, cwd }` pair; `WorkspaceChangesSummary` keeps `cwd`,
  now the directory the turn started in.
- A stored `working-directory/change` inside the project moves the write
  boundary and file views with the directory; one outside returns to the project.
2026-11-16 22:33:13 +08:00
LegGasai f9513796b8 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root 2026-11-16 21:36:56 +08:00
LegGasai 328d6204a8 refactor(working-directory): converge on one directory read
`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.
2026-11-16 21:36:30 +08:00
LegGasai d36dbee3d6 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	packages/web/web-deepseek-api/src/index.ts
2026-11-16 21:23:43 +08:00
_Kerman cd0252b813 Merge pull request #8289 from deepseek-harness/xtr/content-to-text
refactor(llm): 统一内容块文本提取
2026-11-16 20:58:31 +08:00
_Kerman 9e8b32e3f1 Merge master and preserve forge command rules during text extraction 2026-11-16 20:29:36 +08:00
Ziya ffea1cb57a Merge pull request #8540 from deepseek-harness/feat/schedule-weekly-review-recommendation
feat(ui-schedule): recommend a weekly review task
2026-11-16 04:17:38 -08:00
Shigma 11f155707f chore(cordis): backport include unresolved-alias locations from upstream 2026-11-16 19:59:42 +08:00
ZiyaZhang 8cbd73efff feat(ui-schedule): scope the weekly review to the user's own work
The weekly review request now asks for what the user did in the current
workspace this week. In a code repository it looks only at the user's
commits this week and the pull requests the user opened that merged this
week or are still open, instead of every commit and pull request in the
repository. The tile description follows the same scope in all eight
languages.
2026-11-16 03:48:59 -08:00
Huo Yaoyuan 077a9cde0b feat(cua): add toggleMouse with initial Windows support (#8425)
* feat(cua-windows): implement window-level mouse button toggles

* Update guidance

* Fix prompt test
2026-11-16 18:10:15 +08:00
Shigma a99b811912 Merge remote-tracking branch 'origin/master' into chore/cordis-loader-rc9
# Conflicts:
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
2026-11-16 18:05:14 +08:00
LegGasai 23734da2b6 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
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.
2026-11-16 17:59:21 +08:00
Shigma db36473372 fix(app-boot): resolve drive-letter include paths as Include does 2026-11-16 17:55:56 +08:00
Dudu-0223 b94bebc75d Merge pull request #8238 from deepseek-harness/feat/session-list-tools
feat(session): add read-only workspace and session list tools
2026-11-16 17:53:24 +08:00
Dudu-0223 b8642db2bc Merge master and refresh tool catalog pairing record 2026-11-16 17:41:12 +08:00
Dudu-0223 f70ec1ac46 Merge pull request #8348 from deepseek-harness/feat/subagent-report-guidance
feat(subagent): tell delegated agents to report results with send_message
2026-11-16 09:35:17 +00:00
Shigma 897de8769b fix(app-boot): audit rejected entry options and isolate dump snapshots 2026-11-16 17:11:48 +08:00
Dudu-0223 0204d50e37 fix(tool-session-list): keep list_workspace execute synchronous
An async arrow without await fails the type-aware require-await lint rule.
2026-11-16 16:57:00 +08:00
Ruilin Geng 3bb841937b Merge pull request #8080 from deepseek-harness/feat/connector-accounts
feat(connector-account): 插件页连接器账号共用的 Host 注册表与界面
2026-11-16 16:54:50 +08:00
Turtle 44c38200d8 Merge pull request #8550 from deepseek-harness/turtle/add-stale-pr-action-ca3ec638c590
feat(ci): close pull requests after 21 days without activity
2026-11-16 16:43:55 +08:00
imccyu ba7563301c Merge pull request #8450 from deepseek-harness/fix/composer-draft-attachments-switch
fix(client): keep composer draft attachments across session switches
2026-11-16 16:32:23 +08:00
Turtle e8473dbb60 fix(ci): require a closing notice and retry failed closes 2026-11-16 16:06:37 +08:00
Turtle 00dcb5ec10 fix(ci): close stale pull requests before commenting 2026-11-16 15:56:40 +08:00
Turtle d245f8e285 feat(ci): close pull requests after 21 days without activity
Refs #8432
2026-11-16 15:55:46 +08:00
Shigma a85b27fdd4 fix(cordis): address loader rc.9 review and CI findings 2026-11-16 15:46:58 +08:00
gengruilin 1e4b19e78e chore(connector-account): match the root version 0.2.2-rc.3 2026-11-16 15:35:37 +08:00
gengruilin 88c0f6710a Merge remote-tracking branch 'origin/master' into feat/connector-accounts
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/capability-seams.md
#	docs/capability-seams.zh.md
#	packages/bundle/web-app/cordis.patch.yml
#	packages/client/README.i18n.yaml
#	packages/experimental/liveshare/src/endpoint-classification.ts
2026-11-16 15:33:50 +08:00
Shigma dd892782af Merge remote-tracking branch 'origin/master' into chore/cordis-loader-rc9 2026-11-16 15:32:28 +08:00
ZiyaZhang 3e42e0f617 feat(ui-schedule): recommend a weekly review task
The empty automation page lists an eighth built-in recommendation,
Weekly review, after Daily brief. Its request asks for a Friday 16:00
task that reviews the week's changes in the current workspace, lists
unfinished work and what to do first next week, covers commits and pull
requests when the workspace is a code repository, and summarizes in the
conversation without changing workspace files. Its tile draws a
calendar with a check in the style of the other glyphs, and the copy
covers all eight UI languages.
2026-11-15 23:26:13 -08:00
gengruilin 6bb530211a refactor(connector-account): type the face from the generated Remote and return its results
`ConnectorAccountsRemote` repeated the signatures typert generates for
`ctx.remote.connectorAccounts`, and `settle` turned a failed Remote result
back into a rejection. The face now types `start` and `cancel` from
`ClientRemote['connectorAccounts']` and returns the Remote result. The
buttons read `ok` and report a failed result or a rejected call as the
failure notice, so the page behaves as before.
2026-11-16 15:26:01 +08:00
mektpoy 89ee384d4b docs(notes): cite issue #5070 as plain text in the draft attachment note 2026-11-16 15:17:55 +08:00
mektpoy 65543a5f87 fix(client): release only submitted draft attachments on composer teardown
- Host 接受消息后,附件立即退出会话归属,注册表仍保留到回显结算;
  切回不再把已发出的附件放回输入框,刷新标记也不再误报。
- 输入框退役时只在「消息或命令已经提交」时释放附件;被中止的斜杠行裁决
  不会发出消息,附件随草稿保留。
2026-11-16 15:17:55 +08:00
mektpoy df7a21330c fix(client): keep draft attachments across session switches
切到另一个会话再切回时,附件栏被清空而文字保留(#5070):会话 scope 销毁时
会释放退役输入框持有的全部附件并回收图片预览。

- ConversationController 记录每个草稿附件所属的会话;退役的输入框只在发送在途
  或会话已删除时释放附件,其余情况保留登记,下一个输入框按顺序接回。
- 切走期间上传照常进行,失败的上传切回后仍可原位重试。
- 没有挂载输入框时被删除的会话,由 hub 的会话目录监听释放其附件。
- 刷新不恢复附件:pagehide 时为仍持有附件的会话写标记,重新挂载且没有已登记附件时
  提示「部分草稿附件已失效,请重新添加」;往返缓存恢复时清除标记。
2026-11-16 15:17:55 +08:00
LegGasai a1c0299977 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential 2026-11-16 15:17:39 +08:00
LegGasai 251e3300a4 Merge pull request #7990 from deepseek-harness/feat/session-panel-sections
feat(panel): move change requests, jobs, and subagents into the Session panel
2026-11-16 14:45:47 +08:00
LegGasai 8eda7cfb7c Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	scripts/empty-catch.baseline.json
2026-11-16 14:36:05 +08:00
Dudu-0223 8be1b3f5b1 Merge pull request #8524 from deepseek-harness/fix/subagent-empty-route-fields
fix(subagent): accept empty route fields and clarify child model selection guidance
2026-11-16 14:22:40 +08:00