Skip to content

Commit 3559da7

Browse files
committed
feat(claude): add analyzing status message on session init…
1 parent b0e9a74 commit 3559da7

File tree

1 file changed

+4
-1
lines changed
  • src/infra/engines/providers/claude/execution

1 file changed

+4
-1
lines changed

src/infra/engines/providers/claude/execution/runner.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { metadata } from '../metadata.js';
77
import { expandHomeDir } from '../../../../../shared/utils/index.js';
88
import { createTelemetryCapture } from '../../../../../shared/telemetry/index.js';
99
import type { ParsedTelemetry } from '../../../core/types.js';
10-
import { formatThinking, formatCommand, formatResult } from '../../../../../shared/formatters/outputMarkers.js';
10+
import { formatThinking, formatCommand, formatResult, formatStatus } from '../../../../../shared/formatters/outputMarkers.js';
1111

1212
export interface RunClaudeOptions {
1313
prompt: string;
@@ -84,6 +84,9 @@ function formatStreamJsonLine(line: string): string | null {
8484
}
8585
}
8686
}
87+
} else if (json.type === 'system' && json.subtype === 'init') {
88+
// Show status message when session starts
89+
return formatStatus('Claude is analyzing your request...');
8790
} else if (json.type === 'result') {
8891
// Calculate total input tokens (non-cached + cached)
8992
const cacheRead = json.usage.cache_read_input_tokens || 0;

0 commit comments

Comments
 (0)