Commit Graph
25627 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 c65519b92a Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers 2026-11-04 15:49:56 +08:00
LegGasai 3d3f1bd170 test(snapshots): price a fixed-length root in every compaction scenario
The three compaction scenarios that cd outside the root now print a
Workspace root line, so their shadowed token count followed the length of
the platform's temporary directory. They share the fixed-length temporary
root compaction-recovery already used; their fixtures are refreshed to the
platform-independent count. The Web controller's canonical-header test
compares with the native realpath the filesystem service produces.
2026-11-04 15:47:50 +08:00
LegGasai dfff0da675 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers
# Conflicts:
#	.agents/notes/implemented/architecture/2026-11-03-session-workspace-root.i18n.yaml
#	.agents/notes/implemented/architecture/2026-11-03-session-workspace-root.md
#	.agents/notes/implemented/architecture/2026-11-03-session-workspace-root.zh.md
#	docs/subsystems/working-directory.i18n.yaml
#	packages/session/working-directory/README.i18n.yaml
#	packages/session/working-directory/README.md
#	packages/session/working-directory/README.zh.md
2026-11-04 13:56:03 +08:00
LegGasai 215ed13d0b fix(working-directory): record canonical project directories and anchor the recovery destination
Producers record the Session header directory by its canonical spelling:
ACP session/new, the SDK server, and the Web controller resolve the
requested directory through the execution-world filesystem before
creating the Session, so the canonical paths later directory changes
record compare with the header lexically. The directory service registers
the deployment fallback as the first anchor of a Session without a
recorded project, on its first validation or before its first relocation,
and registers a recovery destination that no anchor contains. A root
therefore no longer stays on a checkout that disappeared, and a header
spelled through a symlink recovers onto the canonical project.

Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836433
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836528
2026-11-04 13:54:03 +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 1f12cbc99b Revert "fix(sandbox-policy): import within from dsh-util-workspace-path"
This reverts commit 99fe2c9fc12ea6c9c76113d3778e6b6b1727a35f.
2026-11-04 11:56:46 +08:00
LegGasai 84c40e3747 fix(forge): keep a local within for the Host face
client-ui-forge is a client-host package, so the dependency policy
refuses an unclassified runtime value import of within from
dsh-working-directory. The three-line lexical containment test returns
to worktree.ts; index.ts and panel.ts import it from there and keep the
type-only import of the directory service. dsh-working-directory still
exports within for pure Host consumers such as the subagent manager.

Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836492
2026-11-04 11:54:59 +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 2e21412a93 fix(sandbox-policy): import within from dsh-util-workspace-path
The parent branch moved the lexical containment helper out of
dsh-working-directory; the sandbox policy follows it and keeps only the
type augmentation import of the directory service.
2026-11-04 11:36: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 954d0c5f31 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers
# Conflicts:
#	.agents/notes/implemented/architecture/2026-11-03-session-workspace-root.i18n.yaml
2026-11-04 11:05:44 +08:00
LegGasai 20383ff779 docs(worktree): state the longest-anchor rule and the missing-consumers limitation
The worktree module comment, README, and subsystem page describe creation as a
relocation that registers the checkout as an anchor, which the longest-anchor
rule then selects as the root. The working-directory README records that
workspaceRoot has no consumer yet.

Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836541
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836557
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836518
2026-11-04 11:02:48 +08:00
LegGasai 0289252c8a fix(subagent): relocate a child only into a registered parent anchor
A parent without a recorded project reports the deployment fallback as its
root; the child relocated into it and registered a directory that is no
checkout. Require the parent's root to be one of its anchors. The captured
child directory now carries the canonical spelling the directory service
records, so a symlinked explicit cwd inside the parent's checkout still
relocates. The subagent README and the workspace-root note state the
longest-anchor rule and that a child registers only the parent's current root.

Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836468
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836458
Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836518
2026-11-04 11:02:46 +08:00
LegGasai 2c25ae6b23 fix(working-directory): return the committed workspace root from relocate
relocate reported the requested anchor as the root, while the projection
selects the longest registered anchor containing the current directory.
The two differ when an original project inside the registered root already
contains the directory. Return rootOf() after the commit and document the
rule on RelocatedDirectories and the method.

Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836504
2026-11-04 11:02:45 +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
Dudu-0223 7c03d2a267 Merge pull request #7772 from deepseek-harness/fix/wait-agent-code-guidance
fix(subagent): prevent repeated wait_agent wakeups within code calls
2026-11-03 17:14:56 +08:00
imccyu 36626c7dfa Merge pull request #7700 from deepseek-harness/refactor/css-anchored-panels
refactor(client): position floating panels with CSS anchors
2026-11-03 15:43:31 +08:00
Magolor d27dc27538 fix(ui-conversation): rebuild the conversation window after a failed incremental flush (#7537)
* fix(ui-conversation): rebuild the conversation window after a failed incremental flush

* fix(ui-conversation): keep the original failure when the rebuild also fails

* test(ui-conversation): type the recovery probe view for type-aware lint

* fix(ui-conversation): finish the rebuild inside flush and report it with ConversationUpdateError

* test(ci): retain process identity while awaiting runner recovery
2026-11-03 15:37:22 +08:00
imccyu 8bd073392e Merge pull request #7798 from deepseek-harness/worktree-sync-dsh-0.2.2-to-master-1103b
release(dsh): sync 0.2.2-alpha.3 back to master
2026-11-03 15:27:29 +08:00
imccyu 24db102f15 release(dsh): align master packages with 0.2.2-alpha.3 2026-11-03 15:13:20 +08:00
imccyu f590c13c92 Merge master into worktree-sync-dsh-0.2.2-to-master-1103b 2026-11-03 15:10:23 +08:00
Dudu-0223 0d18d256c3 Merge master and simplify wait_agent input guidance 2026-11-03 14:51:55 +08:00
Dudu-0223 19e5a95802 Merge pull request #7773 from deepseek-harness/feat/sdk-team-mode
feat(team): support enabling Team mode through SDK Cordis patches
2026-11-03 14:32:04 +08:00
imccyu 41ef8c47a3 Merge pull request #7790 from deepseek-harness/worktree-release-vendor-0.2.2-alpha.3
release(vendor): prepare alpha.2 packages for DSH 0.2.2-alpha.3
2026-11-03 14:27:17 +08:00
Stevring 82b953acc5 Merge master into refactor/css-anchored-panels 2026-11-03 14:26:17 +08:00
Dudu-0223 f2c8c243e7 Merge master and refresh the MCP wait_agent snapshot 2026-11-03 14:23:51 +08:00
imccyu 05b1cae8db release(vendor): cordis 4.0.6-alpha.2, cosmokit 1.8.7-alpha.2, group 1.0.6-alpha.2, hmr 1.0.21-alpha.2, include 1.0.11-alpha.2, loader 1.0.7-alpha.2, logger-console 1.0.6-alpha.2, schemastery 3.18.6-alpha.2, timer 1.1.8-alpha.2 dsh-v0.2.2-alpha.3 2026-11-03 14:19:06 +08:00
Dudu-0223 8223beef55 docs(subagent): explain wait input delivery after code execution 2026-11-03 14:14:56 +08:00
imccyu c18851aa30 Merge pull request #7780 from deepseek-harness/worktree-sync-dsh-0.2.2-to-master-1103
release(dsh): sync release/dsh-0.2.2 back to master (#7704)
2026-11-03 14:07:24 +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
Dudu-0223 8c523d9be1 refactor(team): remove startup step-history guard 2026-11-03 14:06:44 +08:00
winewill ece8f7cb77 Merge pull request #7495 from deepseek-harness/feat/desktop-update-channels
feat(desktop): 在设置中切换更新渠道
2026-11-03 14:03:04 +08:00
imccyu b3f1904e86 Merge pull request #7724 from deepseek-harness/worktree-release-dsh-0.2.2-alpha.3
release(dsh): 0.2.2-alpha.3
2026-11-03 13:55:35 +08:00
imccyu f26f308e5e Merge pull request #7768 from deepseek-harness/fix/goal-shutdown-pause
fix(goal-round-driver): keep a running goal active when its agent is disposed
2026-11-03 05:52:48 +00:00
gengruilin 385879882c test(mcp): refresh the template snapshot for master's read and web_search guidance 2026-11-03 13:52:46 +08:00
Dudu-0223 dd9719f67a fix(team): initialize configured mode before child activation ownership 2026-11-03 13:39:02 +08:00
gengruilin d9d3b80fe3 Merge remote-tracking branch 'origin/master' into feat/mcp-manager-core 2026-11-03 13:37:58 +08:00
imccyu 1c78d475bf release(dsh): 0.2.2-alpha.3 2026-11-03 13:37:26 +08:00
imccyu c08621b991 Merge master into worktree-sync-dsh-0.2.2-to-master-1103 2026-11-03 13:32:45 +08:00
Stevring 0667efe813 Merge master into refactor/css-anchored-panels 2026-11-03 13:32:06 +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
Dudu-0223 a3baa4d6e4 Merge remote-tracking branch 'origin/master' into feat/sdk-team-mode
# Conflicts:
#	docs/persistence-schema.json
2026-11-03 13:29:41 +08:00
Dudu-0223 0cb47b9d03 fix(subagent): integrate root-call scoped wait protection
Integrate PR #7774 with one-shot code guidance and matching snapshots. Cover distinct nested call IDs sharing a root and concurrent model calls with pending input.
2026-11-03 13:29:33 +08:00
winewill 3c46127816 Merge remote-tracking branch 'origin/master' into feat/desktop-update-channels 2026-11-03 13:20:42 +08:00