Commit Graph
27048 Commits
Author SHA1 Message Date
creatixchu ea9e78dc83 fix(cua): preserve drag release settling and verify pointer state and deltas 2026-11-12 15:31:16 +08:00
creatixchu 195c6fca26 fix(cua): keep Windows drag validation on the portable interface 2026-11-12 15:13:03 +08:00
creatixchu 6dfc15f333 test(cua): declare macOS pointer support in the retained script prompt fixture 2026-11-12 15:09:10 +08:00
creatixchu 1e0a303a31 fix(cua-macos): keep drag guidance in the macOS provider and preserve hover safeguards 2026-11-12 15:06:17 +08:00
creatixchu 703dd1b126 Merge remote-tracking branch 'origin/master' into feat/macos-system-pointer-drag
# Conflicts:
#	packages/experimental/cua-macos/README.i18n.yaml
#	packages/experimental/cua-macos/native/README.i18n.yaml
#	packages/experimental/cua/README.i18n.yaml
2026-11-12 15:03:10 +08:00
CreatixChu 95d7dcc349 Merge pull request #8350 from deepseek-harness/fix/macos-ax-children-recovery
fix(cua-macos): recover readable siblings after AXChildren failures
2026-11-12 14:53:46 +08:00
Ruilin Geng 5402a0c46a Merge pull request #8344 from deepseek-harness/docs/packages-readme-budget
docs: raise the packages/README.md word ceiling to 1,100
2026-11-12 14:50:46 +08:00
creatixchu da1c1c10c9 ci: remove the dedicated macOS CUA native test workflow 2026-11-12 14:38:23 +08:00
creatixchu 03dc9be58c Merge master into fix/macos-ax-children-recovery
# Conflicts:
#	packages/experimental/cua/README.i18n.yaml
2026-11-12 14:38:18 +08:00
Jiawei Song e45ad7ec52 Merge pull request #8174 from deepseek-harness/refactor/tool-errors-experimental
feat(experimental,hooks): give experimental and policy plugin tool failures error codes
2026-11-12 14:20:49 +08:00
creatixchu 6153a38b0f docs(cua): separate mouse permission and targeting paragraphs 2026-11-12 14:20:00 +08:00
creatixchu 69875aff67 docs(cua): put pointer-free actions first in the mouse instructions 2026-11-12 14:18:23 +08:00
creatixchu b05241df48 refactor(cua): name the shared tree flag hasUnreadableElements 2026-11-12 14:11:31 +08:00
creatixchu 31b316fbfa ci(cua-macos): run AX recovery regressions and the AppKit fixture on pull requests 2026-11-12 14:03:31 +08:00
sjw1231 c3953b65d7 Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252
# Conflicts:
#	packages/experimental/cua/README.i18n.yaml
#	packages/experimental/cua/README.md
#	packages/experimental/cua/README.zh.md
#	packages/experimental/cua/src/index.ts
2026-11-12 13:58:19 +08:00
creatixchu 2501ec39f1 test(cua): replay explicit system drags and check foreground admission 2026-11-12 13:55:23 +08:00
creatixchu 5ae6eeb102 test(cua-macos): distinguish failed child counts from verified empty lists 2026-11-12 13:52:00 +08:00
creatixchu ceb6c70774 test(cua-macos): verify positions across native button wrappers and AX-less windows 2026-11-12 13:50:42 +08:00
creatixchu 71cf14878d feat(cua): allow session-approved system-pointer drags on macOS 2026-11-12 13:50:00 +08:00
creatixchu 3d506a588e test(cua-macos): isolate AppKit projection from the Swift test runner 2026-11-12 13:48:25 +08:00
creatixchu ae3203a8ab test(cua-macos): initialize AppKit before reading fixture windows 2026-11-12 13:46:27 +08:00
creatixchu 7a588f6fb5 fix(cua-macos): distinguish unreadable children from traversal limits 2026-11-12 13:44:10 +08:00
std4453 dbb22de84e Merge pull request #8067 from deepseek-harness/design/model-picker-quick-controls
feat(ui): 弱化智能体团队开关入口
2026-11-12 13:41:19 +08:00
a39d44b5dc feat(session): add host reading status to SessionStatus (#6858)
* ✨ 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]>
2026-11-12 05:35:57 +00:00
creatixchu 394476afec fix(cua-macos): read failed ranges of up to five children by index 2026-11-12 13:25:25 +08:00
creatixchu 7863218fcd fix(cua-macos): apply traversal limits to unreadable entries 2026-11-12 13:24:35 +08:00
creatixchu 3fdea06f54 fix(cua-macos): keep unreadable children in sibling order 2026-11-12 13:21:20 +08:00
creatixchu 037410b5d7 fix(cua-macos): recover readable AX children by range 2026-11-12 13:16:51 +08:00
CreatixChu 8d9c78459c Merge pull request #8343 from deepseek-harness/feat/cua-windows/key-mod
fix(cua-windows): align modifier names and support the Win key
2026-11-12 13:03:38 +08:00
creatixchu 8b0966c5e9 Merge master and update the MCP modifier reference 2026-11-12 12:44:57 +08:00
winewill fd5e0ced20 Merge pull request #7964 from deepseek-harness/feat/desktop-publisher-workspace
refactor(desktop): isolate publisher workspace for lightweight rollout
2026-11-12 04:44:31 +00:00
creatixchu 5bd4d6e6ff fix(cua): restrict Win shortcuts and document per-operation modifiers 2026-11-12 12:41:50 +08:00
zhc 9d4283f18f Merge remote-tracking branch 'origin/master' into design/model-picker-quick-controls
# Conflicts:
#	packages/client/ui-agent-team/tests/browser-plugin.client.spec.ts
2026-11-12 12:20:14 +08:00
winewill 3fd0c6683d fix(desktop): narrow publisher metadata parse recovery 2026-11-12 12:15:13 +08:00
winewill 046df1b122 Merge master into desktop publisher and synchronize workspace version 2026-11-12 11:52:56 +08:00
audit 49d112aa67 docs: raise the packages/README.md word ceiling to 1,100
The package group table holds 49 rows and has grown to 992 of its 994 words since the 2026-08-25 rebuild, so the next group row cannot fit; the connector group (`packages/connector/`) needs 11 words. The ceiling and the target in docs/AGENTS.md move together to 1,100, which leaves room for several group rows at the current row length.
2026-11-12 11:51:12 +08:00
Chinesezjc 63837bc684 Merge pull request #8335 from deepseek-harness/fix/ci-f2a8592-inspector-client-deadline
test(inspector): budget the Client Runtime deadline for a real round trip
2026-11-12 09:30:20 +08:00
Chinesezjc adf06d4804 Merge pull request #8325 from deepseek-harness/fix/ci-bubblewrap-cache
fix(ci): cache the verified bubblewrap archive and bound its download
2026-11-12 02:19:56 +08:00
dsh-ci-bot dd2fc67baf test(inspector): state the deadline bounds in the timeout case comment
The darwin parity lane runs `vitest run` without coverage instrumentation,
so concurrent suite load, not instrumentation, is what pushed a Client
Runtime round trip past the old 20 ms deadline. Name that load, keep the
case-specific reason for the headroom, and record the two bounds the value
must respect: CDP_CALL_TIMEOUT_MS and the default 5 s test budget. Drop the
sentence that restated the file-header lane rule.
2026-11-12 01:41:37 +08:00
dsh-ci-bot 0fd248d065 fix(ci): keep the verified-download spec within the line budget
The acquire helper's inline return type grew past the 140-column lint
limit when the env parameter was added; name the result type instead.
2026-11-12 00:56:28 +08:00
dsh-ci-bot cec43a7001 test(inspector): budget the Client Runtime deadline for a real round trip
The case proves that a fired Worker deadline leaves the Client Runtime
session usable, but it also gave the follow-up evaluation the same 20 ms
budget as the deadline. A Client Runtime round trip crosses the Worker
thread and a WebSocket to the Client fixture, so under the darwin lane's
concurrent suite it can exceed 20 ms and the follow-up is rejected with
the deadline error instead of returning 42.

Raise the deadline to 1000 ms. The never-settling promise still makes the
deadline fire, the follow-up keeps 50 times the failing observation's
budget, and the lane's 90 s fixture wait stays far above the deadline.
2026-11-12 00:50:05 +08:00
dsh-ci-bot 5f2ff8790a fix(ci): scope the verified archive cache to ephemeral runners
The archive cache was wired into lanes that can select the persistent
self-hosted pool, which keeps ~/.cache on its own layout and never needs
the remote cache, and the consolidated benchmark's Windows rows restored
and saved a directory they never create.

Guard the cache steps with the same self-hosted exclusion as the pnpm
store cache, drop them from the self-hosted standby and the manual
benchmark matrix, and assert the guards in the workflow specs. Probe for
sha256sum or shasum -a 256 so a host without either fails loudly instead
of reporting a digest mismatch, clean partial downloads when a job is
cancelled, keep the retry window plus its last attempt within five
minutes, pin that contract in the test, and report cache-directory
failures with the download URL.
2026-11-12 00:42:37 +08:00
Yichen Jiang 300f3f3498 Merge pull request #8200 from deepseek-harness/feat/cua-mcp
feat(cua): serve Computer Use to MCP clients from the cua-mcp profile
2026-11-11 20:58:41 +08:00
Yichen Jiang 3842f2b222 fix(ci): cache the verified bubblewrap archive and bound its download
Launchpad outages failed every Linux CI and E2E job in the bubblewrap
preparation step before any test ran, and a stalled connection held the
step for minutes because curl had no timeouts.

Restore and save the SHA-256-verified archive with actions/cache around
each preparation step so a warm cache needs no Launchpad request, verify
cached and downloaded files against the pinned digest before use, and
bound each curl attempt and the retry window. The download URL stays
pinned to the recorded Launchpad build.
2026-11-11 20:32:47 +08:00
sjw1231 cf92ab9aac Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252 2026-11-11 19:57:11 +08:00
Yichen Jiang 393b0f71f5 test(cua-mcp): release held promises at teardown in the reset unit tests
A reset unit test that fails before it resolves the promise it holds left the server's disposer waiting until the hook timeout. Each test now resolves its promise at teardown, so a failing run ends at once.
2026-11-11 19:22:23 +08:00
Yichen Jiang c2fa483000 test(cua-mcp): stop the looping program of the reset test when the reset does not
The test that resets during a program that cannot be interrupted gives the runtime a ten-minute stop grace, so a reset that no longer releases the environment fails the test by its timeout on every lane. The test records the program process and kills it at teardown, so such a failing run does not leave a process spinning.
2026-11-11 18:55:05 +08:00
Yichen Jiang c4dd37eb53 Merge remote-tracking branch 'origin/master' into feat/cua-mcp 2026-11-11 18:26:53 +08:00
Yichen Jiang d5e02356ea refactor(cua-mcp): reset by releasing the program environment through the runtime's owner release
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.
2026-11-11 18:19:43 +08:00
Yichen Jiang 11fe934953 docs(cua-mcp): document the Codex entry as exercised, with required startup and unattended approval
The Codex entry gains required = true: without it Codex waits one second for the server, and the first model request can go out without the three tools. codex exec refuses cua_run_code under the approval policy never, so an unattended run sets approval_mode = "approve" on that tool. The entry was exercised through codex exec on codex-cli 0.153.2 and 0.166.0-alpha.5.1 against a macOS desktop.
2026-11-11 18:19:29 +08:00