You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: A failed ACP terminal sign-in drops what the login command printed #39230
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
Add a local-command ACP provider whose agent lists a terminal auth method in its initialize response.
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.
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.
Activity