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 2add31f
Browse filesBrowse the repository at this point in the historyBrowse files
feat(takeover): script-friendly hold and host-context release on the human-control admin API
A bypass script can now pin one device without a lease: takeover hold writes a
host hold through the daemon's host-only /admin/human-control/holds API with a
single-device scope, and takeover release without a session or lease removes a
host hold by id. The hold names its device with --device-key or with --platform
plus device selectors, resolved through the normal device listing and spelled
with leaseDeviceKey the way the daemon spells one; --lease-backend or --platform
names the backend; --reason and --ttl-ms (default 60000) carry the reason the
blocked agent sees and the safety window. The foreground lease takeover, status,
and lease-owned release behavior is unchanged.
New CLI flags: --device-key, --reason, --ttl-ms, classified intentionally
outside provider-backed integration coverage in the progress model. Versioned
help and the takeover schema (usage, flagsByAction, supportedFlags) stay in
sync.
Co-Authored-By: Claude Code <[email protected]>
summary: 'Pause agent interactions while a person controls a device',
169
169
description:
170
-
'Temporarily hand control of the active remote lease device to a person. The foreground command pauses state-changing agent commands, renews the hold until Ctrl+C, and then releases it. Read-only diagnostics remain available. Uses the active connection and --session, with normal tenant and lease admission. status lists holds on that device; release removes a hold owned by the admitted lease. The host-only /admin/human-control/holds API uses the separate local daemon token. Holds do not survive daemon restart. Local takeover without a remote device lease is not supported.',
170
+
'Temporarily hand control of a device to a person. The foreground command pauses state-changing agent commands on the active remote lease device, renews the hold until Ctrl+C, and then releases it. Read-only diagnostics remain available. It uses the active connection and --session, with normal tenant and lease admission. status lists holds on that device. release removes a hold owned by the admitted lease; without a session or lease it removes a host hold by id. hold pins one device for a script: it writes a host hold through the daemon host token, so lease allocation and device mutations on that device wait until the TTL passes or release removes the hold. Name the device with --device-key, or with --platform plus device selectors. Name the backend with --lease-backend or --platform. The host hold rides the /admin/human-control/holds API with the local daemon token, or --daemon-base-url and --daemon-auth-token. Holds do not survive daemon restart; re-establish them after reconnecting. Local takeover without a remote device lease is not supported.',
171
+
},
172
+
usageOverride: 'takeover [status | hold | release <hold-id>] [--session <name>]',
0 commit comments