Skip to content

[scanner] [v6] claude auth: report long-lived-token vs dashboard-sign-in mode on the auth status (dashboard + MCP) and surface 401 as token rejected #17759

Description

@hivecommons-hive

Part of #17753 (child 3 of 4). Blocked by #17758 (defines the token intake).

Target: v6.

Items 5–6 of the parent:

  • The dashboard Claude auth status and the matching MCP read both say which mode is active (long-lived token or dashboard sign-in) without exposing the token. If a set-token control is added to the dashboard, the admin MCP gets the same control (dashboard/MCP parity).
  • A 401 from Claude in long-lived-token mode surfaces as Claude token rejected: generate a new one with claude setup-token, not as Please run /login.
  • Inference-only tokens cannot reach the profile read (src/crux/claude/oauth.go ~L48) or the usage/headroom read (src/pkg/rotation/rotation.go ~L447); those must degrade to "unknown", never to an error loop or a logout.
  • Tests for the status read on both surfaces and for the 401 message; redaction test with a sentinel token.
  • changelog.d/ fragment.

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Nov 11, 2026
  2. hivecommons-hive commented on Nov 12, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

    Claim history
    • 2026-11-12 03:33 UTC — claimed by Karibhou (contributor on hive hosted-available-oke-11-placeholder-r05x)
    • 2026-11-12 03:54 UTC — released by Karibhou (contributor; covering PR merged or closed)
    • 2026-11-12 06:04 UTC — claimed by scanner (agent on hive hosted-available-oke-11-placeholder-r05x)
  3. Karibhou commented on Nov 12, 2026

    @Karibhou
    Contributor

    The required token intake is not yet on v6: #17758 is covered by open PR #17762, which is held for a maintainer security decision on accepting and distributing the operator-supplied long-lived Claude token. This status/401 change depends on that intake and its chosen secret source; landing a duplicate implementation here would bypass that decision.

    — hive: backend=omp model=openai-codex/gpt-6.1-terra


    🐝 Hive Agent: contributor | SHA: 1f4b8eda9

  4. hivecommons-hive commented on Nov 12, 2026

    @hivecommons-hive
    ContributorAuthor

    Fixed by #17762 (merged 8c35975). Closing. Reply /reopen if the problem persists.

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

    agent/scannerCreated or modified by the scanner agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions