diff --git a/CLAUDE.md b/CLAUDE.md index 1ef4c4d0..fbf5c612 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -35,7 +35,7 @@ When user says "COM": 1. Increment version in BOTH `package.json` AND `CLAUDE.md` (verify they match with `grep version package.json && grep Version 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.1595 (must match `package.json` for npm publish) +**Version**: 0.1596 (must match `package.json` for npm publish) ## Project Overview diff --git a/package.json b/package.json index a3680577..99eabe33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claudeman", - "version": "0.1595", + "version": "0.1596", "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/web/public/app.js b/src/web/public/app.js index e2ec5192..00f5b7e3 100644 --- a/src/web/public/app.js +++ b/src/web/public/app.js @@ -961,6 +961,10 @@ class LocalEchoOverlay { // other case where the PTY has prompt text the overlay doesn't know about. // Without this, the overlay's opaque background covers the canvas text. _detectBufferText() { + // Skip if we already detected and the user backspaced through it — + // the PTY backspace echo is async, so the buffer still has stale text. + // Reset on clear() (Enter, Ctrl+C, tab switch). + if (this._bufferDetectDone) return; try { const prompt = this._findPrompt(); if (!prompt) return; @@ -975,6 +979,7 @@ class LocalEchoOverlay { this._flushedOffset = afterPrompt.length; this._flushedText = afterPrompt; this._lastPromptPos = prompt; + this._bufferDetectDone = true; } } catch {} } @@ -1017,6 +1022,7 @@ class LocalEchoOverlay { this.pendingText = ''; this._flushedOffset = 0; this._flushedText = ''; + this._bufferDetectDone = false; // allow re-detection after next clear this._persist(); this._lastRenderKey = ''; this._lastPromptPos = null; diff --git a/src/web/public/index.html b/src/web/public/index.html index c785af11..4a379669 100644 --- a/src/web/public/index.html +++ b/src/web/public/index.html @@ -8,8 +8,8 @@ Claudeman - - + + @@ -1559,6 +1559,6 @@ - +