@yadsh/dsh-qa-surface
v0.23.5
Published
A focused end-user QA surface backed by native DeepSeek Harness sessions
Maintainers
Readme
@yadsh/dsh-qa-surface
The opt-in request_user_form tool collects required answers and item-bound
files through durable step-by-step forms. It is disabled by default. See the
configuration, storage contract and acceptance guide
before enabling it and granting the tool to a QA role.
Markdown source previews can present a leading YAML mapping as a compact document
metadata card with expandable source and conversion details. Set
sources.filePreview.renderFrontmatter: true (off by default), or use the
Sources → File preview configuration switch. Raw always preserves the complete
original file. Source chips ending in :12-15 or #L12-L15 open that physical
line range and highlight its containing rendered blocks, including the YAML
header's lines in the numbering. Relative PNG/JPEG/GIF/WebP illustrations load
on approach to the viewport through readSourceImage: the parent must be an
attested Markdown source, the exact image destination must appear in it, and the
resolved file must pass readable-root, raster-format and preview-size checks.
A focused, responsive QA/chat page for DeepSeek Harness at /qa. It replaces
the presentation, not the harness: prompts, streaming, tools, skills, MCP,
memory, persistence, permissions and telemetry continue through the native DSH
Session and Agent Loop.
What it does
A compound request can redeliver an existing DOCX and ask for additional work. The ordinary agent turn receives the entire request; its completed answer also includes the uniquely identified file from its original producer receipt. Newly generated files remain attached alongside it. Modification requests do not substitute an old file for the edited output, and ambiguous names require clarification. Explicit standalone resend requests retain the direct transfer path without starting a writer or reviewer. Restored chats resolve their recorded Agent before selecting the file. The transfer verifies the original digest and exact byte size through the normal workspace download fence and is appended before the native prompt is dispatched.
Chat history supports virtual folders and a separate pinned section. Create, rename, collapse and delete folders; drag chats into folders, out to the root, or into the pinned section. Drag rows or folder headers to arrange them, or use the chat menu and folder settings with a keyboard. Unpinning returns a chat to its previous folder. Moving a pinned chat into a folder unpins it. Deleting a folder leaves its chats in history, preserving any pins. Search includes folder names and reveals matching chats inside collapsed folders.
This organization is browser-local and scoped to the QA route and account ID. It survives reloads and updates other tabs on the same origin through storage events; it does not synchronize between devices. Folder membership and pins change only presentation metadata: session IDs, workspace roots, physical files, ownership and access remain as they were.
Under Integration tokens, choose Folder for new chats when creating a
credential, or change the destination on an existing active token without
reissuing it. This default is stored on the server as a virtual folder ID and
display name. Each newly created API conversation snapshots it before its first
answer, even when no browser is open. Authenticated history imports that folder
and assignment once; manual moves and folder deletions are preserved. Changing
or clearing a token's default affects future conversations, not continuations
of an existing session_id. The default does not change workspace paths or
grant access to another account's chats. The folder picker lists folders from
this browser's history and retains an existing server selection from another
browser. New API chats can recreate a selected folder that was deleted locally;
clear or change the token default to stop using that destination.
Corporate sign-in through Keycloak or another OpenID Connect provider is opt-in.
The source tree includes plugins/dsh-qa-surface/docs/oidc.md with client settings,
account linking, role admission, session limits and deployment acceptance.
The composer has one compact Chat settings menu beside the attachment button. Its summary shows the current model and code version. The Model and Code version entries open nested choice lists with a checkmark for the current value; Back, Escape and arrow keys navigate the levels. The menu closes after a successful choice and stays open with an error if saving fails. Model choices appear when the role or account permits alternatives; code choices appear when a code-source catalog is configured.
Choosing a model applies to the current chat and survives reopening it; new chats keep the configured default. Switching waits until the chat has finished its response and has no queued request. Readers, participants and delegated-agent views cannot change the owner's model.
Administrators set the default and Alternative models for the user in the
role's Model tab or the account's model settings. model keeps its existing
priority: account, role, deployment. The optional allowedModels array adds
provider/model pairs to that default. An omitted account array inherits its
role's alternatives; [] explicitly restricts that account to its default.
An omitted role array grants no alternatives. Saved policies keep their
previous single-model behavior until an administrator grants alternatives.
The server filters the catalog and validates every selection against the
owner's current policy, including model replacement rules.
Chat-local selection uses the Session controller's guarded selection commit
capability, which records the native model/selection event and updates the
next-request selection without saving the Host operator's global default.
A Host without that capability rejects the switch rather than changing a
deployment-wide preference. The rest of the QA surface remains available.
The focused packed browser check is pnpm --filter @yadsh/dsh-qa-surface
e2e:browser --model-selection. Set DSH_QA_SMOKE_VERSION to the Host version
being checked, and optionally DSH_QA_HISTORY_EVIDENCE_DIR to a local evidence
directory. This pass exercises synthetic model routes without real provider
credentials, including access filtering, switching, reload persistence,
new-chat defaults, and desktop/phone layout. It does not run the separate LAN
deployment-overlay acceptance pass.
Run pnpm --filter @yadsh/dsh-qa-surface e2e:browser --chat-layout to
check the theme, reading width, document panel and private-chat bylines in
Chromium on localhost. The default browser suite also exercises the LAN overlay.
- contributes one root-scoped entry to the additive
shell.overlayslot; - stays invisible outside the configured route;
- creates or restores one real DSH Session;
- renders only user text, assistant-visible text and safe status messages;
- supports streaming, Stop, optional New chat, safe Markdown, copy actions and a responsive first-party-style conversation layout;
- offers a multi-select answer mode menu beside the composer, with the selected names in its button and explanations on hover and keyboard focus. Deep Thinking is the default. RAG Priority uses LightRAG evidence first and allows loading applicable skills. A substantive result supported by relevant sources can answer the request directly; reformulated queries and another retrieval mode address concrete gaps rather than being mandatory for every answer. Other research tools and delegation remain blocked until the user explicitly approves the Host's fixed deep-search question. Refusal, cancellation, skipped questions and an earlier request's consent never grant that permission. If interactive questions or RAG tools are unavailable, the agent reports the gap and cannot silently switch to deep research. Automatic answer reviewers retain their permitted verification tools and structured output inside the Host's review call; this grants no research consent to the primary agent;
- keeps Fast combinable with the other modes, with a visible warning while on.
New ordinary requests, regeneration and approved-document export requests use
the Host's trusted
/no-reviewcommand for an audited, request-specific waiver. Explicit slash commands keep their normal behavior. Fast starts off and resets when the chat changes; it never disables mandatory document review or human approval. The deployment must permit the native waiver command, including its closed-mode policy; a refusal keeps the unsent prompt rather than silently falling back to a reviewed request; - queues a question asked while the assistant is still answering: the strip above the composer lists what waits for the next turn, and each row can be edited, sent into the running turn, or dropped. The queue is the Host session's own state, so nothing is stored here and a message never reads as both queued and sent;
- renders assistant Markdown with this plugin's own GFM grammar — headings
through
######, nested and task lists, tables, quotes, images, autolinks, reference links, TeX math ($…$,$$…$$, ```math fences, through a bundled self-contained KaTeX) and footnotes ([^label]with the trailing section) — inside an HTML-free renderer, and relays the host theme's own typography and syntax colors (--dsw-font-markdown-*,--dsw-alias-markdown-*,--shiki-token-*) so a fenced block here reads like one in DSH's own transcript, in either theme and at any font-size preference. A fence carries the language banner, a copy button and a built-in highlighter for the languages answers use; an unknown or absent language stays plain monospace; - optionally shows a minimal per-browser chat-history sidebar
(
ui.showSessionList) whose switching re-runs policy attestation; - blocks unsupported approvals/questions instead of auto-approving them, and can
park them for the operator to answer (
interaction.approvals: interactive,interaction.questions: interactive) instead of refusing or stalling on a card the QA view cannot show; a parked question takes the composer's place until it is answered or its turn ends; - pins locked sessions to the configured
read-onlyor isolatedworkspace-writepolicy plusapproval=neverbefore Send is enabled; - applies a Host-side tool allow-list plus a monotonic execution guard;
- separates account authorization (
admin/user) from the QA agent's active subrole, with server-owned Common, per-role Tools and Skills, immutable session snapshots, and a dedicated administration page at/qa/admin; - attaches its own QA tool catalog per agent only after the activation skill
loads (
tools.dynamicActivation), keeping every QA schema out of the initial request and restoring the catalog on resume from the session's own journal; - ships a destructive-but-fenced
file_deletetool in that catalog: it removes one regular file strictly inside the chat's workspace and refuses directories, missing paths and anything that leaves the root — symlink escapes included — with an explicit, path-safe reason; a call from the chat's own agent answersask, so the interactive approval card parks it for the operator, a delegated call is refused outright, and nothing is ever deleted without a person's answer; - optionally gates the surface behind email + password accounts
(
accounts.enabled) with server-side session ownership, a first-login migration of the browser's existing chats, aqa-accountsmanagement CLI (list/add/set-password/set-role/disable/revoke), and a coarse honest boundary: accounts identify QA users, they do not fence the harness root; - gives each account a
Настройкиdialog — profile, starter messages, notification channels, integration tokens, general, and personal skills: ordinary Agent Skills stored asSKILL.mdin the account's own directory (accounts.skills), edited with a catalog, an invocation-flag form, a Markdown body, a tool picker over the deployment's registry, and a preview of the exact file a save writes. Skills reach the model through a provider this plugin registers instead of the filesystem one, so no account can see another's, andallowed-toolsis stored as declared but never grants anything the session does not already allow; - carries its own light/dark/system palette control in personal settings: the Host's
Appearance row lives in the settings this surface suppresses, so
/qawould otherwise open in whichever theme the application happened to boot with (see Theme); - optionally redirects non-loopback hostnames from the harness root into the
QA route (
entry.redirectNonLoopback), keeping the operator's localhost harness UI untouched; - ships an operator settings card on the Host's Plugins page — this package's
row, opened under its configuration section — that edits the
qa-surfacenamespace in place (route, branding, session, interface, lockdown, accounts, sources, attachments, embedding) and reports the configuration the running Host resolved; - no longer owns the document pipeline:
document_create,document_to_markdown,document_from_url,document_convertanddocument_inspectcome from@yadsh/dsh-documents, which a QA chat reaches exactly as before — same tool names, same allow-list entry, same artifact layout. What moved with it is the configuration: the pipeline is configured in that plugin's owndocumentsnamespace and card (QA_DOCUMENTS_*environment variables becameDSH_DOCUMENTS_*), and a leftoverdocuments:section underqa-surfaceis ignored with adocuments.movedwarning in the Host log; - uses the existing same-origin DSH connection and trust boundary.
It does not add another HTTP server, provider proxy, permissive CORS rule, or custom session persistence.
Install
Install the package where the DSH Host can resolve it, then compose its Loader
row. The included cordis.patch.yml is a minimal example:
- insert:
- id: dsh-qa-surface
name: "@yadsh/dsh-qa-surface"
config:
enabled: true
route:
path: /qa
matchChildren: trueSome DSH patch operations replace a row's complete config instead of deeply
merging it. When editing an existing row, provide every value that deployment
needs.
Tested DSH releases serve unknown frontend paths as 404 rather than falling
back to index.html. The Host half therefore claims only the configured QA
navigation path and redirects it through the canonical / document with a
short-lived query marker. The browser restores the requested /qa URL with
history.replaceState before mounting the overlay. No second server, duplicate
HTML document, permissive route, or unauthenticated config endpoint is added.
Configure
Configuration is registered under the Host settings namespace qa-surface.
Composition values form the base layer; normal DSH user settings can override
them when the deployment provides writable settings.
The browser half carries a settings card for that namespace: the Host's
Plugins page → this package's row → its configuration section. It writes the
user layer of qa-surface — so every change is revertible through the card's own
reset — and shows the configuration the running Host resolved next to it.
Combinations the Host refuses are either written together in one mutation (a
provider with its model, per-user workspaces with the workspace-write sandbox)
or disabled with the reason stated. The row's chrome is the page's: it draws the
surface, the heading and the expand control, and this bundle contributes the body
— the heading falls back to the package name and the row's one-liner to this
manifest's description, which is the sentence the card answers its summary
view with. The Plugins page is not the settings directory, so the card keeps
answering from a browser on another machine: there the namespace reads
unavailable — the DSH gateway pins it to loopback — and the card says so rather
than vanishing, while a namespace that serves values but refuses writes keeps its
body and disables the write controls. Either way the same configuration stays
readable anywhere through qaSurface/describe on the QA page itself.
The row on the Plugins page is the only browser route that writes these values.
Where a deployment keeps that page from the operator, the config: block below
is what sets them: it is the composition layer the card's user layer overrides,
and the values it names are the ones the card would have changed.
config:
enabled: true
route:
path: /qa
matchChildren: true
branding:
title: Внутренний помощник
subtitle: Отвечает на вопросы о внутренней платформе
welcomeMessage: Чем могу помочь?
placeholder: Задайте вопрос…
logoUrl: null
session:
# Pin every chat to a directory (optional, one of):
# cwd: "D:/qa-docs" # direct absolute directory pin
# workspaceId: "<uuid>" # or a registered DSH workspace
policy: browser-persistent
storageKey: dsh-qa-surface.session
workspaceId: company-knowledge
fixedSessionId: null
agentPreset: qa-assistant
provider: null
model: null
reasoningEffort: null
# How many questions the stand answers at once; 0 sets no ceiling.
maxActiveRequests: 0
ui:
showHeader: true
showReset: false
showStop: true
showTimestamps: false
showToolActivity: false
showReasoning: false
renderMarkdown: true
minContentWidth: 650
showSessionList: false
accounts:
enabled: false
allowRegistration: true
sessionTtlDays: 30
# Login/registration attempts accepted per rolling minute, store-wide
# (optional). The limit backs the password checks; raise it only when a
# shared kiosk genuinely needs the headroom.
maxAuthAttemptsPerMinute: 30
showOtherUsersChats: false
perUserWorkspace: false
profile:
enabled: true
inject: true
identities: [] # e.g. [{ key: jira, label: Jira }]
instructionsMaxLength: 2000
# Per-account starter buttons above an empty composer (optional).
starters:
enabled: true
suggestedQuestions:
- Как запросить доступ?
- Где лежит инструкция?
# Phrases the running indicator cycles through (optional). An empty list
# restores the built-in ones.
thinkingPhrases:
- Уточняю по регламенту…
- Сверяюсь с инструкцией…
# What a visitor may attach (optional). Files are staged on the Host and
# read from the stored copy, so keep `read` in lockdown.toolPolicy.allow.
attachments:
textFiles: true
pastedTextLines: 200
maxFileBytes: 10485760
maxPending: 8
extensions: [md, txt, log, json, yaml, csv, sql]
interaction:
# blocked: refuse a composed gate's `ask` with the QA reason.
# interactive: park it over the composer for the operator to answer.
approvals: blocked
# unsupported: refuse ask_user_question with an actionable reason.
# interactive (or enabled): park the request over the composer as an
# answerable form, which owns the composer until it is answered or the
# turn ends.
questions: unsupported
# Whole minutes to answer a browser-turn question, even with the chat closed.
# Allowed API clarifications have no deadline. Open forms chime every five minutes.
questionTimeoutMinutes: 30
# Root-page entry behavior (optional; see "Serving the QA rig over the LAN").
entry:
# Inject the root → /qa redirect for non-loopback hostnames.
redirectNonLoopback: true
# Let the /qa route run the one-time ?token= host-cookie exchange itself,
# so transparent entry works without the deploy proxy.
cookieBootstrap: true
# Turn-completion notices for the chats of this browser's own history.
notifications:
# Off: a finished turn stays silent on both channels.
enabled: true
# Off: the page never hands a finished turn to the operating system,
# whatever a reader chose there.
allowOs: true
lockdown:
enabled: true
enforceFixedAgentPreset: true
enforceFixedWorkspace: true
enforceFixedModel: true
sandboxMode: read-only
approvalPolicy: never
permissionPreset: qa-read-only
allowPermissionChanges: false
allowSlashCommands: false
allowSettingsMutation: false
allowSessionReset: false
allowSessionRename: false
allowSessionDelete: false
allowArbitrarySessionOpen: false
toolPolicy:
mode: allow-list
allow: []
sources:
enabled: true
collect:
parentAgent: true
subagents: true
persistTurnEvent: true
display:
sidebar: true
footer: true
groupByKind: true
showDiscovered: false
showOriginBadges: false
maxInitiallyVisiblePerGroup: 8
webSearch:
promoteSearchResultsWithoutFetch: true
maxPromotedPerSearch: 5
dedupe:
normalizeUrls: true
stripTrackingParams: true
mergeFileRanges: true
filePreview:
enabled: true
markdownRenderedByDefault: true
allowRawToggle: true
maxBytes: 2000000
maxMarkdownRenderBytes: 1000000
subagents:
inheritSources: true
enableReportToolFallback: true
markIncompleteOpaqueRuns: true
validateReportedSources: true
legacy:
parseAssistantSourcesBlock: false
# QA tool delivery (optional). The plugin's own tool catalog stays out of the
# model request until the activation skill has actually been loaded.
tools:
dynamicActivation: true
activationSkill: qa-surface
activationMode: all
# Presets whose sessions may unlock the catalog. Empty leaves the gate open:
# only do that when this Host serves one agent composition.
activationPresets: []
# Native file writes and edits in QA chats, delegated calls included.
# Exact case-insensitive suffixes; [] disables this additional restriction.
fileWritePolicy:
blockedExtensions: [.py, .pyw]
message: "Do not create or execute scripts. Use the available document and spreadsheet tools. If an operation is unavailable, report the limitation."
# Where the documentation readers look. Empty reads `docs/` inside each
# chat's own workspace; name the corpus when it is published once, outside
# every per-user workspace (see "Dynamic QA tools" below).
docsRoot: ""workspaceId is recommended for a deterministic assistant. Without it, DSH
uses the Host's normal default working directory. Put the system prompt, tools,
skills, knowledge connections and permission policy in agentPreset, not in
this UI plugin.
File write policy
The operator's QA settings card includes Запись файлов: a list of blocked
extensions and the refusal message returned to the agent. The default list is
.py, .pyw. Changes apply to the next tool call, including existing chats
and their delegated agents; restarting the Host is unnecessary after changing
the settings on a build that includes this feature.
The native write, edit and mutating str_replace_editor commands are denied
before dispatch. Reads and the editor's view command remain subject to their
existing access rules. Matching ignores case, accepts extensions with or without
a leading dot, and supports compound suffixes such as .tar.gz. The policy
checks both the requested filename and its canonical target, so an allowed
symlink name cannot overwrite a blocked file. [] disables only this policy;
it does not grant sandbox or tool access. The message must contain 1–4000
characters. Paths and wildcards are refused in the extension list.
This is a native file-tool policy, not a content classifier or a general process
sandbox: it does not inspect scripts disguised with an allowed extension or
outputs produced by other tools. Existing QA restrictions on shell execution
and apply_patch remain in force independently.
Run pnpm --filter @yadsh/dsh-qa-surface smoke:packed --file-write-settings
to check the settings in Chromium against a disposable packed Host. Set
DSH_QA_FILE_WRITE_EVIDENCE to a local directory to retain screenshots and
geometry measurements. The round covers save/reload, empty-list handling,
invalid-message refusal, reset, and light/dark layouts at 390 and 1440 pixels;
it also runs as part of the full e2e:browser pass.
Dynamic QA tools
The Plugins panel → QA Surface → Инструменты интеграций controls a
separate option, tools.discoveryMode, for newly attested native QA chats
with lockdown. It applies only to owner-registered GitLab, TeamCity, Test IT,
Weblate and Bitrix24 operations. Jira and Confluence remain ordinary tools.
| Mode | What the model sees |
| --- | --- |
| off (default) | The original schemas, no discovery tool or observations. |
| observe | The same schemas. Host logs report schema counts and estimated JSON bytes for the candidate set (tool-discovery.observe) and families actually called (tool-discovery.used), without arguments, results or user messages. |
| search | qa_find_tools in place of eligible schemas. Search by topic, family or exact name, or browse with pagination. Only a search opens up to five native tools for the next step; browsing runs and opens nothing. |
Loading an operation never executes it. The original callable, argument schema, principal checks, approvals and audit trail remain in force. A role cannot use search to acquire an unactivated skill grant. A successful skill invocation also opens its already granted integration tools for the next step. Revealed tools remain open in the current chat; a restored native chat starts from its most recent search header and rechecks the current policy. Existing ordinary chats, delegated agents, forks, admin previews and PTC-only presets keep their usual tools. Switching discovery off lifts this extra filter and removes the finder; it does not change the permissions or replay actions. JSON bytes in observations are not model tokens or a billing estimate.
For example, qa_find_tools({"query":"gitlab_repository_tree"}) opens that
single tool if the chat can use it. qa_find_tools({"query":"gitlab","browse":true})
instead lists one page without changing the next request.
Run pnpm --filter @yadsh/dsh-qa-surface run smoke:packed --tool-discovery-settings
to check all three modes and reload persistence in a disposable local Host.
A QA deployment tends to grow a large toolset, and attaching all of it at boot
puts every schema into every request — including the first small talk of a chat
that will never use them. tools.dynamicActivation (the default) inverts that:
the plugin's catalog is registered into the agent's own scope only after the
model successfully loads tools.activationSkill, and qa_tools_selfcheck
reports the resulting state.
As of catalog version 3 the shipped catalog carries four tools:
qa_tools_selfcheck, the activation diagnostic; docs_search and
docs_read, the documentation surface; and file_delete, the one destructive
capability — it deletes a single regular file strictly inside the calling
chat's workspace and refuses directories, missing paths and anything that
escapes the root, symlink escapes included, with an explicit reason that never
echoes a host path. Every file_delete call from the chat's own agent is
answered ask by an inner gate that sits inside the approval flow, so on a
deployment with interaction.approvals: interactive the interactive approval
card parks the call for the operator, and on blocked the call is refused
outright: nothing is deleted without a person. A delegated child of that chat is
refused by the same inner gate without a card — a child cannot be confirmed by
anyone, and a card parked over the parent's composer holds the parent turn for
an answer that cannot arrive. Like every catalog tool it is admitted as a
dynamic name at execution time — it needs no lockdown.toolPolicy entry —
and a role-managed deployment grants it through the same Tools baskets as any
other tool.
docs_search and docs_read are the documentation surface. Documentation is
published into the docs/ directory of the chat's workspace and the tools read
exactly that tree: docs_search matches a phrase inside single lines and
reports every hit with its path and line number, tagged with the module and
version parsed out of the layout docs/<module>/<version>/…; both names are
also accepted as filters, so a chat that was told "3.8" stops sweeping every
edition, and path narrows a search to one subtree. docs_read opens one file
at a bounded window of lines. Both stay inside the tree — a path outside it, a
docs/ that is missing or is not a real directory, a directory passed to a
read, a binary file and a link that leaves the tree are refused with an
explicit reason that never echoes a host path — and both bound what they
return: limit and a byte budget on the reported hits, a line budget on a
read, and a truncated answer says so instead of quietly dropping matches. The
tool descriptions carry the routing rule the catalog exists for: documentation
is looked up here, not in memory and not by sweeping guessed paths.
The trigger is the authoritative result of the built-in skill tool, not the
model's attempt, not a keyword in the transcript, and not a coincidentally
matching skill description. A failed or refused load activates nothing, loading
an unrelated skill activates nothing, and loading the same skill again is a
no-op. If one tool fails to register, the whole attempt is unwound and the agent
stays inactive — a half-attached surface would leave the model with a tool it
cannot rely on. Registrations live exactly as long as the agent that owns them,
so disposal and plugin unload leave no scoped tool behind.
A resumed chat is restored from its own journal: the successful skill load is
already recorded there as a standard tool/call/tool/result pair, so the
current catalog is re-attached before the first model step. The plugin appends
no session event of its own — an unknown event type without an ignorable
marker makes the whole log unreadable to a harness that does not mount this
plugin.
Set tools.activationPresets to the preset your QA surface pins (qa-research
in the deploy kit) in any Host that composes more than one agent type. With an
empty list the catalog is reachable by any agent that loads a skill of the same
name. tools.dynamicActivation: false restores the always-on behaviour and
attaches the catalog to every managed agent at creation — useful for a
deployment that would rather debug the tool surface than the trigger.
docs_search and docs_read read the docs/ directory of the calling chat's
own workspace by default. A deployment that publishes the corpus once — for
example /workspace/docs next to a per-user workspace layout — sets
tools.docsRoot to that absolute path, because with
accounts.perUserWorkspace: true the chat's workspace is a per-account
directory that holds no documentation: the readers would answer "there is no
documentation tree here" in every chat, while the glob/grep/read tools
reached the corpus by absolute path all along. The root is held to the same
rules either way: an absolute path, a real directory, no symlinks, and every
path is canonicalized and refused if it leaves the tree.
These tools are not lockdown.toolPolicy.allow entries, and cannot be: that
list is validated against the mounted catalog at attestation time, and a tool
that only appears later would fail the check. The QA execution guard authorizes
exactly the names the activation manager reports for the calling agent, so a
dynamically attached tool gets the same scrutiny as an allow-listed one. Tool
visibility is not an authorization boundary — a QA tool that writes must still
enforce its own permissions.
Multiple code sources
codeSources defines named code trees independently of folder and branch
names. Configure it on the QA Surface row; preset-mounted Git tools read
this same catalogue unless their own non-empty catalogue overrides it.
codeSources:
defaultSource: stable
entries:
- id: stable
label: "Stable release"
path: /srv/code/release-a
docsVersion: "2.0"
- id: preview
label: "Development"
path: /srv/code/work-in-progress
docsVersion: "2.0"
lockdown:
sharedReadOnlyRoots:
- /srv/codeGrant Git access separately with repositoryRoots: [/srv/code] on the
Git plugin row mounted in the agent preset. Adding a catalogue entry does
not grant either filesystem or Git access. The chat's writable scratch
directory stays separate from the read-only code trees.
After QA tool activation, code_sources {} reports the catalogue, its default
and each tree's read availability. code_read and code_search accept
source: stable or source: preview and source-relative path values.
Omitting source uses defaultSource, or the only entry when there is one;
several entries without a default require an explicit choice. A missing,
unreadable or unknown source fails without falling back to another tree.
Use the same id in dsh_git_* calls. Generic read, glob and grep still
use explicit paths; use the source-aware tools for version-scoped work.
Search is literal and case-insensitive, bounded to 1,000 attempted text
files, 10,000 visited entries, 8 MiB of input, three seconds and 32 KiB of
results. It skips links, binary/oversized files and common generated
directories (.git, node_modules, .nx, .cache, bin, obj, dist,
lib). truncated means incomplete: narrow path or query before
concluding code is absent. Reading accepts UTF-8 files up to 1 MiB and
returns at most 400 lines and 32 KiB. Both tools refuse traversal and nested
symbolic links. Results carry the source id, label and root; file provenance
preserves the source id and actual file address.
docs_search accepts source and uses its optional docsVersion mapping.
When neither source, version nor path is given, the default source's
mapping takes precedence over tools.docsDefaultVersion. Without a mapping,
the existing documentation default stays in force. An explicit version
or path without source retains its override behaviour. An explicit
source without a mapping is refused, as is a conflicting explicit edition.
docs_read validates the file's edition against the chat's selected source
unless a different source is explicitly named. Release and development sources
may share a documentation edition.
The Версия кода entry in the composer's shared settings menu saves an explicit source for the chat on the server. Reopening the chat or using another browser restores that choice. По умолчанию clears the override and follows the deployment default. Draft selection creates no session: it is saved before the first prompt, and a failed save prevents the prompt and can be retried.
Only the chat owner can change the source. Shared readers and collaborators
see the same choice, and changes are refused while the chat or its subagents
are running, while input is queued, or while the chat waits for a server slot.
The plugin stores preferences in qa-code-sources.db beside the accounts DB;
include that database in deployment backups. New delegated children and forks
snapshot the parent's effective source. Descendants keep that snapshot if the
parent later changes its choice; an ordinary fork can change its own source.
An omitted source in Git, code or documentation tools uses the persisted
session choice. Explicit tool parameters still allow comparisons with another
configured source and do not change the saved choice. Removing a selected
source from configuration makes it unavailable rather than selecting another
version. No directory is created, moved or updated by these tools.
Writable per-user research space
Set accounts.perUserWorkspace: true only together with accounts, a registered
session.workspaceId, lockdown.enabled: true, and a
workspace-write + never permission preset:
session:
workspaceId: "<registered-workspace-uuid>"
accounts:
enabled: true
perUserWorkspace: true
lockdown:
enabled: true
enforceFixedWorkspace: true
sandboxMode: workspace-write
approvalPolicy: never
permissionPreset: qa-workspace-write
toolPolicy:
mode: allow-list
allow:
[
read,
read_image,
glob,
grep,
write,
edit,
web_search,
web_fetch,
dsh_git_context,
dsh_git_history,
dsh_git_show,
dsh_git_blame,
]
sharedReadOnlyRoots:
- E:/qa-assistant/workspaces/docs
- E:/qa-assistant/workspaces/codeThe Host resolves that Workspace record's path and creates
<workspace>/.qa-users/<account UUID> with private Unix directory mode. It
passes the child as session cwd but deliberately does not register or attach
it as another DSH Workspace. Chats therefore remain ordinary entries in the
global DSH session list rather than creating one Workspace row per account.
That choice has one visible consequence: in the host's workspace browser these
chats sit under Ungrouped. DSH grants Workspace membership only to a session
whose stored cwd IS the Workspace path - Workspace.attachSession compares the
two after realpath, and the browser derives its groups from
workspace.sessionIds alone - so a per-account child directory can never be a
member, and no later action can make it one: the contract has no attach or
membership request for an existing session, and dragging a session never
crosses groups. Registering a Workspace per account directory would group them,
at the cost of putting every visitor's scratch root into the operator's global
workspace registry; this plugin does not do that.
Chats left outside every workspace for a repairable reason - created while the
deployment pinned session.cwd, or through workspaceId with the same
directory spelled differently (E:/base against E:\base) - can be adopted
while DSH is stopped:
qa-attach-sessions # dry run against $DSH_HOME
qa-attach-sessions --write # adopt; registry backed up firstThe command adopts only sessions whose canonical cwd IS a registered Workspace path, prepends them newest first, and refuses anything below a Workspace path, because the Host drops those from membership again on the next read. Per-user chats are therefore never touched.
The boundary combines DSH workspace-write with a Host tool guard for both
read and write paths, canonicalizes existing ancestors to reject symlink
escapes, propagates the root to subagent sessions, rejects shell/process/LSP
escape hatches, permits filesystem reads in explicitly configured shared
read-only roots, and leaves repository selection to the separately configured
read-only Git plugin. Writes remain confined to the account directory. The
guard limits one model-controlled write to 10 MiB,
and limits an account directory to 256 MiB. web_fetch plus write is the
intended bounded research-download path; there is no unrestricted URL-to-disk
or shell downloader. Account directories are persistent scratch space and are
not deleted automatically.
For the layout above, configure @yadsh/dsh-git-readonly separately with
repositoryRoots: ["E:/qa-assistant/workspaces/code"]. That plugin is the
single repository-selection authority and exposes no mutating Git operation.
Model override is opt-in: provider and model must be set together. Slash
commands are rejected as plain QA input. Reasoning and tool details remain
hidden by default. Enabling ui.showReasoning and ui.showToolActivity adds a
turn-scoped work disclosure: it stays open while the assistant is working,
then collapses to Worked for ... before the final answer. Tool capability is
still controlled exclusively by lockdown.toolPolicy.allow; the display flags
do not grant tools.
When a provider retires a model identifier, session.modelReplacements defines
exact central redirects after account → role → deployment precedence:
session:
provider: local
model: model-v2
modelReplacements:
- from:
provider: local
model: model-v1
to:
provider: local
model: model-v2The rule covers saved account and role pins as well as the deployment default; unrelated pairs keep their own selection. The terminal target must exist in the Host catalog. Cycles and duplicate sources are configuration errors. Chained redirects let a later transition cover older pins without editing every account; retain a rule while stored policies still refer to its source. The stored pins remain intact. New chats use the replacement immediately. On access attestation, an idle owned QA chat can move along an exact redirect to its current policy; an active turn is left unchanged. Ownership, workspace and adoption checks still precede reconciliation. A missing target fails explicitly instead of selecting another model from catalog order. The journal records the original and applied pairs, and delegated experts resolve the owning chat's policy through Host lineage.
User profile
Clicking the account name in the sidebar footer opens the signed-in user's
profile: full name, one handle per external system the deployment declares,
and free-form instructions about how they want answers. The Host hands both
to the QA agent as a note in the conversation, so "покажи мои задачи" resolves
to a tracker lookup with the right login instead of a question. Because a QA
preset can declare its persona the complete system prompt (the shipped
qa-research one does, which discards every plugin prompt section), the note
travels as injected context on the conversation instead of as prompt text. It
is written when the profile changes or its previous note is removed from the
active history, and subagents of the chat get their own copy. QA notes and the
filtered skill catalog are restored on the first step after compaction without
reloading the agent, including compaction during request preparation or an
overflow retry. Retained text and notes already proposed for the current
step are not duplicated. Clarification guidance changes when the effective
policy changes or its note is removed; tool enforcement still follows each turn.
Values are self-declared and the note says so: the agent names the identifier
it searched by and asks when the results contradict the request. The feature
needs no switch beyond accounts, though accounts.profile.enabled and
inject exist for deployments that want the form without the note, or
neither:
accounts:
enabled: true
profile:
identities:
- key: jira
label: Jira
- key: gitlab
label: GitLab
instructionsMaxLength: 2000qa-accounts profile <email> fills the same fields from an operator shell
(--identity jira=i.ivanov, --instructions-file, --clear-identity), which
is how a fresh deployment gets everyone's handles in place before users log
in. See
Configuration
for the limits and the prompt's exact wording.
The wording of that note — and of the source-provenance, delegation-naming and
attached-documents and source-priority notes — is editable without touching
the source: the «Заметки модели» section of the settings card (the notes
config block) mutes each note and rewords its text, keeping the generated parts
({identity}, {instructions}, {reportTool}) as placeholders. The
attached-documents note is the one that sends a .docx or .pdf from the chat
to the document pipeline instead of the plain file reader, which refuses those
formats as binary. The source-priority note is the one that says an answer
belongs to the documentation or the expert before it belongs to memory.
Theme
Open your profile settings and select Общие → Тема оформления to choose light, dark, or system. Deployments without accounts offer the same choice through Настройки in the chat header.
The choice belongs to the browser, not to the deployment. It is stored under
this stand's own localStorage namespace (<storageKey>:v1:<route>:theme) and
never written to the Host user-settings document: a stand is shared by everyone
who reaches it, and one person's eyes are not a configuration. A browser that
never touched the control stores nothing and writes nothing at all — the stand
keeps the palette the application booted it in, so an untouched deployment looks
exactly as it did before. The control then reports the palette on screen instead
of claiming a preference nobody picked.
What a click writes is the Host's own palette contract — color-scheme on the
root and the dark-palette attribute on the body, the two fields the Host's theme
presenter owns — which is why everything follows it: the cards, the transcript,
the drawers and the dialogs are painted from --dsw-alias-* tokens, and those
tokens are declared under exactly those selectors. The font-size axis and a
theme's own token overrides stay the Host's. system resolves through
prefers-color-scheme and keeps listening, so a laptop going dark at dusk takes
the chat with it. Once a preference is chosen the control marks the preference,
never the resolved palette, so «Системная тема» stays pressed while the operating
system decides which theme that is.
The document is borrowed, not owned: what a click writes is put back when the surface stops being what the visitor sees — the route changing inside the application, or the overlay unmounting. Off its own route this control is not on screen to undo itself, and a harness left in a QA stand's palette would stay in it for the rest of the visit. The palette put back is the one the document wore when the choice was applied, retaken on every repaint, so the Host's own answer wins again the moment the visitor leaves.
One consequence worth knowing: the control is part of the header, so a deployment
that hides the header (ui.showHeader: false) hides the only way to reach it.
Starter messages
The same Настройки dialog carries a «Быстрые сообщения» section where the
signed-in user defines their own starter buttons: each entry is a label (what
the button reads) and a prompt (what pressing it sends), so a button can say
«Мои задачи» while sending a full tracker request. The deployment's
suggestedQuestions stay visible next to the user's own buttons unless the
user hides them with the section's toggle. The list is stored on the account
(next to the profile, in the accounts file), replaces wholesale on save, and
is pure UI preference — none of it reaches the agent prompt.
accounts.starters.enabled (default true) turns the section off for
deployments that want the buttons to stay operator-defined.
Notification channels
A turn that ends in a chat the reader is not looking at says so, and the «Уведомления»
section of the same Настройки dialog is where they decide how far that reaches: the
line inside the page, and the notice a hidden or backgrounded tab can hand to the
operating system. Both belong to the account rather than to the browser, so the
choice follows the person to another machine; where a stand has no accounts, the
desktop choice stays in the browser that made it. The permission itself is the
browser's and is asked for once, from a click. What the stand refuses with
notifications.enabled or notifications.allowOs stays refused, and the section
says which of the two closed a channel instead of offering a switch that cannot
take effect. Like the starter messages, none of this reaches the agent prompt, and
a notice never carries the answer itself — only the chat's title and the fact that
its turn ended.
Integration tokens
The same Настройки dialog carries an «Интеграционные токены» section, so the
account that runs an integration issues and revokes its own credential instead
of asking the operator to run the CLI. It lists the tokens that account owns —
label, scopes, creation and expiry dates, use count and last use — mints a new
one, shows its secret exactly once (with a copy button and the warning that it
is never recoverable, because only the digest is stored), and revokes one with
a second confirming click. A revoked or expired token stays in the list as a
record, with its revoke button gone.
Creating is offered only where the credential has somewhere to go: with
integration.enabled: false the section explains that the API is off and hides
the form, while listing and revoking keep working — a credential that already
exists has to remain revocable. The section is part of the accounts domain, so
it appears wherever accounts.enabled is on, and the same self-service rules
apply: the token always belongs to the signed-in account, and one account never
sees another's tokens. The CLI (qa-accounts token create|list|revoke) remains
the operator's path, including issuing a token for somebody else.
Session policies:
browser-persistentrestores the id stored in this browser, replacing stale ids with a new session;new-on-loadcreates a session each time the QA surface mounts;fixedrequiresfixedSessionId, never creates a replacement, and is meant only for controlled single-user deployments.
New chat is disabled by default. To expose it, set lockdown.allowSessionReset:
true plus either ui.showReset: true (header button) or ui.showSessionList:
true (sidebar button). Pressing it opens a draft composer and creates nothing:
the DSH Session is materialized lazily by the first prompt, so the chat list
stays quiet until a message is actually sent, and the old session stays intact
for operator inspection. The sidebar orders chats by the host's last update,
so merely opening a chat never moves it.
A deployment can bound concurrent chats with session.maxActiveRequests; the
default 0 leaves concurrency unbounded. Admission is enforced on the server
before a root agent takes its first step, covering browser, integration and
native prompts. Simultaneous sends reserve places atomically; waiting chats
start in FIFO order without resending their questions. A complete turn keeps
its place through tool calls and review. Delegated experts run within their
chat's place, including background descendants still running after the parent
turn ends. A subsequent turn rejoins the queue behind earlier waiters.
An inline status above the composer shows the waiting chat's real queue position. After at least three completed turns the server can also provide an approximate delay based on recent durations. Before that, no duration is shown. The status survives closing and reopening the page while Host stays running; the stop button cancels a waiting request. Queue status reveals global counts only, and a chat's position requires current read access. An unavailable status read does not bypass server admission.
Changing the limit does not interrupt already active turns: lowering it admits no new chat until the active count fits, and raising it releases more waiters. Commands that do not run a turn remain usable while the stand is full.
The number is the chain's last layer, and the two above it override it per turn:
a subrole may carry maxActiveRequests (edited on the «Саброли» page's model
tab), and an account may carry one (the user card's «Слоты очереди этого
аккаунта» select). The account beats the role, the role beats the deployment,
and 0 is a real value that lifts the ceiling for that role's or account's turns
outright. A turn whose principal raises the number fits while a lower ceiling
would refuse it, and one full principal does not starve the queue behind it.
The status read answers the caller's own chain: a chat's read uses the chat's
account, the pre-send read uses the visitor's, and a stand without accounts
keeps the one deployment number.
Regeneration: the last committed answer offers a retry action. The session log
is append-only, so "regenerate" sends a hidden instruction as an ordinary
prompt and the answer arrives as a follow-up turn; the projection hides that
instruction and the consecutive turns read as variants of one question,
navigable with a < 2/2 > switcher (newest shown by default).
Sources are structured Host-owned provenance, independent of
ui.showToolActivity. Successful reads/fetches, bounded web-search evidence,
Jira/Confluence/knowledge results, and inherited subagent sources are
normalized and deduplicated into one turn bundle. That exact bundle feeds the
answer footer and the right rail's sources tab and is persisted in the
plugin-owned $DSH_HOME/qa-sources.json, so reload does not rerun tools and
no custom event enters the Harness session journal. Search-only discovery
stays hidden by default.
A source enters a turn bundle through two channels, and the definition is their
union. The extractor registry (src/provenance/extractors.ts) is the channel
that reads durable tool results: a completed call becomes a source only when one
of its seven extractors matches it — a read naming a workspace path, a fetch
naming a URL, a search returning its source list, a file search shaped as
matches, or a Jira, Confluence or knowledge record. The collector then keeps the
evidence half of what the registry returned, so a file that only appeared in a
search result joins the list once the answer actually reads it. The transcript
projection rebuilds bundles from this registry alone. The Host store is the
second channel: it also takes a report the answering agent files itself through
the qa_report_sources tool (src/provenance/host-store.ts, normalized in
src/provenance/reported.ts), and the Host's bundle wins the turn it shares with
the projection (src/client/session-sources.ts), so a source the agent reported
by hand can sit in a list no extractor produced.
sources.subagents.validateReportedSources decides how strict that report is —
by default every entry still has to name a path or a URL, switched off it keeps
its own kind, title and snippet with no address at all.
Neither channel collects injected memory or a bridged recall tool (an
mcp__openviking__* read returning a viking:// address as text): no extractor
matches it, the deployment note treats recalled memory as background from earlier
sessions rather than the source an answer is looked up in, and a virtual address
has no file preview to open. Nor does a document the model only names in its
prose — no channel parses the answer's wording. A turn that answered from memory
or from what the conversation already carried therefore ends with no source at
all, unless the agent reports something for it itself, which is the model's word
rather than the collector's read of a tool result.
That is why the header control never disables on an empty list while the answer
footer stays unrendered: the panel owns the explanation, and a dead button hid
the only surface that gives it. Its empty state names the classes that do appear
and says plainly that an empty list is not a collection failure — and it is drawn
only once the collection has settled, because an unsettled one already says which
origins it is still waiting for, and a chat that has asked nothing yet has no
answer to diagnose. Gating stays with the deployment — sources.enabled and
sources.display.sidebar decide whether the control exists at all.
Legacy sessions written by earlier releases can be repaired while DSH is stopped. Preview changes first, then apply them with an automatic backup:
qa-repair-sessions
qa-repair-sessions --writeThe repair only marks legacy safety-gate/*, qa/sources, and QA answer-mode
metadata records as ignorable; it does not delete them or change their payloads.
Current answer modes use native plugin records and preserve their exact request
and consent state on restore. Each changed session file is backed up as
*.pre-plugin-event-repair.bak before atomic replacement.
Use qa-repair-sessions --answer-modes-only to preview only answer-mode
metadata, then add --write while DSH is stopped. This narrower repair creates
*.pre-answer-mode-repair.bak, preserving backups from earlier general repairs.
Local file cards open a source-scoped, read-only preview after Host-side real
path validation against the roots the QA read policy opens: the chat's own
directory, the configured shared read-only directories, and the attachment
store. Markdown opens rendered by default with an HTML-free renderer and offers
Rendered / Raw; raw mode jumps to recorded line ranges. The endpoint cannot
browse or write files and refuses paths that are not evidence in the canonical
bundle.
Observable local subagents are inherited recursively. The internal
qa_report_sources tool covers opaque delegated providers and is admitted as
a provenance-only capability even when it is not listed among ordinary QA
tools. A provider that neither exposes events nor reports sources marks the
turn provenance incomplete. A note in the conversation tells the model not to
append a manual Sources/Источники bibliography.
Images: the composer accepts PNG/JPEG/WebP/GIF via drag & drop onto the composer, paste, and the picker button, several at once (soft client caps: 8 images, 15 MB each). Images ride the prompt as base64 uploads the Host promotes to durable attachments, so they survive reloads; sent images render as clickable thumbnails on the message. Whether the model can see them depends on the deployment's model (vision).
Attachments: the same picker, drop zone and paste path also take text files
(md, txt, log, and the other extensions in attachments.extensions), and
pasted text longer than attachments.pastedTextLines (default 200) becomes an
attachment named after its line count instead of filling the input field. A
file is staged on the Host through the browser upload service and the prompt
cites the returned receipt, so the durable copy survives reloads; the transcript
shows it as an extension badge, its name and its size. Unlike an image, a file
reaches the model as the path of that stored copy rather than as content, so
lockdown.toolPolicy.allow has to keep read for an attachment to be usable.
attachments.textFiles: false restricts the composer to images again, while
maxFileBytes and maxPending cap one file and the combined number of images
plus files per message.
The right rail is the chat's side panel, mirroring the Harness right Sidebar's pattern: a tab strip is the panel's whole top edge, and the strip's close control collapses the column. The sources tab carries the grouped list and preview the sources drawer used to render — a message footnote opens it pinned to that answer's subset, and «Все источники» returns to the whole chat. The «Файлы» tab (header button with a live count) lists every attachment this chat sent, grouped per message newest first, with the same file handles the transcript shows and image thumbnails resolved from the session's asset repository; each group jumps back to its message. Below 600px the rail goes full-bleed. The agents drawer keeps its own header drawer for now.
Slash commands and skills
Off by default. Typing / in the composer normally gets the same refusal it
always did («Команды со слешем недоступны в режиме помощника»), and nothing
about that changes for a deployment that upgrades.
Turn it on with the master switch, then say exactly what it admits:
lockdown:
allowSlashCommands: true
slashCommands:
skills:
mode: allow-list # deny-all | allow-list | all
allow:
- generate-tkp
- generate-tz
- gap-analysis
commands:
mode: deny-all # deny-all | allow-list | all
allow: []
palette:
enabled: true
fuzzySearch: true
maxVisible: 12
showDescriptions: true
showKindBadge: trueThe switch and the policy are two separate decisions: turning slashes on opens
the palette, and the palette offers only what the two lists name. A deployment
that enables the switch and declares nothing gets the legacy behaviour — every
user-invocable skill of the chat, no commands at all — and the Host says so once
in its log (slash.legacy-defaults) rather than silently behaving as if it had
been configured.
The two kinds behave differently, and the difference is the point:
Skill Human command
/generate-tkp Сделай ТКП /compact
→ ordinary model turn → the Host runs it
→ the native skill consumer injects → the model never sees it
the skill's instructions → command/run + command/done land
→ QA reads no SKILL.md and injects in the session log, projected as a
nothing itself control row, not an answer bubbleA skill with user-invocable: true and disable-model-invocation: true shows up
in the palette and runs; the model still cannot see it. A skill with
user-invocable: false never appears. /name typed inside an ordinary sentence
still works the way it does everywhere else in the Harness — QA does not
rewrite that path — but when the deployment withholds that particular skill, the
composer says so before the turn runs instead of letting the user believe it
took effect.
Keyboard and touch: / opens the palette above the composer and it closes as
soon as a space is typed (you are writing arguments by then). ↑/↓ move,
Tab and Enter insert the invocation without running it — the second
Enter sends — and Escape closes. Clicking or tapping a row inserts it and
leaves the caret in the field. A skill and a command that share a name are two
separate rows, and a hand-typed /plan when both exist asks which one you
meant rather than guessing.
Admission is the Host's, not the browser's. The catalog arrives already filtered
by the policy and by the chat's role, and /compact typed by hand is re-checked
against the same policy before the native runtime is allowed near it. The slash
interface changes nothing about tools, the sandbox, the permission preset or
approvals: a skill invoked by hand carries exactly the permissions it carries
when the model loads it.
One part of that user list is not the role's to name. A skill the account keeps
in its own skills root belongs to one person, and a role is shared by many, so
the account's own user-invocable skills join its /name list directly: palette,
typed gesture and the enforcement guard read the same field and cannot disagree,
while the model's catalog stays the role's. The role ceiling still bounds the
tools such a skill activates with, and an administrator's withdrawal of the name
outright outranks the personal layer.
The settings card carries the same policy under «Слеш-действия», with the allow lists as plain name lists — the config stores names, never ids.
Panel extensions
QA Surface can host optional feature panels without importing those features. The shell owns the launcher, side-by-side/fullscreen layout, resizing and generic close chrome; an extension owns its feature state and controls. No panel is shown, and no launcher space is reserved, when no extension is installed.
An external client plugin uses two registrations. Metadata and navigation go
through the qaSurfacePanels service; the React body is registered separately
in the keyed qa.surface.panel slot under the same implementation id:
import type { Context } from "@deepseek-ai/cordis";
import type { PropsRuntime } from "@deepseek-ai/dsh-client-ui-slots";
import type {} from "@deepseek-ai/dsh-client-ui-renderer/client";
import { QA_SURFACE_PANEL_SLOT } from "@yadsh/dsh-qa-surface/client/panels";
const id = "@example/dsh-qa-browser";
function BrowserPanel(props: PropsRuntime<typeof QA_SURFACE_PANEL_SLOT>) {
// panelId, panelKind, sessionId, visible, presentation, params,
// actions and a registration-lifetime AbortSignal arrive in props.
return null;
}
export const inject = ["slots", "qaSurfacePanels"];
export function apply(ctx: Context) {
ctx.effect(() =>
ctx.qaSurfacePanels.register({
id,
kind: "browser",
title: () => "Browser",
icon: "browser",
order: 100,
keepMounted: true,
}),
);
ctx.slots.inject(QA_SURFACE_PANEL_SLOT, () =>
ctx.slots.register({ name: QA_SURFACE_PANEL_SLOT, key: id }, BrowserPanel),
);
ctx.qaSurfacePanels.open("browser", {
reason: "extension",
focus: false,
});
}The extension should declare both slots and qaSurfacePanels in its client
inject list instead of polling for load order. keepMounted: true preserves
local/continuous UI state while another panel is active; hidden retained bodies
are removed from keyboard navigation. Presentation state is browser-local and
never enters the DSH Session log. Browser processes, tools, security policy and
artifacts remain the responsibility of the Browser plugin, not QA Surface.
User Settings extensions
An optional client plugin can add a first-class page to the signed-in user's existing `Настро
