Skip to content

Extension is Asking for Authentication for every time i run a prompt or assign a task #189

Description

@umerjs

Bug Description

The Amazon Q extension prompts for re-authentication on every prompt, task assignment, or interaction, even immediately after a successful sign-in. The authentication token/session does not persist across requests.

Steps to Reproduce

  1. Open VS Code with the Amazon Q extension installed.
  2. Sign in via AWS Builder ID .
  3. Open the Amazon Q chat panel and submit any prompt or assign a coding task.
  4. Observe that the extension immediately asks to authenticate again before processing the request.

Expected Behavior

Once authenticated, the session and OAuth tokens should persist across prompts and sessions without requiring constant re-authentication.

Actual Behavior

The extension repeatedly prompts for authentication on every prompt, interrupting workflow and making the extension unusable.

Environment & Setup

  • IDE Name & Version: [e.g., VS Code 1.90.0 / WebStorm 2024.1]
  • OS: [e.g., Windows 11 / macOS Sonoma / Ubuntu 22.04]
  • Amazon Q Extension Version: [e.g., v1.12.0]
  • Authentication Provider: [e.g., AWS Builder ID / AWS IAM Identity Center]

Additional Context / Logs

  • Operating system keychain/credential manager permissions checked: [Yes/No]
  • Attempted sign-out, window reload, and sign-in: [Yes/No]
  • Cleared extension global state storage: [Yes/No]

Relevant logs from VS Code Output (Command Palette -> Output: Focus on Output View -> select Amazon Q / AWS Toolkit):

Metadata

Metadata

Assignees

No one assigned

    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