Skip to content

Can extensions detect that they are running in the agents window #315776

Open

Description

@mjbvz

Is there a way for extensions to detect that they are running in the agents window? I'd like to use this for the TS extension to disable some notifications/prompts

Activity

  1. benibenj commented on May 12, 2026

    @benibenj
    Contributor

    Currently we only expose the proposed API workspace.isAgentSessionsWorkspace for some built-in extension support. We haven't fully figured out the extension story yet, which is why there isn't a proper public API at the moment.

    So far, the main goal has been to identify extensions that work well without requiring any changes, so they can be enabled from day 1 and provide a seamless transition from a normal VS Code window into the agents window.

  2. alexr00 commented on Nov 27, 2026

    @alexr00
    Member

    Renamed to isAgentManaged. Will put up for finalization!

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions