Skip to content

AI Coach opens and analyzes the wrong issue when invoked from Issue Board #332

Description

@mottych

Description

Type Bug
Category AI Coach / Issue Board
Environment

  • Purpose Path (production or dev — specify if needed)
  • Issue Board view
  • AI Coach “Resolve with AI” modal

Summary

When selecting the first issue (“testing focus”) and launching the AI Coach, the AI Coach incorrectly loads and analyzes a different issue (“get motivated”). The AI is not respecting the user’s selected issue context.

Steps to Reproduce

  1. Navigate to the Issue Board.
  2. Click on the first issue titled “testing focus.”
  3. Select Resolve with AI to open the AI Coach modal.
  4. Observe which issue the AI Coach begins analyzing.

Actual Behavior

The AI Coach ignores the selected issue (“testing focus”) and instead loads the content of a different issue (“get motivated”), including its title, description, and related goals.

Expected Behavior

The AI Coach should always load and analyze the exact issue the user selected, passing the correct issue ID and metadata into the AI prompt.

Impact

  • Breaks user trust in AI accuracy
  • Creates confusion and incorrect coaching context
  • Blocks QA from validating AI behavior
  • Could cause users to receive irrelevant or inappropriate guidance

Suspected Cause (for engineering)

Likely a mismatch in:

  • Issue ID passed from the Issue Board → AI Coach modal
  • State management not updating the selected issue before the AI call
  • A stale or cached issue object being reused
  • Incorrect index mapping in the Issue Board list

Attachments

  • Screenshot showing AI Coach analyzing “get motivated” despite selecting “testing focus”

Priority

Attachments

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions