[Bug] Claude Code auto-commits all uncommitted changes instead of only modified files
Open 💬 1 comment Opened Jun 16, 2026 by MrWaip
Bug Description
Claude Code starts writing code in response to questions. Claude Code unilaterally decides to roll back all changes — not just the ones it just wrote, but everything that was uncommitted too. This wastes a ton of tokens and loses intermediate results — that's the most infuriating thing about this tool.
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.1.177
- Feedback ID: c3ac49d3-ebe7-4fde-b97e-1e0fc570a746
Errors
[{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Cc7LErUdFpWUuitWKoPzY\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:12:67691)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:52:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-16T17:28:04.359Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Cc7LkTv9DwjL2p9nfy1Pr\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:12:67691)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:52:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-16T17:34:42.356Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011Cc7T7jdUySB5SohxLALsQ\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:12:67507)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:52:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-16T18:58:05.360Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"OAuth authentication is currently not allowed for this organization.\"},\"request_id\":\"req_011Cc7ULiuZQprDcyAerTgDP\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:12:67507)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:52:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-16T19:14:08.397Z"},{"error":"Error: Tool bash not found\n at bS9 (/$bunfs/root/src/entrypoints/cli.js:4166:15847)\n at H6 (/$bunfs/root/src/entrypoints/cli.js:594:21313)\n at d9 (/$bunfs/root/src/entrypoints/cli.js:594:40402)\n at O68 (/$bunfs/root/src/entrypoints/cli.js:594:51329)\n at N9 (/$bunfs/root/src/entrypoints/cli.js:594:88854)\n at BK (/$bunfs/root/src/entrypoints/cli.js:594:87821)\n at _K (/$bunfs/root/src/entrypoints/cli.js:594:87643)\n at j68 (/$bunfs/root/src/entrypoints/cli.js:594:83948)\n at kq (/$bunfs/root/src/entrypoints/cli.js:594:6510)\n at syK (/$bunfs/root/src/entrypoints/cli.js:587:5415)","timestamp":"2026-06-16T19:30:22.897Z"},{"error":"Error: Tool bash not found\n at bS9 (/$bunfs/root/src/entrypoints/cli.js:4166:15847)\n at H6 (/$bunfs/root/src/entrypoints/cli.js:594:21313)\n at d9 (/$bunfs/root/src/entrypoints/cli.js:594:40402)\n at O68 (/$bunfs/root/src/entrypoints/cli.js:594:51329)\n at N9 (/$bunfs/root/src/entrypoints/cli.js:594:88854)\n at BK (/$bunfs/root/src/entrypoints/cli.js:594:87821)\n at _K (/$bunfs/root/src/entrypoints/cli.js:594:87643)\n at j68 (/$bunfs/root/src/entrypoints/cli.js:594:83948)\n at kq (/$bunfs/root/src/entrypoints/cli.js:594:6510)\n at syK (/$bunfs/root/src/entrypoints/cli.js:587:5415)","timestamp":"2026-06-16T19:30:23.497Z"},{"error":"Error: Tool bash not found\n at bS9 (/$bunfs/root/src/entrypoints/cli.js:4166:15847)\n at H6 (/$bunfs/root/src/entrypoints/cli.js:594:21313)\n at d9 (/$bunfs/root/src/entrypoints/cli.js:594:40402)\n at O68 (/$bunfs/root/src/entrypoints/cli.js:594:51329)\n at N9 (/$bunfs/root/src/entrypoints/cli.js:594:88854)\n at BK (/$bunfs/root/src/entrypoints/cli.js:594:87821)\n at _K (/$bunfs/root/src/entrypoints/cli.js:594:87643)\n at j68 (/$b…
Note: Content was truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗