Skip to content

hallucinating "workflow doesn't have access to a GitHub token" despite successfully creating PRs #5690

Closed

Description

@elithrar

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.

Image Image Image Image Image

Activity

  1. github-actions commented on Dec 17, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if this doesn't address your specific case.

  2. added
    bugSomething isn't working
    and removed
    zenRelates to Zen
    on Dec 17, 2025
  3. rekram1-node commented on Dec 17, 2025

    @rekram1-node
    Contributor

    ill look into it

  4. rekram1-node commented on Dec 18, 2025

    @rekram1-node
    Contributor

    merged pr that should help discourage this behavior (will be in next release)

  5. elithrar commented on Dec 18, 2025

    @elithrar
    ContributorAuthor

    winner, thanks Aiden!

  6. rekram1-node commented on Dec 18, 2025

    @rekram1-node
    Contributor

    no problem! Ill keep open for now, we will see if it fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions