Add configurable worktree target path and session run diagnostics
This commit is contained in:
@@ -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 }
|
||||
: {}),
|
||||
|
||||
Reference in New Issue
Block a user