You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 81b22ab
Browse filesBrowse the repository at this point in the historyBrowse files
fix(daemon): answer Apple appstate on the named session whatever the selector states
appstate's identity-selector exception over-preserved: a named missing session
with an explicit Apple device fell through to the session-required refusal, a
route with no sessionless answer. Keep the typed named-session refusal wherever
the command cannot serve the stated target without a session, and let only
non-Apple identity selectors keep their target.
Also pins the appstate refusal's typed reason/session/dispatched details, adds
the record seam's no-inventory assertion, and trims seam comments to their
invariants.
Copy file name to clipboardExpand all lines: packages/daemon/src/core/explicit-session-resolution.ts
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,6 @@ export function namedSessionNotFoundError(sessionAddress: string): AppError {
18
18
returnnewAppError(
19
19
'SESSION_NOT_FOUND',
20
20
`No active session "${sessionAddress}". Run agent-device open <app> --session ${sessionArg} first, or omit --session to run against a device selector.`,
21
-
// One producer for the refusal shape: the reason, dispatched marker, and session address come
22
-
// from the kernel builder every named-session seam shares (#3674); only this site's message
23
-
// adds the open/omit guidance and the session-list hint.
Copy file name to clipboardExpand all lines: website/docs/docs/commands.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -485,7 +485,7 @@ Read-only commands such as `get`, `snapshot`, and `wait` report `no`, and so do
485
485
These refusals carry `dispatched: no` and a typed `error.details.reason`, so branch on the reason, not the message:
486
486
487
487
- `session_or_device_selector_required`: the request had neither an active session nor a device selector. Open a session or pass `--platform`. Commands that require a session or a device selector before they read the request's target (`boot`, `clipboard`, `push`, `apps`, and siblings) answer this even when the request named a session the daemon does not hold.
488
-
- `named_session_not_found`: the request named a session this daemon does not hold, with no device selector to fall back on. The daemon lost its sessions (replaced or restarted), or the name is wrong; `agent-device session list` shows what it holds.
488
+
- `named_session_not_found`: the request named a session this daemon does not hold, with no device selector to fall back on (or no selector it can answer without the session — `appstate` on an Apple target refuses this even with an explicit device). The daemon lost its sessions (replaced or restarted), or the name is wrong; `agent-device session list` shows what it holds.
489
489
- `session_app_required`: a per-app setting was requested but the session binds no app and none was named. Run `open <app>`, or name the app on the request for a setting that takes one (`settings clear-app-state com.example.app`).
490
490
- `app_not_installed`: the named app resolves to no installed app on the target. Run `apps --all` for the exact bundle id or package, or install the app, then retry.
491
491
- `webdriver_route_unsupported`: on a WebDriver-backed device cloud, the driver does not implement the route; the limit is the cloud's driver, not the device. A command with a second route (`orientation` has two) tries it before failing. After an ambiguous failure on that transport, only read-only requests are resent.
0 commit comments