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:
Eyejoker
2026-03-25 15:51:09 +09:00
parent 8fee2ab3fc
commit 273d52d3da
4 changed files with 8 additions and 8 deletions

View File

@@ -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';