@staff0rd/assist 0.336.0 → 0.336.1

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/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.336.0",
9
+ version: "0.336.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -21244,10 +21244,10 @@ function resumeSession(id2, sessionId, cwd, name) {
21244
21244
  id: id2,
21245
21245
  name: name ? `${name.slice(0, 36)} (R)` : `Resume ${sessionId.slice(0, 8)}`,
21246
21246
  commandType: "claude",
21247
- status: "running",
21247
+ status: "waiting",
21248
21248
  startedAt,
21249
21249
  runningMs: 0,
21250
- runningSince: startedAt,
21250
+ runningSince: null,
21251
21251
  pty: spawnClaude2({ resumeSessionId: sessionId, cwd, sessionId: id2 }),
21252
21252
  scrollback: "",
21253
21253
  cwd,
@@ -22120,7 +22120,13 @@ var SessionManager = class {
22120
22120
  }
22121
22121
  setStatus(id2, status2) {
22122
22122
  const session = this.sessions.get(id2);
22123
- if (session) this.onStatusChange(session, status2);
22123
+ if (!session) {
22124
+ daemonLog(
22125
+ `set-status for unknown session id=${id2} status=${status2} (no live session; ignoring)`
22126
+ );
22127
+ return;
22128
+ }
22129
+ this.onStatusChange(session, status2);
22124
22130
  }
22125
22131
  listSessions = () => {
22126
22132
  const local = [...this.sessions.values()].map(toSessionInfo);
@@ -22514,9 +22520,11 @@ var messageHandlers = {
22514
22520
  (_client, m, d) => m.setAutoAdvance(d.sessionId, d.enabled)
22515
22521
  ),
22516
22522
  "set-active": (_client, m, d) => m.active.set(d.cwd, d.sessionId),
22517
- "set-status": routed(
22518
- (_client, m, d) => m.setStatus(d.sessionId, d.status)
22519
- )
22523
+ "set-status": (client, m, d) => {
22524
+ daemonLog(`set-status received: id=${d.sessionId} status=${d.status}`);
22525
+ if (!m.windowsProxy.route(client, d))
22526
+ m.setStatus(d.sessionId, d.status);
22527
+ }
22520
22528
  };
22521
22529
 
22522
22530
  // src/commands/sessions/daemon/dispatchMessage.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.336.0",
3
+ "version": "0.336.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {