chore: bump version to 0.1585

This commit is contained in:
arkon
2026-02-21 07:12:57 +01:00
parent 85ee601b5b
commit 0fe6251424
8 changed files with 48 additions and 57 deletions
+2 -4
View File
@@ -28,6 +28,7 @@ import { LRUMap } from './utils/lru-map.js';
import {
ANSI_ESCAPE_PATTERN_FULL,
TOKEN_PATTERN,
SPINNER_PATTERN,
MAX_SESSION_TOKENS,
} from './utils/index.js';
import {
@@ -1036,10 +1037,7 @@ export class Session extends EventEmitter {
// Detect when Claude starts working (thinking, writing, etc)
// Fast path: check spinner characters on raw data (Unicode, never in ANSI sequences)
const hasSpinner = data.includes('⠋') || data.includes('⠙') ||
data.includes('⠹') || data.includes('⠸') ||
data.includes('⠼') || data.includes('⠴') ||
data.includes('⠦') || data.includes('⠧');
const hasSpinner = SPINNER_PATTERN.test(data);
if (hasSpinner) {
if (!this._isWorking) {
this._isWorking = true;