Add a Web snapshot that restores a cold ordinary Session in another
directory through the Session controller, keeps the second delivery live,
and rejects an archived target. Keep subagent exports unchanged by building
the agent-message attribution in the tool. Rewrite the tool, user, and group
documentation for the Web-only row, move the disposed-input upgrade guide to
v0.2.2-rc.2, drop the removed service pages and guide, and regenerate the
catalogs.
* ✨ feat(session): persist and synchronize read state
* 🌐 fix(client): complete Japanese labels after base update
* 📝 docs: refresh session read-state dependency graph
* 🧪 test(web): align session menu and read-state snapshots
* 🌐 fix(session): complete Japanese plugin metadata
* 🧪 test(web): distinguish unread from pending user input
* 🐛 修复会话阅读状态的故障隔离与生命周期
* 🐛 修复阅读状态依赖检查并补齐自动已读覆盖
* 🐛 恢复会话绿点并移除未读标题加粗
* ♻️ Keep shared session reading state in Host memory
* 🌐 Complete reading-state metadata for supported locales
* 📝 Refresh module graph after removing storage dependency
* 🧹 Move storage dependency policy out of memory-only reading
* 🐛 Wait for sidebar catalog before replay navigation
* 🔧 Give Host TypeScript checks 8 GiB of heap
* ✅ Align Host heap checks and Windows diagnostics
* ♻️ Keep CI repairs outside the session reading PR
* 🐛 Show failed unread turns with an error indicator
* 🔧 Adjust npm layout budget for the reading package
* 🧪 Scope projection stream assertions to observed units
* 🧪 Scope permission and title assertions to their projections
* ♻️ Simplify session reading updates to explicit positions
* 🐛 Align session reading package with release version
* 🧪 Load reading state in LiveShare viewer fixtures
* 🧹 Remove persistence-only type link from memory PR
* 🧪 Align context menu expectations with reading actions
* 🐛 Sync reading package with the release version
* 🧪 Include turn boundaries in session summary expectations
* ♻️ Derive reading failure facts from Host events instead of a projection
The reading service took each completion from the Agent turn-boundary
projection, which forced a stateVersion bump and put that projection's whole
internal state on the wire for every Session list row. The service now records
`turn/end` itself, so `core/agent` and the persisted projection schema are
untouched.
History that ended before the service started raises no reminder, which keeps
"existing history reads as read" without a startup scan. The failure flag
therefore describes only turns this Host observed: marking a Session whose last
turn failed before a restart shows the ordinary unread reminder.
* 🐛 Preserve manual unread until explicit Session interaction
* 🧪 Align cold Session reading snapshot with unloaded title
* 🔖 chore(session): align session-read-state with 0.2.2-rc.2
Master moved the root and every released manifest to 0.2.2-rc.2, but the
new dsh-session-read-state package still declared 0.2.2-rc.1, failing
constraints, verify-version-sync, verify-npm-install-layout, and
release:verify after the master merge.
* ♻️ refactor(gateway): recognize Remote stream carrier loss by error code
RemoteStream now decides whether a generation end or failure is a
retryable carrier loss by the stable code 'gateway/carrier-lost' instead
of `instanceof RemoteStreamCarrierError`. RemoteStreamCarrierError keeps
working and carries that code, so existing callers are unchanged, while a
Client feature package can return a coded Error from `ended` without
importing the class. The new RemoteStreamCarrierFailure type describes
such errors; terminal-controller classifies disconnects the same way.
* ♻️ refactor(session): move Session reading into ui-session-status
Fold the reading feature into the single package
packages/client/ui-session-status and delete session-read-state.
- Host face: SessionStatusService keeps in-memory reading records and
serves the sessionStatus Remote namespace (mark, follow) with
session-status/* error codes; its service key is registered only for
Gateway discovery and is not declared on Context.
- Client face: a package-internal reading model follows the Host stream
through RemoteSnapshotStream; ctx.uiSession.sessionStatus folds the
records into completionUnread and completionFailed and exposes mark and
readingReady; main-view acknowledgement and the
session-status/read-intent event live here. No reading service or type
is exported.
- verify-client-packages lets a packages/client feature package request
packages/api rows through dsh.client.external; feature-to-feature
requests stay rejected.
- ui-workspace, ui-conversation, bundles, remotes, LiveShare, the client
test runtime, docs, Agent Notes, and the upgrade guide follow.
* ♻️ refactor(session): clear manual unread only when the main view switches to the Session
Remove the session-status/read-intent event. ui-session-status now clears an
existing manual unread mark when the main view switches to a different
Session, including the first selection after a page load, once the reading
baseline is ready and the body arrives. Window focus, visibility changes,
a replaced binding for the same Session, and activity in the open Session
preserve manual unread.
ui-conversation returns to master (only the ui-session-status client
tsconfig reference remains), and ui-workspace navigation no longer emits
the event. Tests, the session-reading Web e2e case, READMEs, and the
reading Agent Note follow the new rule.
* 🐛 fix(session): address the Session status review findings
- Open the reading stream only while ctx.remoteAccess allows
sessionStatus/follow, so a LiveShare viewer opens no owner-only stream,
keeps readingReady false, and logs no synchronization failure; access
changes start or stop the stream.
- Hide the unacknowledged completion of the Session the visible, focused
main view retains; manual marks stay visible, completionFailed follows
completionUnread, and the reminder returns on blur, hiding, or a switch.
- Declare ctx.sessionStatus on Context and restore its SERVICE_PAGE and
SERVICE_ROLES entries; the service and SessionRead* types document on
docs/subsystems/web-client.md, which now owns the reading section with
the failed field.
- Document that a Host plugin reload can leave the Client with a terminal
error until a page reload; drop the redundant types import and the
unused publish() result.
- Archived Sessions read as read and offer no reading mark in the row
menu or the toggle-read shortcut.
- session.toggleRead names the open dialog, open panel, or archived
Session that blocks it instead of asking to select a Session.
- isRemoteStreamCarrierFailure rejects a RemoteError from the Host even
when it carries gateway/carrier-lost; the code is Client-local.
- ./types is types-only like ui-trajectory, and files no longer ship
lib/types JavaScript.
* 🐛 fix(session): close the remaining Session status review gaps
- The Gateway Client exports isRemoteStreamCarrierFailure, and the
terminal view uses it, so a Host RemoteError carrying the carrier code
shows as failed rather than disconnected.
- Each access grant's reading stream carries a token: frames a revoked
or superseded stream still delivers are discarded, and cleanup waits
for disposal before leaving reading unavailable unless a newer grant
is active.
- The status table hides the viewed Session's natural reminder only
while that Session is open; the panel case is a documented limitation.
- The README limitation and the upgrade guide state that only the
main-view switch rule, including a reload restore, clears manual
unread automatically.
- Add the missing blank line before the next heading in the web-client
reading section.
* ♻️ refactor(session): install reading under the Session status table
- apply returns to master's form plus one line: UiSessionStatus is the
root, published as the useSessionStatus source, and installReading()
from the new src/client/read.ts follows Host reading records into it.
UiSessionStatus takes master's three constructor parameters and
creates its own SessionReadModel as the package-internal `reading`
member; installSessionStatus is removed and acknowledge.ts stays a
separate file.
- The viewed Session's snapshot subscription republishes the table only
when its openState changes, so streamed events do not rebuild it.
- Remove the obsolete Dev Note sentence about failure outcomes.
- session.toggleRead passes when the Peer may not mark reading, matching
the row menu, and reports readingUnavailable only while unsynchronized.
---------
Co-authored-by: imccyu <[email protected]>
Co-authored-by: imccyu <[email protected]>
cua_reset keeps its effect: only the program process is replaced, while the connection's Agent, its native connection, and its consent decisions stay. The PTC program-tool factory no longer carries a reset operation, so packages/core/tool-executor-ptc is unchanged against master. ctx.cuaPrograms exposes release(agent), the owner release of the provider's program runtime, and the MCP frontend orders its own calls around it: it cancels the running program, releases the environment, answers after the cancelled program has settled, and holds back programs that arrive during a reset. A failed release answers with an error that asks for another cua_reset; the runtime rejects programs until a release succeeds. The reset result names cua.getApp for selecting applications again.
master removed the Python PTC runtime (#8307) and rewrote three bilingual
documents this branch also edits.
Conflicts:
- docs/capability-seams.i18n.yaml, packages/core/tool-executor-ptc/README.i18n.yaml,
and packages/experimental/README.i18n.yaml: both sides re-recorded the
translation pairing records. The merged documents were reviewed in both
languages and the three records recorded again from them.
master renamed the macOS Computer Use provider to @deepseek-ai/dsh-cua-macos
(#8284) and moved identity construction to brandString (#8214).
Adapted to master:
- The cua-mcp profile mounts @deepseek-ai/dsh-cua-macos and declares it as the
optional dependency; the bundle test follows the new name.
- The MCP adapter builds its Session and tool-call ids with brandString, so
@deepseek-ai/dsh-brand becomes a runtime dependency of the package.
Conflicts:
- scripts/experimental-package-policy.ts and scripts/release/families.spec.ts:
both sides added a row; the cua-macos, cua-mcp, and cua-windows rows coexist.
- scripts/package-dependency-policy.ts: took master's removal of the SessionId
safe entry. longEdgeDimensions no longer sits in the safe-export list; it
joins the existing peer-required @deepseek-ai/dsh-attachment entry, so this
branch adds no safe-export exception.
- Generated catalogs, module graphs, and the dsh-doc package reference: took
master and regenerated.
- Four translation pairing records: took master and re-recorded after
reviewing both language diffs.
Resolves import conflicts with the brand-export split (#8214): value
brand factories are now brandString<T>() calls, and dsh-workflow's
WorkflowRunId is imported from its types entry. Generated persistence
and config catalogs are regenerated.
Conflicts: both sides added one adjacent entry (cua-mcp here, cua-windows on master) to
scripts/experimental-package-policy.ts, scripts/release/families.spec.ts, and tsconfig.host.json;
both entries are kept. Generated and recorded files take master's side and are regenerated: the
config catalog, the module graph, the package list, two pairing records, pnpm-lock.yaml, and the
creation-recommendations fixture.
Adaptations to master:
- @deepseek-ai/dsh-cua-mcp follows its release family to 0.2.2-rc.2.
- Window ids are strings: this branch's fixture programs and assertions pass "7".
- The retained program environment is a scoped REPL, in which a later call may declare an earlier
name again: cua_reset no longer names declaration conflicts as its use, and the cua-mcp README
and Agent Note state the registration's current description length.
- The cua-mcp README names the Windows provider, which this profile does not mount.
- The profile's expected reference and tool list are re-recorded.
A fatal WorkflowError such as AGENT_CAP or ITEM_CAP was rendered to text
inside the PTC guest, so the workflow tool could only report RUN_FAILED.
WorkflowResult and the workflow/end payload now carry errorCode, the
code of the fatal error that ended an error run; the host validates it
at the process boundary and the tool fails with that code. RUN_FAILED
remains only for an error run without one: the script's own exception or
an engine runtime failure. WorkflowError narrows code to
WorkflowErrorCode.
Refs #7869
- Add the read-only cua_get_api_reference tool. It returns the provider's cua guidance for the
connection's Agent and keeps no state. The reference no longer rides on the first program result
of each environment: the server cannot observe a new conversation on a held connection, a
cancelled or failed first call, or a compacted context, and the delivery flag had two writers
without a common ordering point.
- Create the connection's Agent in a dedicated workspace: DSH_CUA_WORKSPACE, or cua-mcp/workspace
under the Harness home. An Agent's working directory is the workspace-write root of its programs,
so the directory a client launched the server from, which can be /, is no longer writable.
- Report startup failures on stderr and exit with code 1, including a relative workspace path and a
workspace directory that cannot be created. The profile mounts no log sink.
- Run each program call as the Agent's maintenance activity, so Agent disposal cancels an in-flight
call and waits for it and its nested calls to settle before the Session closes.
- Return a failed call's message without DSH's "Error: " prefix; isError already marks it.
Add 'uiSession.sessionStatus' to the Cordis inject of ui-conversation,
ui-workspace, ui-subagent, and ui-workflow-run, whose components call
useSessionStatus. Unloading or reloading ui-session-status now stops these
plugins and starts them again instead of leaving their components calling
a missing hook. A whole-client test disables and re-enables the status
entry and checks that the Workspace browser and Conversation shell leave
and render again without errors.
Address the documentation, comment, and test review points: the status
class JSDoc states only its contract and links the README, the ctx.slots
type merge moves to the module that reads ctx.slots, the upgrade guide
separates type-only dependencies from hook consumers, and the
stop-shortcut test name states the invariant it guards.
Refs #4076
Move packages/api/session-status (@deepseek-ai/dsh-api-session-status) to
packages/client/ui-session-status (@deepseek-ai/dsh-client-ui-session-status):
the package has no Remote or Host behavior and depends on ui-session, so it
belongs to the Client group. The uiSession.sessionStatus service,
ctx.uiSession.sessionStatus, useSessionStatus, and UiSessionService keep
their names.
Add the package to the Web client's required boot entries, so startup is
rejected when the status table cannot be imported or fails to apply, as it
was when the table lived in the required ui-session entry.
Refs #4076
Move the Client Session status table (running state, the effective
pending interaction, and completion reminders) and the useSessionStatus
root hook out of ui-session into the new @deepseek-ai/dsh-api-session-status
package. The UiSessionStatus service is provided as uiSession.sessionStatus
and read as ctx.uiSession.sessionStatus through the mergeable
UiSessionService type of ctx.uiSession.
Pending-interaction registration, precedence, withdrawal, and teardown
delegation stay in ui-session unchanged; ui-session now exposes the
effective requests read-only as ctx.uiSession.pendingInteractions, which
the status table and the Conversation stop shortcut consume. ui-session no
longer depends on api-remotes.
Refs #4076
A lens registration's disposer now waits for the classification itself,
and a run whose registration ended or whose caller left before it started
never reaches the lens; changesLens refuses a lens withdrawn while the
files were read and a local result whose files changed during the run.
The extension state names each lens's version, so the view keys results
by source, files, lens, and version. Hunks holding an open comment form
or a saved browser comment stay unfolded, the view reads threads and
viewed marks again on reviewRevision, a thread jump clears a lens that
hides its file, and the Client entry re-exports the lens types.