Repository navigation
Conversation
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…on-move commits A test main added assumes userDataPath.js exports only userDataPath, which collides with the prep branch's Skill projection boundary reading getUserDataDir(). Record why the fix must ride with the prep PR and the reader-set check that now runs after every main merge. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The enqueue helper in input-queue.test.mjs waited for the send to reach the fake engine with waitFor, a budget of 200 polls. A send reaches the engine only after its working-directory check. Its filesystem probes (workdir-probe-host, each bounded by its own 5 s deadline) take as long as the machine needs. Under load the poll budget ran out while the send was still on its way. "A send to a task whose ordinary directory was deleted recreates it" failed this way in 4 of 72 runs: still in its turn, no error, nothing sent yet after about 1.2 s. The helper now waits for the event that ends the send's start: - the fake engine received a message for the task (createFakeMaker gains onSent) — the helper resolves; - the queue settled the input without one (its published projection carries an error, or a recovery point names the input) — the helper fails at once, with the projection; - neither within 30 s — the helper fails, naming the event that did not come, with the projection. The limit is a real timer taken before any test mocks setTimeout, so ticking a mocked clock cannot fire it. createHarness forwards every queue event to listeners besides the hub a test passes (onHubEvent). No assertion changes. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 64bae3e3172c57ddcd99f5053bbbccdfddbc272c) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
… test "A send to a task whose ordinary directory was deleted recreates it" sends a second message and counted it with waitFor (200 polls). That send passes the same working-directory check as the first, so it ran out the same way under load. With the recovery directory's stat delayed by 1.5 s, the test still failed there after 64bae3e317. The enqueue helper's event wait becomes enqueueUntilSent(h, id, item, count): it waits for the runtime to have received count messages in all, or for the input to settle without one, with the same 30 s limit naming the message that did not come. enqueue is enqueueUntilSent(..., 1), the old condition. The second send waits for count 2. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit f77c9be00e2882409c002bcadc393d6c98b21fbb) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…vation setters Main brought two module-level setters into the Host import graph: - prRefsStore setPrRefsChangedListener: pending. No Host window reads PR associations (the web client returns none, client mode does not forward git-context:pr-refs:*), so the push has no consumer yet; recorded with the missing pieces in release table sections 二 and 六. - attachmentPreservation bindHostedAttachmentPreservation: not-applicable. Only the desktop remote agent hosted run binds it; the Host does not load remote agent hosting and its attachment recovery takes the local task path. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 0aa117775db301a45e8dcacc8428106abb0d3d90) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Section 5 of the release table gains one row for the test-writing risk the two
auto-resume and enqueue flakes came from. waitFor in input-queue.test.mjs gives up after
200 polls, not after a real time. Anything that goes through a background thread on its
way, such as a message reaching the fake engine after the send's working-directory
check, can come out one short under load. It is not a production problem.
The row covers:
- how to list the sites again (grep -n 'waitFor(' on the file) and what counts as one;
- the 2026-11-17 count: 199 sites in 120 tests or helpers;
- that a "one short" flake in this file is checked against that list first;
- the rule that new tests wait for such events with the event helpers
(enqueueUntilSent, settleUntil, dispatched);
- the evidence: 0/72 on both sides of the controlled window; 3/3 failures before and
3/3 passes after with one stat delayed, the message arriving about 1.8 s after
waitFor gave up; three breaks, all red.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
(cherry picked from commit 260384e2cc0daa8b82f7ee8e412d5626aa5d8f6e)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
check:test-hygiene's realWaits rule counted the 30 s limit in enqueueUntilSent (cb43b9c) as an unjustified real wait. It is a real timer of 30 000 ms, and the baseline for input-queue.test.mjs allows none. The rule's own exemption is a `// real-wait: <reason>` comment on the line above, and the call now has one. The limit only guards against hanging: it fires only when neither event comes (a failure); normally the send's event resolves first and the timer is cleared. It is a real timer because tests mock setTimeout and tick past 30 s. The baseline is unchanged. The release table row on count-based waits (260384e2cc) notes that new hang guards carry the same marker. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit bba299b4ef7307b5681721df082f61816ea34430) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…n renew one login in turn Coexistence plan A, C: the one shared credential the Host writes while a desktop app holds the profile. refreshHostSession (auth/refresh.mjs) is the one renewal; the timer, the server API's 401 retry, Device Link's auth failure, the first startup and /api/auth/refresh all go through it. 1. A rejected token is retried with the replacement another process stored: the shared runRefreshWithReplacementRetry over the v1 record, the vault's active resource and the legacy token, as the desktop. 2. After the request the v1 record is read again; when it no longer holds a token this renewal had rejected, the failure is dropped. 3. Only a definitive failure of the token still stored signs out, this process only; DEVICE_MISMATCH the same. Nothing stored is deleted. 4. The result is written under the account-vault lock, after reading everything again: the vault by the desktop's rule (applyRefreshedCredentialsToVault), the v1 record with its Host device, the legacy token when it exists. Without the token, no v1 write. The v1 record is also kept when the vault names no or another account (cindy-host login writes only the v1 record). 5. A record that exists but cannot be read is a transient failure; only a missing one ends the session. 6. The next renewal is armed at the access token's exp minus 300 s with the desktop's accessTokenRefreshDelayMs; failures back off with AuthRefreshBackoff, a 401 after a network failure may bring one attempt forward (server-api.ts now passes serverRejectedToken). The fixed 30-minute interval is removed. The vault lock file name comes from authRefreshCommit.ts in the logout and cindy-host login too. Release table: coexistence row, follow-up nine; the login-cli passport question; the account session row; the M4 rows. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 88ea01d79355a3b8acb817c94fa7f7b28041f661) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…k and a cold start The reproduction of 2026-11-17 becomes a regression test: the Host's production refreshHostSession renews three times on the records the cold-start harness keeps (v1 and the account vault), then - scenario 1: refreshSavedResourceSession, the step of switchSavedAccount that renews a saved account from its vault copy, renews it (before the Host wrote the vault, the copy was rotated out and the account removed); switchSavedAccount itself does not compile into this harness; - scenario 2: the cold start finds v1 and the vault current. The Host module is imported with a non-literal specifier, outside the desktop typecheck. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit fe7ae5751f4dedcf6503b89841c81553385d82db) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
createHostServerApi now passes the desktop request contract's serverRejectedToken to the renewal; this pins it at the production port. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 36c2b2090e051e80e030d5e64a0ee5e7e3fae7b6) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
… the desktop cold start cindy-host login writes only the v1 record, so the vault may hold no account. After Host renewals the desktop's cold start claims the empty vault (canClaimUninitializedVault) and both records hold the new token. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit acfd1c16d61665400fafc2b6cd1c6cca6b97d1fa) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
… account writes Release table: the cold start starts from v1 and fills the vault back in under the lock, provided the vault's active account is still the one renewed; an empty vault is claimed. The window's switchSavedAccount, completeLogin and rememberResourceSession all take the account-vault lock and re-read inside it. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 825ae4dd449e955afe5506f6e1a57b44077c6daf) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The check that every renewal function was found asserted on the source read, which the test hygiene gate counts as a source-text assertion; it now throws while building the harness instead. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit d15a8ed439ef0833de23585d742eb8afcc7d6d17) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…versions the desktop writes Reviewer rulings on C (2026-11-17): - /api/auth/refresh moves from the held gate's refusals into HOST_PATHS_ALLOWED_WHILE_HELD (renew): the renewal is the one shared credential the Host writes while held, and a client-mode window asks the Host to renew through it; refused, the window takes it as a failed renewal. - readVault accepts version 1 and AUTH_ACCOUNT_VAULT_VERSION instead of a fixed [1, 2], so a desktop version bump is not silently refused. - A test pins that a token without a numeric exp arms nothing and the server API's 401 still renews it (difference d). Release table: the rulings a to e, the cindy-host login item (B list), the desktop item for b, the three-column row for /api/auth/refresh. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit a590c89c1b8d5f32742de5ffe73d8de81e6d9dc2) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…byte The desktop's production vault functions, compiled from authManager.ts over an in-memory record store shared with the Host's store, make a vault with three accounts (one current, one logged out with its tombstone), a passport and fields the Host does not know. After one Host renewal only the current account's refreshToken, metadata and lastUsedAt differ, the tombstones are untouched, and the desktop reads back the same accounts with the new token. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 1617778ffc901adfe6aace7bb2c3bf11fdf55fd9) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The desktop typecheck rejected the fixture's kind and role as plain strings; they are the membership literals now. No behavior change. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 2c63c5c7f74a87609383bfb5d324b78cba5a0e15) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…de account switch row The reviewer registered it as part of that unit; the C branch did not have the row yet, so it was listed on its own. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…e-locale machine Compared against main e8b5e2f in the same environment: the same failures and errors on both sides, all passing once TMPDIR is a realpath, the locale is English, or the watcher test runs alone. CI is unaffected. Record them with fix suggestions; the Pi package watcher test stays open until its paired comparison is done. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
… an owner boundary The input runtime only entered its stopping state inside inputQueue.dispose, after logout had revoked the session on the server and after invalidation and shutdown had paused requests and closed confirmations, plugins and the platform client. A turn that failed on that teardown was written as ended, with an error row, instead of interrupted; a /chat stream got no receipt. agent/owner-boundary.ts begins every owner boundary (logout, the HTTP logout entry, session invalidation, shutdown; an account switch later): inputQueue.beginStop sets the stopping state, the shared turn-end suppression is held until the teardown and the storage close end, as the desktop's account boundary does, and open /chat streams end with the interrupted receipt a stopped turn gets. Logout now stops and disposes the runtime before signing out and revoking, the desktop's order; a failed revoke still signs out. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 53472047517fe90b4643ec7d07d7dbc304971617) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 363e81df03c93027a5eb66ddf4016d8544956283)
… a step before it fails The HTTP logout entry begins the owner boundary's stop, then revokes browser sessions, closes the platform client and drains requests before calling the logout. If cancelling a pending login rejected, the logout (and with it the dispose that replaces the stopped input runtime) never ran: the Host stayed signed in with every send refused until it restarted. If closing the platform client threw, the flight was never created and the turn-end suppression was never released. Those steps are now in a try; a failed step no longer skips the logout, whose runOwnerBoundary disposes, and the release stays in the flight's finally. owner-boundary.ts states the invariant (a begin reaches dispose, or the path rebuilds the input runtime; the release is in a finally) and lists the four calls of begin checked against it. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit d87e11732e76f74b6025c191c6a537224a66854b) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 3f997358d5fd01a90fe7483d1d02b33a6407e7f0)
…nerBoundary main.ts starts the Host at its top level, so the unit tests drive runOwnerBoundary itself. The source guard pins the wiring: logout, session invalidation and shutdown each go through runOwnerBoundary with their teardown inside it, logout signs out after dispose, and the HTTP logout entry begins the stop before it closes the platform client. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 844bad4f104ea30ed58437782446a12e3b6e9c75) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 14fe9afd6ae66ffb727b9f752d362c6151745391)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Main (2656e83) installs the hosted inference model catalog on both sides: the desktop projects the subscription pools without the account filter, the Host applies the same filter as the selectable catalog, as main's own Host test asserts. Unreachable today (the Host refuses hosted sessions and never runs signed out); recorded in section 二 with when to revisit it. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit cd6e3e77d0d418b5f606d31fefd85be4094802ac)
…a port Host PR guard (reads sources only; no desktop behaviour changes). The module-level setter guard missed setGuestProviderModelCatalogReader because its slot started as an imported function, the third initial-value shape found only after the fact. The guard now takes as a slot any module-level let/var whose initial value can hold a function: a literal, a module function or a binding that starts as one, any import, any call (bind included) or await, a new instance, a choice among those, or an object literal holding one; and object literals whose properties a setter replaces. Writes also count through ??=, ||=, &&=, Object.assign and module functions the setter calls. The forms it still cannot see are listed in the guard's header. Thirteen setters come in and are classified in desktop-module-setters.ts: seven bound (setGuestProviderModelCatalogReader, setActiveCatalog, setLocalCatalogOverrides, setSessionRouteLockImplementation, initLogger, installDesktopInteractionHandler, registerCodexProcessRole), four pending (setChatEmbeddingEnabled and installInteractionLifecycleObserver with row 33, setOpenAiImagesApiKeyConfigured with 乙 12, configureProjectIconRuntime with row 28) and two internal (setBrowserRuntimeLogSink, registerReadSheetTool). Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 3df3b19b7f9f1b24382194edecdf6c902714da86)
The Host wrote messages without recording their PR references and recomputed them only after a clear recovery, so a PR that a Host task mentioned never reached session_pr_refs (release table 甲 24). The Host now calls the same shared code as the desktop (localDb/messagePrRefs.ts): - message-store.ts: a published row records its PR references, broadcast or not, without waiting (desktop createMessage); - event-persistence.ts updateDbMessageContent: with an original row (final corrections) reconcileCorrectedMessagePrRefs, also when the row is gone on readback; otherwise, for user and assistant rows, reconcileUpdatedMessagePrRefs (desktop updateMessageContent); - event-persistence.ts discardPersistedAssistantMessage: after the rollback, reconcileCorrectedMessagePrRefs (desktop reconcileAssistantDerivedState). The window channels and push stay apart as 乙 13 with the M2 push batch; release table sections 二, 五 and 六 and the setter table say so. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 42ddea6c41d5cace9fa17ccb0b3c770399a93e2d)
The widened setter guard found two Host differences; recorded in section 二 only, no code change, grading left to the reviewer: - configureProjectIconRuntime is unbound, so the Host's auto icon fetch reads proxy environment variables only, not the Host outbound proxy; - setOpenAiImagesApiKeyConfigured is unbound, so the flag stays false and an OpenAI subscription keeps the hosted gpt-image-2 entry. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit e5c21e5a1ffda6b711a289a1c6f2e6f021f3a5ba)
…at fail The HTTP logout ran the web session revoke and the platform client close in one try, then cancelled the pending sign-in in a .then of that teardown. A revoke that threw therefore skipped closing the platform client and cancelling the pending sign-in, so a sign-in in progress could complete after the sign-out. This is not the rule runOwnerBoundary follows: one step failing does not skip the steps after it. The failures were also swallowed without a trace. Each of the three steps now runs on its own; a failed one skips neither the others nor the logout itself. Each failure leaves one warning with the step name and the error's code or name only, never its message, which can carry account or sign-in details. The existing owner boundary group in server.test.mjs gains the revoke-throws case and checks, for every case, that the pending sign-in is cancelled and exactly one warning without the message is logged. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit f00a187dc25b0d61c49b8c08bbfcb37c9824cc6f)
… with the paired counts Twenty alternating runs each on main and the prep branch in the same environment: the prep branch fails no more often than main, and the test mocks the agent-binaries module the prep branch changed. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
…ge store flakiness Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
… in client mode The decisions for switching and adding accounts while the window is a client of the Host were spread over several review rounds and a few release table rows. docs/host/client-mode-account-switch.md puts them in one document that reads on its own: the background (the window as a second writer), the Host taking the work with the window as interface only and the /api/auth/accounts/* routes, the switch-only owner commit entry with its three tests, the 25b revision, the discoverHostOwner gap, cindy-host login writing the desktop's storage state, the user's decision and the security review, the security section S1-S6 with the threat model boundary and the two required items, the default behaviours (with the desktop's confirm dialog, keys and copy), the reuse of runOwnerBoundary (begin is not reversible, so B is validated first; the switch is the fifth begin call site), the Host-side order, the change and test lists for each side, and the test-period limitation with its exit condition. File and line references are checked against dca9dc2. The docs/host index links it, and the release table's row for this item points to it. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit 984a671f84a963119201683b14a9f23937930df6)
DavidShenXD
approved these changes
Nov 19, 2026
A terminal notification schedules the shared queue drain. Wait for the engine to receive the queued input before making the existing assertions, since the retry can still be waiting on workspace I/O. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Include the captured stderr tail when the failed-start refresh regression times out. Keep the existing polling budget and capture UTF-8 across stream chunks. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Share a deadline across both source serve endpoint waits and log the measured startup time. Keep the stderr tail on timeout and the existing budgets for health, account state, and teardown. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Document the source-only endpoint wait budget and the Ubuntu test race fixed after upstream sync 7. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
DavidShenXD
approved these changes
Nov 19, 2026
Keep the same JSON frames and readiness semantics over the Windows child-process channel. Preserve the stream transport on macOS and verify short Host commands can exit. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Keep the existing transport close and signal sequence, then stop waiting and log if the worker never reports its exit. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Exercise the selected transport in all twenty startup rounds. Observe process exit from spawn, report each group as it finishes, and clean up the PAC server and owned children on failure. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Record the Windows EOF behavior, existing direct fallback, and the CI acceptance improvements. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Wait for the actual reply write and queued send after delayed provider idle. Observe the completed turn before checking stale retries or exercising desktop profile holds. Keep the existing assertions and mocked retry windows. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Keep the original observation window after the reply reaches persistence and after a held turn finishes, so the negative assertions can see asynchronous dispatch or receipts. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
DavidShenXD
approved these changes
Nov 19, 2026
Node may omit the aggregate child close event after a parent disconnects IPC. Require process exit and stderr closure for IPC helpers, preserve the stream transport checks, and report forced stops and shutdown timing separately. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Record the parent-disconnect event accounting issue and distinguish the acceptance check from production helper exit handling. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
DavidShenXD
approved these changes
Nov 19, 2026
13 of 21 tasks
dashhuang
added a commit
that referenced
this pull request
Nov 20, 2026
The macOS background stage took 19,885 ms on the final #11536 run, 20,117 ms on the failing first #11629 run, and 12,146 ms after the port fix. The 20-second override was a readiness wait, with no performance assertion. Use the launcher default of 60 seconds. Keep the 90-second suite deadline, the lifecycle assertions and per-stage timings. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
dashhuang
added a commit
that referenced
this pull request
Nov 20, 2026
The final #11536 macOS run took about 76.7 seconds across all stages. The first #11629 macOS run took 81.6 seconds across four stages before reattachment, leaving about eight seconds under the 90-second suite deadline. Keep the whole-script hang limit above twice the slowest observed run by raising it to 180 seconds. The 60-second readiness wait and Ubuntu performance review threshold are unchanged. The CI job allows 20 minutes. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
dashhuang
added a commit
that referenced
this pull request
Nov 20, 2026
feat(host): Cindy 后台服务第一阶段,普通本地任务与桌面一致(个人版迁移 M1,单提交重提 #11536)
zqchris
pushed a commit
to zqchris/cindy
that referenced
this pull request
Nov 20, 2026
Adds the Node Host (apps/host) so ordinary local tasks can run without a desktop window and behave as they do on the desktop, using the shared desktop code that the desktop prep PR (makecindy#11535) extracted. This is the same change as makecindy#11536, carried as one commit. makecindy#11536 has 717 commits, more than the DCO app can read (it retrieves 250 and reports that it cannot evaluate the pull request), so the required DCO check could not pass there. All 629 non-merge commits in makecindy#11536 are signed off by their author; the 88 merge commits are exempt. The full commit history, review threads and per-commit verification remain on makecindy#11536 at 8874aaf. The tree of this commit is identical to merging 8874aaf into main at 3af7adb. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Member
Author
|
这一批改动已随 #11629 合入 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这次改了什么
摘要
这是个人版迁移到 Cindy 后台服务(
apps/host)的第一阶段(M1)。目标是在不开桌面窗口时,普通本地任务也能由后台服务运行,并且和桌面一致:后台服务调用的是桌面准备 PR 拆出来的同一份共用代码,不另写一套。本 PR 依赖的桌面准备 PR #11535 已于 2026-11-19 合入 main(合并提交
ea5e289965)。本 PR 相对 main 的 diff 现在只剩后台服务这一部分。每项能力的现状、与桌面的差异和证据,都在
docs/host/personal-migration-release-table.md。本 PR 不打开迁移,是否开放迁移另行决定。和桌面的关系:
apps/desktop只改了三个测试文件(见下文“只在本 PR 里的三个桌面测试”)。变更类型
feat新功能fix缺陷修复refactor/perf重构或性能优化docs/test/chore文档、测试或工程维护(CI 新增后台服务验收步骤、系统代理对比 workflow)范围
apps/host:apps/web的 shim:读取类型化错误和启动失败码。docs/host下的文档。已知限制(仅限测试期)
迁移前必须解决,在那之前只是登记:
cindy-host login登录原账号。要换账号,先在窗口退出登录,再用cindy-host login登录新账号,然后重启后台服务。host_instance_changed),而且不提示原因。要重新打开 Cindy。089105c276、d9fc65bd15给桌面任务加了任务内搜索与安装,后台服务没有接,同时删掉了原来的兜底引导,所以这是同步 4 带来的退化;窗口里的插件设置装不上,是因为主干a7f5289e84把安装确认的答复委托给后台服务,窗口本地的确认被拒,这是主干原有的问题。另外窗口的官方市场取不到账号访问令牌,需要登录才能看到的插件可能直接看不到。两件都列为迁移前要解决,见放行表第五节。主干同步的合并提交
65619a35d3。它本身不能构建,要和紧随其后的端口补齐提交8bee8af5eb一起用。7f09da233d,准备分支上对应43a545067c,主干af8bd193a3。aafac71097,带进ca1232f084与97af5ce056),没有冲突。679b799da5合入准备分支(准备分支上1db8b978a4合入主干9354a65d1a),本 PR 侧没有冲突。之后eec45e4d65让后台服务和主干对齐:发送和移动只刷新已登记项目(touchRecentWorkdir),任务更新接受共用常量INDEFINITE_SNOOZE_UNTIL表示的无限期稍后处理。3ba205779d合入准备分支(准备分支上b9fa89f919合入主干5a92f62d24),本 PR 侧没有冲突。之后7b068f570a把主干新加的可选端口显式写成不绑定:主干 fix(model-groups): 修复首轮空交接,支持组内故障接替 #11406 的模型组失败恢复需要桌面登记模型组,后台服务没有对应入口(放行表第五节“主干同步 5 的 Host 接线”);Agent-Net 的供应商分享委派继续不绑定。1dd89e2966合入准备分支(准备分支上d76c822a05合入主干3ef44274d6,冲突只在deepLink.ts,见准备 PR),本 PR 侧没有冲突;主干这 61 个提交没有改apps/host。这批提交里后台服务没有对应入口的新功能清单在 PR 开出后补进放行表第五节“主干同步 6 的 Host 接线”。915dcd9847合入主干43fb1df105(已含 refactor(desktop): 为 Cindy 后台服务拆出共用的桌面逻辑(个人版迁移准备) #11535),没有冲突,锁文件与.nvmrc未变。主干e88f240ba6给 Pi 加了getLocalPiHttpsProxy,5feea98573照桌面pi-host.ts的判断顺序接上(有代理环境变量时不介入,否则经共用的 CLI 代理桥配后台服务自己的出站解析),并按改名后的cli-proxy-bridge.ts更新网络模块登记;其余主干提交没有需要补的接线(放行表第五节“主干同步 7 的 Host 接线”)。43fb1df105。readReplyQuoteNote、readBotThreadNote。8bee8af5eb的行为清单:main.ts判断 scoped 来源。入口同时透传options和thinking。supportsRemoteModelWindowRebuild,它在合并提交里被删掉了。agentCommands在异步读完任务后,再复核一次账号和运行时。forceReload;桌面占用期间忽略强制重载。confirmNativeHistoryFallback端口随主干移除。applyPendingPick。这是这次同步在发送路径上唯一的结构变化。同步 3 的后台服务接线:
48f3597f05新增了项目归档与恢复的远程入口,后台服务一并接上:refuseWhileHeld;进入任务锁后依次beforeWrite、assertCurrent、refuseWhileHeld,最后开事务。archiveOnRemoval按主干的共用逻辑不生效。apps/host/src/device-link.test.mjs。桌面占用期间
COEXISTENCE_RESCAN_MS);另外监听登记目录,有变动时去抖 250 毫秒后重扫。[PRECONDITION_FAILED] HOST_PROFILE_IN_USE_BY_DESKTOP: …,窗口提示“这份数据正被单独运行的 Cindy 电脑端使用。请先退出它,再发送。”(logic.errors.hostProfileInUseByDesktop;会改数据的其他操作用hostProfileInUseByDesktopRetry)。PRECONDITION_FAILED。PRECONDITION_FAILED;工具列表和任务历史搜索照常。server.mjs自己应答的入口(逐个登记,根目录源码契约scripts/__tests__/host-server-hold-classification.test.mjs有分类守护,由pnpm test:runner执行,新增入口不登记就失败):/chat为不存在的任务建任务(读完任务、建任务前同步查一次)。/chat的新任务在开流前被拒,返回 500 和chat_failed事件,与任务不存在时一样;已存在任务在开流后被队列拒,返回 200 和同一事件,这是原有行为。device-link-settings.json,与桌面是同一份文件、同一把跨进程锁,正在运行的桌面每 5 秒轮询跟随:关闭会断开桌面当前所有控制链路,撤销会断开对应设备;写之前先走两端共用的分享可用性策略,有登记时向账号区域的服务停用对应分享的可用性,并移除登记。理由:收紧方向的操作,只有本机持后台服务令牌的客户端能触发,占用期间后台服务的远程控制仍在线,撤销正是这时需要的。/control/stop的关停收尾(排空队列、在途用量入库、有条件写错误行)。/control/attachment、/control/platform、/web/pair、/web/session、/events与读接口、IPC 现有只读绑定。Agent-Net 设备身份是后台服务自己的记录,桌面不读写。改到主干已有代码的地方
c9e1fcd68e在后台服务上用固定的 Claude 默认路线做记忆自审,没有读用户的辅助模型设置和停用开关。本 PR 改为接上桌面已有的辅助模型链,以及两层停用判断。占用时不派发;已发出的请求,收据仍记到发起账号。桌面包装保留原来的默认端口和执行顺序。scripts/check-test-hygiene.mjs:文件 URL 的.pathname规则只扫apps/host/下的测试、夹具和脚本。文件 URL 转本地路径一律用fileURLToPath;HTTP URL 仍可以读.pathname。hygiene 基线没有增加。apps/host/scripts/lifecycle.e2e.mjs:ci.yml的 host-regressions 新增 4 步:只加载验收脚本的导入、provider-config、ipc-route、lifecycle。lifecycle 在 Windows 上跳过,那里最后一次 stop 有既有的 ECONNREFUSED 缺口。macos-system-proxy-compare.yml:在 GitHub 托管 runner 上改系统代理设置,比较后台服务和 Electron 的代理判定。只在手动触发时,或改了代理实现的 PR 上运行;脚本拒绝在 GitHub 托管 runner 以外启动。只在本 PR 里的三个桌面测试
apps/desktop/src/main/__tests__/authColdStartRecovery.test.ts、maker-host/__tests__/hostDesktopSourceContracts.guard.test.ts读后台服务的源码;cindy-brain/__tests__/hostToolSlot.test.ts不读,是随本 PR 新增的插件静默端口补桌面测试夹具一行。三个都要配本 PR 的后台服务代码,所以不进准备 PR。hostDesktopSourceContracts.guard.test.ts里一条只查表格式的用例已删除(434ed14264),对照真实依赖图的区域分类守护保留。UI 变化
怎么验证的
PR 首轮 CI 与评审修复(2026-11-19)
PR 开出后的首轮 CI 和机器人评审暴露了下面几项,都只改
apps/host和本 PR 新加的测试:outbound-path-fact一条用例取不到搜索程序7743e6f406usage-recording清理时数据库句柄未关(EBUSY)a7fa893117d681f5252a79a6e4b526、8160a6ae86/models回包在占用开始后才到,仍写共用的报价缓存和币种文件caf94959b05d0cec971a7ace44b2b7)59ea890ff5/49f68d81efa.example.com, b.example.com时,Host 仍走代理而 Electron 直连4f4e44ab8bb4ca7a687309bafa707dcli-proxy-bridge.tsgetLocalPiHttpsProxy并更新两张表;守护本身没改915dcd9847、5feea98573ef451931bc206bc30b3765a9cbad46、044bf9266e9001d67bf8a6d3182bf67b38ff47e3411cc62dd7b4fc30a9ff、b3cdf74ceamacos-system-proxy.test.mjs的 “a proxy that names a user is unresolved, and the user is in no log or judgement”);CI 的对比工作流在托管 runner 上验证不了这一条。lib/common/init.ts),helper 读到结束就正常退出,从未就绪;CI 上 20 轮都在 1 秒内以退出码 0 退出。后果:没有代理环境变量时,Windows 上的后台服务读不到系统代理(PAC、自动发现、手动代理),出站按直连处理,依赖代理才能联网的请求会失败。不会卡住启动:预热有 8 秒上限,单次解析约 2 秒,之后只在出站请求时按退避重试(最长 60 秒一次)。验收里那次挂到作业超时来自验收脚本本身,已一并修正。改用 IPC 后的第二轮失败同样是验收判据问题:父端断开后 Node 不发聚合 close,验收却在等它;生产按 exit 判断,未改(见上表411cc62dd7)。修法见上表9001d67bf8、a6d3182bf6、7b38ff47e3、411cc62dd7;8874aafb21 上 Windows 验收五组全部通过:20 轮启动全部就绪并返回 PAC 结果,断开到退出 61–136 ms(中位 95 ms),没有强杀;按生产方式启动、崩溃后重启、Host 被杀后不残留三组通过;随后的 Windows 系统代理对照 “All results agree.”。check:dco全部已签,合并提交豁免。8160a6ae86):Windows 的数据库检查跑到并通过;Windows 上的清理顺序与路径守护通过(Host 全量 1044/0);Ubuntu 上 lifecycle 通过,约 40 秒(first/busy/replacement/background/reattach 9959/10206/9841/9898/88 ms),低于 60 秒,这一项已结。自动验证
主干同步 6 之后的自有 macOS 补跑(PR 开出后,2026-11-19)。 文件监听正常的 Apple Silicon macOS,Node 22.22.3,准备分支
d76c822a05、集成分支49b01543ef,对照主干3ef44274d6;测试 HOME 用临时目录、不带登录凭据,除浏览器三项外只放行回环网络。test:lifecycle通过;两个浏览器文件(Chromium 1243)15/0/0,plugin-sandboxe2e 通过。codexHosted风险命令审批、startupProbe原生启动对比),主干同样失败。没有启动图形界面的 Electron。主干这 61 个提交对放行表前提的重验和“主干同步 6 的 Host 接线”清单已补进放行表第五节:唯一不再成立的一条是回复盖章(第五节甲 9),已在下面的首轮修复里对齐桌面。验证中发现的五项主干既有问题已登记为 #11545。
主干同步 4 之后,在文件监听正常的自有 macOS 机器上跑,Node 22.22.3,集成分支
eec45e4d65、主干9354a65d1a:868941897a上也跑过同样的一轮(Host 全量 1055/0/0;lifecycle first/busy/replacement/background/reattach 7993/7985/8030/8030/70 ms;两条文件监听登记用例 codexHosted 6 次、claudeHosted 3 次通过;Pi 18 条通过)。已执行,主干同样失败(都是主干既有项,不在本 PR 处理):
codexHosted.e2e的 “asks on this computer before Codex runs a risky command, and runs only what was approved”:失败方向是已批准的命令没有生效。“被拒命令没有执行”这一点,本轮没有断言出结果,不能当作权限边界已经验证。原因未定位,怀疑和外层隔离下 Codex 自带的命令沙箱不能嵌套有关,未证实。startupProbe.e2e的 “compares native startup with and without shortcuts”:原因未定位。这两条所在的目录,在主干和本分支逐字节相同。按规则字面有疑问、保留并说明理由的 4 项(放行人可以否决):
apps/host/src/agent/input-queue.test.mjs:4343(队列 API 成员都是函数):按静态契约登记。main.ts把无类型的队列对象强转成端口类型,编译器查不出缺成员,缺了要到运行时第一次调用才抛 TypeError。入口是真实队列工厂和startPorts();依据是这处类型强转;最小失败输入是从队列 API 删掉清单里任一成员;tier:guard(静态契约),不算行为覆盖。apps/host/src/device-link.test.mjs:474(入站分发端口的分类与测试里的副本对照):故意保留的副本对照,只起“改动必须两处同改”的提醒作用,保护权限边界:这张表决定桌面占用期间哪些端口放行、哪些拒绝。失效后果:有人把某个端口从“拒绝”或“过闸门”改成“只读放行”,旁边的完整性检查不会报,只有这条会。各类别的实际准入由行为用例覆盖:refused-at-entry(requestPluginOauth)和 service-gate 的dispatchLocalInvoke由第 297–306 行(占用期间发送、新建任务、预热、插件页调用、插件授权都被拒,没有一个到达处理函数)与第 187 行(项目归档执行被拒)覆盖;read 由第 307 行(占用期间读任务照常应答)覆盖一条,其余读端口没有逐个的行为用例;unbound 由第 360 行(未接的平台功能被拒)覆盖;service-gate 的executeTaskTags没有占用期间的行为用例。apps/host/src/startup-account.test.mjs第 38、174、215、284–384、470–508 行:入口是main.ts里的启动阻断、关库、跨区采用、续期排期这几个函数,测试从源码提取后执行,不经过serve装配。装配这一层由 lifecycle e2e 覆盖起停、附着与重连,没有覆盖阻断矩阵和续期回调是否传入。放行表第五节已记待办:M2 之前把这些函数移到可以直接 import 的模块,测试改为导入生产模块。apps/host/src/startup-account.test.mjs:759(测试夹具对子进程的环境隔离):没有生产入口,是保护测试不碰真实数据的守护。失效后果:测试拉起的后台服务子进程带着终端里的真实目录变量启动,可能读写用户的真实数据。故意保留。测试价值(新增 19 个、改写 35 个)
范围
43a545067c..61c00afebb(之后本轮新增的测试见末尾“本轮新增”)。新增 19 个文件(Host 18 个,其余 1 个),改写 35 个文件(Host 31 个,其余 4 个)。文件数包含apps/host/scripts的 6 个脚本式 e2e(新增 2 个,改写 4 个)。脚本中的独立check()或新增 PASS 场景按用例核对,无新增场景的lifecycle.e2e.mjs仍计为改写文件。仅计普通测试文件为新增 17 个、改写 31 个。表中行号均指对应测试文件在本 PR 快照中的位置。「本表」为本次补记。最小失败输入是源码所示的代表条件。已有注释已写明的项保留行号引用。tier 保留文件已有称呼,补记处注明测试实际使用的资源。尚未确认测试价值的个别用例在表后列为待评审。
apps/host/scripts/chromium-proxy-worker.e2e.mjsapps/host/scripts/release-region.e2e.mjsapps/host/src/agent/idle-release.test.mjsapps/host/src/agent/outbound-path-fact.test.mjsapps/host/src/agent/profile-coexistence.test.mjsapps/host/src/agent/usage-pricing.test.mjsapps/host/src/agent/usage-recording.test.mjsapps/host/src/chromium-proxy.test.mjsapps/host/src/macos-system-proxy.test.mjsapps/host/src/outbound-proxy.test.mjsapps/host/src/plugins/gateway-delivery.test.mjsapps/host/src/plugins/profile-pause.test.mjsapps/host/src/project-icon.test.mjsapps/host/src/release-region.test.mjsapps/host/src/server-api.test.mjsapps/host/src/service.test.mjsapps/host/src/test-support/hook-plugin-fixture.test.mjsapps/host/src/ui-text.test.mjsscripts/__tests__/host-skill-projection-owner.test.mjsapps/desktop/src/main/__tests__/authColdStartRecovery.test.tsapps/desktop/src/main/maker-host/__tests__/hostDesktopSourceContracts.guard.test.tsapps/host/scripts/claude-proxy.e2e.mjsapps/host/scripts/codex-runtime.e2e.mjsapps/host/scripts/pi-native.e2e.mjsapps/host/src/agent/codex-system-login.test.mjsapps/host/src/agent/engine-deps.test.mjsapps/host/src/agent/git-snapshot.test.mjsapps/host/src/agent/input-queue.test.mjsapps/host/src/agent/interactions.test.mjsapps/host/src/agent/memory.test.mjsapps/host/src/agent/native-auth.test.mjsapps/host/src/agent/provider-credentials.test.mjsapps/host/src/agent/session-update.test.mjsapps/host/src/auth/login.loopback.test.mjsapps/host/src/auth/refresh.test.mjsapps/host/src/boundary.test.mjsapps/host/src/credentials/store.test.mjsapps/host/src/device-link.test.mjsapps/host/src/host-tools.test.mjsapps/host/src/ipc-route.test.mjsapps/host/src/loaders/raw-hook.test.mjsapps/host/src/plugins.test.mjsapps/host/src/plugins/managed-skills.test.mjsapps/host/src/profile-path.test.mjsapps/host/src/server.test.mjsapps/host/src/sessions.test.mjsapps/host/src/startup-account.test.mjsapps/host/src/web-shim.test.mjsapps/host/src/agent/input-queue.test.mjs用例组按用例起始行与名称归组,覆盖本次新增用例。测试使用生产
createInputQueue与createTurnExecutor,替换引擎或进程外 I/O 的位置由各组标明。apps/desktop/src/main/maker-host/__tests__/hostDesktopSourceContracts.guard.test.ts补记文件头第 1–10 行定义 guard tier。守护的是装配和依赖边界。入口及失效后果见各行对应的
it前注释。无新增用例(6 个)
apps/host/scripts/lifecycle.e2e.mjsapps/host/src/chat.interactions.test.mjsscripts/__tests__/host-agent-deps-contract.test.mjs其余 3 个只跟随生产端口或夹具调整,原测试场景和断言目标保持一致。耗时见耗时表。
apps/desktop/src/main/cindy-brain/__tests__/hostToolSlot.test.tsapps/host/src/agent/learn-send.test.mjsapps/host/src/auth/device-identity.test.mjs已处理的待评审项
hostDesktopSourceContracts.guard.test.ts:1579只检查表的排版和说明文本形状,已删除(434ed14264);对照真实依赖图的区域规则守护在第 1565 行,保留。原清单
apps/host/src/agent/input-queue.test.mjs:4343比较队列接口成员的类型,尚无真实调用结果。apps/host/src/device-link.test.mjs:474比对两份分类表,尚无独立的行为或规则守护证明。apps/host/src/startup-account.test.mjs:38、174、215、284–384、470–508、759中,main 启动、关库、续期定时的接线只通过取出源码重执行来测,测试环境隔离用例只跑测试夹具。文件内另有真实 scanner、续期原语、HTTP 投影和部分真实serve路径的证据。本轮新增(
61c00afebb之后),四项都写在用例旁apps/host/src/device-link.test.mjs「Agent-Net control refuses profile hold…」扩展:经真实/control/remote开启远程控制,占用期间被拒且设置文件字节不变,解除后照常写入。最小失败输入:去掉setEnabled里的占用检查。tier:integration。scripts/__tests__/host-server-hold-classification.test.mjs「every path server.mjs answers itself is classified for a desktop hold」(先加在server.test.mjs,因为普通测试不许读生产源码,移到根目录源码契约并列进test:runner):静态守护,保护权限边界。失效后果:新入口在桌面占用期间写共用数据而没人审。最小失败输入:往server.mjs加一个/control/x。tier:guard。apps/host/src/chat.interactions.test.mjs「a held profile refuses /chat before creating a task…」:经真实createChatHandler走 HTTP,占用期间新任务不建、已存在任务照旧被拒、解除后照常建。最小失败输入:去掉chat.mjs建任务前的占用检查。tier:integration。单独运行耗时(54 个文件,开发机,逐个串行)
每个文件单独运行一次,经同一个排队入口,Node 22.22.3,TMPDIR 不设,临时 HOME,带已批的浏览器夹具;墙钟用
/usr/bin/time -p,不算排队时间;首轮超过 5 秒的再跑一次。5 秒/10 秒是 unit 档的预算,guard、integration、混合档与 e2e 不适用,但能测的都列出读数。49 个有读数,全部通过;apps/host/scripts下 5 个 e2e 脚本本机不跑,lifecycle 引用自有电脑那轮的读数。超过 10 秒的:input-queue.test.mjs、startup-account.test.mjs(混合档)和 lifecycle(e2e),原因见表。命令:Hostnode --import ./src/loaders/test-region.mjs --import tsx --import ./src/loaders/register-raw.mjs --test <文件>(在apps/host下);桌面同准备 PR;根目录脚本node --test <文件>。apps/host/scripts/chromium-proxy-worker.e2e.mjsapps/host/scripts/release-region.e2e.mjsapps/host/src/agent/idle-release.test.mjsapps/host/src/agent/outbound-path-fact.test.mjsapps/host/src/agent/profile-coexistence.test.mjsapps/host/src/agent/usage-pricing.test.mjsapps/host/src/agent/usage-recording.test.mjsapps/host/src/chromium-proxy.test.mjsapps/host/src/macos-system-proxy.test.mjsapps/host/src/outbound-proxy.test.mjsapps/host/src/plugins/gateway-delivery.test.mjsapps/host/src/plugins/profile-pause.test.mjsapps/host/src/project-icon.test.mjsapps/host/src/release-region.test.mjsapps/host/src/server-api.test.mjsapps/host/src/service.test.mjsapps/host/src/test-support/hook-plugin-fixture.test.mjsapps/host/src/ui-text.test.mjsscripts/__tests__/host-skill-projection-owner.test.mjsapps/desktop/src/main/__tests__/authColdStartRecovery.test.tsapps/desktop/src/main/cindy-brain/__tests__/hostToolSlot.test.tsapps/desktop/src/main/maker-host/__tests__/hostDesktopSourceContracts.guard.test.tsapps/host/scripts/claude-proxy.e2e.mjsapps/host/scripts/codex-runtime.e2e.mjsapps/host/scripts/lifecycle.e2e.mjsapps/host/scripts/pi-native.e2e.mjsapps/host/src/agent/codex-system-login.test.mjsapps/host/src/agent/engine-deps.test.mjsapps/host/src/agent/git-snapshot.test.mjsapps/host/src/agent/input-queue.test.mjsapps/host/src/agent/interactions.test.mjsapps/host/src/agent/learn-send.test.mjsapps/host/src/agent/memory.test.mjsapps/host/src/agent/native-auth.test.mjsapps/host/src/agent/provider-credentials.test.mjsapps/host/src/agent/session-update.test.mjsapps/host/src/auth/device-identity.test.mjsapps/host/src/auth/login.loopback.test.mjsapps/host/src/auth/refresh.test.mjsapps/host/src/boundary.test.mjsapps/host/src/chat.interactions.test.mjsapps/host/src/credentials/store.test.mjsapps/host/src/device-link.test.mjsapps/host/src/host-tools.test.mjsapps/host/src/ipc-route.test.mjsapps/host/src/loaders/raw-hook.test.mjsapps/host/src/plugins.test.mjsapps/host/src/plugins/managed-skills.test.mjsapps/host/src/profile-path.test.mjsapps/host/src/server.test.mjsscripts/__tests__/host-server-hold-classification.test.mjstest:runner执行apps/host/src/sessions.test.mjsapps/host/src/startup-account.test.mjsapps/host/src/web-shim.test.mjsscripts/__tests__/host-agent-deps-contract.test.mjs手工验证
不涉及。M1 的“真实验证”一项为无:没有用真实账号、打包产物或带界面运行。
未执行的验证
profile-pause.test.mjs的 6 条真实页面、scripts/plugin-sandbox.e2e.mjs。docs/host/owned-machine-verification.md。风险
风险分类
存量插件影响:无。 本 PR 没有改安装布局、包格式、批准状态和指纹,所以没有新的升级用例。静默只在后台服务里、桌面占用期间生效,批准状态和分区都保留。现有的存量插件用例照常通过:
ghost.test.ts、ghostLocalInstallIdentity.test.ts(结果见准备 PR);plugins/profile-pause.test.mjs,验证静默与恢复后插件照常可用。影响与回滚
apps/host及其文档和 CI 步骤;桌面只动了三个测试文件。默认不启用,用户不主动启动后台服务就没有变化。提交前检查