GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Wait longer for the Codex account check when Codex starts by Sniezka1927 · Pull Request #16338 · nightly-labs/openbot

Conversation

@Sniezka1927

@Sniezka1927 Sniezka1927 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Linked issue

Closes #16210

Type of change

  • Bug fix
  • Small improvement or alignment, with no change to how a feature works
  • New provider, MCP app, or connector
  • Translation or documentation
  • New feature or change to existing behavior (needs an approved issue)

What changed

ChatGPT (Codex) now connects by itself when its account check is slow. Before, the user saw "ChatGPT did not answer in time", then "did not start several times in a row", and had to refresh the providers.

Cause: for a ChatGPT login, Codex answers account/read only after a request to the ChatGPT service (get_accounts_check). Codex gives this read 15 s (workspace_routing.rs @ rust-v0.172.0) and keeps the result only in the memory of its process. OpenBot waited only 5 s at start, and the limit did not grow after a timeout (only initialize grows). Each retry starts a new Codex process that does the same request again, so all retries failed. After 3 failures, START_FAILURE_LIMIT stopped the starts.

Change: the start-time account/read of Codex waits 20 s, more than the Codex limit. Other providers keep 5 s. A Codex that does not answer still fails, now after 20 s, with the same message and the same retries. t3code made the same choice after a Windows report (one 20 s Codex budget, pingdotgg/t3code#15945).

Surfaces: backend provider runtime only (src/backend/agent/provider-runtime.ts). It runs on the desktop and on a joined server host, so the desktop, the web client and mobile get the fix through the host. No renderer, mobile, IPC contract, Team API, migration, setting or text change.

Verification

  • Narrow checks for what changed: biome check on the changed files, bun run typecheck:node, bun run test:codex-hung-app-server (passed). bun run test:changed found no test file. CI owns the full suite.
  • Surfaces touched are named under "What changed"
  • A feature for agents, chats, channels, routines or server settings also works on a joined server, or "What changed" says why it is local only
  • Relevant manual smoke test completed
  • No credentials, private data, generated output, or real user files are included

Reproduction with the real agent service and a fake Codex whose account/read answers after 7 s (temporary script, not committed): before, state: error after 5.16 s with "ChatGPT did not answer in time"; after, state: available after 7.4 s. A Codex that never answers: state: error after 20.2 s.

Smoke in the real dev app (bun run dev, new worktree profile), with OPENBOT_CODEX_PATH set to a wrapper around the real Codex CLI 0.167.0 that delays each account/read reply by 8 s:

# Feature Result Evidence
1 Slow account check at app start pass Log: answered initialize 08:14:15.554, wrapper delayed account/read 8000 ms, checking → available 08:14:23.574 on the first start, no retry. Settings > Providers: "ChatGPT Available on this computer".
2 Chat on ChatGPT still works pass Chief on GPT 6.1 Sol: sent "Reply with the single word PONG16210.", answer PONG16210.
3 Restart ChatGPT (reverse) pass Restart ChatGPT: new Codex process, account/read answered after 8 s, state stays available.

Not checked: Windows, and the real Codex 0.172.0 network delay. The wrapper simulates the delay.

Risk and security impact

None for permissions, IPC, files or network. When Codex does not answer the account check at all, the first "did not answer in time" message comes after 20 s, not 5 s. The Codex initialize step can already take up to 180 s, so this adds no new kind of wait.

Model and harness: Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Sniezka1927 @claude
Wait longer for the Codex account check when Codex starts
19fae0e
For a ChatGPT login, Codex answers account/read only after a request
to the ChatGPT service. Codex itself gives that read 15 s, and keeps
the result only in the memory of its process. OpenBot waited only
5 s at start, and the limit did not grow after a timeout. Each retry
starts a new Codex process that does the same request again, so a
slow check (often on Windows, for example after an update) failed
each retry. After 3 failures OpenBot stopped until the user
refreshed the providers.

The start-time account check of Codex now waits 20 s, more than the
Codex limit. Other providers keep 5 s. A Codex that does not answer
still fails, now after 20 s, and the existing retries stay.

Fixes #16210

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Sniezka1927
Sniezka1927 requested review from NorbertBodziony and nrb-dev as code owners November 25, 2026 08:17
@github-actions

github-actions Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

NorbiAI Code Review

Reviewed commit: 19fae0ed89ce

Completed: 2026-11-25 08:16:46 UTC

Verdict

I found nothing that needs a fix in this PR.

Resolved Since Previous Review

None.

Findings

No actionable findings.

I checked these points:

  • Other account/read calls: #refreshAccount (src/backend/agent/provider-runtime.ts:3115) keeps its 5 s limit. It runs on a Codex process that is already running, and that process keeps the account result in memory. If the read times out there, OpenBot keeps the existing connection (lines 3156-3166), so nothing breaks.
  • Confined-agent start: this path (line 3270) uses the default request timeout, so the 5 s limit never applied there.
  • Outer limit on the start: no outer limit stops the start before the new 20 s read can finish.
  • Retry path: a timeout still counts as a start failure (lines 3790-3802), so START_FAILURE_LIMIT works as before.
  • Disk restore: providerCheckTimeoutMs still extends the wait during a disk restore.

Withdrawn Findings

None.

Review details
  • Files changed: 2
  • Lines: +10 / -1
  • Diff size: 1605 bytes
  • Reviewer: claude-opus-5-5, reasoning effort high
  • Scope: full PR
  • Time: 0m 23s, tokens: 248925
  • Claude Code 2.1.323
  • Status: success
  • Workflow run

A finding is wrong? Comment the concrete reason it is wrong — the guard it misses,
the line that already handles it — and include /norbiai review in the same comment.
The reviewer rechecks the finding against your argument and withdraws it if the argument
holds against the code.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Sniezka1927
Sniezka1927 merged commit 30f1ed9 into main Nov 25, 2026
26 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Sniezka1927
Sniezka1927 deleted the triage-16210 branch November 25, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@NorbertBodziony NorbertBodziony Awaiting requested review from NorbertBodziony NorbertBodziony is a code owner
@nrb-dev nrb-dev Awaiting requested review from nrb-dev nrb-dev is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Codex provider repeatedly times out while reading account

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Sniezka1927
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.