Commit Graph
2447 Commits
Author SHA1 Message Date
imccyu 7e5721d713 Merge pull request #8763 from deepseek-harness/worktree-archive-observe-session
refactor(session-query): remove inspectSession; worktree archive reads through observeSession
2026-11-19 12:45:31 +08:00
imccyu 97c0c5101e fix(forge-panel): run the first automatic refresh once the Host follows the panel
The checkout row asks for an automatic refresh on mount, which now precedes the
deferred follow, so the Host found no panel and the client throttled the next
refresh. A refresh asked for before the first panel state now waits for it.
A change request staged for a Session that leaves the store is forgotten.
2026-11-18 23:55:13 +08:00
imccyu 16072178a9 fix(forge-panel): follow the panel after the Session opens and name cold Sessions by id
The panel follow resolved its Session argument by resuming the Agent while the
main view was still opening the same Session, so the Host read the Session log
twice. The follow stream now holds a forgePanel Session reference and waits for
the Session's history to open before following. refresh, reviewStage, and
worktreeCleanup only need the identity, so they take a SessionId and no longer
resume an Agent; worktrees.cleanupOf takes the id as well.
2026-11-18 23:06:35 +08:00
Huo Yaoyuan f5e2c7db6e feat(cua): add action schema discovery (#8710)
* feat(cua): add action schema discovery

* Update guidance

* Fix prompt test

* Reduce test dependency

* Fix snapshot test
2026-11-18 20:50:54 +08:00
imccyu 26ac56f780 chore(release): align master-only packages to 0.2.2-rc.5 2026-11-18 18:29:39 +08:00
imccyu 30b668495d chore(release): sync release/dsh-0.2.2 0.2.2-rc.5 to master
# Conflicts:
#	packages/client/hmr/package.json
#	packages/client/script-realm-iframe/package.json
#	packages/client/ui-jobs/package.json
#	packages/client/ui-session-panel/package.json
#	packages/experimental/action-cards/package.json
#	packages/experimental/client-ui-forge/package.json
#	packages/experimental/cua-bundle/package.json
#	packages/experimental/forge-gitlab/package.json
#	packages/ptc-runtime/ptc-runtime-node/package.json
#	packages/session/tool-working-directory/package.json
#	packages/util/atomic-write/package.json
2026-11-18 18:26:56 +08:00
imccyu 9bf478edde release(dsh): 0.2.2-rc.5 2026-11-18 17:43:56 +08:00
LegGasai e2427fd922 refactor(forge): keep the code review page's client files in a folder of their own
The page's twelve files sat in the flat src/client directory beside the changes view's Review* files, which draw
review comments and are unrelated to the page. They move to src/client/review-page; only import paths change. The
README's file table gains the folder and the Host's list reader.
2026-11-18 14:43:36 +08:00
LegGasai c7636ed14e fix(forge): keep offering every repository in the review page's repository menu
The menu listed the repositories the shown lists name. Lists read in one repository name only that one, so choosing a
repository left the menu with a single entry, and another repository took a detour through All repositories. The page
now records the repositories of the lists read in every repository and keeps offering them, with the chosen one
marked. While no such read has finished, the menu says that the lists are still read.
2026-11-18 14:07:25 +08:00
LegGasai 9b69c62c90 fix(forge): point the status fold's chevron up when it folds
The fold of the review summary's checks and reviewers blocks drew the section header's chevron, right when folded and
down when listing everything, beside a label that says to fold. It now points down to list and up to fold, as the
Session panel's fold does.
2026-11-18 13:40:39 +08:00
LegGasai 338175acda Merge commit 'bd331686bc1' into worktree/forge-m7-review-page-ee17bf
# Conflicts:
#	packages/experimental/client-ui-forge/README.i18n.yaml
2026-11-18 13:36:35 +08:00
LegGasai 0995fc768d feat(forge): show the review summary's status as blocks
The summary drew the rows of the Session panel's expanded card in one bordered box, indented for a card title that
is not there. It now shows a column of blocks: the merge state, the checks that need attention with the rerun and a
fold that lists every check by group, each reviewer with the review request, and the changed lines with the linked
issues. The blocks reuse the card's rows, check grouping, complete-checks read, and review-request menu items, which
ChangeRequestOverview and ChangeRequestCard now export.
2026-11-18 13:25:08 +08:00
LegGasai 803f1e0d90 Merge pull request #8697 from deepseek-harness/worktree/restore-agent-terminal-plugin
feat(web): restore persistent terminal plugin controls
2026-11-18 13:21:19 +08:00
LegGasai 792cc9b967 Merge pull request #7820 from deepseek-harness/feat/session-workspace-root-consumers
feat(working-directory): route sandbox, file views, and discovery through the Session workspace root
2026-11-18 05:16:34 +00:00
creatixchu ad62a711b6 fix(cua): wait for native cleanup before the next request 2026-11-18 12:12:00 +08:00
creatixchu a2bd085fd2 Merge remote-tracking branch 'origin/master' into feat/cua-macos/mouse-toggle 2026-11-18 12:10:53 +08:00
LegGasai 0ddd7247a0 Merge commit 'c8e67fb1060' into worktree/forge-m7-review-page-ee17bf
Master added removal with undo for saved review comments. The changes view keeps both that and the review page's
quote copy, and the review page's changes face reports notices through the notice store directly, as the Session
panel's face now does.
2026-11-18 11:57:43 +08:00
LegGasai ece93f95ec feat(forge): draw the review lists as skeleton rows while they are read
The list column showed plain blocks until its first frame and one block per unread list. It now draws rows laid out
as the items of the reader's view, detailed or compact, with the fill and pulse of the changes view's reading state,
so the column keeps its geometry when the items arrive.
2026-11-18 11:50:33 +08:00
LegGasai e24af31773 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root-consumers 2026-11-18 11:46:53 +08:00
creatixchu 2082177fe1 docs(cua-windows): remove extra mouse toggle guidance 2026-11-18 11:44:00 +08:00
LegGasai b7ae13428c fix(deliverables): resolve changed-file paths against the turn's directory; count sandbox grants in the forge worktree blocker
The summary route serves the directory the turn started in, and the
changed-files card and review tab resolve listed paths against it instead of
the directory the Session works in when they are read.

The forge worktree option counts the policy's additional writable roots when
it checks that the common Git directory is writable.
2026-11-18 11:28:49 +08:00
LegGasai afca6e729a fix(forge): remove saved comment cards from the changes view (#8653)
* fix(forge): remove saved comment cards from the changes view

A comment added to the main input left a card beside its code that the
reader could not remove, also after its code changed or its file left
the diff. The card's menu now offers Remove for a reference and for a
publication receipt; the notice that follows offers Undo, which puts the
card back at its place. Removing a card changes neither the main input
nor the code host.

The three browser-kept cards share the thread card's geometry and its
header menu. A browser draft's Edit and Delete move into the menu, its
deletion asks first, and its move into the pending review is named Start
review while the user has none, as the comment form names it. The card
title "Your comment" is gone: the header shows the lines and the state.

* fix(forge): keep a draft's Delete while it is edited and let the view name each notice's tone

A browser draft being edited hid its menu, so a draft whose text the
reader emptied could be neither finished nor deleted. The menu now stays
during editing and offers Delete, which asks first as before.

The changes view passed its notices to a per-mount function that chose
the tone from a list of keys and forwarded the undo action. A second
mount with its own copy of that function would show a removal as a
failure without Undo. The view now passes the tone and the undo action
with each notice, and the mount hands them to the notice store as given.
2026-11-18 03:28:36 +00:00
LegGasai a86c488ba1 Merge commit '65056bc614a' into worktree/forge-m7-review-page-ee17bf 2026-11-18 11:02:26 +08:00
LegGasai 3be6baf574 feat(web): restore persistent terminal plugin controls 2026-11-18 10:58:36 +08:00
imccyu 3c0cef3560 refactor(client): deliver page-global Host configuration through synced plugin Config
Move shortcuts, account notifications, Models onboarding, document preview,
account contact, and connection recovery off their own webserver/index-inject
page globals onto top-level volatile Config fields that reach each browser face
as SyncedConfig. Keep cordis.yml keys and defaults, keep a typed Host config
parameter so the config catalog still lists these packages (also restoring
ui-context-menu), and regenerate catalogs.
2026-11-17 22:20:29 +08:00
imccyu 7400626e6e chore(release): sync release/dsh-0.2.2 0.2.2-rc.4 to master
# Conflicts:
#	packages/client/hmr/package.json
#	packages/client/script-realm-iframe/package.json
#	packages/client/ui-jobs/package.json
#	packages/client/ui-session-panel/package.json
#	packages/experimental/action-cards/package.json
#	packages/experimental/client-ui-forge/package.json
#	packages/experimental/cua-bundle/package.json
#	packages/experimental/forge-gitlab/package.json
#	packages/ptc-runtime/ptc-runtime-node/package.json
#	packages/session/tool-working-directory/package.json
#	packages/util/atomic-write/package.json
2026-11-17 21:37:34 +08:00
imccyu bc3bddffbd release(dsh): 0.2.2-rc.4 2026-11-17 21:19:11 +08:00
imccyu e62d55e99e chore(release): sync release/dsh-0.2.2 0.2.2-rc.4 to master 2026-11-17 21:12:50 +08:00
LegGasai 1870f1dc5f Merge branch 'feat/client-review-page-seams' into worktree/forge-m7-review-page-ee17bf
# Conflicts:
#	packages/experimental/client-ui-forge/README.i18n.yaml
2026-11-17 21:06:27 +08:00
LegGasai 1a4c16a9bd Merge branch 'feat/client-review-page-seams' into worktree/forge-m7-review-page-ee17bf
Brings in master and the required onWorkspaceSelected callback of conversation.content.

Adaptations:
- The review chat handles a picked Workspace itself: it connects the Workspace's blank, keeps only the latest pick of
  the conversation still shown, moves the draft while both Sessions are retained, and reports a failed connection.
- The compact list title uses the shared MarqueeText instead of the title marquee this stack carried.
- Master moved the change request cards into the Session panel: the review detail reuses the card's merge action and
  rows and draws its own ready-for-review action, and keeps its own Refresh status label.
2026-11-17 20:52:43 +08:00
imccyu 7e7b604620 feat(client): retain recent sessions and skip conversation folding while unrendered (#8502)
* feat(client): retain recent sessions and skip conversation folding while unrendered

* docs(notes): state that attention-protected recent views are unbounded

* refactor(ui-workspace): derive recent views from visit order and make the limit configurable

Recent views now hold exactly the Sessions one idempotent sync() selects from
the visit order and current snapshots, so navigation reports the shown Session
once and the main-view Session never counts. A failed Conversation resumption
leaves the binding stale so the next window change rebuilds the whole window.

* refactor(session-controller): report facet counts through retainInfo instead of SessionBinding

SessionBinding stays unchanged; SessionRetainInfo gains optional retainedFacets
counts beside retainedBy, and owners derive their facet from retainInfo and the
current binding. Adds the upgrade guide for Client plugins that render a Session
they retain, and updates two web e2e expectations: a recently viewed Session now
keeps its right Sidebar view state when the main view returns to it.

* feat(client): keep drafts with a connectionless Session hold and fold only the last page on return

Session references gain connection (true by default). When no reference keeps
it, the Session disconnects and empties its window while keeping its scope.
When the last facet is released, the Session keeps only its last Turn-aligned
page visible and its event stream buffers the older records, answering page
reads from that buffer before the Host. BoundConversation folds only while the
conversation facet is retained and drops its fold on release. The input hub
holds a Session with { source: 'draft', connection: false } while its draft has
attachments, replacing the root-level draft-attachment ownership; reload marks
remain.

* refactor(session-controller): share retain-info counting with the test fixture

* fix(client): keep gap repair, disconnect, and recent-view counting correct while Sessions are buffered

- Only page reads before the window take buffered records; a live gap repair
  reads the Host.
- A resync whose teardown a disconnect interrupted stays cold.
- A Session the main view already retains takes no recent-view slot before
  show(), so losing its unread protection during retention evicts nothing.
- Buffering marks the window partial, so the start-of-history marker survives
  after the buffer runs out.

* fix(session-controller): consume an arrived older page before buffering the window

* feat(ui-workspace): sync the recent-view limit from the Host Config

recentViewLimit becomes a volatile field of the ui-workspace Host Config
(z.natural().default(10)). The browser receives it through synced plugin
configuration, and RecentSessionViews reconciles whenever it changes, so a
cordis.yml edit takes effect without a page reload. Until a value arrives,
every counted recent view is kept.

The package gains a Host compiler face: src/types.ts holds the shared
Config type, tsconfig.host.json and tsconfig.client.json replace the single
Client config, and every reference names the face it compiles against.
2026-11-17 20:51:42 +08:00
imccyu 116b7d4868 feat(ui-workspace): sync the recent-view limit from the Host Config
recentViewLimit becomes a volatile field of the ui-workspace Host Config
(z.natural().default(10)). The browser receives it through synced plugin
configuration, and RecentSessionViews reconciles whenever it changes, so a
cordis.yml edit takes effect without a page reload. Until a value arrives,
every counted recent view is kept.

The package gains a Host compiler face: src/types.ts holds the shared
Config type, tsconfig.host.json and tsconfig.client.json replace the single
Client config, and every reference names the face it compiles against.
2026-11-17 20:01:33 +08:00
LegGasai 1292f95a13 docs(worktree): state that a worktree's Git directory needs a sandbox grant 2026-11-17 19:51:55 +08:00
LegGasai f9eb524891 Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers 2026-11-17 19:50:49 +08:00
LegGasai 854ebc768a Merge remote-tracking branch 'origin/master' into feat/session-workspace-root 2026-11-17 19:29:22 +08:00
LegGasai 623093c712 refactor(sandbox-policy): read no Git layout; grants come from configuration and registerWritableRoot
The sandbox policy derived a linked checkout's shared Git directory from its
`.git` pointer and granted it. That put Git worktree knowledge and a
worktree-only entry (`prepare`) into a generic service. The policy now bounds
a Session by its directory and adds only configured directories and those a
Host plugin registered through `registerWritableRoot`; relative to the lower
branch its source changes in one place, the root it reads.

- `prepare`, the derivation state, its three listeners, and
  `src/linked-checkout.ts` are removed.
- The worktree service creates under the Session's policy as on the lower
  branch; removal and restoration swap the root for the source checkout. The
  forge panel's blocker reads the Session's root alone.
- A Session that works in a linked worktree cannot write the repository's Git
  directory under workspace-write without a grant. Tests pin the denial and
  that a registered grant admits creation, restoration, and a commit.

Granting the Git directory of the checkout a Session works in is left to a
separate plugin that reads the layout and registers the directory.
2026-11-17 18:04:56 +08:00
yixiangihsiang f20af2227b Merge origin/master into Ihsiang/ui-review-refinements 2026-11-17 17:33:20 +08:00
LegGasai 641c669fca Merge pull request #8521 from deepseek-harness/refactor/deepseek-auth
refactor(deepseek-auth): authenticate DeepSeek consumers through ctx.deepseekAuth
2026-11-17 09:10:13 +00:00
LegGasai f5c3f3eb90 Merge remote-tracking branch 'origin/master' into refactor/deepseek-auth
# Conflicts:
#	docs/capability-seams.i18n.yaml
2026-11-17 16:52:18 +08:00
Dudu-0223 124772848f fix(creation): load the shipped dsh-doc development guide 2026-11-17 16:45:59 +08:00
Xu Hanxiang f0f05ba737 fix(liveshare): start the tunnel worker in the Host's Electron Node mode (#8634)
The owner gateway worker runs `process.execPath`, which the Desktop shell
resolves to the Electron binary. Electron selects Node mode from
`ELECTRON_RUN_AS_NODE`, and the spawn forwarded only transport variables, so
the worker started as a second GUI application that the shell's single-instance
lock ended with exit code 0 before any worker code ran. Every share stayed
unregistered, and the supervisor kept starting replacements.

Forward the Host's own Node mode with the spawn. A plain Node Host has no mode
to forward and keeps its current environment.
2026-11-17 08:41:03 +00:00
Xu HanxiangandTurtle 9176a08953 test(liveshare): derive owner credential horizons from the real clock (#8638)
The spec hardcoded a live horizon of 2026-11-14, which the host compares
with Date.now(), so it failed from that date on.

Fixes #8465

Co-authored-by: Turtle <[email protected]>
2026-11-17 16:27:58 +08:00
Dudu-0223 5e8d723c43 Merge master into feat/action-cards-without-tool 2026-11-17 16:18:44 +08:00
LegGasai 62a2f77b2b Merge remote-tracking branch 'origin/master' into refactor/deepseek-auth
# Conflicts:
#	docs/capability-seams.i18n.yaml
2026-11-17 16:15:48 +08:00
imccyu bd1d6dcd0c Merge pull request #8504 from deepseek-harness/feat/client-config-live-update
feat(client): sync volatile plugin config to the browser
2026-11-17 16:08:14 +08:00
creatixchu 9eb4232f63 test(cua): cover failed and revoked turn-end mouse cleanup 2026-11-17 16:05:00 +08:00
creatixchu c65abe9934 Merge master to refresh the CUA event graph 2026-11-17 16:04:03 +08:00
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 e20f9b9e1a fix(forge): create a requested worktree for the first message only
The inbox listener of the forge panel held a turn for every inserted
message. A notice queued for the next step, such as the approval policy
notice that follows a switch to or from full access, opens no turn, so
the hold only created the requested worktree before any message was
sent. The same listener started the removed-worktree check for such
notices.

Hold only for a message in the next-turn queue. A steered message that
wakes an idle Agent keeps the creation at the first step proposal.
2026-11-17 14:56:33 +08:00
creatixchu cca4d7c7d2 Merge master into the macOS mouse toggle branch 2026-11-17 14:54:02 +08:00