diff --git a/CLAUDE.md b/CLAUDE.md index de25878a..40274cef 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,7 +16,7 @@ When user says "COM": 1. Increment version in BOTH `package.json` AND `CLAUDE.md` 2. Run: `git add -A && git commit -m "chore: bump version to X.XXXX" && git push && npm run build && systemctl --user restart claudeman-web` -**Version**: 0.1416 (must match `package.json`) +**Version**: 0.1417 (must match `package.json`) ## Project Overview diff --git a/package.json b/package.json index e954f4ab..f7f83d81 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claudeman", - "version": "0.1416", + "version": "0.1417", "description": "The missing control plane for Claude Code - run 20 autonomous agents with real-time monitoring and session persistence", "type": "module", "main": "dist/index.js", diff --git a/src/session.ts b/src/session.ts index 0e605119..2664e861 100644 --- a/src/session.ts +++ b/src/session.ts @@ -331,6 +331,9 @@ export class Session extends EventEmitter { private _autoCompactPrompt: string = ''; // Optional prompt for compact private _isCompacting: boolean = false; // Prevent recursive compacting + // Image watcher setting (per-session toggle) + private _imageWatcherEnabled: boolean = true; + // Timer tracking for cleanup (prevents memory leaks) private _autoCompactTimer: NodeJS.Timeout | null = null; private _autoClearTimer: NodeJS.Timeout | null = null; @@ -669,6 +672,14 @@ export class Session extends EventEmitter { } } + get imageWatcherEnabled(): boolean { + return this._imageWatcherEnabled; + } + + set imageWatcherEnabled(enabled: boolean) { + this._imageWatcherEnabled = enabled; + } + isIdle(): boolean { return this._status === 'idle'; } @@ -697,6 +708,7 @@ export class Session extends EventEmitter { autoCompactEnabled: this._autoCompactEnabled, autoCompactThreshold: this._autoCompactThreshold, autoCompactPrompt: this._autoCompactPrompt, + imageWatcherEnabled: this._imageWatcherEnabled, totalCost: this._totalCost, inputTokens: this._totalInputTokens, outputTokens: this._totalOutputTokens,