Skip to content

chore(ci): pass explicit issue number to agent-fix prompt#2199

Closed
naqvitalha wants to merge 1 commit into
mainfrom
chore/fix-agent-issue-targeting
Closed

chore(ci): pass explicit issue number to agent-fix prompt#2199
naqvitalha wants to merge 1 commit into
mainfrom
chore/fix-agent-issue-targeting

Conversation

@naqvitalha
Copy link
Copy Markdown
Collaborator

Description

The agent-fix workflow prompt said "Fix this GitHub issue" without specifying which one, relying on claude-code-action to inject context automatically. In run #23455139708, the agent was assigned issue #1914 but drifted over 136 turns to fix issue #2175 instead — a completely different bug.

Now the issue number and title are passed explicitly via ${{ github.event.issue.number }} and ${{ github.event.issue.title }}, matching how agent-triage already works.

Reviewers' hat-rack 🎩

Simple template variable addition. Compare with agent-triage.yml which already does this correctly.

Test plan

  • Next agent-fix run targets the correct issue

The prompt said "Fix this GitHub issue" without specifying which one,
relying on claude-code-action to inject context. Over long runs the
agent drifted to a different issue (#2175 instead of #1914). Now the
issue number and title are passed explicitly in the prompt.
@naqvitalha
Copy link
Copy Markdown
Collaborator Author

Superseded by #2200 (combined PR)

@naqvitalha naqvitalha closed this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant