[Bug] Hardcoded GitHub URL in extractPRFromCommit() function

Resolved 💬 6 comments Opened Sep 14, 2025 by annechinn Closed Jan 6, 2026

Bug Description
Claude code inserted an invalid github url related to using the github api to get commit details. the url included anthropics....Looking back at the code, the anthropics/stateeval path is hardcoded on line 809 in the
extractPRFromCommit() function:

const response = await
fetch(https://api.github.com/repos/anthropics/stateeval/commits/${commitSha}/pulls, {

This appears to be leftover code that wasn't updated when the other functions were changed
to use hoc-stateeval. The inconsistency means:

  • getGitHubCommitDetails() and getGitHubCommitMessage() correctly use hoc-stateeval/${repo}
  • extractPRFromCommit() incorrectly uses the hardcoded anthropics/stateeval

We need to fix line 809 to use the correct organization and repo mapping like the other
functions do.

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 1.0.113
  • Feedback ID: a94ff78d-e3f7-4c69-8f0a-47fad5653dc2

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Module.readFileSync (node:fs:442:20)\n    at Object.readFileSync (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:719:6735)\n    at Z4B (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:3509:9370)\n    at Object.call (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:1780:936)\n    at call.next (<anonymous>)\n    at XZ5 (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:3274:20655)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async s$B (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:3274:17150)\n    at async I4B (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:1785:3423)\n    at async ZIB (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:1970:1433)","timestamp":"2025-09-14T18:19:11.999Z"},{"error":"Error: String not found in file. Failed to apply edit.\n    at SS (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:1838:728)\n    at gC0 (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:1838:104)\n    at Object.renderToolUseRejectedMessage (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:1895:1663)\n    at ezB (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:3026:1722)\n    at rD (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:84:19415)\n    at fl (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:86:42814)\n    at H9 (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:86:38355)\n    at nf (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:86:38283)\n    at WC (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:86:38137)\n    at JH (file:///C:/Users/Administrator/AppData/Local/nvm/v22.14.0/node_modules/@anthropic-ai/claude-code/cli.js:86:35216)","timestamp":"2025-09-14T18:27:20.458Z"}]

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗