Skip to content

Renew the Codex sign-in through codex app-server - #1457

Merged
thesiti92 merged 2 commits into
mainfrom
diffr-codex-refresh
Oct 30, 2026
Merged

thesiti92 merged 2 commits into
mainfrom
diffr-codex-refresh

Conversation

@thesiti92

@thesiti92 thesiti92 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex summaries stopped about 10 days after Codex last ran, because diffr read auth.json and never refreshed it.

When the access token is within 5 minutes of expiry, diffr runs codex app-server and sends account/read with refreshToken: true. Codex refreshes and saves its own auth.json, then diffr reads it again. diffr still never writes Codex's credentials. Refresh tokens rotate on each refresh, so refreshing them in diffr would sign Codex out. stdin stays open until the reply, because the app server exits at end of input without answering.

Checked by hand:

  • Forced refresh on a real sign-in: Codex saved a new token, diffr config logins reported ready, and codex exec still worked.
  • Expired token, with codex missing from PATH or a revoked refresh token: "the Codex sign-in expired: run codex login, and keep codex on PATH so diffr can renew it".
  • Token not due: no codex process.

Whiteboard runs the pinned diffr binary, so this needs a diffr release and bump before Desktop picks it up.

Agent-Session: 732f695e-8d49-4f53-b56b-38c2ce195b88
Agent-Session: 24a5b452-7374-4a8a-be7d-36b1d8c88a82
Agent-Session: 61c94475-694a-4e46-8971-e0d703d3b344
Agent-Session: cf135dc8-4f72-4b2f-bf40-efa15fa93d94
Agent-Session: 760d4086-5b57-4dab-bcdc-e41fdec0f924
Agent-Session: 11bf8317-e0a1-4736-8d72-384cff9a2605
Agent-Session: 297f5fd9-a24c-42f5-afdf-c1792a4173d5
Agent-Session: 7ce7a16a-1808-4afd-8674-8ea400f18f07
Agent-Session: 8042bce9-230b-49e7-999d-747a13858db1
Agent-Session: 732f695e-8d49-4f53-b56b-38c2ce195b88
Agent-Session: 24a5b452-7374-4a8a-be7d-36b1d8c88a82
Agent-Session: 61c94475-694a-4e46-8971-e0d703d3b344
Agent-Session: cf135dc8-4f72-4b2f-bf40-efa15fa93d94
Agent-Session: 760d4086-5b57-4dab-bcdc-e41fdec0f924
Agent-Session: 11bf8317-e0a1-4736-8d72-384cff9a2605
Agent-Session: 297f5fd9-a24c-42f5-afdf-c1792a4173d5
Agent-Session: 7ce7a16a-1808-4afd-8674-8ea400f18f07
Agent-Session: 8042bce9-230b-49e7-999d-747a13858db1
Agent-Session: 1332738b-3290-4cae-ba8e-7940100e88c2
@thesiti92
thesiti92 force-pushed the diffr-codex-refresh branch from a7f5dd3 to d6431db Compare October 30, 2026 17:33
@thesiti92
thesiti92 merged commit 31da3c5 into main Oct 30, 2026
13 checks passed
@thesiti92
thesiti92 deleted the diffr-codex-refresh branch October 30, 2026 17:58
thesiti92 added a commit that referenced this pull request Oct 30, 2026
Diffr Release. Ships #1457: diffr renews the Codex sign-in through
`codex app-server`.
milanb17 added a commit that referenced this pull request Oct 30, 2026
Pins the diffr platform packages to 0.1.23 (#1460), which carries the
Codex sign-in refresh through codex app-server from #1457 into Desktop.

Checked: frozen install passes, the lockfile lists all five platform
packages, and the resolved binary reports `diffr 0.1.23`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants