Skip to content

Amazon Q pinned context is not able to access files and directories created after VSCode launch #7542

Open
@Debnathweb

Description

@Debnathweb

Problem

Amazon Q's pinned context feature currently does not detect files or directories that were created after launching VSCode. This creates a mismatch between the actual workspace and what Amazon Q can access, leading to workflow disruptions and confusion.


Steps to Reproduce

  1. Create a file or directory outside VSCode (e.g., via the command line or file explorer).
  2. Launch VSCode and open the workspace containing the new file/directory.
  3. Open Amazon Q and try to reference the file using @filename or @foldername.
  4. Observe that Amazon Q does not recognize or access the newly created item.

Expected Behavior

Amazon Q should:

  • Automatically detect new files and folders created after VSCode is launched.
  • Allow seamless use of @file and @folder references for all workspace content.
  • Stay in sync with the actual file system without requiring user intervention.
  • Offer a consistent and up-to-date developer experience.

Current Behavior

  • Files/folders created after launching VSCode are invisible to Amazon Q pinned context.
  • Developers must restart VSCode or manually open files for Amazon Q to register them.
  • Leads to confusion, delays, and repetitive workarounds.

Impact

  • 🔁 Workflow Disruption: Restarting VSCode interrupts developer flow.
  • ⚠️ Inconsistent Context: Amazon Q operates on a stale view of the project.
  • 🛠 Manual Fixes: Users must interact with each new file to include it.
  • User Confusion: No clear indication of why files aren't accessible.

Image


System Details

  • Operating System: Windows 10
  • Visual Studio Code version: 1.101.1
  • AWS Toolkit version: 3.66.0
  • Amazon Q version: 1.77.0
  • Workspace Type: Local

Additional Context

This issue is especially impactful for:

  • Developers using CLI tools or other editors alongside VSCode.
  • Teams collaborating with external file sync/build pipelines.
  • Workflows involving generated or dynamically created files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugWe can reproduce the issue and confirmed it is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions