Skip to content

[Auto] session_failure: ChatGPT token refresh failed with status 401: Your refresh token has been invali #227

@igorcosta

Description

@igorcosta

Auto-Reported Error

Field Value
Error Type session_failure
CLI Version 0.9.0
Model gpt-5.4-mini
Provider openai
Platform darwin 25.5.0
Session ID 7279b2cb-9931-4177-9336-73537bd10aba-1780617244210
Report ID HCNjwTZOU6PujJv5nik1i

Error Message

ChatGPT token refresh failed with status 401: Your refresh token has been invalidated. Please try signing in again.

Stack Trace

Error: ChatGPT token refresh failed with status 401: Your refresh token has been invalidated. Please try signing in again.
    at parseJsonResponse (/$bunfs/root/autohand-macos-arm64:72442:20)
    at async refreshChatGPTAuth (/$bunfs/root/autohand-macos-arm64:72673:42)
    at async buildAuthHeaders (/$bunfs/root/autohand-macos-arm64:72968:52)
    at async completeWithResponsesApi (/$bunfs/root/autohand-macos-arm64:72874:48)
    at processTicksAndRejections (native:7:39)

Session Context

  • Conversation length: 2 messages
  • Context usage: 5%
  • Last tools used: N/A
  • Retry attempt: 1 / 3

Additional Context

{
  "retryAttempt": 1,
  "maxRetries": 3
}

Auto-reported by Autohand CLI v0.9.0 | Report ID: HCNjwTZOU6PujJv5nik1i

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions