Commit Graph
5374 Commits
Author SHA1 Message Date
LegGasai dac3cfc231 refactor(working-directory): single root accessor, extras helper, and review follow-ups
workingDirectory.recordedRootOf returns the recorded root without the
deployment fallback, so sandbox-policy and workspace-files share one
"root, else header, else own fallback" rule instead of comparing anchor
counts. dsh-sandbox exports additionalWritableRoots, the canonical extra
roots beside the workspace, which sandbox-local uses for ACEs and runner
arguments instead of slicing workspaceWritableRoots. sandbox-policy keeps
a local within and reads working-directory as a type-only dependency; its
derivation filter dedupes before dropping nested candidates. tool-skill
validates the directory before reading the root, as the other root
consumers do. The capability graph names api-workspace-files and
api-terminal-controller so their nodes link, the workspace-changes README
states the per-turn repository and root, the workspace-files solution
tsconfig keeps only its face references, and the terminal spawn comment
states that the root is read after validation.

Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796752
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796760
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796781
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796818
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796826
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796841
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796849
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796855
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796861
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796879
2026-11-04 18:09:50 +08:00
LegGasai bb078f4e2b fix(workspace-files): expose the Session scope as a service method and repair the consumer gates
ui-deliverables and the desktop host resolve a Session's workspace file
scope through workspaceFiles.scopeOf instead of a cross-package value
import, which the dependency policy refuses for a client-host package; the
two type-only peers of workspace-files become devDependencies. The
sidebar-files fixture builds a complete SessionListState instead of an
unknown assertion, and the testkit directory fixture reports no anchor for
a Session without a recorded directory, so the sandbox policy falls back to
its configured root as the real service does.
2026-11-04 15:59:59 +08:00
LegGasai 3f199a1a1b Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers 2026-11-04 11:56:46 +08:00
LegGasai b898ff01a8 Revert "fix(working-directory): move within into dsh-util-workspace-path"
This reverts commit 8b4e2d8deb1612100eb8b49a1d78d6ab1ff85973.
2026-11-04 11:51:51 +08:00
LegGasai e2792a01a6 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers 2026-11-04 11:34:30 +08:00
LegGasai 58ee5a6edf fix(working-directory): move within into dsh-util-workspace-path
forge's Host code imported within from dsh-working-directory, a runtime
value edge the dependency policy refuses for a client-host package. The
helper is a stateless lexical containment test, so it now lives in the
browser-safe workspace-path utility, which joins duplicateSafePackages;
the directory service, the subagent manager, and forge import it from
there and carry the utility as an ordinary dependency.

Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836492
2026-11-04 11:33:17 +08:00
LegGasai b6aa7b437c feat(working-directory): route sandbox, file views, and discovery through the Session workspace root
Every consumer that describes the project to the user or draws the write
boundary reads rootOf(session) instead of the header directory: the sandbox
workspace-write policy, the workspace file service and desktop file drag, the
change recorder, the client Files tree, deliverables, open-in-app actions and
Session rows, new sidebar terminals, @ file candidates, the skill catalog,
project-instruction discovery, and the LSP workspace. The model's relative
paths keep resolving from the current directory.

The sandbox policy derives a linked checkout's Git administration directory
and common directory from its .git pointer and grants them as extra writable
roots; tool executions wait for that derivation through prepare(), and
Session creation and directory changes start it early. Windows ACL
confinement grants each extra root a standing ACE through a repeatable
--writable runner argument instead of refusing the policy.

Refs #2658
2026-11-03 18:49:34 +08:00
LegGasai a657b6b187 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/subsystems/worktrees.i18n.yaml
#	docs/subsystems/worktrees.md
#	docs/subsystems/worktrees.zh.md
2026-11-03 17:35:24 +08:00
LegGasai a71975faf6 feat(working-directory): add Session workspace roots with anchored relocation
Each Session now has three directories: the immutable original project in
the header, the workspace root, and the current directory. `relocate`
registers an entered checkout as an anchor through the optional `anchor`
of one working-directory/change event, and the new workspaceRoot
projection selects the longest anchor containing the current directory,
so an ordinary cd inside a checkout moves only the cursor while entering
another checkout moves the root with it. A log without anchors keeps the
original project as its only anchor.

Worktree creation relocates instead of setting the directory; a subagent
that starts inside its parent's relocated root inherits that root; the
SDK working-directory methods return the root beside cwd; the user
context names the root while it differs from the current directory, and
a notice that selects another root ends with it. Consumers keep reading
the header or the current directory until a later change moves them.

Refs #2658
2026-11-03 17:24:29 +08:00
Yichen Jiang e2f5686a13 Merge pull request #3372 from deepseek-harness/feat/mcp-manager-core
feat(mcp): 支持插件注册与 Remote 管理的 MCP 服务器
2026-11-03 06:07:04 +00:00
winewill ece8f7cb77 Merge pull request #7495 from deepseek-harness/feat/desktop-update-channels
feat(desktop): 在设置中切换更新渠道
2026-11-03 14:03:04 +08:00
gengruilin d9d3b80fe3 Merge remote-tracking branch 'origin/master' into feat/mcp-manager-core 2026-11-03 13:37:58 +08:00
imccyu 70d9b57f5c Merge pull request #7565 from deepseek-harness/feat/web-search-fetch-settings
feat(web): 网页搜索与获取设置页分开选择 Search 与 Fetch,Search 默认改为 DeepSeek Search API
2026-11-03 13:31:41 +08:00
gengruilin df078ddc82 Merge remote-tracking branch 'origin/master' into feat/mcp-manager-core 2026-11-03 13:31:23 +08:00
winewill 3c46127816 Merge remote-tracking branch 'origin/master' into feat/desktop-update-channels 2026-11-03 13:20:42 +08:00
yudshj 3859913c68 feat(web): 网页搜索与获取设置页分开选择 Search 与 Fetch,Search 默认改为 DeepSeek Search API 2026-11-03 13:04:26 +08:00
winewill cbe275fe99 Keep embedded CLI imports on the carrier module tree 2026-11-03 12:51:08 +08:00
imccyu 06bf7ce024 Revert "fix(settings): show saved API keys and preserve environment detection…"
This reverts commit 9bb49604b63bb5d50e879bcf63c9f5cb2afbd737.
2026-11-03 12:33:44 +08:00
imccyu ef5f28d0fb Merge master into worktree-sync-dsh-0.2.2-to-master 2026-11-03 11:47:40 +08:00
Yichen Jiangandimccyu d721353f86 feat(forge): unify plugin entry for reviews and worktrees (#7721)
* feat(forge): unify the worktree plugin entry and add user previews

* docs(forge): show session-linked GitHub pull requests in preview

* refactor(forge): keep plugin unification out of profile loading

* docs(forge): document manual upgrade to the unified plugin entry

* fix(forge): localize preview descriptions and address review feedback

* test(web): refresh creation recommendation catalog for the forge description

---------

Co-authored-by: imccyu <[email protected]>
2026-11-02 22:34:01 +08:00
gengruilin 30bf5733d6 refactor(mcp-manager): publish the manager as ctx.mcpManager
The `ctx.mcpServers` key reads as a collection of servers, but the
service manages that collection, and ACP already uses `mcpServers` for
a plain server list. Publish the service as `ctx.mcpManager`, matching
the package name, the `mcp-manager/` event prefix, and
`ctx.pluginManager`. Remote endpoints become `mcpManager/*`; the class
keeps its name, McpServerManager.
2026-11-02 21:01:42 +08:00
Xu Hanxiang 4658cba7e0 Merge pull request #7564 from deepseek-harness/fix/http-proxy-http1
fix(liveshare): 客户端优化
2026-11-02 12:59:03 +00:00
imccyuandimccyu 07f2b259e7 ci: run the merge checks on release branches, and fix the ptc-script-imports fixture (#7732)
* ci: run the merge checks on release branches too

All three `Policy` workflows filtered on `master`, so a pull request into `release/dsh-*`
got no `Master Change` and no `Pre-Merge Check`, and its review check only refreshed when
somebody submitted a review. The checks already take their base branch from the event, so
the filters now name the release branches as well.

* ci: limit the release branch filter to x.y.z

`release/dsh-*` also matched prerelease branches such as `release/dsh-0.1.2-alpha.4`;
the filter now spells the version digits, so only `release/dsh-x.y.z` counts.

* test(snapshot): carry the subagent identity section into the ptc-script-imports scenario

The runtime context gained a `subagent:identity` section and every session fixture but
this one was regenerated, so replay failed with a mismatch on the added section.

(cherry picked from commit c7a4119965cb26c69fd8fccbfd703c7d73351742)

---------

Co-authored-by: imccyu <[email protected]>
2026-11-02 20:12:14 +08:00
gengruilin 62c6a2658d Merge remote-tracking branch 'origin/master' into feat/mcp-manager-core 2026-11-02 17:11:12 +08:00
imccyu a25eebc146 Merge pull request #7698 from deepseek-harness/fix/temporarily-disable-apply-patch
fix(fs): set apply_patch to false
2026-11-02 16:53:15 +08:00
Shigma ce18012a52 Merge pull request #6220 from deepseek-harness/chore/cordis-loader-rc11
chore(cordis): complete Loader rc.8 and share upstream Include patches
2026-11-02 16:50:28 +08:00
creatixchu 3def5c9e24 test(fs): pin recorded patch tool and cover configurable defaults 2026-11-02 16:38:56 +08:00
CreatixChu 4eb2118dba Merge pull request #7515 from deepseek-harness/feat/cua-optional-bundle
feat(cua): 随 DSH 分发 Computer Use,并在实验性插件列表中显示
2026-11-02 16:21:57 +08:00
CreatixChu d203f5c418 Merge pull request #7516 from deepseek-harness/feat/cua-desktop-helper
fix(desktop): 随附并独立启动 macOS Computer Use helper
2026-11-02 16:19:16 +08:00
fz 67e2d1e506 fix(python): preserve deployed dependency validation
(cherry picked from commit e18abca88589347975a5866925c590a16f1b2aed)
2026-11-02 16:07:29 +08:00
fz 125fabd8d0 fix(python): deploy the runtime from the workspace lockfile
(cherry picked from commit c2e5f4828ecf698ba17c6b2eab67ff7b3a914d49)
2026-11-02 16:07:28 +08:00
Magolor 8d0c3b4633 fix(settings): show saved API keys and preserve environment detection (#7695)
* fix(settings): show saved API keys in provider editors

* test(settings): retain DeepSeek environment detection states

* fix(settings): classify saved-key reads and align browser expectations

* test(settings): cover saved keys under derived references

* test(settings): verify saved endpoints and keys on provider requests

* fix(settings): preserve credential drafts without changing authentication
2026-11-02 15:00:19 +08:00
creatixchu 7d9bc01a50 Merge updated master and helper identity into bundled Computer Use 2026-11-02 14:58:31 +08:00
creatixchu 4ac71ed747 Merge master with separate development helper identity 2026-11-02 14:55:17 +08:00
gengruilin be167ec989 Merge remote-tracking branch 'origin/master' into feat/mcp-manager-core 2026-11-02 11:43:57 +08:00
creatixchu 8de3a97f8d Merge origin/master into feat/cua-dev-signing 2026-11-02 11:19:00 +08:00
fz eab19efcf8 fix(python): preserve deployed dependency validation 2026-11-01 21:24:41 +08:00
fz a7d0d02146 fix(python): deploy the runtime from the workspace lockfile 2026-11-01 20:31:59 +08:00
Dudu-0223andimccyu 0487699ae4 feat(subagent): share ID-based identity and collaboration guidance (#7519)
* feat(subagent): share identity and collaboration guidance

* fix(subagent): complete shared guidance snapshot expectations

* fix(subagent): match task descriptions to the user language

* refactor(subagent): retain shared guidance with Session ids

* test(subagent): recognize parent ids in shared identity

* Checkpoint ID collaboration guidance generated expectations

* Preserve historical Web schema sidecars

* fix(test-support): preserve job references during snapshot refresh

* test(subagent): refresh ID-only collaboration guidance outputs

* fix(subagent): rely on list_agents tool description

* fix(subagent): keep collaboration guidance consistent with live identity

* test(team): parse parent identity from shared guidance

* test(subagent): address parent from shared identity context

* test(subagent): refresh compiled Web guidance snapshots

* test(subagent): refresh browser collaboration context fixtures

* docs(subagent): attribute required identity to standard controls

* fix(subagent): clarify collaboration identity prompts

* test(subagent): remove duplicate PowerShell collaboration context

* refactor(subagent): match unavailable-root errors by name and code

---------

Co-authored-by: imccyu <[email protected]>
2026-10-31 22:38:07 +08:00
Yifffan a1c3458e12 Merge pull request #7504 from deepseek-harness/feat-agent-teamwork-ui-polish
feat(web): improve agent collaboration panels and tool receipts
2026-10-31 11:10:03 +08:00
Dudu-0223 56e79b50ea Merge branch 'codex/stack-review-6288' into codex/stack-review-7504 2026-10-31 10:41:09 +08:00
Dudu-0223 82095d7f04 Merge branch 'codex/stack-review-6285' into codex/stack-review-6288 2026-10-31 10:40:47 +08:00
Dudu-0223 fe9cd80b28 revert: remove follow-up CI repairs 2026-10-31 10:40:31 +08:00
Dudu-0223 e02701365c Merge branch 'codex/stack-review-6288' into codex/stack-review-7504 2026-10-31 01:10:00 +08:00
Dudu-0223 f3bf53bfc7 Merge branch 'codex/stack-review-6285' into codex/stack-review-6288 2026-10-31 01:09:32 +08:00
Dudu-0223 c948b16d50 fix(ci): scope navigator styles and calibrate streaming budgets 2026-10-31 01:09:03 +08:00
Dudu-0223 45be4c1cb0 Merge branch 'codex/stack-review-6288' into codex/stack-review-7504 2026-10-31 00:38:23 +08:00
Dudu-0223 be1500b4b6 Merge branch 'codex/stack-review-6285' into codex/stack-review-6288 2026-10-31 00:35:45 +08:00
Dudu-0223 141a54efed fix(ci): keep benchmarks on their calibrated hosted runner 2026-10-31 00:31:48 +08:00
Dudu-0223 908005191d Merge branch 'codex/stack-review-6288' into codex/stack-review-7504 2026-10-31 00:15:31 +08:00