You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hallucinating "workflow doesn't have access to a GitHub token" despite successfully creating PRs #5690
When using the GitHub Action to create a PR, the model includes text claiming "The workflow doesn't have access to a GitHub token for creating PRs via API" — but this statement appeared inside a PR that was successfully created via the API.
The PR creation works — opencode/the model seem to be hallucinating. This is using anthropic/claude-opus-4-5
PR was created successfully with author opencode-agent, proper timestamps, etc.
workflow has correct permissions (pull-requests: write, id-token: write, etc.)
the github workflow is unmodified from the default opencode version
generates stale/template text that doesn't match reality
Screenshots below from the failure mode + asking /oc to analyze.
I understand the github CLI + action well enough at this point from my other (unrelated) PRs and don’t see anything in opencode that would directly cause this.
Activity
github-actions commentedon Dec 17, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if this doesn't address your specific case.
rekram1-node commentedon Dec 17, 2025
ill look into it
rekram1-node commentedon Dec 18, 2025
merged pr that should help discourage this behavior (will be in next release)
elithrar commentedon Dec 18, 2025
winner, thanks Aiden!
rekram1-node commentedon Dec 18, 2025
no problem! Ill keep open for now, we will see if it fixed it