-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
[Bug]: Spurious "Something went wrong" and Codex app-server failures in large Telegram direct sessions #87299
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
We observed two failures in an OpenClaw Telegram direct session using the OpenAI Codex runtime. At first sight they looked like aggressive/unsafe compaction causing context loss, but the logs point to two different failure modes:
This happened on OpenClaw `2026.5.22 (a374c3a)`.
Steps to reproduce
Environment
Incident 1 - Codex app-server closed before reply
Local time: `2026-05-26 22:44:27 Europe/Paris`
Session:
User prompt before the failure:
```
C'est laborieux la synchro iCloud
```
Trajectory shows:
```
session.ended status="error"
promptError="codex app-server client is closed"
```
Gateway log around the same timestamp shows:
```
Codex agent harness failed; not falling back to embedded PI backend
error="codex app-server client is closed"
lane task error: lane=main ... error="Error: codex app-server client is closed"
lane task error: lane=session: ... error="Error: codex app-server client is closed"
Embedded agent failed before reply: codex app-server client is closed
```
There was no assistant reply for that turn. The user then used `/new` at about `22:50:35`, and OpenClaw saved the session context.
Incident 2 - visible error after successful Codex run
Local time: `2026-05-26 23:53:09 Europe/Paris`
Session:
The Codex rollout completed successfully at about `23:52:15` local time:
```
task_complete
last_token_usage.total_tokens=209473
model_context_window=258400
```
The assistant reply was successfully produced.
Then, without a new user message and without a transcript compaction event at that moment, OpenClaw appended a visible assistant message at `23:53:09`:
```
Something went wrong while processing your request. Please try again.
```
That message appears as:
```
provider/model: openclaw / delivery-mirror
usage: 0
```
The user then used `/new` at about `23:54:59`.
Expected behavior
Actual behavior
OpenClaw version
2026.5.22
Operating system
macOS26.4
Install method
npm global
Model
gpt5.5
Provider / routing chain
openclaw - OpenAI Codex
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response