[All guides](https://openbot.run/guides)

# OpenCode and Codex Errors: What They Mean and How to Fix Them

Fix common coding agent errors: response still truncated, CERT_NOT_YET_VALID, paginated_threads is not supported yet, and workspace routing discovery unauthorized (401) or failed.

Nov 27, 2026 Norbert Bodziony

Coding agents such as OpenCode and Codex sometimes stop with a short technical error. The text comes from the agent's own program, so it often does not tell you what to do next. This guide explains five errors that people search for, what causes each one, and how to fix it.

Newer OpenBot versions show a clear message for most of these errors. If you still see the raw text, update OpenBot first. On a joined server, the server must also be on the new version.

## Quick reference

| Error text | Agent | Cause | Fix |
| --- | --- | --- | --- |
| `Response still truncated after two output token limit continuations` | OpenCode | The reply was longer than the model's output limit three times. | Choose a lower effort or another model, or set a larger Max output. |
| `CERT_NOT_YET_VALID: certificate is not yet valid` | All | The date or time on the computer is wrong. | Correct the date and time. |
| `paginated_threads is not supported yet` | Codex (ChatGPT) | The new session has no saved turn yet. | Nothing. You can ignore it. |
| `workspace routing discovery unauthorized (401)` | Codex (ChatGPT) | Your ChatGPT sign-in expired. | Sign in to ChatGPT again. |
| `workspace routing discovery failed` | Codex (ChatGPT) | Codex could not connect to its service. | Check the network, then try again. |

## "Response still truncated after two output token limit continuations"

The full error is `Internal error: Response still truncated after two output token limit continuations`. Each model has a maximum length for one reply, the output limit. When the reply reaches it, OpenCode asks the model to continue. After two continuations, OpenCode stops the turn.

This usually happens with a very long answer, or with a high reasoning effort that uses most of the limit.

1. Choose a lower effort for the agent, or choose another model.
2. If you use a custom endpoint, open Settings, then Custom provider. Click Edit on the endpoint and set a larger Max output for this model. Use a value that the model supports.
3. Send your message again. For a large task, ask for the result in smaller parts or in a file.

## "CERT_NOT_YET_VALID: certificate is not yet valid"

The full error is `Internal error: CERT_NOT_YET_VALID: certificate is not yet valid`. Each secure connection uses a certificate with a start date. When the clock of your computer is earlier than that date, the connection fails. The certificate is correct; the clock is wrong.

1. Open the date and time settings of the computer that runs OpenBot.
2. Turn on the automatic date and time, or set the correct date, time and time zone.
3. Send your message again.

On a server, check the clock on the server too. On Linux, `timedatectl` shows the time and whether time sync is on.

## "paginated_threads is not supported yet"

This error can show when a ChatGPT (Codex) agent starts a new session, for example after it moves to a backup model. Codex cannot read a session before it saves the first turn. The error is harmless: your agent, its files and its history are safe.

You do not need to do anything. Since version 0.53.0, OpenBot does not show this as an error. If you still see it, update OpenBot.

## "workspace routing discovery unauthorized (401)"

Codex shows this error when your ChatGPT sign-in has expired. The 401 code means that the service did not accept your sign-in.

1. Open the model picker of the agent, or the ChatGPT provider in Settings.
2. Click the sign-in action and sign in to ChatGPT again.
3. Send your message again. The agent keeps its workspace and conversation.

## "workspace routing discovery failed"

This error, or "workspace routing discovery timed out", means that Codex could not connect to its service when it started. The usual cause is a network that is not ready yet, a VPN, a proxy or a firewall. On Windows, some root certificates that Codex cannot read can also cause it.

1. Check that the computer is online and that it can open chatgpt.com.
2. Update OpenBot. Newer versions start ChatGPT again after a few seconds by themselves.
3. If the error stays, turn off the VPN or proxy for a test, then send your message again.

## When the error is not in this list

Read the full message in the chat. OpenBot tells you when the cause is your sign-in, a usage limit or the provider service. If an agent cannot continue with one provider, you can choose another provider or a backup model for it. The agent keeps its workspace, its conversation and its identity. To learn more about providers and models, read [OpenBot 101](https://openbot.run/guides/openbot-101).

## Frequently asked questions

### Do these errors delete my work?

No. They stop one turn. The agent's files and conversation stay on the computer that runs OpenBot, and you can send the message again.

### Why does the error start with "Internal error"?

"Internal error" is the general error type of the protocol that agent programs use to talk to OpenBot. The text after it gives the real cause, as in the errors above.

### Where can I see what changed in each version?

The [changelog](https://openbot.run/changelog) lists the fixes and the new messages of each OpenBot release.
