Skip to content

Let hosts request silent authentication recovery #560

Closed as not planned
Closed as not planned

Description

@TylerLeonhardt

Problem

Background work, such as PR monitoring, may need a renewed token without interrupting the user. AHP's required / expired reasons describe credential state, not whether sign-in UI is allowed.

Possible proposal

Add an optional allowInteraction field to auth/required:

{ "reason": "expired", "allowInteraction": false }
  • false: try silent acquisition/renewal only. If interaction is needed, leave authentication unresolved until the user explicitly signs in.
  • true: try silently first; the client may then prompt according to its local policy.
  • omitted: preserve today's client-controlled behavior.

This does not change token freshness: expired still forbids blindly replaying the challenged token. Hosts must negotiate support before relying on silent-only behavior; older clients may ignore an unfamiliar field.

Validation

Check background expiry, consent-required recovery, and explicit sign-in. Silent recovery must not open dialogs or cause retry/prompt loops.

Post-MVP and nonblocking. This is a proposal for discussion, not a reproduced bug or a requirement to change the current MVP.

Activity

  1. changed the title [-]Clarify when background authentication recovery may prompt users[/-] [+]Let hosts request silent authentication recovery[/+] on Nov 3, 2026
  2. connor4312 commented on Nov 3, 2026

    @connor4312
    Member

    I'm curious if "allowInteraction": false is better served with a description of state instead of a description of UI behavior. Like for example if the auth is currently required to handle a tool call or not.

  3. TylerLeonhardt commented on Nov 6, 2026

    @TylerLeonhardt
    MemberAuthor

    Agreed, Connor Peet (@connor4312). The current protocol already gives us what we need: the host describes the authentication requirement, and the client decides how to acquire credentials and whether to prompt, then delivers a token via authenticate. No additional interaction flag is needed, so I am closing this proposal.

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