@sagentlab/navarch-runtime 0.1.14 → 0.1.15
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/cli.cjs +8 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -247,8 +247,14 @@ async function startCommand(flags) {
|
|
|
247
247
|
async function superviseCommand(flags) {
|
|
248
248
|
const config = configFromFlags(flags);
|
|
249
249
|
const identity = await (0, machine_store_cjs_1.resolveMachineIdentity)(config.configDir, config.apiBase);
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
// Resolve and pin the adapter before spawning the worker. The supervisor
|
|
251
|
+
// passes machine credentials through the environment, so the child no
|
|
252
|
+
// longer reads machine.json for identity fields (including agent_type).
|
|
253
|
+
// Without an explicit worker argument, a saved Codex/Gemini selection
|
|
254
|
+
// therefore falls back to Claude Code.
|
|
255
|
+
const agentType = agentFromFlag(flags) ??
|
|
256
|
+
(process.env.NAVARCH_AGENT ? config.agentType : identity.agent_type ?? config.agentType);
|
|
257
|
+
const workerArgs = ["--agent", agentType];
|
|
252
258
|
// Pin the identity for this supervisor's lifetime. Without this snapshot, a
|
|
253
259
|
// replacement worker rereads machine.json after an automatic update and can
|
|
254
260
|
// silently become a different machine if another terminal reused the same
|
package/package.json
CHANGED