fix: stop 8s terminal blank-flash on non-Claude surfaces
The periodic Claude-mode re-check (setInterval 8s) called setClaudeMode(false) on plain/codex surfaces, which ran claudeRenderer.clear() unconditionally. clear() empties the shared output element (this.el), blanking live terminal/codex content until the next repaint — perceived as text fading out then back every 8s. - app.js: remove the 8s claude re-check interval - terminal-view.js: only clear the renderer on an actual mode transition (changed), so redundant setClaudeMode/setCodexMode(false) no longer wipes the shared output - index.html: bump terminal-view.js v12, app.js v21 Verified deterministically in Playwright: pre-fix the output wiped 48->0 ~350ms after each 8s /api/claude-surfaces fetch; post-fix 18s window shows 0 fetches and content intact. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>main
parent
1f50014296
commit
5e473b9ff6
Loading…
Reference in New Issue