Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ bun run cli workflow abandon <run-id>
# list, status, runs, get, approve, reject, abandon, resume.
# For approve/reject/resume, --json records/validates the decision and returns a
# clean JSON line WITHOUT the inline auto-resume (drive continuation separately).
# Adding --detach INVERTS that: the child re-invokes without --json, so it takes
# the inline path and DOES continue the run (just outside your shell). The ack
# carries `continues: true` so an automation knows it no longer owns continuation.
bun run cli workflow approve <run-id> --detach --json

# Delete old workflow run records (default: 7 days)
bun run cli workflow cleanup
Expand Down
20 changes: 16 additions & 4 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Options:
--quiet, -q Reduce log verbosity to warnings and errors only
--verbose, -v Show debug-level output
--json Output machine-readable JSON (list/status/get/runs/approve/reject/abandon/resume)
--detach Run 'workflow run' in a detached background child (returns immediately)
--detach Run 'workflow run'/'approve'/'reject'/'resume' in a detached background child (returns immediately)
--all For 'workflow runs': list across all projects (ignore cwd scope)
--status <status> For 'workflow runs': filter to one status (running, completed, failed, ...)
--limit <n> For 'workflow runs': max rows (default 20)
Expand Down Expand Up @@ -618,7 +618,7 @@ async function main(): Promise<number> {
console.error('Usage: archon workflow resume <run-id>');
return 1;
}
await workflowResumeCommand(resumeRunId, jsonFlag, effectiveCwd);
await workflowResumeCommand(resumeRunId, jsonFlag, effectiveCwd, detachFlag);
break;
}

Expand All @@ -645,7 +645,13 @@ async function main(): Promise<number> {
const rawApproveComment =
(values.comment as string | undefined) || positionals.slice(3).join(' ');
const approveComment = rawApproveComment.length > 0 ? rawApproveComment : undefined;
await workflowApproveCommand(approveRunId, approveComment, jsonFlag, effectiveCwd);
await workflowApproveCommand(
approveRunId,
approveComment,
jsonFlag,
effectiveCwd,
detachFlag
);
break;
}

Expand All @@ -658,7 +664,13 @@ async function main(): Promise<number> {
const rawRejectReason =
(values.reason as string | undefined) || positionals.slice(3).join(' ');
const rejectReason = rawRejectReason.length > 0 ? rawRejectReason : undefined;
await workflowRejectCommand(rejectRunId, rejectReason, jsonFlag, effectiveCwd);
await workflowRejectCommand(
rejectRunId,
rejectReason,
jsonFlag,
effectiveCwd,
detachFlag
);
break;
}

Expand Down
Loading
Loading