Skip to content

[Bug]: context window size not updated per provider/model #27394

@paul-tian

Description

@paul-tian

Summary

Right now context window size not updated per provider/model, and will lead to some confusion.

Steps to reproduce

switch to openai/gpt-codex-5.3 and back openai-codex/gpt-codex-5.3

Expected behavior

The context window value by "/status" command should change with the selected model accordingly, i.e. 400k for openai/gpt-codex-5.3 and 272k for openai-codex/gpt-codex-5.3.

Actual behavior

Now will only check for gpt-codex-5.3 under openai-codex and shows 272k.

OpenClaw version

2026.2.25

Operating system

macOS 26.3

Install method

curl -fsSL https://openclaw.ai/install.sh | bash

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions