Skip to content

[Bug]: Severe slowdown, startup delay, and near-unusable responsiveness after upgrading from 2026.4.2 to 2026.4.26 on Codex setup #73298

Closed as not planned

Description

@ndj888

[Bug]: Severe slowdown, startup delay, and near-unusable responsiveness after upgrading from 2026.4.2 to 2026.4.26 on Codex setup

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After upgrading this Debian host from OpenClaw 2026.4.2 to 2026.4.26 in a Codex-based setup, startup became much slower and the system became laggy / nearly unusable; rolling back to 2026.4.2 restored normal behavior.

Steps to reproduce

  1. Start from a working OpenClaw 2026.4.2 installation on Debian using a Codex-based setup.
  2. Upgrade to OpenClaw 2026.4.26.
  3. Use the system normally after upgrade and observe startup time and interactive responsiveness.
  4. Observe severe slowness / lag / near-unusable behavior compared with 2026.4.2.
  5. Roll back to 2026.4.2 and observe that normal behavior returns.

Expected behavior

On the same host and workflow, OpenClaw should remain reasonably responsive after upgrade, and startup time should stay close enough to the last known good version that normal use is still practical. In 2026.4.2 on this host, behavior was normal.

Actual behavior

After upgrading to 2026.4.26, startup became slow and the system became laggy / slow enough to be described as nearly unusable. After rolling back to 2026.4.2, normal behavior returned.

Observed related evidence collected during follow-up inspection:

  • openclaw status on the affected environment showed the current app back on 2026.4.2, with Update available · npm update 2026.4.26.
  • Logs contained repeated warnings that the config had last been written by a newer OpenClaw version: Config was last written by a newer OpenClaw (2026.4.26); current version is 2026.4.2.
  • Logs during the affected period included Codex model resolution / fallback issues such as:
    • startup model warmup failed for openai-codex/gpt-5.5: Error: Unknown model: openai-codex/gpt-5.5
    • Model "openai-codex/gpt-5.5" not found. Fell back to "openrouter/openai/gpt-4o-mini".
  • Logs also included repeated Codex auth refresh errors:
    • Token refresh failed: 401
    • code": "refresh_token_reused"
  • Logs also showed timeouts / stuck behavior during the affected window, including:
    • gateway timeout after 30000ms
    • handshake timeout
    • stuck session

OpenClaw version

Last known good: 2026.4.2
First known bad: 2026.4.26

Operating system

Debian Linux 6.12.63+deb13-amd64 (x86_64)

Install method

npm global

Model

openai-codex/gpt-5.4 in the currently restored config; affected upgrade investigation also captured attempted resolution of openai-codex/gpt-5.5 during the bad state.

Provider / routing chain

openclaw -> openai-codex (with observed fallback to openrouter/openai/gpt-4o-mini during the bad state)

Additional provider/model setup details

This host is used with a Codex-based setup. During follow-up inspection after rollback, the restored config showed agents.defaults.model.primary = openai-codex/gpt-5.4 and plugins brave, deepseek, memory-lancedb, nextcloud-talk, openai, openrouter.

During the affected period, logs showed attempted startup warmup for openai-codex/gpt-5.5, which then failed as unknown and fell back to openrouter/openai/gpt-4o-mini. The same logs also showed repeated Codex refresh-token failures (refresh_token_reused).

I cannot prove from the available evidence whether the root cause is:

  • a general 2026.4.26 regression,
  • a Codex-specific regression/path interaction,
  • config migration incompatibility,
  • or a combination of version/config/model-auth interactions.

Logs, screenshots, and evidence

openclaw status
- Gateway: app 2026.4.2 linux 6.12.63+deb13-amd64
- Update available: npm update 2026.4.26

Representative logs:
- Config was last written by a newer OpenClaw (2026.4.26); current version is 2026.4.2.
- startup model warmup failed for openai-codex/gpt-5.5: Error: Unknown model: openai-codex/gpt-5.5
- Model "openai-codex/gpt-5.5" not found. Fell back to "openrouter/openai/gpt-4o-mini".
- Token refresh failed: 401
- code": "refresh_token_reused"
- gateway timeout after 30000ms
- handshake timeout
- stuck session

Impact and severity

Affected: this Debian host running a Codex-based OpenClaw setup
Severity: High (normal use became nearly impractical after upgrade)
Frequency: Observed after upgrading to 2026.4.26; rollback to 2026.4.2 restored normal behavior
Consequence: Severe slowdown, slow startup, and degraded interactive usability until rollback

Additional information

Last known good version: 2026.4.2
First known bad version: 2026.4.26
Observed workaround: roll back to 2026.4.2

Release-note review did not show an explicit known regression entry for this exact symptom. Based on official release-note review plus local evidence, the most plausible areas were Codex runtime/model-path changes, config migration/version skew, diagnostics/runtime overhead, or related startup-path interactions; however, that part is inference rather than directly proven by the attached evidence.

Activity

  1. clawsweeper commented on Apr 30, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

    Close as duplicate/superseded. The remaining unresolved work is already tracked by the open broad upgrade-latency tracker #73501; this issue adds useful Debian npm-global Codex rollback, model-resolution, OAuth, gateway-timeout, and stuck-session evidence, but it does not establish a separate root cause that should stay split from the canonical performance regression cluster.

    So I’m closing this here and keeping the remaining discussion on the canonical linked item.

    Review details

    Best possible solution:

    Keep #73501 as the single canonical upgrade-latency tracker, preserve this issue's Debian/Codex evidence there, and drive the remaining work through current-main timing by phase: startup prewarm, model lookup, OAuth refresh, runtime-deps staging, channel handshake, system-prompt compilation, and stream setup.

    Do we have a high-confidence way to reproduce the issue?

    Yes for the historical regression: the report gives a same-host upgrade and rollback path from 2026.4.2 to 2026.4.26 and back. There is still no high-confidence reproduction or non-reproduction against current main, which is why the canonical tracker should stay open.

    Is this the best way to solve the issue?

    Yes. Closing this satellite while keeping #73501 open is the best maintenance path because the remaining work is shared bottleneck isolation, not a distinct Debian/Codex file-level fix proven by this report alone.

    Security review:

    Security review: This is non-PR performance issue triage with no proposed patch or concrete security-sensitive report to review.

    What I checked:

    Likely related people:

    • steipete: Recent history ties this handle to embedded-run stage diagnostics, runtime-deps hot-path work, and OpenAI Codex model-resolution fixes adjacent to the reported slowdown. (role: recent maintainer and broad runtime/Codex owner; confidence: high; commits: 20e21173715e, 3c4851037b6c, 79066f5cab85; files: src/agents/pi-embedded-runner/run/attempt.ts, src/agents/pi-embedded-runner/run/attempt-stage-timing.ts, src/plugins/bundled-runtime-deps.ts)
    • vincentkoc: Recent commits and issue timeline mentions connect this handle to bundled runtime-deps pruning/staging work and the same startup/performance cluster. (role: runtime-deps and startup adjacent maintainer; confidence: high; commits: 7f58e8973106, 465d1b0d4ba3, d49ebe7bdee3; files: src/plugins/bundled-runtime-deps.ts, src/plugins/bundled-runtime-deps-materialization.ts, src/gateway/server-startup-plugins.ts)
    • keshavbotagent: Authored the current-main repair that preserves existing wrapped Codex streams so runtime OAuth injection is not bypassed, directly adjacent to this issue's Codex 401/refresh-token symptoms. (role: Codex OAuth transport repair author; confidence: medium; commits: 388019f5b693; files: src/agents/pi-embedded-runner/openai-stream-wrappers.ts, src/agents/pi-embedded-runner/openai-stream-wrappers.test.ts, src/agents/openai-transport-stream.ts)

    Codex review notes: model gpt-5.5, reasoning high; reviewed against b6daa922d61c.

  2. locked as resolved and limited conversation to collaborators on May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions