fix: unify agentType value domain to 'claude-code' | 'codex'
The streamed-output-evaluator used 'claude' while the rest of the codebase used 'claude-code'. Align the evaluator type and all call sites (message-agent-executor, task-scheduler) to use the canonical 'claude-code' | 'codex' domain consistently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ export interface StreamedOutputState {
|
||||
}
|
||||
|
||||
export interface EvaluateStreamedOutputOptions {
|
||||
agentType: 'claude' | 'codex';
|
||||
agentType: 'claude-code' | 'codex';
|
||||
provider: string;
|
||||
suppressClaudeAuthErrorOutput?: boolean;
|
||||
trackSuccessNullResult?: boolean;
|
||||
@@ -40,7 +40,7 @@ export function evaluateStreamedOutput(
|
||||
): EvaluateStreamedOutputResult {
|
||||
const nextState: StreamedOutputState = { ...state };
|
||||
const isPrimaryClaude =
|
||||
options.agentType === 'claude' && options.provider === 'claude';
|
||||
options.agentType === 'claude-code' && options.provider === 'claude';
|
||||
const isPrimaryCodex =
|
||||
options.agentType === 'codex' && options.provider === 'codex';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user