Skip to content

autoRun parameter not working in windsurf:// deep link URL scheme #283

@umangmaurya

Description

@umangmaurya

When using the Windsurf deep link URL scheme to open Cascade with a pre-filled prompt, the autoRun=true parameter does not automatically execute the prompt. The window opens and the prompt is populated correctly, but the user must manually press Enter to run it.

Current Behavior:

windsurf-next://cascade/newChat?folder=/path/to/workspace&prompt=/pr-review%20https://github.com/owner/repo/pull/123&autoRun=true
  • ✅ Opens Windsurf
  • ✅ Opens new Cascade chat
  • ✅ Sets the correct folder/workspace
  • ✅ Populates the prompt field with /pr-review https://github.com/owner/repo/pull/123
  • ❌ Does NOT auto-execute the prompt

Expected Behavior:
The prompt should automatically execute when autoRun=true is set, similar to how other IDEs (like VS Code with certain extensions) support auto-execution via deep links.

Use Case:
I'm trying to create automation workflows that trigger Windsurf global workflows (like /pr-review) directly from external tools (CI/CD pipelines, browser extensions, scripts, etc.). Without auto-execution, users must manually interact with Windsurf after the link opens, which defeats the purpose of the automation.

Environment:

  • OS: macOS (also affects Linux/Windows)
  • Windsurf Version: [your version - run windsurf --version]
  • URL Schemes Tested: windsurf://

Questions:

  1. Is autoRun a supported parameter? If not, what is the correct parameter name?
  2. Is there a Windsurf setting that needs to be enabled to allow auto-execution from deep links?
  3. Are there alternative parameters like submit=true or run=true that work?

Suggested Solution:
Please either:

  1. Enable the autoRun parameter functionality, or
  2. Document the correct URL scheme parameters and their usage, or
  3. Add a Windsurf setting to opt-in to auto-execution from deep links (for security-conscious users)

Additional Context:
This would greatly improve automation workflows, especially for:

  • PR review automation triggered from GitHub/GitLab
  • Custom CLI tools that invoke Windsurf workflows
  • Browser extensions for code review
  • CI/CD pipeline integrations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions