Remove activity indicator to prevent title jumping (#309)

This commit is contained in:
Peter Steinberger 2025-07-11 08:22:54 +02:00 committed by GitHub
parent 2c6697ba02
commit b16035b9f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,11 +180,11 @@ function parseClaudeStatus(data: string): ActivityStatus | null {
// Format tokens - the input already has 'k' suffix in the regex pattern // Format tokens - the input already has 'k' suffix in the regex pattern
// So "6.0" means 6.0k tokens, not 6.0 tokens // So "6.0" means 6.0k tokens, not 6.0 tokens
const formattedTokens = `${tokens}k`; const formattedTokens = `${tokens}k`;
// Include indicator + action and stats // Include action and stats (without indicator to avoid title jumping)
displayText = `${indicator} ${action} (${duration}s, ${direction}${formattedTokens})`; displayText = `${action} (${duration}s, ${direction}${formattedTokens})`;
} else { } else {
// Simple format without token info // Simple format without token info (without indicator to avoid title jumping)
displayText = `${indicator} ${action} (${duration}s)`; displayText = `${action} (${duration}s)`;
} }
return { return {