@phnx-labs/agents-cli 1.23.17 → 1.23.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/CHANGELOG.md +239 -0
  2. package/README.md +140 -165
  3. package/dist/bootstrap.js +11 -17
  4. package/dist/cli/command-registry.d.ts +1 -2
  5. package/dist/cli/command-registry.js +1 -10
  6. package/dist/commands/accounts.js +7 -7
  7. package/dist/commands/cloud-transcripts.d.ts +0 -1
  8. package/dist/commands/cloud-transcripts.js +2 -2
  9. package/dist/commands/cloud.js +2 -2
  10. package/dist/commands/config.js +1 -5
  11. package/dist/commands/cost.js +1 -1
  12. package/dist/commands/daemon-index.js +0 -1
  13. package/dist/commands/detach.d.ts +1 -1
  14. package/dist/commands/detach.js +10 -6
  15. package/dist/commands/doctor.js +11 -7
  16. package/dist/commands/exec.d.ts +0 -17
  17. package/dist/commands/exec.js +26 -72
  18. package/dist/commands/feed.d.ts +1 -1
  19. package/dist/commands/feed.js +3 -3
  20. package/dist/commands/focus.d.ts +11 -6
  21. package/dist/commands/focus.js +91 -31
  22. package/dist/commands/fork.d.ts +0 -1
  23. package/dist/commands/fork.js +7 -16
  24. package/dist/commands/harness-wizard.js +1 -1
  25. package/dist/commands/harness.js +1 -1
  26. package/dist/commands/insights.d.ts +0 -1
  27. package/dist/commands/insights.js +3 -7
  28. package/dist/commands/open.js +1 -1
  29. package/dist/commands/output.js +1 -1
  30. package/dist/commands/profiles.d.ts +1 -1
  31. package/dist/commands/profiles.js +2 -2
  32. package/dist/commands/projects-todo.js +10 -5
  33. package/dist/commands/projects.js +1 -1
  34. package/dist/commands/prune.js +1 -1
  35. package/dist/commands/ps.d.ts +8 -3
  36. package/dist/commands/ps.js +238 -110
  37. package/dist/commands/routines.js +1 -1
  38. package/dist/commands/send.js +1 -1
  39. package/dist/commands/sessions-backfill.d.ts +0 -1
  40. package/dist/commands/sessions-backfill.js +3 -6
  41. package/dist/commands/sessions-browser.d.ts +0 -10
  42. package/dist/commands/sessions-browser.js +19 -25
  43. package/dist/commands/sessions-migrate.d.ts +2 -2
  44. package/dist/commands/sessions-migrate.js +13 -13
  45. package/dist/commands/sessions-optimize.d.ts +0 -1
  46. package/dist/commands/sessions-optimize.js +0 -3
  47. package/dist/commands/sessions-picker.d.ts +0 -7
  48. package/dist/commands/sessions-picker.js +16 -310
  49. package/dist/commands/sessions-resume.d.ts +16 -15
  50. package/dist/commands/sessions-resume.js +101 -269
  51. package/dist/commands/sessions-stats.d.ts +0 -1
  52. package/dist/commands/sessions-stats.js +5 -8
  53. package/dist/commands/sessions-stop.d.ts +1 -1
  54. package/dist/commands/sessions-stop.js +8 -8
  55. package/dist/commands/sessions-trace.d.ts +1 -1
  56. package/dist/commands/sessions-trace.js +40 -17
  57. package/dist/commands/sessions-watch.js +2 -2
  58. package/dist/commands/sessions.test-fixture.d.ts +1 -0
  59. package/dist/commands/sessions.test-fixture.js +14 -0
  60. package/dist/commands/setup-browser.js +4 -4
  61. package/dist/commands/setup-computer.js +4 -4
  62. package/dist/commands/setup-fleet.js +1 -1
  63. package/dist/commands/setup-preferences.js +1 -1
  64. package/dist/commands/{sessions-backup-setup.d.ts → setup-session-backup.d.ts} +2 -2
  65. package/dist/commands/{sessions-backup-setup.js → setup-session-backup.js} +8 -8
  66. package/dist/commands/setup.js +3 -1
  67. package/dist/commands/ssh.js +4 -5
  68. package/dist/commands/sync.js +1 -1
  69. package/dist/commands/teams.js +2 -2
  70. package/dist/commands/utils.d.ts +0 -1
  71. package/dist/commands/utils.js +0 -10
  72. package/dist/index.js +0 -71
  73. package/dist/lib/account-registry.d.ts +3 -0
  74. package/dist/lib/account-registry.js +40 -0
  75. package/dist/lib/accounting/usage-sync.d.ts +1 -0
  76. package/dist/lib/accounting/usage-sync.js +20 -3
  77. package/dist/lib/accounting/usage.d.ts +4 -1
  78. package/dist/lib/accounting/usage.js +38 -6
  79. package/dist/lib/agent-spec/agents.js +12 -11
  80. package/dist/lib/analytics/mix-commands.js +1 -1
  81. package/dist/lib/auth-mint.js +2 -2
  82. package/dist/lib/browser-client.d.ts +0 -1
  83. package/dist/lib/browser-client.js +0 -3
  84. package/dist/lib/cloud/antigravity.js +1 -1
  85. package/dist/lib/cloud/cursor.js +3 -3
  86. package/dist/lib/cloud/store.d.ts +5 -1
  87. package/dist/lib/cloud/store.js +10 -3
  88. package/dist/lib/cloudflare/creds.js +2 -2
  89. package/dist/lib/computer/context.d.ts +4 -21
  90. package/dist/lib/computer/context.js +3 -24
  91. package/dist/lib/computer/policy.d.ts +0 -10
  92. package/dist/lib/computer/policy.js +0 -28
  93. package/dist/lib/computer-client.d.ts +0 -44
  94. package/dist/lib/computer-client.js +17 -121
  95. package/dist/lib/config-keys.d.ts +2 -2
  96. package/dist/lib/config-keys.js +1 -3
  97. package/dist/lib/crabbox/cli.js +1 -1
  98. package/dist/lib/daemon/account-state-daemon-service.js +9 -2
  99. package/dist/lib/daemon/self-update-service.js +1 -1
  100. package/dist/lib/device-config.d.ts +2 -1
  101. package/dist/lib/device-config.js +26 -39
  102. package/dist/lib/devices/connect.d.ts +1 -1
  103. package/dist/lib/devices/connect.js +3 -6
  104. package/dist/lib/devices/doctor-findings.d.ts +2 -1
  105. package/dist/lib/devices/doctor-findings.js +4 -4
  106. package/dist/lib/devices/health.d.ts +6 -0
  107. package/dist/lib/devices/health.js +11 -4
  108. package/dist/lib/exec.js +1 -1
  109. package/dist/lib/feed/activity.js +1 -1
  110. package/dist/lib/feed/watch.js +2 -1
  111. package/dist/lib/fleet/apply.d.ts +1 -1
  112. package/dist/lib/fleet/apply.js +6 -3
  113. package/dist/lib/fleet-shared-state.d.ts +2 -0
  114. package/dist/lib/fleet-shared-state.js +3 -1
  115. package/dist/lib/github/project-prs.js +14 -1
  116. package/dist/lib/help.d.ts +0 -1
  117. package/dist/lib/help.js +2 -10
  118. package/dist/lib/helper-versions.js +1 -1
  119. package/dist/lib/hosts/option.js +1 -1
  120. package/dist/lib/hosts/passthrough.d.ts +0 -1
  121. package/dist/lib/hosts/passthrough.js +2 -26
  122. package/dist/lib/hosts/reconnect.js +5 -5
  123. package/dist/lib/hosts/remote-cmd.d.ts +3 -5
  124. package/dist/lib/hosts/remote-cmd.js +15 -20
  125. package/dist/lib/hosts/remote-session-id.js +1 -1
  126. package/dist/lib/installations/active-check.js +1 -1
  127. package/dist/lib/installations/migrate.js +4 -15
  128. package/dist/lib/installations/versions.js +5 -4
  129. package/dist/lib/launch-log.js +3 -6
  130. package/dist/lib/owner-notify.d.ts +1 -6
  131. package/dist/lib/owner-notify.js +0 -2
  132. package/dist/lib/paths.d.ts +0 -1
  133. package/dist/lib/paths.js +0 -8
  134. package/dist/lib/permissions.js +1 -1
  135. package/dist/lib/project-root.d.ts +1 -0
  136. package/dist/lib/project-root.js +11 -3
  137. package/dist/lib/projects.js +2 -2
  138. package/dist/lib/quick-todo.d.ts +5 -1
  139. package/dist/lib/quick-todo.js +14 -1
  140. package/dist/lib/redact.d.ts +0 -1
  141. package/dist/lib/redact.js +0 -4
  142. package/dist/lib/remote-agents-json.d.ts +3 -1
  143. package/dist/lib/remote-agents-json.js +12 -8
  144. package/dist/lib/reserved-stores.js +1 -1
  145. package/dist/lib/scheduling/routines.d.ts +0 -1
  146. package/dist/lib/scheduling/routines.js +1 -1
  147. package/dist/lib/self-update.d.ts +1 -1
  148. package/dist/lib/self-update.js +59 -2
  149. package/dist/lib/session/active.d.ts +1 -1
  150. package/dist/lib/session/db.js +4 -4
  151. package/dist/lib/session/detached.d.ts +0 -1
  152. package/dist/lib/session/detached.js +0 -23
  153. package/dist/lib/session/discover.d.ts +2 -2
  154. package/dist/lib/session/glance-files.d.ts +21 -0
  155. package/dist/lib/session/glance-files.js +123 -0
  156. package/dist/lib/session/presentation.d.ts +3 -7
  157. package/dist/lib/session/presentation.js +4 -4
  158. package/dist/lib/session/preview-digest.d.ts +13 -0
  159. package/dist/lib/session/preview-digest.js +328 -0
  160. package/dist/lib/session/projection.js +1 -1
  161. package/dist/lib/session/remote/remote-list.d.ts +5 -2
  162. package/dist/lib/session/remote/remote-list.js +15 -8
  163. package/dist/lib/session/remote/watch.d.ts +2 -0
  164. package/dist/lib/session/remote/watch.js +90 -10
  165. package/dist/lib/session/remote-active.js +1 -1
  166. package/dist/lib/session/resume-command.d.ts +0 -1
  167. package/dist/lib/session/resume-command.js +1 -4
  168. package/dist/lib/session/resume-owner.d.ts +0 -2
  169. package/dist/lib/session/resume-owner.js +0 -6
  170. package/dist/lib/session/selection.d.ts +4 -5
  171. package/dist/lib/session/selection.js +2 -2
  172. package/dist/lib/session/sync/config.d.ts +0 -25
  173. package/dist/lib/session/sync/config.js +0 -62
  174. package/dist/lib/session/sync/managed-config.d.ts +0 -1
  175. package/dist/lib/session/sync/managed-config.js +0 -3
  176. package/dist/lib/session/sync/worker-template.js +1 -1
  177. package/dist/lib/sessions-client.d.ts +0 -16
  178. package/dist/lib/sessions-client.js +1 -187
  179. package/dist/lib/smart-launch.js +6 -1
  180. package/dist/lib/startup/command-registry.d.ts +2 -0
  181. package/dist/lib/startup/command-registry.js +36 -3
  182. package/dist/lib/startup/root-command.d.ts +0 -1
  183. package/dist/lib/startup/root-command.js +0 -21
  184. package/dist/lib/sync-umbrella.js +1 -1
  185. package/dist/lib/teams/placement-probe.d.ts +2 -0
  186. package/dist/lib/teams/placement-probe.js +8 -3
  187. package/dist/lib/terminal/engine.d.ts +2 -0
  188. package/dist/lib/terminal/engine.js +5 -3
  189. package/dist/lib/terminal/index.d.ts +1 -1
  190. package/dist/lib/terminal/index.js +1 -1
  191. package/dist/lib/terminal/resolve.js +1 -1
  192. package/dist/lib/terminal/run-surface.d.ts +1 -0
  193. package/dist/lib/terminal/run-surface.js +9 -0
  194. package/dist/lib/watchdog/rotate.js +1 -1
  195. package/dist/lib/watchdog/watchdog.d.ts +1 -1
  196. package/dist/lib/watchdog/watchdog.js +2 -2
  197. package/package.json +1 -1
  198. package/dist/commands/browser.d.ts +0 -7
  199. package/dist/commands/browser.js +0 -139
  200. package/dist/commands/computer.d.ts +0 -48
  201. package/dist/commands/computer.js +0 -244
  202. package/dist/commands/resume.d.ts +0 -23
  203. package/dist/commands/resume.js +0 -158
  204. package/dist/commands/secrets-passthrough.d.ts +0 -3
  205. package/dist/commands/secrets-passthrough.js +0 -52
  206. package/dist/commands/sessions-bookmark.d.ts +0 -2
  207. package/dist/commands/sessions-bookmark.js +0 -92
  208. package/dist/commands/sessions-export.d.ts +0 -31
  209. package/dist/commands/sessions-export.js +0 -409
  210. package/dist/commands/sessions-import.d.ts +0 -6
  211. package/dist/commands/sessions-import.js +0 -343
  212. package/dist/commands/sessions-inject.d.ts +0 -14
  213. package/dist/commands/sessions-inject.js +0 -143
  214. package/dist/commands/sessions-picker-factory.d.ts +0 -24
  215. package/dist/commands/sessions-picker-factory.js +0 -59
  216. package/dist/commands/sessions-render.d.ts +0 -11
  217. package/dist/commands/sessions-render.js +0 -119
  218. package/dist/commands/sessions-share.d.ts +0 -15
  219. package/dist/commands/sessions-share.js +0 -171
  220. package/dist/commands/sessions.d.ts +0 -122
  221. package/dist/commands/sessions.js +0 -1760
  222. package/dist/lib/address.d.ts +0 -39
  223. package/dist/lib/address.js +0 -128
  224. package/dist/lib/computer/record.d.ts +0 -6
  225. package/dist/lib/computer/record.js +0 -25
  226. package/dist/lib/onepassword.d.ts +0 -57
  227. package/dist/lib/onepassword.js +0 -140
  228. package/dist/lib/openclaw-keychain.d.ts +0 -43
  229. package/dist/lib/openclaw-keychain.js +0 -227
  230. package/dist/lib/session/bundle.d.ts +0 -76
  231. package/dist/lib/session/bundle.js +0 -146
  232. package/dist/lib/session/remote/remote-bundle.d.ts +0 -7
  233. package/dist/lib/session/remote/remote-bundle.js +0 -40
  234. package/dist/lib/session/remote/remote.d.ts +0 -35
  235. package/dist/lib/session/remote/remote.js +0 -198
  236. package/dist/lib/session/remote-bundle.d.ts +0 -1
  237. package/dist/lib/session/remote-bundle.js +0 -1
  238. package/dist/lib/session/remote.d.ts +0 -1
  239. package/dist/lib/session/remote.js +0 -1
  240. package/dist/lib/session/sync/agents.d.ts +0 -24
  241. package/dist/lib/session/sync/agents.js +0 -0
  242. package/dist/lib/session/sync/backend.d.ts +0 -22
  243. package/dist/lib/session/sync/backend.js +0 -44
  244. package/dist/lib/session/sync/managed-key.d.ts +0 -5
  245. package/dist/lib/session/sync/managed-key.js +0 -87
  246. package/dist/lib/session/sync/net-client.d.ts +0 -29
  247. package/dist/lib/session/sync/net-client.js +0 -87
  248. package/dist/lib/session/sync/r2.d.ts +0 -20
  249. package/dist/lib/session/sync/r2.js +0 -103
  250. package/dist/lib/session/sync/transcript-crypto.d.ts +0 -41
  251. package/dist/lib/session/sync/transcript-crypto.js +0 -115
package/CHANGELOG.md CHANGED
@@ -1,5 +1,244 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.23.19
4
+
5
+ - **`agents projects prs <project> --json` carries `mergeable` and `mergeableState` (PHNX-4326).**
6
+ Every open row had both null, because GitHub's REST PR list never computes them. Each open
7
+ PR the read lists is now read with REST `pulls/{n}` (cached 60 seconds, at most eight at a
8
+ time), the same read and values as the cross-org form and `--number` (`false` / `"dirty"` on
9
+ a conflict). A PR whose read fails keeps both null and the failure is named in `ciError`.
10
+ Source: `src/lib/github/project-prs.ts`.
11
+ - **The Projects tab is retired from `menubar.menu.tabOrder` (PHNX-4326).** `projects` is no
12
+ longer in the default order or required in a stored one; an order or `hiddenTabs` list that
13
+ still names it is accepted and kept in place, so older menus keep working. Source:
14
+ `src/lib/device-config.ts`.
15
+
16
+ - **Cloud tasks nothing has confirmed for a day no longer show as working (PHNX-4326).**
17
+ A `queued`/`allocating`/`running` task whose last update is over 24 hours old is left
18
+ out of the active list and the feed; `agents cloud list` still asks the provider about
19
+ every unsettled task. Source: `src/lib/cloud/store.ts`.
20
+ - **Previous sessions on `agents feed watch --json` arrive with their card text (PHNX-4326).**
21
+ A closed session's row now carries `lastAgentLine`, `request`, `todos`, `artifacts` and
22
+ `importantMessage` like a live row. Before, only 5 of 346 previous rows across the fleet
23
+ had a reply line; on this change's test machine 31 of 41 local previous rows have one
24
+ (the other 10 have no assistant text in their transcript). The text comes from the
25
+ preview digest cached against each transcript, so each transcript is parsed once per
26
+ change: the reset serves what is cached and the stream upserts the rest as it builds
27
+ them. Source: `src/lib/session/remote/watch.ts`, `src/lib/session/preview-digest.ts`.
28
+ - **`agents ps preview` takes several ids (PHNX-4326).** `agents ps preview
29
+ <id> <id> --json` prints one array in argument order, each element the single-id
30
+ envelope plus `query`; an id that does not resolve is an element with `error` set.
31
+ One id still prints the single object. See `docs/menubar.md`. Source:
32
+ `src/commands/ps.ts`.
33
+ - **`agents ps preview --json` carries `subAgents`, `images` and
34
+ `producedArtifacts`, and `todos` folds Claude's task tools (PHNX-4326).** `subAgents` lists each spawned subagent with its
35
+ status and duration, `images` the last six images the session was given, read or
36
+ wrote that still exist on disk, and `todos` now includes `TaskCreate`/`TaskUpdate`
37
+ checklists. `producedArtifacts` is the list a live feed row's `artifacts` holds.
38
+ See `docs/menubar.md`. Source: `src/lib/session/preview-digest.ts`,
39
+ `src/lib/session/glance-files.ts`.
40
+
41
+ - **Accounts added on your personal device reach the workers without a git pull (PHNX-4342).**
42
+ `agents accounts add` writes the account row to `~/.agents/agents.yaml` and only
43
+ commits it locally. A worker learned the row only after a user-repo push and pull, so
44
+ a worker whose `~/.agents` had diverged never saw it. `agents accounts login
45
+ <harness>#<name> --per-device` then failed there with `No grok account '<name>'`. A
46
+ personal or desktop device now publishes its per-device account rows in the fleet state
47
+ it already exchanges with peers. A worker adds any row
48
+ it lacks when the sender is headed and created that row; it never overwrites or
49
+ removes a local row. Only per-device accounts travel this way, and only their identity
50
+ fields; a credential reference never does. Rows added before the `provisioning` field
51
+ existed are not sent; workers already have those from earlier user-repo pulls. Each
52
+ worker still signs in for itself with `--per-device`.
53
+ Source: `cli/src/lib/daemon/account-state-daemon-service.ts`,
54
+ `cli/src/lib/accounting/usage-sync.ts`, `cli/src/lib/account-registry.ts`.
55
+
56
+ - **A Grok account with no balance left reads as out of credits (PHNX-4342).** When xAI
57
+ refuses a turn with `402 Payment Required: Grok Build usage balance exhausted`, that
58
+ account now shows `out of credits` for one hour, and rotation and `--device auto` skip
59
+ it instead of choosing it again. Before this, Grok usage came only from the last
60
+ `billing: fetched credits config` log line, which could be days old, so an exhausted
61
+ account still read as ready. Only that balance message counts; another 402 does not.
62
+ Source: `cli/src/lib/accounting/usage.ts`.
63
+ - **A Grok, Kimi or Muse version with no login of its own reads as signed out.** The
64
+ launcher points these harnesses at their version home (`GROK_HOME`, `KIMI_CODE_HOME`,
65
+ XDG), so they never read the shared `~/.grok` or `~/.kimi-code` login. The account
66
+ check did read it, and listed a version as signed in with that account while the
67
+ harness itself said `Not signed in`. Cursor, Droid and Antigravity keep their
68
+ shared-home lookup. Source: `cli/src/lib/agent-spec/agents.ts`.
69
+
70
+ - **A Codex install whose platform binary npm skipped is now caught and repaired (PHNX-4342).**
71
+ Codex 0.162 reports a missing platform package as `Missing optional dependency
72
+ @openai/codex-linux-x64`, which the launch check did not recognize, so it passed a
73
+ dead binary. Updates committed it, the daemon never healed it, and `agents run codex`
74
+ launched it and exited 1 within a fraction of a second, which showed up as
75
+ `Connection to <device> closed.` after `--device auto`. The check now recognizes that
76
+ wording, so the run repairs the install before it launches, and an update that
77
+ produces one rolls back. Its message now quotes the matching line instead of a stack
78
+ frame. Source: `cli/src/lib/installations/versions.ts`.
79
+ - **`--device auto` no longer says `no ready harness account` when it never heard back (PHNX-4342).**
80
+ When a worker's readiness probe ran past its 8 second budget, the refusal said the
81
+ worker had no ready account even when it had a signed-in one. It now says
82
+ `readiness probe timed out` and counts it in the retry hint, or `readiness probe did
83
+ not answer` for any other silent failure. A worker that did answer `not ready` now
84
+ shows its own reason, for example `no ready harness account (all signed_out)`. That
85
+ reason was being dropped before it reached the message.
86
+ Source: `cli/src/lib/teams/placement-probe.ts`, `cli/src/lib/smart-launch.ts`.
87
+
88
+ - **`agents ps focus` on a headless session stops it before reopening it in a tab (PHNX-4344).**
89
+ Focusing a session that was running headless used to resume a second copy in a new tab
90
+ while the headless process kept running, so two processes wrote to one conversation. Focus
91
+ now stops the headless process first (here, or with `agents ps stop <id> --local` on the
92
+ device that runs it) and clears its detach record, and opens nothing if that device cannot
93
+ be reached or its `ps stop` exits non-zero. The focus picker does the same for each headless
94
+ session it opens. If the tab then fails to open, the error says the headless run was stopped
95
+ and how to resume it. The tab now goes where your live sessions run (`resolveLaunchBackend`), so from
96
+ AGI Menu it opens in the project's VSCodium window instead of the first installed terminal
97
+ app. A session owned by another device opens a local tab running
98
+ `agents run auto --resume <id> --interactive` when there is no TTY, instead of an SSH hop
99
+ that needs one. A session that has already ended, focused with no TTY, now also opens in
100
+ such a tab instead of resuming in place inside the caller (which failed with no terminal and
101
+ still exited 0). When VSCodium never confirms the tab, focus exits 1 and says to approve the
102
+ "Allow 'Agents' extension to open this URI?" prompt. Source: `cli/src/commands/focus.ts`,
103
+ `cli/src/commands/detach.ts`, `cli/src/lib/terminal/engine.ts`.
104
+ - **Sessions from another machine's home now match their project (PHNX-4344).** A session
105
+ recorded on a Linux worker under `/home/<user>/…` now matches a project registered as
106
+ `~/…` on a Mac (and the other way round) when `<user>` is the same user name; `/Users/Shared`
107
+ and other users' homes are not rewritten, so AGI Menu groups those sessions under the right
108
+ project instead of Uncategorized. Source: `cli/src/lib/project-root.ts` (`localizeHome`),
109
+ `cli/src/lib/projects.ts`.
110
+ - **`agents projects todo list --project <name>` and `menubar.menu.todoProject` (PHNX-4344).**
111
+ `--project` lists every open issue in that Linear project (an agents project's Linear
112
+ project, or a Linear project name), due ones first, then the newest, at most 6, with
113
+ `total` the full count. The new `menubar.menu.todoProject` key names the project AGI Menu
114
+ lists and files to-dos in, and rides `agents menubar snapshot --json` `menuPreferences`
115
+ when set. Source: `cli/src/lib/quick-todo.ts`, `cli/src/commands/projects-todo.ts`,
116
+ `cli/src/lib/device-config.ts`.
117
+ - **AGI Menu shows draft pull requests by default (PHNX-4344).** `menubar.menu.githubDrafts`
118
+ now defaults to `true`; `githubBots` stays `false`. Source: `cli/src/lib/device-config.ts`.
119
+ - **`agents ps stop` on another device exits 1 when the remote stop fails (PHNX-4344).** A
120
+ one-shot peer hop (`runOnPeer` without a TTY) now reports a non-zero remote exit as `failed`
121
+ instead of `ok`. Source: `cli/src/lib/session/remote/remote-list.ts`,
122
+ `cli/src/commands/sessions-stop.ts`.
123
+
124
+ - **`agents upgrade` works again on a bun-installed copy.** Every upgrade on a
125
+ bun install failed at the install step with `error: An internal error occurred
126
+ (DependencyLoop)` and left the CLI on the version it already had, because
127
+ `bun add -g <tarball>` refuses to resolve a tarball whose package name is
128
+ already pinned to an exact version in bun's global `package.json` — it keeps
129
+ the old requirement alongside the tarball resolution and reports the package
130
+ as depending on itself (bun 1.3.14). `installPackageWithBun` now clears that
131
+ entry before the install and writes it back as the version actually on disk
132
+ afterwards; the second half matters too, since bun otherwise records the
133
+ tarball's path under the upgrade's temp directory, which is deleted on the way
134
+ out and breaks the next `bun install -g`. An install that fails or is aborted
135
+ puts the entry back, so a failed upgrade no longer leaves the CLI installed
136
+ but unpinned — a state in which `bun remove -g` reports success and removes
137
+ nothing. Neither `bun.lock` nor `trustedDependencies` is involved, and the
138
+ npm install path is unchanged.
139
+ Source: `cli/src/lib/self-update.ts`, `cli/src/lib/self-update.test.ts`.
140
+
141
+ - **An `out of credits` mark no longer strands a Claude account for good.** A run
142
+ refused with "You've hit your monthly spend limit" or "out of usage credits"
143
+ writes a per-account `out_of_credits` mark in `~/.agents/.cache/claude-usage.json`,
144
+ and rotation (`balanced`, `available`) skips a marked account. The mark had no
145
+ expiry, and its only clear was a successful run on that account, which rotation
146
+ never launches. On one box three of four Claude accounts sat marked for up to 14
147
+ days while answering fine, and every `agents run claude` landed on the one login
148
+ that was actually refusing. The mark now records when it was noted and expires
149
+ after one hour (`OUT_OF_CREDITS_REPROBE_MS`), so rotation tries the account again;
150
+ a fresh refusal re-marks it. A mark written by an older CLI reads as expired.
151
+ `agents view` shows `out of credits` only while the mark is live.
152
+ Source: `cli/src/lib/accounting/usage.ts`, `cli/src/lib/accounting/usage.test.ts`.
153
+
154
+ - **Fleet probes follow the configured `platform`, not the discovered one.** A box Tailscale
155
+ reports as Windows but whose sshd lands in WSL, configured `agents devices config <name>
156
+ platform linux`, was dialed as a bash login shell yet handed the PowerShell snippet — so
157
+ `agents devices list --refresh` showed it offline, the `agents ps` fleet roster skipped it as
158
+ "unreachable or no agents CLI", and `agents ps watch` / `agents feed watch` /
159
+ `agents apply` / `agents doctor --check` never reached it, even though `agents ssh <name>`
160
+ worked. Each of those paths now resolves the operator profile before choosing the remote shell,
161
+ the same profile the dial already used. Source: `cli/src/lib/devices/health.ts` (`buildProbeInvocation`),
162
+ `cli/src/lib/session/remote/{remote-list,watch}.ts`, `cli/src/lib/feed/watch.ts`,
163
+ `cli/src/lib/fleet/apply.ts`, `cli/src/lib/teams/placement-probe.ts`,
164
+ `cli/src/lib/accounting/usage-sync.ts`, `cli/src/lib/remote-agents-json.ts`,
165
+ `cli/src/commands/doctor.ts`.
166
+
167
+ - **A bare interactive `agents run <harness>` runs on the machine you typed it on again.**
168
+ Since PHNX-4083 a bare human-facing run (no prompt, real TTY) placed itself like
169
+ `--device auto`, so `agents run claude` on a laptop landed on whichever fleet worker had
170
+ the most headroom, including a Windows box the operator never chose. Placement is now
171
+ opt-in: `--device auto`, `--device <box>`, or the `<harness>@` picker. Headless runs are
172
+ unchanged, and `--local` still pins this machine against a `--where` default. The
173
+ `Run here instead` hint is gone with the default that needed it.
174
+ Source: `cli/src/commands/exec.ts`, `cli/docs/hosts.md`.
175
+
176
+ ## 1.23.18
177
+
178
+ - **Fleet hops call peers by the canonical `ps` and `daemon index` spellings (PHNX-4227).**
179
+ A session on another device is now stopped there with `agents ps stop <id> --local`
180
+ and detached with `agents ps detach <id> --local`, the fleet roster asks each peer
181
+ for `agents ps --local --json`, and `backfill tools --fleet`/`--device` drives
182
+ each peer with `agents daemon index backfill tools --json --local` plus the same
183
+ filters. Each peer must run the release that carries this change.
184
+ An older peer is not detected or worked around: its roster and backfill rows
185
+ read as unreachable, and a stop or detach prints the peer's own unknown-command
186
+ error. Source:
187
+ `cli/src/commands/sessions-stop.ts`, `cli/src/commands/detach.ts`,
188
+ `cli/src/lib/session/remote-active.ts`, `cli/src/commands/sessions-backfill.ts`.
189
+
190
+ - **`agents browser`, `agents computer`, `agents secrets` and `agents sessions` are removed (PHNX-4227, owner decision 2026-10-12).**
191
+ There is no alias, passthrough or forwarder. Each exits 1 with one line naming
192
+ what to run instead, including under `--help`:
193
+ `error: 'agents browser' was removed; use the standalone 'browser' CLI (browser --help).`
194
+ Call the standalone `browser`, `computer`, `secrets` and `sessions` CLIs directly
195
+ (`agents setup tools` installs the pinned releases). The `sessions` verbs that
196
+ agents-cli owned have homes of their own, and the refusal names them:
197
+ `sessions resume` → `agents run auto --resume <id>`, `sessions --active` → `agents ps`,
198
+ `stop`/`focus`/`detach`/`migrate`/`migrations`/`preview` → `agents ps <verb>`,
199
+ `watch` → `agents ps watch --json`, `inject` → `agents send --channel session`,
200
+ `fork` → `agents fork` (now listed in `--help`), `backfill`/`optimize`/`--roots` →
201
+ `agents daemon index`, `stats` → `agents insights resources`, `insights` →
202
+ `agents insights`, `backup-setup` → `agents setup session-backup`.
203
+ Source: `cli/src/lib/startup/command-registry.ts`, `cli/src/bootstrap.ts`.
204
+ - **Fleet peers are asked with the new spellings, so every device needs this release.**
205
+ Selector resolution (what `agents run --resume <id>`, `ps focus` and `ps preview`
206
+ use to find a session on another box) asks the hidden `agents ps resolve <selector>
207
+ --json --local`; launch-id lookup after a `--device` dispatch asks `agents ps resolve
208
+ --launch-id <id>`; remote previews ask `agents ps preview <id> --local --json`; the
209
+ fleet session stream asks `agents ps watch --json --local`. The session picker's
210
+ history pool now asks each peer's standalone `sessions --all --json --local`. A peer
211
+ on an older agents-cli answers with an unknown command and reads as unreachable until
212
+ it updates (auto-update runs within 24 hours).
213
+ Source: `cli/src/commands/ps.ts`, `cli/src/lib/session/selection.ts`,
214
+ `cli/src/lib/session/remote/watch.ts`, `cli/src/commands/sessions-browser.ts`.
215
+ - **Session rows recover with `agents ps focus <id>`.** The `recovery` command on
216
+ `agents ps watch --json` and `agents feed watch --json` rows was
217
+ `agents sessions resume <id> --device <owner>`; it is now `agents ps focus <id>`,
218
+ which attaches a live pane or recovers an ended session on its owning device.
219
+ Source: `cli/src/lib/session/remote/watch.ts`, `cli/src/lib/session/projection.ts`.
220
+ - **`devices.<name>.computer.host` is removed** with the `agents computer --device`
221
+ path that read it. Drive another desktop with `computer <verb> --host <address>`.
222
+ Source: `cli/src/lib/device-config.ts`, `cli/src/lib/computer-client.ts`.
223
+ - **Help, prompts and scripts name the commands that exist.** `--help` for `run`,
224
+ `trace`, `fork` and every `-D/--device` option no longer points at `agents hosts`
225
+ or the removed groups. Agent-facing text
226
+ (the watchdog nudge, the migrate rehydrate prompt, the rotate resume prompt) now
227
+ says `sessions <id>` to read a transcript, and the release and CI scripts call
228
+ `secrets exec` directly.
229
+ - **The `agents ps` picker's `y` key copies a command that runs.** It copied
230
+ `ag sessions …`; a running or status view now copies `agents ps` with its
231
+ `--status`, `-D`, `--bookmarks` and `--routine` flags, and a history view copies
232
+ the standalone `sessions …` with its filters.
233
+ Source: `cli/src/commands/sessions-browser.ts`.
234
+
235
+ - **Owner notifications no longer have quiet hours.** rush/api dropped quiet hours
236
+ and the notification timezone, so the CLI no longer sends a `settings` object to
237
+ `PUT /me/preferences` and no longer reports a `quiet_hours` suppression. The
238
+ one-time `humans.yaml` upload lists `quietHours`, `quiet_hours` and `timezone`
239
+ under "not migrated" instead of uploading them. Source:
240
+ `cli/src/lib/owner-notify.ts`, `cli/src/lib/installations/migrate.ts`.
241
+
3
242
  ## 1.23.17
4
243
 
5
244
  - **A worker with one stale account and the rest unknown now launches.** `balanced`