mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-01 00:49:33 +01:00
feat: auto-accept plan mode and question prompts in respawn controller
When Claude enters plan mode or asks a question (AskUserQuestion), output stops without a completion message. The new autoAcceptPrompts feature detects this state and sends Enter after a configurable delay (default 8s) to accept the plan or select the default option, keeping Claude working autonomously. Enabled by default. Adds UI checkbox in the respawn config panel. Safety: only fires once per silence period, requires prior output, and won't fire during active respawn cycles. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
619f2a3403
commit
0e8c8b8c60
6 files changed
+354
-2
No files matched your search
@@ -203,6 +203,10 @@ export interface RespawnConfig {
|
||||
completionConfirmMs?: number;
|
||||
/** Fallback timeout when no output received at all (ms) */
|
||||
noOutputTimeoutMs?: number;
|
||||
/** Whether to auto-accept prompts (plan mode approvals, question selections) by pressing Enter */
|
||||
autoAcceptPrompts?: boolean;
|
||||
/** Delay before auto-accepting prompts when no output and no completion message (ms) */
|
||||
autoAcceptDelayMs?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -484,6 +488,10 @@ export interface PersistedRespawnConfig {
|
||||
sendInit: boolean;
|
||||
/** Optional prompt to send if /init doesn't trigger work */
|
||||
kickstartPrompt?: string;
|
||||
/** Whether to auto-accept prompts (plan mode, questions) by pressing Enter */
|
||||
autoAcceptPrompts?: boolean;
|
||||
/** Delay before auto-accepting prompts (ms) */
|
||||
autoAcceptDelayMs?: number;
|
||||
/** Duration in minutes if timed respawn was set */
|
||||
durationMinutes?: number;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user