Skip to content

[Bug]: A failed ACP terminal sign-in drops what the login command printed #39230

Closed

Description

@e18cheng

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Add a local-command ACP provider whose agent lists a terminal auth method in its initialize response.
  2. Make the agent, when started with that method's args, print a reason and exit non-zero, e.g. echo "Connect to the VPN, then sign in again."; exit 1.
  3. Open Settings → Providers, select the provider, and press Sign in.

Expected behavior

The failed sign-in card shows the reason the login command printed, e.g. "The provider login command did not finish successfully. Connect to the VPN, then sign in again."

Actual behavior

The card shows only "The provider login command did not finish successfully." In runTerminal in packages/provider-acp-registry/src/server/auth.ts, a non-zero exit calls failure("start", …) with no cause, so the formatFailureDetail fix from #30218 has nothing to append, though the command's output is already in transcript. Output that arrives just before the exit can also still be in the output queue, so the fix should drain it before reading the last lines.

Impact

Minor bug or occasional failure

Version or commit

v0.1.10 @ 7d32075

Environment

macOS 26 (Darwin 25.6), desktop app, local-command ACP agent with a terminal auth method

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Run the agent's login command in a shell to see why it failed.

Activity

  1. added
    bug
    needs-triage
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions