Skip to content

First message in fresh session consumes ~100k input tokens immediatly, no matter how trivial the input #18526

@afolkest

Description

@afolkest

What version of Codex CLI is running?

0.121.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4 xhigh and gpt-5.3-codex-spark high

What platform is your computer?

Darwin 24.6.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

iTerm2

What issue are you seeing?

Whenever I open a fresh Codex session and send a simple message, it consumes about 102k-105k tokens immediately.

What steps can reproduce the bug?

Input:
codex exec "Say hello world"

Output:

OpenAI Codex v0.121.0 (research preview)
--------
workdir: <redacted>
model: gpt-5.4
provider: openai
approval: never
sandbox: workspace-write [workdir, /tmp, $TMPDIR, /Users/<redacted>/.codex/memories]
reasoning effort: xhigh
reasoning summaries: none
session id: 019da3a1-d1d5-7a22-950b-3839f72b8e20
--------
user
Say hello world
codex
hello world
tokens used
105,156
Image

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexecIssues related to the `codex exec` subcommandrate-limitsIssues related to rate limits, quotas, and token usage reporting

    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