Repository navigation
v5.0.5 — Fix message swallowing on compaction/session switch
⚠️ 已归档 (Archived):此为 PTY 交互驱动实验线(v5.0.x)。因claude -p计费分离方案被取消,主线已回退至 v4.1.3 的-p架构继续开发。本线代码完整保存于legacy/v5-pty分支。
Fixed
- Messages silently swallowed after a
/compactor a session switch._isCompactModeis a provider-wide flag for an in-flight native/compact. Two paths lost messages: (1) sending while compaction was running injected the text to the PTY but the legacy compact-mode gate hid the user bubble, so the message vanished; (2) the flag was never reset when leaving the conversation (new session / load another conversation), so it stayedtrueand swallowed every subsequent send. Now_resetCompactionState()runs on every session switch, and a send attempted during an in-flight compaction is visibly rejected with the same "Claude is still processing your previous request. Please wait…" notice — the message is never silently lost. - Turn could hang forever on
stop_reason: nullresponses. Responses containing a thinking block (and some large-context first turns) are finalized withstop_reason=null, so theend_turn(B1) path never fired and the UI hung. Added a B3 PTY-idle completion fallback: once an assistant line has appeared this turn, sustained PTY silence (spinner stopped) completes the turn — deduped against B1/B2. - QUESTION option-card title towered over the conversation badges. The
.ask-question-headerwas14pxwhile the YOU/CLAUDE/RESULT badges are11px. Reduced to13pxto match the conversation body; the bold weight alone now carries the emphasis.
Install
- VS Code:
Ctrl+Shift+P→ "Install from VSIX" → select the downloaded.vsix - CLI:
code --install-extension claude-code-chatui-5.0.5.vsix
The bundled
node-ptywin32-x64 prebuilt binaries are verified present in this VSIX (the v5.0.3 packaging regression is fixed since v5.0.4).