Skip to content

[Bug]: ACP, not logged in: session/new succeeds with model "unknown/unknown", and session/prompt fails with a generic -32603 whose reason is only in data.details #199

Open

Description

@FasterPHP

What happened?

Without a login, auggie --acp starts and session/new succeeds, but the session cannot work, and the way it fails gives a client nothing to act on.

1. session/new succeeds with a model option whose currentValue is unknown/unknown and which has no choices:

{"jsonrpc":"2.0","id":2,"result":{"sessionId":"<session-id>","configOptions":[
  {"type":"select","id":"model","name":"Model","category":"model","currentValue":"unknown/unknown","options":[]}]}}

2. session/prompt fails with a generic error. The message is Internal error; the reason is only in data.details:

{"jsonrpc":"2.0","id":6,"error":{"code":-32603,"message":"Internal error",
 "data":{"details":"No API key found for unknown.\n\nUse /login or set an API key environment variable. See <install dir>/docs/providers.md"}}}

The same shape is used for other failures: Session <id> not found and Unknown config option <id> are also -32603 with the reason in data.details (0.x used -32602 for these).

3. The advice names a file that does not exist. It ends with an absolute path to docs/providers.md inside the installed package. @augmentcode/auggie@1.2.2 contains no docs directory, so there is nothing to open.

What did you expect to happen?

  • Clients show message, and few read data. A client that shows Internal error leaves the user with nothing to act on. Expected: the reason in message (No API key found for unknown. Use /login or set an API key environment variable.), with structured detail kept in data.
  • A code a client can act on: -32602 for an unknown session or option (as 0.x did), and -32000 or ACP's auth_required for "not logged in", so a client can offer the login. 0.36.0 answered session/new with -32000 "Authentication required", which worked well. If ACP's authenticate and authMethods are the intended route, they would need to be advertised in initialize (today the result has no authMethods).
  • docs/providers.md shipped in the package, or a URL instead of a path. (The text also says /login, while the command in 1.2 is auggie auth login.)

Steps to reproduce

  1. Make sure Auggie is not logged in (auggie auth status prints Not logged in.; use an empty cache directory and no AUGMENT_SESSION_AUTH).
  2. Start auggie --acp.
  3. Send initialize, then session/new with cwd a scratch directory and mcpServers: []. Read the response above.
  4. Send session/prompt with the text Say hi.
  5. Read the error above (about 1 s later).
  6. ls <install dir>/docs: no such directory.

Auggie version

1.2.2 (commit 6f24c7b3c15045713c7b3938b5e6c9bf117d1ff6, built 2026-11-17)

Request ID

Not applicable: protocol behaviour, reproducible with the steps above.

Environment details

Environment

Anything else we need to know?

acp-tui recognises the unknown/unknown option with no choices and the No API key found text and shows its own login advice, but that is a match on English text, and other clients will show Internal error.

Activity

  1. augment-app-staging commented on Nov 25, 2026

    @augment-app-staging
    Contributor

    Confirmed on the published npm packages 1.2.3 and 1.3.0-prerelease.202611241510, with each version verified in the ACP initialize response. With an empty home and no credentials, session/new succeeds with unknown/unknown; the first prompt returns -32603 Internal error, with the login reason buried in data.details. The prerelease is not a fix for this. An unknown session ID also returned -32603.

    For 1.2.3, the supported terminal command is auggie auth login; the docs/providers.md path in the error is not in the npm package. We're tracking actionable authentication errors separately from invalid-session and invalid-config errors, so clients won't have to infer the cause from English text.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions