@phnx-labs/agents-cli 1.22.119 → 1.22.120

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.22.120
4
+
5
+ - **An editor terminal now follows a `claude` restarted by hand (PHNX-4218).** After
6
+ `/exit`, running `claude` again in the same tab starts it without a launcher, so the
7
+ SessionStart hook records its session with an empty agent kind, and the active scan
8
+ skipped that record. The tab kept the old session. The scan now takes the kind
9
+ from the process name when the record has none. Source:
10
+ `cli/src/lib/session/active.ts`.
11
+
3
12
  ## 1.22.119
4
13
 
5
14
  - **A setup-token (provider) Claude account no longer opens on Claude Code's first-run
@@ -1294,7 +1294,10 @@ function terminalDescendantEntry(pid, processes, children) {
1294
1294
  continue;
1295
1295
  seen.add(child);
1296
1296
  const entry = readPidSessionEntry(child, processes.get(child)?.startTime);
1297
- if (!entry || !isSessionTrackedAgent(entry.agent)) {
1297
+ // The SessionStart hook records a bare `claude` (no launcher) with an
1298
+ // empty agent; the process name is that agent's kind.
1299
+ const agent = entry?.agent || processes.get(child)?.kind;
1300
+ if (!entry || !agent || !isSessionTrackedAgent(agent)) {
1298
1301
  next.push(...(children.get(child) ?? []));
1299
1302
  continue;
1300
1303
  }
@@ -1303,7 +1306,7 @@ function terminalDescendantEntry(pid, processes, children) {
1303
1306
  recordedAgent = true;
1304
1307
  if (entry.sessionId && (!newest || entry.startedAtMs > newest.startedAtMs
1305
1308
  || (entry.startedAtMs === newest.startedAtMs && entry.pid > newest.pid)))
1306
- newest = entry;
1309
+ newest = { ...entry, agent };
1307
1310
  }
1308
1311
  if (recordedAgent)
1309
1312
  return newest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phnx-labs/agents-cli",
3
- "version": "1.22.119",
3
+ "version": "1.22.120",
4
4
  "description": "One CLI for all your AI coding agents - versions, config, cloud dispatch, sessions, and teams (now with first-class Grok Build CLI support)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",