Commit Graph
27626 Commits
Author SHA1 Message Date
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 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
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
_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
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
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
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
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
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
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 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
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
Dudu-0223 c4cc4a1594 refactor(subagent): check empty route fields with a per-field hasText predicate
Match the per-tool, per-field rule from the unambiguous tool argument
decision and record the subagent case there.

Refs #8523
2026-11-16 14:03:52 +08:00
LegGasai ada1b30e89 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers
Brings the merged `enter_worktree` tool. The decision note keeps this layer's
consequences and the parent's wording for the tool, and the boundary upgrade
guide names `enter_worktree` where it named `create_worktree`.
2026-11-16 13:43:58 +08:00
Dudu-0223 1f2bd4d33c test(subagent): record empty route fields and the discovery hint through the SDK profile
Share empty-string handling between subagent and list_subagent_models, and
simplify the reasoning_effort description.

Refs #8523
2026-11-16 13:32:41 +08:00
LegGasai 33371b069e feat(worktree)!: merge create_worktree into enter_worktree
The model has one tool for entering a worktree, as Claude Code's
EnterWorktree: `enter_worktree({ name?, from? })`. When the pool of the
checkout the Session is in holds a registered worktree of that name, the call
enters it and changes neither Git state nor files. Otherwise it creates a new
branch and checkout from `from`, HEAD by default, and enters it. `from` asks
for a new worktree, so it fails with `WORKTREE_ALREADY_EXISTS` when the name is
taken; a call without a name always creates one. The result adds `created`.

`create_worktree` is removed. `ctx.worktrees.create` and `enter` keep their
behavior: the tool calls `enter` first and `create` only on
`WORKTREE_NOT_FOUND`, so Host callers such as the forge panel still create.

The upgrade guide `create-worktree-tool-merged` covers the removed tool name.
2026-11-16 13:32:27 +08:00
Dudu-0223 01aafcb4e9 docs(session): address remaining list tool review notes
- 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.
2026-11-16 13:25:42 +08:00
Dudu-0223 a65aacaa6a fix(session): follow sessionQuery's projection dependency and rc.3 version
- 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.
2026-11-16 13:21:21 +08:00
Dudu-0223 1851e875f4 feat(tool-session-list): show complete call arguments on tool cards
list_session showed only workspace_id and list_workspace showed no input, so
calls that differ in archived, limit, or offset rendered identical cards.
2026-11-16 13:07:46 +08:00
Dudu-0223 198efd16f6 fix(subagent): say when to set child route fields and where provider ids come from
Refs #8523
2026-11-16 13:04:48 +08:00
Turtle f08cd7c4b1 Merge pull request #8529 from deepseek-harness/turtle/shrink-delete-task-dialog-d75d0c08f86f
fix(ui-schedule): clamp the task instruction in the delete confirmation
2026-11-16 12:40:25 +08:00
Dudu-0223 a977522f4e Merge remote-tracking branch 'origin/master' into pr8238-review
# Conflicts:
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	docs/persistence-catalog.i18n.yaml
#	docs/persistence-catalog.md
#	docs/persistence-catalog.zh.md
#	docs/persistence-schema.json
#	docs/tool-catalog.i18n.yaml
#	packages/api/session-controller/tests/listeners.host.spec.ts
#	packages/api/session-controller/tests/state-controller.host.spec.ts
#	packages/api/session-controller/tests/transport.host.spec.ts
#	scripts/product-package-policy.ts
2026-11-16 12:34:08 +08:00
Turtle 843fc0fa24 Merge pull request #8428 from deepseek-harness/turtle/clean-empty-catch-69cac4a2ccee
fix: retire the legacy empty-catch baseline
2026-11-16 12:16:11 +08:00
Turtle 56bcba2574 test(ui-schedule): assert every declaration the prompt clamp needs 2026-11-16 12:09:13 +08:00
Turtle e65560503a Merge pull request #8518 from deepseek-harness/turtle/fix-sidebar-scroll-c22e7e84e865
fix(sidebar-right): scroll the Start guide in a short pane
2026-11-16 12:05:47 +08:00
Turtle 909e6533f8 fix(ui-schedule): clamp the task instruction in the delete confirmation
A long instruction stretched the delete confirmation to nearly the full
viewport. Show it as a three-line secondary excerpt instead.

Refs #8453
2026-11-16 12:03:25 +08:00
Turtle cb92e8d6cf Merge remote-tracking branch 'origin/master' into turtle/clean-empty-catch-69cac4a2ccee 2026-11-16 12:01:22 +08:00
Dudu-0223 79015b174c refactor(session): move list metadata to sessionQuery and query Workspace headers
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.
2026-11-16 11:59:34 +08:00
Dudu-0223 42849bcf42 test(subagent): expect the list_subagent_models hint in SDK effort-only rejection 2026-11-16 11:32:27 +08:00