2701 Commits
Author SHA1 Message Date
imccyu 9d746af29f docs(client): record the decision on three immediately Client packages
A new Agent Note records why ui-slots, ui-primitives and ui-dockkit are
`immediately` dynamic plugin packages while client-store stays a
statically linked library, the compatibility adjustments to their
package root (the hand-written Host entry and the reused ./client
types), why the repository names them only through `/client`, the
rejected alternatives, and the two compatibility commitments with the
tests that keep them. The Client shell layering note links it and lists
client-store as the statically linked library that uses the staticLinked
preset; the notes on package assets, connector accounts and right-sidebar
docking state the dynamic form.

The upgrade guide client-packages-dynamic-plugins states the final form,
the recommended `/client` specifier, the commitments for TypeScript
consumers and built plugins, what is unsupported, and that client-store
is unchanged.

packages/client/AGENTS.md, the three packages' READMEs, the Web, modules,
renderer and Client test runtime READMEs, the Web Client and defensive
pattern references, and the benchmark instructions describe them as
dynamic plugin packages whose remaining /client value exports are a
historical exception that will be reduced over time, and keep
client-store as the static Client library the shell seeds and bundles
with Zustand and Immer; code examples name the three packages through
`/client`.
2026-11-28 02:28:52 +08:00
Yudong Han c72724b42e feat(office): add experimental office preview by frame forwarding bundle (#8441)
* feat(office): add frame-forwarded preview and bundle integration

* feat(office): present document and slideshow frames with video

* test(office): simulate video frame cloning across preview sessions

* fix(frame-forwarding): preserve document proportions during resize

* fix(office-preview): resume frames after tab switches and restore margin dragging

* refactor(office-preview): share submitted geometry and simplify fixture cleanup

* refactor(office): remove obsolete viewport discard comparison

* refactor(office): take shared textures from the dsh-shared-texture services

The Office preview spec helper imported the bridge and lease types from the removed @deepseek-ai/dsh-shared-texture-client-types package, passed frame forwarding the failureSource() adapter that its Client service no longer declares, and the specs stubbed globalThis.dshDesktop, which frame forwarding no longer reads.

The helper imports the types from @deepseek-ai/dsh-shared-texture/client and drops the adapter, and the specs stop stubbing dshDesktop. The shared-texture Agent Note drops the PR citation from its NodeNext declaration check sentence, and the README model-experience registry rewords the dsh-shared-texture entry.

* fix(office-preview): take the React 19 ref types

The client moved to React 19, whose types require an initial value for `useRef` and type a DOM ref created with `null`
as `RefObject<T | null>`. Refs that start empty now pass `undefined`, the surface takes its element refs as
`RefObject<HTMLDivElement | null>`, and `RefObject` replaces the deprecated `MutableRefObject`, as the rest of the client
does.

* fix(office-preview): align the producer and receiver tests on Kit 0.2.4

* chore(office-preview): refresh the client slot catalog

* fix(office-preview): drain document releases and handle slideshow frame failures

* refactor(office): expose Kit discovery and editor opening on officeKit

* fix(office-preview): preserve slideshows across same-client event reconnects

* refactor(frame-forwarding): use single-producer channels and retain Office slide previews

* fix(plugins): show native Office preview only in Desktop

* fix(office-preview): reconcile slideshow and document lifetimes on reconnect and refresh

* fix(office-preview): simplify slideshow recovery and retain hidden fallback views

* refactor(office-preview): type document operations and detach playback before refresh

* feat(office-preview): lease documents by tab and reopen expired previews

* fix(office-preview): retire slideshow mounts without blocking channel recovery

* fix(office-preview): restore the last shown slide on channel reconnect

* fix(office-preview): preserve channel loss while waiting for the first viewport

* fix(office-preview): cancel slideshow readiness when playback stops

* test(web): exclude desktop-only bundles in plugin-config e2e

* fix(office): cancel retired viewport waits and count successful redraws

* fix(office-preview): await timed-out open cleanup on plugin disposal
2026-11-27 16:10:38 +00:00
_Kerman ad9c7144d2 feat(todo): remind agents to reconcile stale task lists 2026-11-27 19:38:53 +08:00
LegGasai 181e7bdf1b fix(session-controller): keep the selected account model when signing in again
Account login without a provider API key replaced the saved default with the first account model and its default reasoning effort. A saved default that names a listed account model is now retained with its effort; every other case is unchanged.

Fixes #9392
2026-11-27 17:53:35 +08:00
315d12af70 feat(subagent): choose a default Subagent model on the Plugins page (#9373)
* feat(subagent): choose a default Subagent model on the Plugins page

Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>

* fix(subagent): align the default model picker and document its context notice

Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>

* fix(subagent): refresh generated catalogs and page golden for the default model picker

Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>

* fix(subagent): drop the unreachable catalog load from the enable toggle

Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>

* fix(subagent): apply the default model to tools that configure only an effort

Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>

* fix(client): use the settings menu for the default subagent model

Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>

* fix(subagent): do not tell the model which route is the default

Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>

* fix(subagent): describe explicit model selection without naming a default

---------

Co-authored-by: Turtle <turtle1999@deepseek.com>
Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>
Co-authored-by: Dudu-0223 <fsyo0223@gmail.com>
2026-11-27 16:46:36 +08:00
Ruilin Geng b461a2c636 Merge pull request #7854 from deepseek-harness/feat/connectors-custom-mcp
feat(connectors): 在“连接器”标签页中添加和管理自定义 MCP 服务器
2026-11-27 08:02:09 +00:00
liukx0205 7f4125dff6 fix(session): lead breadcrumbs and fork Workspaces through side sources
The header breadcrumb walks parentId through side conversations as the
left Sidebar's current row does, so a subagent opened from a side
conversation leads back to the listed main conversation. A fork of a
side conversation that is not attached to a Workspace itself attaches to
its source's Workspace, as a subagent's fork does. SessionHeaderMeta
documents parentSession, and the wire, Agent, and snapshot harness
comments name both relationships.
2026-11-27 14:30:29 +08:00
liukx0205 ecdcb1bc12 feat(session): record a side conversation's source as parentSession and classify consumers by origin
A side fork writes its source Session as parentSession on the Host header
and parentSessionId on the Client placeholder, so the source can list its
side conversations. parentSession now means the creating Session for both
subagents and side conversations; what kind of child a Session is comes
only from origin. The three readers that took parentSession alone as
delegation now check origin: auto-review grants direct-parent instruction
authority only to a subagent's delegating parent, IM stops its hosted-chat
walk at a side conversation, and the session log export leaves side
conversations out of a Session's descendant logs. The left Sidebar resolves
the viewed Session's row through side sources as it does through subagent
creators.
2026-11-27 14:30:29 +08:00
Yudong Hanandimccyu 5cff6056ba feat(desktop): add shared texture interface and transport (#8439)
* feat(desktop): add shared texture transport and native presentation layers

* fix(desktop): keep split fixtures and generated notices self-contained

* refactor(theme): defer presentation stage token to Office layer

* refactor(desktop): move frame integration into its consumer layer

* refactor(sidebar-right): move native-layer visibility support to frame layer

The fullscreen tab-body background and the tab visibility test only serve
the frame integration that hides native layers through tab.visible, so they
belong with that consumer layer.

* refactor(desktop): keep shared textures on the renderer path

* fix(desktop): settle shared textures across GPU loss and teardown

* fix(desktop): correlate late texture arrivals and settlements by request

* test(desktop): exercise late ingress delivery after presenter reset

* fix(desktop): bound unsettled textures before handle export

* fix(desktop): retain probe handles and invalidate unsynchronized imports

* refactor(desktop): leave the fullscreen caption rule to frame forwarding

The caption-menu fullscreen rule, its test, and the README sentences describe fullscreen that frame forwarding offers to plugins. They belong with frame forwarding, not the texture transport.

* refactor(desktop): validate Host texture limits in the channel only

The Host channel already shortens deadlines to 30 seconds and refuses dimensions above 8192 before Main's presenter sees a request, and it is the presenter's only caller. Remove the repeated checks from the presenter and assert the limits where they are enforced.

* fix(desktop): drop only the surface that finds the ingress queue full

A full delivery queue ended the macOS ingress reader, so a Main JavaScript thread that stalled for 16 surfaces failed every waiting presentation and left the Host without an endpoint until its next capability query. Release that one surface and keep reading; its presentation fails at the delivery deadline. A closing delivery function still ends the reader.

* fix(desktop): reach Main through one process handle for Windows texture handles

The Windows adapter opened Main by process identifier for every export, import, and reclamation. After Main exited, the Host's disconnect cleanup reclaimed each unsettled handle with DUPLICATE_CLOSE_SOURCE, which closes the source handle even when the call fails; an identifier reassigned by then named an unrelated process. Keep one handle to Main's process until the endpoint closes, refuse to reclaim without it, and leave duplicates to Main's exit after a disconnect.

* feat(desktop): carry shared-texture frames on a native Host-Main channel

Each frame was a Node IPC request from the Host's JavaScript thread, answered by a reply and a later notification on the same channel, with the macOS surface sent separately and paired in Main by token, and the Windows handle duplicated into Main by the Host through Koffi.

The hop and ingress addons now form a two-way native channel on both platforms: a Mach port pair on macOS and a duplex message pipe on Windows. A frame's handle and description reach Main in one message, and Main returns the delivery reply and the settlement on the same channel. On Windows, Main verifies the pipe client's process and duplicates the Host's handle into its own process, so the Host opens no process and closes no remote handle. The Host IPC channel keeps only the capability and probe controls.

A frame that finds Main's 32-frame delivery queue full is refused at once and stays reusable. When the channel is lost, the hop settles every unsettled frame as invalidated. The hop also exposes its connection to other Host addons as a C function table, which the sharedTexture claim returns from nativeSink, so a native producer can submit frames without the Host's JavaScript event loop.

* refactor(desktop): drop unused parts of the shared-texture ingress

Main never closed a handle inside the Host, never read a frame's delivery deadline, and waited for the Host's pipe connection only to cover the instant before the ingress registers it. Remove reclaimFromPeer, the timeoutMs field of the frame event, and the peer event with the probe's wait for it: a probe that arrives in that instant now fails with the export error.

With frames as the only queued deliveries, the delivery function's own queue limit bounds them again.

* refactor(desktop): submit shared-texture frames through the native sink only

The Host had two entries for submitting a frame: the hop's JavaScript present, wrapped as SharedTextureService.present with promises fed by per-frame events, and the C sink for native addons. Frame forwarding, the only consumer, submits through the sink.

Remove the JavaScript entry: the hop's present function and its delivered and settled events, the service's present with its frame, presented, and settlement types, and the wrapper's request table. The hop reports only the loss of a connection to JavaScript. The sink ABI and the wire format are unchanged.

* feat(desktop): tell a refused shared-texture frame from a lost connection

Every sink refusal returned 1, so a native consumer could not tell whether to keep its sink or replace it: a frame refused at the 128-request limit and a present after Main disappeared looked the same.

present now returns DSH_SHARED_TEXTURE_PRESENT_OK (0) when the request left the Host, DSH_SHARED_TEXTURE_PRESENT_REJECTED (1) when only that frame was refused (invalid arguments or fields, the request limit, an identifier in use, or a failed send on a live connection), and DSH_SHARED_TEXTURE_PRESENT_DISCONNECTED (2) when the connection was closed or lost, including a send that found Main gone before the reader did. A sent request still returns 0 and settles through the reader when the connection ends during its send.

* refactor(desktop)!: drop frame identifiers and the wire deadline from shared-texture presentation

Each frame carried a Host-chosen identifier that the hop and Main both kept unique among unsettled frames, and a delivery deadline that Main never read. Frame forwarding tracks its own deliveries, so the identifiers only cost a string copy, a set lookup on each side, and an extra refusal reason.

The sink ABI becomes version 2: dsh_shared_texture_frame_v2 drops id and id_len, and a consumer built for version 1 refuses the version 2 sink. DSTX becomes version 3: its present header drops timeout_ms and id_length and is followed by the metadata alone, and both sides refuse other versions and nonzero reserved fields. The hop still enforces each request's delivery deadline locally and still admits at most 128 unsettled requests; Main bounds admitted frames with a count instead of an identifier set.

The native e2e labels frames through their metadata, proves that a timed-out request keeps its slot through the request limit, and forges version 2 and malformed version 3 headers.

* refactor(desktop)!: read the Windows compositor adapter in Main

To learn which adapter Chromium's compositor renders on, the Host asked Main for a probe texture, Main duplicated it into the Host and kept its own handle and hidden window until the Host released the probe, and the Host closed its duplicate after reading the adapter. The exchange needed the native connection to be open first, a probe table and late-reply cleanup on both sides, and two handle-transfer operations that nothing else used.

Main now reads the adapter itself: the ingress addon reports the LUID of a Main-local shared texture through DXGI, formatted as "<HighPart>:<LowPart>" in unpadded lowercase hexadecimal, the text Host addons derive from an adapter LUID. Main exports one compositor texture, reads its adapter, and releases the texture and its window at once. The answer is kept for the GPU process generation, which a GPU process exit or Host teardown advances; concurrent queries share one probe, a probe that finds nothing or fails is not kept, a cleanup cancels a pending probe, and a probe that a GPU process exit overtook records nothing.

SharedTextureService.probe becomes adapterLuid(timeoutMs), which resolves to that text or null, returns null outside Windows without asking Main, rejects when Desktop does not present shared textures, and no longer opens the native connection. The Host control requests are capabilities and adapter-luid; the probe and release-probe requests, the ingress exportToPeer, and the hop closeHandle are removed.

* perf(desktop): block the macOS shared-texture ingress reader until a request or stop

The macOS ingress reader woke every 100 ms to check for a stop request, so an idle Desktop woke the reader ten times a second and a close waited for the next wake-up.

The reader now waits without a timeout. stop sets the flag and then sends an empty message to the ingress port through the send right Main already holds; a full queue already wakes the reader, so a wake-up that does not fit is dropped. Once stopped, the reader destroys whatever it receives, including its own wake-up, and Host requests still pass the audit-token check unchanged.

* perf(desktop): trim per-frame work on the shared-texture path

Every frame repeated work that only the first frame of a connection or no frame needs. On macOS each request carried a new send right to the Host's reply port, which Main merged and deallocated under a lock; the hop allocated and cleared a 4 KB message per request and the ingress cleared its whole receive buffer per message; the hop copied each frame's metadata into a string, and the Windows hop allocated a message vector; Main parsed every frame's metadata as JSON only to have Electron serialize the value again; and the product preload imported textures that no consumer would read.

The first request of a macOS connection that reaches Main carries the reply port, and Main keeps it for that connection. Main drops the right when a reply cannot be delivered, as the Windows ingress disconnects the pipe, and the hop then receives a no-senders notification and settles every request as invalidated; Main discards requests that arrive on the dropped connection, and the endpoint serves the Host's next connection. Sends reuse a buffer per connection under the send lock and clear only the header fields and alignment padding, the ingress clears only the fixed message fields, and the hop passes metadata to the transport as a view of the caller's bytes.

Main forwards the metadata text, and the product preload parses it before importing the texture. A transfer with metadata that is not JSON, or one that arrives while no consumer is registered, is refused before import, so the Host sees a failed delivery and a released settlement once Main drops its own reference.

* fix(desktop): never import a handle from a closed Windows shared-texture connection

A Windows request names its texture only by a handle value inside the Host, and Main duplicates it when its reader reaches the request. When the Host closed a connection itself, it settled every unsettled request as invalidated right after closing its pipe end, and the owner could then close the handle. A request still queued in the pipe stays readable after that close, so Main could duplicate a value that already named another object and present that texture as the settled frame.

After duplicating, Main now checks that the Host's end of the pipe is still connected. The Host closes its end before it reports any settlement, so a duplicate taken while the end is open names the texture the request was sent with. Otherwise Main closes the duplicate and ends the connection, which discards the requests still queued; the endpoint then serves the Host's next connection. macOS needs no check because each request carries the IOSurface port itself.

A Windows e2e suspends Main, presents a frame, closes the connection, and replaces the texture with one that takes over its handle value before resuming Main. Without the check Main delivered that frame with the replacement texture; with it Main delivers only the frames of open connections.

* chore(desktop): state how long an ingress reply can block, and end a build script with a newline

SharedTextureIngress.reply described a non-blocking queue, but it writes the reply on the calling thread and waits up to the 100 ms reply timeout while the Host is not reading. The comment now says so, together with the connection drop that follows a reply that cannot be written in time.

native-package-builds.mjs ended without a newline.

* fix(desktop): accept every enabled GPU compositing status in the adapter probe

The probe required gpu_compositing to be exactly 'enabled', while support() accepts any 'enabled*' status, so adapterLuid returned null where capabilities reported support. Also type the e2e frame tuple to satisfy no-unsafe-return.

* chore(desktop): end native-package-builds.d.mts with a newline

* refactor(desktop)!: provide shared textures through the dsh-shared-texture plugin

Desktop Host imported its shared-texture types from the private Electron application package, frame forwarding publishes declarations that referenced it, so an installed consumer could not resolve them, and renderer plugins read the texture bridge from globalThis.dshDesktop.

@deepseek-ai/dsh-shared-texture (packages/shared-texture/shared-texture) is a Host and Client plugin package that owns the contract:

- its Host root exports the abstract Cordis service SharedTexture, registered as ctx.sharedTexture and declaring only claim(), with the claim, capability, and native-sink types; its apply does nothing, because the Loader mounts the package only to deliver the Client half;
- ./client is the Client plugin: where Desktop's product preload exposes dshDesktop.textures, it provides that bridge as the Client ctx.sharedTexture, typed SharedTextureBridge, and otherwise provides nothing;
- ./bridge carries the type-only renderer SharedTextureBridge and SharedTextureLease;
- ./protocol carries the type-only private control protocol between Desktop Main and the Desktop Host, including the hop addon types; it is not a plugin API.

web-app mounts the package, so plugins inject ctx.sharedTexture instead of reading host globals. Desktop Host's SharedTexture extends the abstract Host service. Desktop Main and the Desktop Host take the low-frequency control message types from ./protocol and each still validates every message it receives at runtime, so Desktop Host no longer depends on Desktop. Desktop drops its ./shared-texture/host, ./shared-texture/client, and ./shared-texture/internal exports. The shared-texture subsystem page describes the entry points, and the capability-seam graph lists the service.

* refactor(desktop): keep the shared-texture protocol in Desktop Host

Main and the Desktop Host now share the child-process message types from
`apps/desktop-host/src/types.ts`, imported as `@deepseek-ai/dsh-desktop-host/types`,
so the published package no longer carries a private protocol subpath. The hop
addon interfaces return to the Host module that is their only user.

The renderer vocabulary keeps one Cordis-free module, renamed from `bridge` to
`types`: `SharedTextureClientExport`, `SharedTextureHostExport`, and
`SharedTextureLease`, imported by preload and IPC modules from
`@deepseek-ai/dsh-shared-texture/types`. The module is required because the two
compiler faces declare `ctx.sharedTexture` with different types: one program
holding `src/index.ts` and `src/client/index.ts` fails with TS2717.

---------

Co-authored-by: imccyu <276526105+imccyu@users.noreply.github.com>
2026-11-27 02:15:04 +08:00
Turtle 74cf97c265 Merge pull request #8882 from deepseek-harness/turtle/scoped-tool-registries
refactor(tools)!: compose tool registries under scoped roots
2026-11-27 00:11:09 +08:00
yudshj 92e65be447 fix(office): upgrade LibreOffice Kit to 0.2.4 and select its glibc engines on Linux
LibreOffice Kit 0.2.4 publishes its Linux engines as linux-x64-glibc and linux-arm64-glibc, but the sidecar and Desktop packaging looked for linux-<arch>, so a Linux target always fell back to WASM even when the kit declared a native engine. DSH's Linux distributions are glibc builds, so a Linux target now selects the glibc engine for its CPU. The third-party notices accept the two Linux engine packages under the same MPL-2.0 identity rule as the other engines.

The web app and office-kit take Kit 0.2.4, the first release with those engines. Its release-age exclusions name the API and the six native engines; WASM is no longer an optional dependency of the kit and is no longer excluded.

Because DSH no longer installs WASM, packaging now requires the target's declared native engine and rejects a target without one, naming its platform and CPU, instead of selecting a WASM package that cannot be present. The Python runtime smoke derives the same glibc package name and checks that the Office sidecar holds exactly that native engine. The Office provider, subsystem, package-surface and Desktop packaging documents describe Kit 0.2.4 and the native-only rule.
2026-11-26 23:15:45 +08:00
Turtle f6eedf94f0 Merge pull request #9339 from deepseek-harness/turtle/env-runner-handle-da70f65f0ea2
refactor(environment)!: pass the environment handle to each runner call
2026-11-26 20:33:00 +08:00
Kexin Liu 28a2442748 Merge pull request #9209 from deepseek-harness/feat/sqlite-event-rows
feat(session)!: store SQLite events as rows with derived tables
2026-11-26 19:45:02 +08:00
Turtle 4c52bb7458 docs(environment): drop the repeated handle sentence from define 2026-11-26 19:42:00 +08:00
Turtle 61060fc11d refactor(environment)!: pass the environment handle to each runner call
define(fn, options) now returns runner(handle, args, options), so one
definition serves every environment and tools that select an environment
per call no longer keep one runner per handle.

Refs #9338
2026-11-26 19:24:13 +08:00
Turtle 2099 3f5fdd5a2f Merge pull request #7840 from deepseek-harness/turtle/remote-tool-executor-d0d21ac6d7e4
feat(experimental): add provider-contributed execution environments
2026-11-26 17:53:25 +08:00
Ziya a9c0a1f496 Merge pull request #9171 from deepseek-harness/feat/recommend-connectors
feat(plugin-recommendations): 个性化推荐加入官方连接器,可在卡片上安装并启用
2026-11-26 00:44:31 -08:00
Dudu-0223 93d9ded727 feat(llm): 在 DeepSeek 推理请求头中标记子代理和直接父会话 (#9298)
* feat(llm): mark DeepSeek subagent inference requests

* docs: refresh the module graph for subagent headers

* refactor(llm): register subagent headers through the DeepSeek extension registry

Add registerHeader()/headers() to ctx.deepseekLlmApiExtensions for x-dsh- request
headers. session-log-deepseek registers x-dsh-session-type and
x-dsh-subagent-parent-session-id independently of its enabled switch, and
llm-deepseek adds the registered headers without reading Sessions itself.

Remove the ./session-headers export and revert the llm-pi-ai changes.

* fix(llm): keep route credentials ahead of registered DeepSeek headers

Spread the route credential after plugin-registered x-dsh- headers so a
registration named x-dsh-auth-token cannot replace the account token, and
pin that order with an account-route regression test.

Document that the DeepSeek API defines the subagent header names, that the
parent id is supplementary, that removing session-log-deepseek also stops
the subagent headers, and that SDK subagents carry neither header.

* feat(llm): unify Harness attribution header names
2026-11-26 16:39:30 +08:00
Chinesezjc 1c93d8915f Merge pull request #8577 from deepseek-harness/feat/schedule-source-model
feat(schedule): submit Source observations to automation tasks
2026-11-26 15:31:32 +08:00
CreatixChu e8905b269b Merge pull request #9066 from deepseek-harness/feat/windows-app-consent
feat(cua-windows): 支持按应用跨会话授权
2026-11-26 15:27:35 +08:00
LegGasai 7b7eda62af Merge pull request #9199 from deepseek-harness/worktree/forge-subsession-changes-2a8785
feat(forge): show other branches and their worktrees in the local changes view
2026-11-26 15:12:43 +08:00
CreatixChu d4c4fcefb3 Merge remote-tracking branch 'origin/master' into codex/pr-9066 2026-11-26 15:02:34 +08:00
LegGasai 9b4df76c66 feat(forge): compare another branch with the Session's own HEAD by default
While no base branch is chosen, a branch shown in place of the Session's
checkout was compared with the remote's default branch, as the Session's own
checkout is. A repository without a remote then had no fork point, and a
Session that had commits of its own before it delegated saw those commits in
the delegated branch's changes.

The automatic fork point of a head branch is now its merge base with the commit
the Session's own HEAD names, under the name of the Session's checked-out
branch or the abbreviated commit of a detached HEAD. The base listing leaves
that branch out, because the automatic base already stands for it. The
Session's own checkout keeps its rule.
2026-11-26 14:45:59 +08:00
LegGasai a69613bcb3 feat(forge): show other branches by branch, in their worktrees, and keep the local changes row
The head picker of the local changes view lists the Session's own checkout and
the repository's local and remote-tracking branches, and no longer lists
delegated Sessions. A branch that a worktree of the repository has checked out
is read in that worktree with every scope; a branch that no worktree has
checked out is read from its commits in the branch scope alone. A scope names
the branch by its full ref, and each read looks the worktree up again and
confirms that a checkout of the same repository holds the branch there.

The Session panel's local changes row shows in every Git checkout, with an
empty size while the branch scope changes nothing, so the view opens from a
clean checkout.

`forgePanel.diffBases` and `forgePanel.localCommits` take the head as a branch
ref, `relatedCheckouts` is removed, and the package no longer depends on the
subagent package. The API catalog, the config catalog, and two web expected
outputs are regenerated.
2026-11-26 14:00:39 +08:00
Ruilin Geng 69be60151e Merge pull request #9141 from deepseek-harness/refactor/mcp-manager-server-rows
feat(mcp-manager): declare a managed server as its own row beside the servers dictionary
2026-11-26 13:57:05 +08:00
ZiyaZhang 2850ff90f9 refactor(plugin-recommendations): take the official connectors from a generated catalog
List the seven official connectors in dsh-official-bundles as
CONNECTOR_BUNDLES, and let the official bundle catalog generator embed
OFFICIAL_CONNECTOR_CATALOG beside the on-demand catalog under the same
freshness check. Plugin recommendations read that catalog instead of a
hand-copied list, so the card of a connector the profile does not hold shows
its title and description in every shipped language, not only English and
Chinese. The skill's catalog entry and the catalog it loads are unchanged.

Catalog entries type their title and description as per-language text, which
the generator has always required.
2026-11-25 20:22:09 -08:00
CreatixChu 792a98c346 Merge remote-tracking branch 'origin/master' into codex/pr-9066
# Conflicts:
#	scripts/client-bundle-css.spec.ts
2026-11-26 11:59:40 +08:00
imccyu 67ccd52835 Merge pull request #9285 from deepseek-harness/client-isolation-scoped-css-and-media
fix(client): keep plugin styles, theme reads, and media queries working under client isolation
2026-11-26 11:37:35 +08:00
gengruilin 720075b06e feat(mcp-manager): declare a managed server as its own row beside the servers dictionary
The manager read every server that a deployment declared from one `servers`
dictionary in its row config. A patch that sets a row's `config` replaces
the whole config of the layers before it, so no layer could add or change
one server without restating the others. A dictionary entry has no
`disabled` key, and one invalid entry fails the manager row, so no server
starts.

`@deepseek-ai/dsh-mcp-manager/server` is a second plugin of the manager
package, and one row declares one server. Its config holds `serverName`
beside the fields of one `servers` entry except `enabled`, and the row
calls `ctx.mcpManager.register()`, the call that connector plugins already
use. A patch adds a server with `insert`, edits one by its row id, and
switches one off with the row's `disabled`. A changed row restarts alone,
and an invalid row fails alone.

The `servers` dictionary, its Settings namespace, the entry field
`enabled`, and the `disabled` status are unchanged, so no stored
configuration needs a rewrite. Rows and dictionary entries share one
namespace of server names: a row that names the server of a dictionary
entry fails alone, and a dictionary write that names the server of a
running row is refused. A row whose config carries `enabled` fails,
because a registration is enabled while it exists.

Refs #9134
2026-11-26 00:31:25 +08:00
Magolor cbc6457226 feat(session)!: store SQLite events as rows with derived tables
The opt-in SQLite Session store kept each durable write as one compressed
frame, so SQL could not see an event's sequence, type or time. It now
stores one row per event: the envelope members are columns and data is
JSON text, or one Zstandard frame when it is large. Segments use integer
ids and a segment_paths table that lists each Segment's history, so the
session_* views return a Session's events in one join, forks included.

Derived tables for model calls, tool calls, tool results and compactions
are written in the events' transaction and rebuilt from events when a
table is missing, its version changes, or its derivation was absent.

Opening a database runs ordered upgrade steps under src/migrations. The
first rewrites the frame layout (schema version 1) in place; a frame it
cannot read is set aside without blocking the other Sessions.

BREAKING CHANGE: the frameEvents setting is removed, and a database
upgraded to schema version 2 cannot be opened by earlier releases.
2026-11-25 17:23:45 +08:00
std4453 08f71eb52a Merge pull request #8406 from deepseek-harness/turtle/unify-toolcall-ui-32fb131525fb
feat(ui): align retry and delivery rows with tool rows
2026-11-25 16:49:13 +08:00
LegGasai f535813467 feat(forge): stage, unstage, and restore files in the local changes view (#9166)
* feat(client-ui-forge): stage, unstage, and restore files in the local changes view

The Unstaged scope of the local changes view stages and restores whole
files, and the Staged scope unstages them, each from an icon button on
the file header, the file menu, or a header button for every shown file.

A new forgePanel.localWrite Remote runs Git under the Session's sandbox
policy. Staging and restoring refuse a file whose change is not the one
the reader saw. Staging and unstaging return the index as a tree, which
the notice's Undo returns the index entries to. Restoring asks first.

The viewed mark draws as a ring, and a pane at most 380px wide shows a
file's writes under the pointer or once the keyboard reaches them.

Refs #9162

* test(client-ui-forge): give the older local diff fixtures the writable field

* docs(forge): document local writes on the subsystem page and refresh the catalogs

* test(client-ui-forge): run the local write specs on Windows

Refusals come from the recording sandbox instead of a POSIX stand-in Git,
the pathspec-magic file name is used only where the file system takes a
colon, and the batching case uses short names under the Windows path limit.

* feat(client-ui-forge): run local writes on the reader's authorization, outside the Session sandbox

A press in the changes view is the reader's own action, as archiving is for
the worktree service's removal of a checkout, so staging, unstaging, and
restoring no longer run under the Session's sandbox policy. They work in a
read-only Session and from a Session directory below the checkout's root.

ForgeLocalDiff.writable, the forgePanel/local-write-denied error, and its
notice are removed with the confinement they described. A restore passes
--no-recurse-submodules.

Refs #9162

* fix(client-ui-forge): refuse writes that reach past the chosen file

Three review findings on the local writes of the changes view:

- A deleted file whose path holds a directory is refused before anything
  is written. Git takes a path for the directory and everything in it, so
  staging the deletion staged those files and restoring the file deleted
  them.
- A submodule is offered no restore. git restore exits with success and
  leaves the commit it has checked out, so the view reported a
  restoration that did not happen. ForgeDiffFile gains `submodule`, read
  from the 160000 mode of the patch header.
- The file menu's rows for the writes cannot be activated while a write
  is in flight or the scope is read again, as the header's buttons.

Refs #9162

* docs(forge): record why local writes carry no filter guard

* test(web): wait for the last file's text before reading its scroll position

The file navigation case read the scroll position two frames after the
last file drew. A drawn file shows a row for the lines after its last
hunk until the Host answers the read of its text; the row then leaves,
the scroll range shrinks by its 26px, and the position falls from 3347
to 3321. When the answer took longer than two frames, the case recorded
the earlier position and failed with "expected 3321 to be 3347".

The case now waits for that row to leave. With the Host's answer delayed
by 600ms the old wait fails with that message and the new wait passes.

Refs #9162
2026-11-25 08:04:39 +00:00
Kexin Liu 2db4cd0cbc Merge pull request #9105 from deepseek-harness/turtle/side-origin-hidden-31b8f95819bd
feat(sidechat): record side origin and hide side conversations from the left Sidebar
2026-11-25 15:29:23 +08:00
Xu Hanxiang 7355ddbb7d Merge pull request #8966 from deepseek-harness/feat/liveshare-share-reconnect
feat(liveshare): 限制断线重试并支持原链接立即重连
2026-11-25 07:07:23 +00:00
TurtleandKexin Liu 3b2fbed8c6 docs: regenerate the API and event catalogs
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
2026-11-25 15:03:16 +08:00
01f8ec78d1 feat(sidechat): record side origin and hide side conversations
/side forks now record origin: 'side' in the child Session header. The
left Sidebar hides side-origin Sessions as it hides subagent children.
The V4 codec admits the side origin without changing the frozen V2
header codec; the persistence acknowledgement records the same-version
decision.

Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
2026-11-25 15:03:16 +08:00
6fd18391a2 revert: merge short SQLite frames inside the append transaction (#8674)
This reverts merge commit 0a25695c87697f04af906a01e4c259048937d421.

Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
2026-11-25 12:58:09 +08:00
gengruilin 2ceacb8ad6 feat(client-ui-connectors): keep custom MCP servers as MCP server rows of the profile patch
The MCP manager takes each server from its own `@deepseek-ai/dsh-mcp-manager/server` row and no longer reads a `servers` list, so the Connectors tab cannot keep custom servers in the manager's Settings namespace. The `connectors` Host service now keeps each custom server as the row `mcp-server-<name>` of the profile patch, and it lists every MCP server row of the composition, including a row that is switched off and a row that did not start.

Reading: the stream `watchServers` replaces `listServers()`. It sends the list when the browser subscribes, after each change made through the service, after `app-boot/config-reload`, and after `plugin-manager/changed`. Each server carries its row id and one of three states: on, off, or failed with the row's error. The revision a change names is a digest of the rows instead of the Settings revision. The config field `mcpManagerNamespace` and the list's `writable` flag are removed: the service needs the configuration editor, the plugin manager, credentials, and the MCP manager, and it reports the section as unavailable when one of them is absent.

Writing: `saveServer(draft, revision, id?)` inserts a new row through the configuration editor, or replaces the config of the row `id` names, after it checks the config against the row plugin's exported `Config`. A row that is switched on must run after the write; when it does not, the configuration editor restores the profile patch and the save is refused with the row's failure. A row that is off is written without starting, and a row that did not start is started with the new config, so both can be edited. Secrets are stored after the row is written, and a reference is deleted only when no other row uses it, whether that row is on or off. `removeServer(id, revision)` removes only a row the profile patch adds. `setServerEnabled(id, enabled, revision)` switches the row through `pluginManager.setPluginEnabled` and reports every outcome other than `applied` as a refusal.

OAuth: a server that is on signs out through the manager. The manager does not hold a server that is off or did not start, so the service deletes that row's grant record itself, unless another row or a registered server uses the same key. Accounts are registered for the OAuth rows that are on.

Browser: the store follows the stream instead of reading after each change and after each Settings event. A row shows why it did not start. The page of a server that is off or did not start keeps the form; only a server that is on has Test connection and the account section. Switching a local command on asks for the risk confirmation, as saving one that the save starts does, and the form no longer has an `enabled` field. When the row of an open page is removed or can no longer be read, a notice takes the page's place. The rows of the header, environment, and argument lists keep their keys while rows are added and removed.

Two style defects seen on the real page are fixed: the validation lines named a color token that does not exist and fell back to the secondary label color, and the button of a notice wrapped below a long message.

The save checks a config with `Config` of `@deepseek-ai/dsh-mcp-manager/server`, and the grant deletion builds the record key with `credentialKey` of `@deepseek-ai/dsh-credentials`, so the package declares both packages as peer dependencies. `scripts/package-dependency-policy.ts` lists the `Config` export under `PEER_REQUIRED_HOST_EXPORTS`; this policy entry needs the domain owner's confirmation.

The Web e2e asserts the row and its override in the profile patch, the stored token, the switch, and the removal of both. The READMEs, the Agent Notes that described the Settings namespace, and the generated catalogs describe the rows.
2026-11-25 12:29:08 +08:00
ZiyaZhang 00e4adcaa1 feat(plugin-recommendations): recommend official connectors and install them from the card
List the seven official connectors in the official-plugins skill catalog and
offer one when the user's own request needs its app. The skill's catalog
entry names only the apps whose connector a card could offer, so a task that
needs the app of an enabled connector does not load the skill.

A click on the card of a connector the profile does not hold installs it at
the DSH version through Plugin Manager, switches on the Connectors tab, and
enables it; install scripts that pnpm stopped on need a separate approval on
the card. The card of an enabled connector opens its page in Plugins to
connect the account.
2026-11-24 20:02:56 -08:00
Turtle 8641460aa3 Merge pull request #8639 from deepseek-harness/turtle/plugin-update-builds-86f822edb704
fix(plugin-manager): allow blocked build scripts when updating a plugin
2026-11-25 11:33:33 +08:00
CreatixChu 4cba2b6679 fix(cua): align Windows permission lists with macOS 2026-11-25 11:13:38 +08:00
CreatixChu 5ecfd7b347 fix(cua): restore application icon interface 2026-11-25 11:13:37 +08:00
CreatixChu 50eaf7e7f6 fix(cua): reuse shared application approval presentation 2026-11-25 11:13:37 +08:00
CreatixChu 8e8e90a5e5 fix(cua): refresh saved app permissions before native metadata 2026-11-25 11:13:36 +08:00
CreatixChu 596b9f4846 fix(cua-windows): scope app consent to verified Windows identities 2026-11-25 11:13:35 +08:00
imccyu 1f1590430e refactor(ui-renderer): bind document hooks to the application mount 2026-11-25 02:55:56 +08:00
imccyu 897ab671f6 feat(ui-renderer): scope opted-in package styles on existing slot roots (#9033)
* feat(ui-renderer): scope opted-in package styles on existing slot roots

Share the package style policy between slot dispatch and stylesheet installation. Preserve global themes, root identity and component state through style-only toggles, including nested Factory, HOC and list output.

* fix(dev-web): keep launcher validation independent of package sources

* refactor(ui-renderer): identify generated scope CSS as stylesheet content

* fix(client): keep panel indicators visible under style isolation

Position a shared indicator area on the Session panel toggle. Jobs, Subagents, and Forge paint their own marks without crossing package scopes.

* refactor(ui-renderer): fix each package style scope for the page

Stamp the content supplier on existing slot roots. Read its page-owned mode when registering content and writing stylesheets instead of subscribing the render tree to live policy changes.

* fix(ui-renderer): keep scoped styles with their actual package

Resolve Loader aliases against the page module table and stamp contributions from the renderer’s own module source. Let a valid package stylesheet take over a path rejected during scope preflight or by the destination.

* fix(client-modules): declare the row callback receiver-free

* refactor(ui-renderer): scope styles from their module records

* test(ui-renderer): verify module-record style scoping

* chore(ui-renderer): restore scoped slots to the PR base

* fix(ui-renderer): mark slot roots with their supplying module

* refactor(ui-renderer): bind Factory child slots once per supplier

An outlet belongs to whoever called renderSlot for it, wherever it later
renders. A Factory's child-slot methods are now kept per Factory and per
supplier: the Factory itself for its own Component and fallback locals,
the occurrence's caller for a local it selected. One caller mounting its
local in several places shares one method, and no per-mount binding or
extra occurrence context field remains.

* refactor(ui-renderer): scan a Factory's chain children once

Whether a Factory declares a chain child is recorded once per Factory
beside its per-supplier child-slot methods, instead of once per
supplier. The Factory kit assigns `renderSlot` and `renderSlotChain`
by name rather than copying whichever keys the methods object holds.

* test(client-runtime): expect data-plugin on the mounted slot root

The slot outlet names its supplier on the existing root; the test runtime registers without a package, so the two DOM snapshots gain data-plugin="".

* test(web): launch the panel indicator scenario per isolation mode

The Host reads an entry's client isolation when its plugin starts, so
updating that field on a running entry never reached the boot graph and
the scenario waited forever. Each mode now starts its own Host: the
shipped composition, and one whose overlay declares style isolation for
the panel and the two packages drawing on its toggle. Both check the
boot graph first, then run the same interaction and indicator
assertions.
2026-11-25 02:52:49 +08:00
imccyu 2fc9df3000 Merge pull request #8803 from deepseek-harness/client-isolation-switch
feat(client): run opt-in package scripts in dedicated iframe Realms
2026-11-25 00:29:12 +08:00
imccyu 18bc130853 revert(web): restore full URLs for pull and merge request links (#8423)
This reverts commit af6d659de2858d7760acdd680d942166724ffaed, the merge of
#8423.

A bare github.com pull request or gitlab.com merge request URL streamed in
as its full URL and shrank to its owner/name#N reference only when the
reply settled, so the reply reflowed after it finished. The URL arrives
character by character, so the reference cannot be drawn before the URL is
complete. Links keep their written text again, and the Open in code review
URL menu entry, the forgePanel.recognize Remote, and the generic URL menu
adjustments that shipped with it leave with the revert.
2026-11-24 23:06:16 +08:00
imccyu c813f27703 refactor(client-modules): pin script Realm placement until page reload
Let ordinary revision-based replacements retain every materialized generation until its runtime releases it. Drop unused iframe candidates and stop fetching a removed package instead of creating a new orphaned Realm.
2026-11-24 21:34:47 +08:00