Match the new package version to the root release version and move its upgrade guide into the v0.2.2-rc.2 directory.
description, kind
| description | kind |
|---|---|
| Client Session status table and useSessionStatus hook: running state, the effective pending interaction, and completion reminders by Session. | package-reference |
@deepseek-ai/dsh-client-ui-session-status
English | 中文
Summary
Use this package to read each Session's running state, highest-precedence pending interaction, and completion reminder from one Client status table. Components read the table through the useSessionStatus root hook; Client plugins read it as ctx.uiSession.sessionStatus. The package has no configuration fields, Host behavior, or persistent storage.
Table of Contents
Status table
The Web bundle loads this plugin after dsh-client-ui-session and requires it at startup; a composition that loads ui-session without this package has no status table and no useSessionStatus hook. A plugin that reads ctx.uiSession.sessionStatus adds 'uiSession.sessionStatus' to its inject list; without it, Cordis rejects the property read. A plugin whose components call useSessionStatus injects it as well, so the plugin unloads and reloads with the hook. The member is declared on ui-session's UiSessionService, the type of ctx.uiSession; a value annotated as the UiSession class does not show it.
| Member | Use |
|---|---|
getSnapshot() |
Status by Session identity; the snapshot keeps its reference until a status fact changes |
subscribe(listener) |
Observe published changes; a throwing listener is reported without stopping later listeners |
Each SessionStatus has three independent fields:
| Field | Source |
|---|---|
running |
Host Session list baselines and api-session/status events; absent until either establishes it. Subagent catalog rows and retained subagent fallback rows do not establish it. |
pendingInteraction |
The same object ctx.uiSession.pendingInteractions publishes for that Session. Domain plugins keep registering requests through ctx.uiSession.registerPendingInteraction(precedence). |
completionUnread |
A stop this Client observed while the main view did not retain the Session, including an idle event that arrives before the first list baseline. The reminder clears when the main view retains the Session, the Session runs again, or a ready list no longer contains it. |
Model Experience
None, as the status table adds no tools, prompts, or Session events.
KV Cache effect
None; the status table does not assemble model requests.
Known Limitations and Deferred Work
- Completion reminders belong to one Client — another browser tab or a page reload starts without the reminders this Client recorded.
Dev Note
Working context for maintainers — click to expand
None.