发布

  • feat(cli): add --no-browser flag to link command (#3829)

    frostbyte_neo 发布于 2026-07-13 23:26:43 +00:00

    Summary

    Adds a --no-browser flag to composio link (and composio dev connected-accounts link) that skips auto-opening the browser and prints
    the authorization URL for the user to open manually, while still waiting
    for the connection to become ACTIVE.

    Previously the only way to suppress the browser auto-open was
    --no-wait, which also exits without waiting for authorization.
    --no-browser fills the gap for users (and remote/SSH sessions) who
    want to click the link themselves but still get the wait-for-ACTIVE
    confirmation — matching the existing composio login --no-browser
    behavior.

    Changes

    • New --no-browser boolean option on both the root link command and
      the dev connected-accounts link variant
    • waitForActiveConnection skips open() and tells the user to open
      the printed URL when the flag is set
    • The unmanaged-auth dashboard fallback (ToolRouterV2_NoManagedAuth)
      also respects the flag
    • Root help (root-help.ts) documents the new flag
    • Test: link gmail --no-browser waits for ACTIVE and never calls
      open

    No VHS recording added — this is a small flag addition to an existing
    command surface, not a new documented workflow.

    Verification

    • pnpm typecheck — passes
    • pnpm --filter @composio/cli test — 81 files, 725 tests pass

    🤖 Generated with Claude Code

    下载附件