Files
deepseek-harness/packages/client
imccyu 64ac8d1a5b fix(client): realm-independent JSON and shallowEqual checks, and owner-held cross-package styles (#9181)
* fix(typert): accept plain JSON values from any realm

An isolated Client plugin builds its values in an iframe, so they inherit
that realm's Array.prototype and Object.prototype, and the identity checks
in the Remote JSON validation and the Gateway's record checks rejected them.

dsh-util-values exports hasPlainPrototype, which matches this realm's
intrinsics by identity and another realm's through their native
constructors. isRemoteJsonValue and the Gateway's event-frame and
event-request record checks use it. Objects and arrays that inherit any
other prototype stay rejected, so an inherited toJSON cannot rewrite a
validated value.

* fix(client-store): compare Maps and Sets from any realm in shallowEqual

shallowEqual delegated to zustand/shallow, which recognizes collections with
instanceof Map and instanceof Set. A selector in a script-isolated plugin
returns collections built by its iframe realm, so both checks failed and two
Maps fell through to an Object.keys comparison, where any two Maps are equal.
ui-workflow-run selects its running members as a Map, so under isolation its
"Open ..." member buttons never appeared.

shallowEqual now recognizes Maps and Sets by their Object.prototype.toString
tag and otherwise keeps the one-level semantics: Object.is for scalars and
values, Set membership, and own enumerable string keys for other objects
and arrays. A Map comparison also requires each key to exist in the other
Map, so new Map([["a", undefined]]) no longer equals
new Map([["b", undefined]]). zustand remains a development dependency for
createStore and subscribeWithSelector.

* fix(ui-sidebar): ease the sidebar width from its layout owner props

ui-sidebar eased its width under `[data-animating]:not([data-dragging])`,
attributes of ui-layout's frame. With ui-sidebar's styles isolated that
ancestor lies outside its scope, so collapse and expand lost the easing.

ui-layout now passes the same state through `SidebarOwnerProps.animating`,
true while the frame eases its tracks and false during a resize drag or a
viewport change. The sidebar marks its own root `data-sidebar-animating`
and keeps the width transition there, after the quiet-scrollbar transition
it replaces, and reduced motion still turns it off.

* fix(ui-chat): style only Chat's own DOM inside the Conversation scrollport

ui-chat laid out its frame, scroller, aside layer, back-to-bottom control,
and turn rail under `:global([data-conversation-scroll]) .x`, and set
`overscroll-behavior-y` and `overflow-anchor` on ui-conversation's
scrollport through `[data-conversation-scroll]:has(.root)`. With ui-chat's
styles isolated, neither form matched, so Chat scrolled itself inside the
shared scrollport and lost its anchoring, back-to-bottom position, and
floating controls.

Chat's rules now test the scrollport in `:is()` on its own compounds,
`.frame:is(:global([data-conversation-scroll]) *)`, with unchanged
specificity. The scrollport rules move to their owner: ui-conversation
reads `data-conversation-overscroll="none"` and
`data-conversation-scroll-anchor="none"` from an element a View marks
inside the scrollport, and Chat marks its root with them, the second only
while it follows the tail.

* fix(ui-sidebar-documentpreview): hide the body a filling navigator covers

ui-sidebar-files hid the body of any row marked
`data-files-navigator-row` while its navigator Factory filled the row.
The document preview's content row is documentpreview's DOM, so with
ui-sidebar-files' styles isolated the covered preview stayed visible and
reachable by Tab.

The preview's own stylesheet now holds those rules on its `.content` row,
reading the navigator's `data-files-navigator-mode` through the row's
`:has()`, so the preview hides its body itself in both modes. The files
page row never had a covered sibling, so ui-sidebar-files drops the rules
and the `data-files-navigator-row` mark, and its README and Factory
documentation state that the host hides the covered content.

* chore(workflow-ptc): regenerate the workflow guest for the util-values prototype checks

The guest bundles packages/util/values; its same-realm Object.prototype and Array.prototype fast paths changed the generated source.
2026-11-25 21:33:04 +08:00
..
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00
2026-11-22 15:27:28 +08:00

description, kind
description kind
Package map for the web GUI browser half: shell boot, browser-host communication, shared client services, localization, development reload, and the UI feature plugins. package-group

client/ — web-GUI browser half

English | 中文

Summary

The client/ group provides the browser experience for the dsh web GUI, including conversation, navigation, settings, approvals, file access, and other interactive features. Choose packages from this family when adding browser-visible behavior; use host/ for server-side page delivery and host integration. Packages cover both the shared browser foundation and focused UI features, while each child README owns its configuration and behavior. Authoring rules live in AGENTS.md, and the related documentation below explains cross-package composition.

Table of Contents


Packages

The kernel packages boot and serve the page; the UI feature packages present it. Each package README owns its contract and configuration.

Package Role ctx key
web/ Boots the browser shell —
modules/ Loads browser-side client modules ctx.clientModules / ctx.modules
connection/ Maintains browser-host RPC communication and event delivery ctx.connection
file-upload/ Sends raw Blob and byte-stream request bodies outside the page thread ctx.fileUpload
shortcuts/ Registers application keyboard commands ctx.shortcuts
ui-shortcuts/ Presents the keyboard shortcut reference —
store/ Provides React-free observable and snapshot-store primitives —
hmr/ Refreshes client plugins during development —
locale/ Provides localization preferences and message dictionaries ctx.locale
test-runtime/ Shared repository test support for client feature packages —
ui-renderer/ Binds slot data to React and mounts the assembled application ctx.uiRenderer
ui-slots/ Defines typed extension Slots and reusable Component Factories —
ui-session/ Adapts Session Controller state into standard Slot sources and hooks —
ui-session-status/ Keeps reading reminders in Host memory and combines running state, the effective pending interaction, and shared reminders into the Session status table behind useSessionStatus ctx.sessionStatus / ctx.uiSession.sessionStatus
ui-theme/ Applies the selected color theme —
ui-primitives/ Provides shared React controls, icons, and content renderers —
ui-attachment/ Registers composer and message-image attachment presentation —
ui-layout/ Arranges the main application regions —
ui-responsive/ Gives every Slot component the page's media-query answers and device class as useMediaQuery and useMobile —
ui-dockkit/ Provides docking layout operations and React components —
ui-sidebar/ Presents workspace and session navigation —
ui-sidebar-right/ Owns the right Sidebar and its tab types ctx.sidebarRight, ctx.sidebarRightTabs
ui-sidebar-documentpreview/ Displays documents in right Sidebar tabs ctx.documentPreviews
ui-sidebar-browser/ Browses sandboxed HTTP(S) pages, including loopback services, in right-Sidebar tabs —
resources/ Unified resource model: protocol providers behind the useResource session standard hook ctx.resources
ui-sidebar-files/ The workspace files page and one workspace tree per pane beside docked and floating previews —
ui-brand-official/ Fills the generic browser-brand slots with the official name and marks —
ui-workspace/ Provides workspace selection and creation surfaces —
ui-conversation/ Presents the active conversation and its input surface —
ui-chat/ Projects and renders the Chat conversation target —
ui-approval/ Presents approval requests and returns user decisions —
ui-tool/ Composes Tool call trees and keyed per-Tool views —
ui-workflow-run/ Replays durable workflow runs as nested chat disclosures —
ui-goal/ Presents and manages the current goal —
ui-trajectory/ Presents alternate views of agent activity —
ui-commands/ Provides session-aware command discovery and dispatch —
ui-input-trigger/ Coordinates inline command and reference suggestions —
ui-skill/ Adds skill references to inline suggestions —
ui-reference/ Unified Web @file / @session reference source —
ui-secret-mask/ Masks recognized credentials in sent user text —
ui-agent-team/ Session Team switch and shared tasks below the Subagent tree —
ui-subagent/ Provides subagent navigation, child transcript states, and inline references —
ui-jobs/ Lists this session's background jobs with on-demand streaming record panels —
ui-schedule/ Provides the sidebar Automation tasks page and right Sidebar task tab, which create, edit, run, pause, resume, and delete Host scheduled tasks, plus the Session header clock and row mark —
ui-session-panel/ Adds the Session header toggle and the floating Session panel whose sections plugins register, with the Environment section —
ui-model-selection/ Provides model selection in conversation surfaces —
ui-permission-presets/ Configures default permissions and switches the current session's access —
ui-plan/ Presents active plan-mode status and its exit control —
ui-user-questions/ Presents interactive questions requested by the agent —
ui-agent-preset/ Selects a session's agent preset and authors preset compositions —
ui-settings/ Hosts the settings interface and its extension areas —
ui-settings-general/ Provides the general settings section —
ui-settings-models/ Provides model-provider configuration and DeepSeek onboarding —
ui-settings-shell/ Provides the shell settings page on the Plugins page —
ui-settings-agent-loop/ Provides the agent-loop settings page on the Plugins page —
ui-settings-session-log/ Controls API Session-log upload in General settings —
ui-settings-subagent/ Provides the Subagent settings page on the Plugins page —
ui-settings-web-search/ Provides the web search and fetch settings page on the Plugins page —
ui-plugin-manager/ Contributes the sidebar Plugins panel: install, enable, disable, retry, and compose installed packages —
ui-connector-account/ Holds the accounts connector plugins register on the Host and shows each bundle's account section, tag, activation prompt, confirmations, and notices on the Plugins page ctx.connectorAccounts
ui-entry-customization/ Adds region-local More menus that pin or unpin plugin launchers and start a plugin draft —
ui-plugin-market/ Contributes the Discover tab to the Plugins page: browse market indexes and install their bundles —
ui-deliverables/ Produces the changed-files card with its comparison tabs, delivery cards, and clickable final-response file references —
ui-action-cards/ Shows the card frame below completed answers, kind bodies and the layer that hides card blocks —
ui-creation-recommendations/ Shows the personalized page card body with location selection and undo —
ui-plugin-recommendations/ Shows the official plugin card body with catalog text and enabling —
ui-message-feedback/ Provides message ratings and feedback dialogs opened from ratings, /feedback, or the Session Header menu ctx.feedbackUi
ui-directory-picker-browse/ In-app directory browsing surface for the workspace directory flow —
ui-directory-picker-native/ Native directory-picker surface driving the local Desktop or Host OS chooser —
ui-open-in-app/ Session-header split button opening the workspace directory in an installed application, and the document preview's default-application controls for one file —

Start with the subsystem reference and the two notes that own the cross-package composition decisions, then the host half that serves this page.

Dev Note

Working context for maintainers — click to expand

None.