You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chatgpt-new: sign-in ends after an hour because every refresh returns invalid_grant #1422
Symptom. A chatgpt-new sign-in stops working about an hour after graff login chatgpt-new. The renewal is refused, and once the access token expires every request fails with invalid_token until you sign in again.
Error. OpenAI's token endpoint answers every grant_type=refresh_token request with:
HTTP/1.1 400 Bad Request
{"error": "invalid_grant"}
graff keeps that answer in the sign-in record as last_refresh_error.
Root cause. Upstream. graff sends the documented request (refreshed in src/oauth_chatgpt.zig on feat/chat-gpt-new): the issued client_id, the latest refresh_token and resource, never before earliest_refresh_at. OpenAI refuses it even for a never-used token inside the renewal window. T3 Code, pi and nolune send the same four fields.
Activity
justrach commentedon Oct 4, 2026
Reported upstream with a reproduction using OpenAI's own devkit, which gets the same
invalid_grant: openai/sign-in-with-chatgpt-devkit#5justrach commentedon Nov 9, 2026
Resolved on release/v0.302.74.51.