Skip to content

Network-failure hint suggests a sandboxed run even on a plain host shell #331

@jacekradko

Description

@jacekradko

When a request fails at the network layer in agent mode (stdout piped), 1.5.0 prints:

Host-only Clerk state or system capabilities may be unavailable in agent mode. This may be a sandboxed run.
Re-run this command on the host shell before trusting auth, link, env, or API failures.

Repro: CLERK_PLATFORM_API_KEY=ak_x CLERK_PLATFORM_API_URL=https://localhost:9 clerk api --platform /platform/applications | cat

The hedge is reasonable when the caller might actually be sandboxed, but it prints identically on a plain host shell where there is no sandbox, and there is no way to suppress it. In our case the host was genuinely unreachable (VPN-gated environment) and the hint sent us down the wrong path first. Suggestions: only show it when there is a positive sandbox/agent signal, show it once rather than two lines, or gate it behind a verbosity flag so scripted callers can opt out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions