Add configurable worktree target path and session run diagnostics

This commit is contained in:
2026-02-23 20:38:05 -05:00
parent e7dbc9870f
commit 83bbf1a9ce
13 changed files with 434 additions and 7 deletions

View File

@@ -72,6 +72,8 @@ const CLAUDE_OUTPUT_FORMAT = {
schema: ACTOR_RESPONSE_SCHEMA,
} as const;
const CLAUDE_PROVIDER_MAX_TURNS = 2;
function toErrorMessage(error: unknown): string {
if (error instanceof Error) {
return error.message;
@@ -433,7 +435,7 @@ function buildClaudeOptions(input: {
};
return {
maxTurns: 1,
maxTurns: CLAUDE_PROVIDER_MAX_TURNS,
...(runtime.config.provider.claudeModel
? { model: runtime.config.provider.claudeModel }
: {}),