Commit Graph
7872 Commits
Author SHA1 Message Date
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 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
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 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
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
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
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
Shigma a85b27fdd4 fix(cordis): address loader rc.9 review and CI findings 2026-11-16 15:46:58 +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
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
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
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
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 cb92e8d6cf Merge remote-tracking branch 'origin/master' into turtle/clean-empty-catch-69cac4a2ccee 2026-11-16 12:01:22 +08:00
Turtleandoraluben 79487993e7 docs(sidebar-right): describe the scrolling Start guide; restore the e2e viewport in finally
Co-authored-by: oraluben <[email protected]>
2026-11-16 10:51:22 +08:00
Turtleandoraluben 00b9fef246 fix(sidebar-right): pad the scrolling Start guide and cover it in e2e
Co-authored-by: oraluben <[email protected]>
2026-11-16 10:40:18 +08:00
LegGasai 1d200479dc refactor(primitives): place compact hover cards by CSS anchor positioning
The compact card's side and bottom hold were computed in script from the
window size and the anchor's rect, measured again after the card mounted, and
kept current by scroll and resize listeners. The stylesheet now anchors the
card to its wrapper: beside the end edge, else the start edge, each also with
the card's bottom held at the viewport's margin.

A card that fits on neither side used to sit over its anchor, which left the
row under it unclickable. It now opens below the anchor from the anchor's
start edge, or above it; a card too tall for either stays in the viewport's
bottom end corner.
2026-11-15 18:34:14 +08:00
LegGasai 26a0c6ae02 test(web): count the marquee's frame callbacks without an unknown cast
The sidebar marquee test kept its frame counter on window through an
assertion to unknown, which the no-unknown-casts gate rejects.
2026-11-15 18:07:36 +08:00
LegGasai bc75e0ed84 perf(primitives): carry the hover marquee by a CSS animation instead of a frame script
The marquee moved its text by setting the scroll position in a
requestAnimationFrame callback on every frame of the travel. The text now
sits in an inner span that a keyframe animation translates: the handler
measures the overflow once on entry and gives the stylesheet the distance and
the time it takes at 30px/s. A delayed zero-length animation lifts the end
fade at the far edge, and reduced motion is a media query. Speed, the far-edge
hold, the one-step return, the 8px threshold, and the touch exclusion stay.
2026-11-15 17:26:29 +08:00
LegGasai 0277971e87 refactor(session-panel): offer row hover details as a panel Factory with data props
The details a panel row shows in its hover card took React nodes for the
title, lines, and measure icons and lived in ui-primitives. The three lists
pass strings for the first two and one of two icons, so the component moves
to ui-session-panel as the conversation.session.panel.details Component
Factory: props are data, and a measure names its kind, which selects the icon.
2026-11-15 17:04:30 +08:00
LegGasai e66b080437 feat(jobs): fold each job group past five rows, newest live jobs first
The Background jobs section showed every live job and, once nothing ran,
every settled one, which filled the panel. Each of its two groups now
shows five rows followed by the panel's fold control, "Show N more
running" or "Show N more finished", once that holds back two rows or
more. Each fold is kept per Session, across hiding the panel, and Clear
folds the settled group to five rows again.

Live rows now list the most recently started job first instead of the
earliest, so the rows a group holds back are the ones that have run
longest, not the ones that just started.

An expanded row observes its output only while its row shows: folding it
out of the list, or closing the settled group over it, stops the stream,
and showing the row again reopens it.
2026-11-15 16:22:36 +08:00
LegGasai 66bf0a7178 feat(agent-team): order shared tasks by state and fold the list past five
The Shared tasks section listed every task in source order, so completed
tasks often came first and a long plan filled the panel. It now lists the
tasks in progress, then the pending ones, each in source order, then the
completed ones with the latest in source order first, and shows five
tasks followed by the panel's fold control once that holds back two tasks
or more. The fold is kept per Session, across hiding the panel.

A task carries no completion time, so source order stands in for it
among the completed tasks. The recorded task list moves the completed
task after the pending ones.
2026-11-15 16:22:35 +08:00
LegGasai d4519bb470 feat(subagent): list running subagents first and fold the list past five rows
The Subagents section listed every direct subagent in creation order, so
a Session with many of them filled the panel and put the newest at the
bottom. It now lists running subagents first, the most recently started
first, then the others by their Session's last update, and shows five
rows followed by the panel's fold control once that holds back two rows
or more. The fold is kept per Session, across hiding the panel; an
expanded branch's own rows all show.

A subagent sorts by when its parent created it while the Client holds no
turn timing for it, or only the stand-in row of a Session outside the
Host list, whose update time is 0. The e2e found that case: catalog-only
members all tied at 0 and kept creation order.
2026-11-15 16:22:34 +08:00
LegGasai 6df95fd991 feat(session-panel): offer a fold control for long panel lists
A section's list could grow without bound and push the later sections
out of the panel's height. The panel now offers the control such lists
end with as the `conversation.session.panel.fold` Component Factory: one
more row of the list that shows the rows held back or folds them again.

The control takes data and a callback only: whether the list shows every
row, the visible text and accessible name for that state, and the toggle.
It renders a row on the panel's row marks, `data-session-panel-row="fold"`,
in the 12px tertiary type of the section counts with a 14px chevron in
the icon column. Each section keeps its fold state and decides which rows
show.

A Factory fits here although rows are contributor markup: the control is
the same in every section, and three copies of it would be clones.
2026-11-15 16:22:11 +08:00
LegGasai 46cf27ce35 fix(session-panel): keep a row highlighted only for its own open menu
A panel row stayed highlighted while anything inside it carried
aria-expanded="true". The rule means a row's open menu, so it now names
the menu part: a body button that discloses something else highlights its
row on hover alone.

The layout e2e opens the working folder row's menu in the real app and
checks that the row keeps its highlight and its More button after the
pointer leaves for the menu.
2026-11-15 16:21:55 +08:00
LegGasai 99e03fb7b2 Merge remote-tracking branch 'origin/master' into feat/session-panel-sections
The base branch (#7965) is merged, so this branch now targets master.
Conflicts came from #8452 in the forge changes view:

- ChangedFiles.tsx: this branch's Row component (hover marquee, rename
  tooltip) takes master's viewed state: the subdued class, its
  description for assistive technology, and `done` down the tree.
- ReviewControls.tsx: master keeps every segment's Tooltip mounted; this
  branch's 500ms hover delay stays on it.
- ChangesTab.module.css: master's gap-step rules stay; the local changes
  card's rules stay removed, as the card moved into the Session panel.
- The forge README is merged sentence by sentence and its pairing
  record re-recorded.
2026-11-15 15:26:50 +08:00
LegGasai eaf815665a Merge pull request #7965 from deepseek-harness/feat/session-panel
feat(panel): add the floating Session panel
2026-11-15 15:20:08 +08:00
LegGasai d4d9756917 Merge branch 'master' into fix/forge-changes-view-feedback 2026-11-15 13:25:51 +08:00
LegGasai bd99b1e062 Merge branch 'feat/session-panel' into feat/session-panel-sections
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.
2026-11-15 13:00:24 +08:00
LegGasai ae7adb5d47 Merge remote-tracking branch 'origin/master' into feat/session-panel
Conflicts were all in generated files and pairing records: the config
catalog, the dsh-doc package list, and the README records of
packages/client and ui-conversation. Each takes master's side and is then
regenerated, so it differs from master only by this branch's entries.

Also in this merge:
- ui-session-panel follows master's release to 0.2.2-rc.3, and the
  lockfile is master's plus this package.
- The web-fetch-failure-row header capture, added on master, gains the
  Session panel toggle.
2026-11-15 12:27:49 +08:00
LegGasai da656af683 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers 2026-11-13 20:55:46 +08:00
LegGasai 40e107f3cb Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
master replaced `cordis_inspect_list` and `cordis_inspect_query` with
`cordis_inspect`, which changed the same tool lists this branch edits. The
conflicted recordings take master's side and drop `working_directory` again:
`advanced-toolchain` and the two Web recommendation scenarios by refresh, the
six Python single-file runtime logs by removing the one list entry. The Web
collapse-timing count is 33.
2026-11-13 20:55:02 +08:00
LegGasai bc8544140a Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers
Brings `enter_worktree`. This layer adds a real-sandbox test: entering an
existing worktree under read-only policy runs only confined read commands and
moves the write boundary to the worktree, and leaving moves it back. The
boundary upgrade guide names the new tool.
2026-11-13 20:30:20 +08:00
LegGasai c64862545f Merge branch 'feat/session-panel' into feat/session-panel-sections
The panel's row Factory is gone on the base branch: rows share their look
through `data-session-panel-row` and `data-row-part` marks that the
panel's stylesheet lays out. This merge carries the rows of this branch
over to it:

- The two-line row moves from PanelRow's stylesheet into the panel's row
  rules as the `lines` and `detail` parts.
- The forge checkout, connection, local changes, and sign-in rows write
  their own marked markup instead of calling the Factory; the connection
  row, the local changes row, and the change requests section no longer
  take `renderFactorySlot`.
- The forge e2e measures the local changes and checkout rows in the real
  panel.
2026-11-13 20:22:32 +08:00