"Git Branch History: Incorrect Reflog Retrieval and Halting Problem Analogy"
Resolved 💬 2 comments Opened May 14, 2025 by whitneyland Closed May 15, 2025
Bug Description
When Claude code told me it couldn't determine the last local git branch I created, I jokingly asked if it was unknowable like the halting problem and he agreed ;). I don't believe this is correct. reflog does have a default expiration (90 days?), but for recently created branches, this information should be available. Seems like kind of a bug on both points.
In the full conversation, there were other factually incorrect points made about my branches. You can see when I asked what the evidence was for the claim I created a particular branch. Thanks -
Environment Info
- Platform: macos
- Terminal: Apple_Terminal
- Version: 0.2.114
- Feedback ID: 49e2c157-95cc-489d-8888-d98241ee4f68
Errors
[{"error":"ShellError: Shell command failed\n at Object.call (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1357:863)\n at async aH5 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:6025)\n at async fd1 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3877)\n at async Ge2 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:2710)\n at async iH5 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3195)\n at async xd1 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3125)\n at async sn (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:2177)\n at async K4 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2194:1879)","timestamp":"2025-05-14T19:54:15.116Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1357:863)\n at async aH5 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:6025)\n at async fd1 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3877)\n at async Ge2 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:2710)\n at async FB1 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1046:770)\n at async nH5 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3250)\n at async xd1 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3097)\n at async sn (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:2177)\n at async sn (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:2636)\n at async K4 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2194:1879)","timestamp":"2025-05-14T19:55:00.294Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1357:863)\n at async aH5 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:6025)\n at async fd1 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3877)\n at async Ge2 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:2710)\n at async FB1 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1046:770)\n at async nH5 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3250)\n at async xd1 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:3097)\n at async sn (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1881:2177)\n at async K4 (file:///Users/lee/.nvm/versions/node/v23.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2194:1879)","timestamp":"2025-05-14T19:57:35.708Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗