Skip to content

Login notification posts a truncated OAuth link (redirect_uri missing) — 2.5.7 #92

Done

Description

@rodylog

Versions: Claude Terminal Pro 2.5.7, Claude Code 2.1.319, Home Assistant OS (amd64)

What happened
After the login expired ("Login reached its time limit"), the login watcher posted the claude_login_url notification, but the link stops after 84 characters, inside client_id:

https://claude.com/cai/oauth/authorize?code=true&client_id=9d1c250a-e61b-44d9-88ed-5

The clickable link and the "copy it instead" text are both cut at the same point. Opening it gives "Invalid OAuth request – redirect_uri parameter missing", so the notification can't be used to log in.

On the same screen, the panel's Copy link button copied the complete URL (465 characters), and logging in with it worked.

Likely cause
extract_url in scripts/login-url-watcher.sh kept only the first line of the wrapped URL. I couldn't capture the pane as it was when the link was posted, so I don't know which layout defeated the continuation logic.

Suggestion

  • Before posting, check that the rebuilt URL contains redirect_uri, code_challenge and state, as findLink() does with its "truncated" / "invalid" states, and skip posting otherwise.
  • Or rebuild the URL the same way as the panel's Copy link.

Activity

  1. ESJavadex commented on Nov 24, 2026

    @ESJavadex
    Owner

    Thanks for the clear report, and for checking the panel's Copy link against the notification. The fix is out in 2.5.8. The watcher now skips incomplete OAuth links, and I verified that a wrapped link is sent in full using tmux and a simulated Supervisor.

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