[Bug] Claude Code re-activates virtual environment on every bash prompt
Open 💬 0 comments Opened Jul 9, 2026 by gaidheal1
Bug Description
Claude started running "source .venv/bin/activate" with every bash prompt, which held up work in 'accept edits' mode. It wasn't doing that before. The venv was already active in bash before I launched Claude Code CLI.
Environment Info
- Platform: linux
- Terminal: windows-terminal
- Version: 2.1.205
- Feedback ID: 78d3b143-a9b7-4090-9646-f84c94a967e5
Errors
[{"error":"TelemetrySafeError: VirtualMessageList: itemKeys/messages length desync (keys=158 messages=157 range=[92,158))\n at Hn_ (/$bunfs/root/src/entrypoints/cli.js:9825:8140)\n at jJd (/$bunfs/root/src/entrypoints/cli.js:9825:1103)\n at yi (/$bunfs/root/src/entrypoints/cli.js:572:21211)\n at _p (/$bunfs/root/src/entrypoints/cli.js:572:39996)\n at yN (/$bunfs/root/src/entrypoints/cli.js:572:50807)\n at qd (/$bunfs/root/src/entrypoints/cli.js:572:87884)\n at EJ (/$bunfs/root/src/entrypoints/cli.js:572:86845)\n at SJ (/$bunfs/root/src/entrypoints/cli.js:572:86667)\n at DD (/$bunfs/root/src/entrypoints/cli.js:572:82993)\n at sr (/$bunfs/root/src/entrypoints/cli.js:572:6597)","timestamp":"2026-07-09T15:46:07.669Z"}]