Add paseo agent reload CLI command (#258)
Exposes the existing refresh/reload functionality as a CLI command so users can automate agent reloads (e.g. after Codex account rotation). For Codex agents this kills the old app-server process and spawns a fresh one that picks up new preferences from disk.
This commit is contained in:
@@ -10,6 +10,7 @@ import { addSendOptions, runSendCommand } from "./send.js";
|
||||
import { addInspectOptions, runInspectCommand } from "./inspect.js";
|
||||
import { addWaitOptions, runWaitCommand } from "./wait.js";
|
||||
import { addAttachOptions, runAttachCommand } from "./attach.js";
|
||||
import { addReloadOptions, runReloadCommand } from "./reload.js";
|
||||
import { runUpdateCommand } from "./update.js";
|
||||
import { withOutput } from "../../output/index.js";
|
||||
import {
|
||||
@@ -66,6 +67,10 @@ export function createAgentCommand(): Command {
|
||||
withOutput(runArchiveCommand),
|
||||
);
|
||||
|
||||
addJsonAndDaemonHostOptions(addReloadOptions(agent.command("reload"))).action(
|
||||
withOutput(runReloadCommand),
|
||||
);
|
||||
|
||||
addJsonAndDaemonHostOptions(
|
||||
agent
|
||||
.command("update")
|
||||
|
||||
Reference in New Issue
Block a user