Skip to content

[Bug] Switching from Luna Max to GPT-6-astra can sometimes cause abnormally high token consumption #46115

Open

Description

@CCCCY-ci

What version of Codex CLI is running?

codex-cli 0.154.0

What subscription do you have?

business standard

Which model were you using?

gpt-5.6-luna-max

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

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

PowerShell 7.6.6

Codex doctor report

What issue are you seeing?

When switching models within an existing Codex session, I have noticed inconsistent token consumption after switching from Luna Max to GPT-6.

I understand that GPT-6 normally consumes tokens faster than Luna Max, so some increase is expected.

However, there appear to be two very different behaviors:

In some sessions, switching from Luna Max to GPT-6 results in the expected increase in token consumption.
In other sessions, after the exact same type of model switch, token consumption becomes abnormally fast, far beyond the normal GPT-6 usage rate I observe in other sessions.

The abnormal behavior appears intermittently. It does not happen every time the model is switched.

This makes it look less like the normal difference in token cost between the two models and more like something related to model switching, context handling, prompt-cache reuse, compaction, or usage accounting.

What steps can reproduce the bug?

  1. Start or continue a Codex session using Luna Max.
  2. Work normally for some time.
  3. Switch the existing session from Luna Max to GPT-6.
  4. Continue working with GPT-6.
  5. Observe token / usage consumption.
  6. Repeat this across multiple sessions.

Sometimes GPT-6 usage is normal after the switch.

Other times, usage starts decreasing significantly faster than normal despite a comparable workload.

What is the expected behavior?

Switching from Luna Max to GPT-6 should result in reasonably consistent token consumption for comparable workloads.

GPT-6 may naturally consume more tokens than Luna Max, but switching models should not occasionally cause a very large unexplained increase in consumption.

Additional information

There are several existing issues related to token consumption and model switching, including:

#19877 — discusses prompt-cache continuity when switching models in an existing session.
#44462 — reports unexpectedly high context/token growth with GPT-6.
#43222 — reports disproportionately fast GPT-6 usage/quota depletion.

However, the behavior I am reporting is specifically about the intermittent nature of abnormal consumption after switching models: the same Luna Max → GPT-6 transition can sometimes behave normally and sometimes consume tokens dramatically faster.

It may be useful to investigate whether model switching can occasionally cause:

loss of prompt-cache reuse,
duplicated/replayed context,
unexpected context expansion,
additional compaction/reconstruction requests,
stale model-specific session state,
or incorrect usage accounting.

If there is local telemetry that would help diagnose this, I can provide session/thread logs from both a normal switch and an abnormal switch for comparison.

Activity

  1. added
    bug
    on Sep 17, 2026
  2. added
    CLI
    windows-os
    rate-limits
    on Sep 17, 2026
  3. AndreaPi commented on Sep 17, 2026

    @AndreaPi

    Just a note that switching models in-session is in general a bad idea and not just because Astra consumes more tokens than Luna, but because model switching:

    1. invalidates the cache
    2. discards thinking tokens, so now Astra has to make sense of your conversation but it cannot see the thought tokens, and that makes its life harder, so either the results are subpar or it needs to work for longer in order to get the same results

    See here for background https://www.reddit.com/r/codex/comments/1vvl6e8/should_i_avoid_changing_models_midconversation/

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

    CLIbugrate-limitswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions