The spawned shell inherited ComfyUI's launch TERM (often unset or a non-xterm value like xterm-ghostty), so terminfo-aware programs failed with "unknown terminal type". PtySession now resolves TERM against the host terminfo DB, preferring xterm-256color and degrading to xterm-color/xterm so slim Linux/containers lose colors instead of breaking. Bump to 0.3.1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>