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:
Mohamed Boudra
2026-04-12 10:08:47 +07:00
committed by GitHub
parent 6d4cc53a0a
commit fb5e2608e0
2 changed files with 111 additions and 0 deletions
+5
View File
@@ -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")