Skip to content

Commit c9432e0

Browse files
dannyshmueliclaude
andcommitted
fix: remove redundant ternary in model selection
Simplified `sessionId ? 'haiku' : 'haiku'` to just `'haiku'`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 64183b2 commit c9432e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/prompt-analyzer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,8 @@ Respond with JSON only, no explanation.`;
344344
logger.debug('SDK loaded successfully');
345345
await this.logToDebugFile(`SDK loaded successfully for session ${sessionId}`);
346346

347-
// Use model from options or default to haiku
348-
// In hook mode (when sessionId exists), prioritize speed over accuracy
349-
const selectedModel = options.model || (sessionId ? 'haiku' : 'haiku');
347+
// Use model from options or default to haiku for speed
348+
const selectedModel = options.model || 'haiku';
350349
logger.debug(`Using Claude SDK with ${selectedModel} model for analysis`);
351350

352351
// No timeout - let the SDK complete naturally

0 commit comments

Comments
 (0)