builtin-pb / dsh-session-status
A small native DSH Web session status indicator.
About this plugin
Written by the registry from verified metadata, not from the README.
dsh-session-status is a DSH plugin published from the examples/session-status package in the builtin-pb/dsh-developer repository.
Capabilities and topics
Native session status
A small additive DSH Web plugin. It puts Session: running or Session: idle
beside the current session title. The text changes through DSH's supplied
useSession selector hook. A loading, unavailable, or removed session gets that
explicit label instead of appearing idle. The decorative marker is hidden from
assistive technology; the text is a polite, atomic status region.
Current development target: DSH 0.1.5-rc.2, with its Web profile, and Node
22.18+ within 22.x, or 24.11+. The exact installed declarations and client
implementation define this example's contract. Compilation and native registry
tests use 0.1.5-rc.2 packages. The example's own version remains 0.1.0.
Build and test
From this repository:
npm --prefix examples/session-status ci --ignore-scripts
node bin/dsh-developer.js run --source examples/session-status --script test
If the host policy restricts npm’s default cache, pass --cache /writable/cache
to npm. Keep generated caches outside the source tree used for static audits.
npm test type-checks the source, rebuilds both entries with esbuild, and runs
Node's built-in test runner. Tests materialize the compiled client factory and
use the real pinned Cordis and DSH SlotRegistry: deferred registration,
preserving another action, parent collapse/remount, plugin unload, and cancellation
before declaration. React server rendering checks successive supplied session
snapshots and accessible text. These tests do not exercise browser subscriptions,
transport reconnection, visual layout, or screen-reader announcements.
The DSH development dependencies pin the 0.1.5-rc.2 peer closures reported by
knowledge for the renderer, session adapter, conversation, and session
controller packages, with Cordis 4.0.2. The controller accounts for most of
the flat peer list, including installed optional peers. Ordinary transitive
DSH dependencies stay pinned to the same runtime. The separately published
dsh-client-ui-slots and dsh-client-store packages are also pinned at rc.2:
the Client declarations import their types, but they are absent from the
selected CLI installation and its runtime peer maps. Their published versions
and Cordis peer requirements were checked before installation.
Pinning only the UI packages allows npm to choose incompatible prerelease peers and can cause
ERESOLVE. Keep the pins and lockfile together; update them against a selected
runtime as a unit. skipLibCheck skips checking upstream declaration bodies;
our source is still checked in strict mode against their exported types.
Run in DSH Web
From the repository root, select the DSH 0.1.5-rc.2 executable:
node bin/dsh-developer.js knowledge --dsh /path/to/dsh --topic ui
node bin/dsh-developer.js run --source examples/session-status --script test
node bin/dsh-developer.js dev --source examples/session-status --dsh /path/to/dsh
The development CLI installs into a disposable Web profile and reports a clean
URL plus a ui handoff. Pass that object to the native dsh_ui tool, or use the
shell UI route with the reported home:
node bin/dsh-developer.js ui --session status-preview --action open --development-server <home-from-dev> --json
Complete the browser setup first. The handoff authenticates the isolated browser; opening the clean URL alone in another browser does not supply its login cookie. No personal browser opens automatically. Keep the owning development command running.
Select a session and look beside its title. With a working model configured in that disposable instance, send a prompt to observe running → idle. Switch sessions, reload, and check narrow layouts and your preferred theme. No label is mounted without a resolved session header.
Stop the owning command with Ctrl+C to remove the disposable profile. For a
predictable edit loop, rebuild with npm --prefix examples/session-status run build, then restart the development command and open its new handoff. See the
repository's development guide for the native CLI
workflow. No real user profile needs to be modified.
How it fits
src/index.tsis the empty Host plugin that makes this package discoverable.src/client.tsxderives component props from the public slot declaration and reads only session lifecycle state. Its runtime injection waits forslotsanduiSession.slots.inject()follows each header declaration lifetime;slots.register()contributes the fresh list iddsh-session-statusat order 100. Native disposal removes the entry and its pending declaration wait.build.mjsemitslib/index.jsandlib/client.js. The latter registers a lazy factory withwindow.__ModuleLoader__.load, as required by this runtime. React's JSX runtime is the only external runtime import and comes from DSH's seed table. DSH feature imports are type-only.package.jsonexports./clientand declaresdsh.client.platform: "web"plus the renderer, session adapter, and conversation package edges.cordis.patch.ymlinserts the Host entry when DSH installs the package.
The indicator owns no remote calls, credentials, polling, timers, React root, or global styles. It uses native theme variables with inherited fallbacks. Running/idle describes the latest public session snapshot; idle does not assert that a previous turn succeeded or that all background jobs have finished. Connection recovery remains DSH's responsibility. Labels are English only.
Packaging and verification limits
The built lib files are included so installation needs no build script. To
produce a local archive from the example directory, create an output directory
outside this repository and replace /path/to/artifacts below with it:
npm pack --dry-run
npm pack --pack-destination /path/to/artifacts
Keep the archive outside the inspected source; Doctor rejects a .tgz left in
the source tree. prepack rebuilds the entries. The package allowlist includes the compiled
entries, source, build configuration, tests, native patch, README, and MIT
license. It excludes development dependencies and cache contents. Nothing in
this workflow publishes to a registry.
For this rc.2 dependency refresh, verification is limited to clean installation with scripts disabled, strict source compilation, rebuilding the Host and Client entries, and the four native registry/factory/state-rendering tests on macOS ARM64 with Node 24.19.0. No rendered browser or model was used; these checks do not renew the browser observations below.
Earlier verification, before this dependency refresh, used DSH 0.1.5-rc.1
on the same platform: clean dependency
installation, strict compilation, registration/state tests, and source and
packed-archive Web loading. In the rendered browser, real DSH sessions with a
local keyless test adapter exercised running → idle, selection between two
sessions, cancellation and reload. The indicator remained visible at a 760 ×
640 desktop viewport, with no client errors in that test instance. A missing
provider credential was also shown as a native turn failure while the indicator
correctly returned to idle. These observations do not establish screen-reader
announcements, every theme/viewport, other DSH versions, or model quality.
That earlier packed client also passed rendered running/idle, selection between two
sessions, cancellation and reload checks on 0.1.5-rc.2, using a local keyless
adapter supplied with dev --patch. No client warnings or errors were observed
in that instance. Its source checkout was not needed to load the archive.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/builtin-pb/dsh-developer/examples/session-status)