agent-dag 1.34.0 → 1.34.2

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/bin/deck.js CHANGED
@@ -5,7 +5,6 @@
5
5
  // was already done once this session is skipped — that is what makes a restart
6
6
  // take about a second instead of the better part of ten.
7
7
  import { resolve, dirname, join } from "node:path";
8
- import { homedir } from "node:os";
9
8
  import { fileURLToPath, pathToFileURL } from "node:url";
10
9
  import { existsSync, readFileSync } from "node:fs";
11
10
  import { dieOfSignal } from "../src/server/supervisor.mjs";
@@ -96,7 +95,11 @@ const persist = flags.noPersist
96
95
 
97
96
  const { installHooks, keepDiscovery, removeDiscovery, hasCodexInstalled } =
98
97
  await import(pathToFileURL(join(PKG_ROOT, "src/server/installer.mjs")).href);
99
- const { startServer, hookToken, releaseRestart } =
98
+ // CODEX_SESSIONS_DIR comes along because the banner below names the directory
99
+ // the watcher tails, and the watcher lives in that module. Recomputing the path
100
+ // here is how the banner came to print ~/.codex/sessions on machines whose
101
+ // sessions are somewhere else entirely — see the row further down.
102
+ const { startServer, hookToken, releaseRestart, CODEX_SESSIONS_DIR } =
100
103
  await import(pathToFileURL(join(PKG_ROOT, "src/server/index.mjs")).href);
101
104
 
102
105
  // Whether the server starts the Codex rollout watcher. Nothing is installed
@@ -291,8 +294,12 @@ async function reportStartup(jobs) {
291
294
  // there's nothing to install and no /hooks trust step. We just confirm Codex
292
295
  // is present and let the watcher pick up sessions.
293
296
  if (wantCodex) {
294
- const dir = join(homedir(), ".codex", "sessions");
295
- write(row({ mark: G.ok, label: "Codex sessions", detail: `watching ${fileLink(dir)}` }));
297
+ // The directory the watcher actually tails, imported from the module that
298
+ // owns it rather than rebuilt from homedir() here. CODEX_HOME relocates the
299
+ // whole tree, and this row is the only diagnostic the deck prints about
300
+ // Codex — so when sessions do not show up, a path computed a second way
301
+ // sends the user to inspect a directory the deck never opened.
302
+ write(row({ mark: G.ok, label: "Codex sessions", detail: `watching ${fileLink(CODEX_SESSIONS_DIR)}` }));
296
303
  } else {
297
304
  write(row({ label: "Codex sessions", detail: `skipped ${G.dash} no ~/.codex/, or --no-codex` }));
298
305
  }