Skip to content

Codex VS Code: excessive token/usage consumption during long-running local process wait (polling causes full-context model rounds) + misleading de_DE Fast Mode copy #58066

Open

Description

@madmonk2k
Image

Summary
While waiting for a long-running local PowerShell regression script, Codex repeatedly triggered model rounds (wait / write_stdin) that appear to resend the full conversation context (~183k–185k input tokens per poll), causing a large drop in my 5‑hour usage window. Additionally, the German UI copy around Fast Mode is misleading (“Höheres Nutzungskontingent” / “erhöht die Nutzung deines Plans”), which can be interpreted as “more available quota”, despite Fast Mode consuming included subscription limits at a higher rate.

Environment
Product: Codex VS Code Extension

Extension version: 26.1007.21434

OS: Windows

Time zone: Europe/Berlin (UTC+1 on 2026-10-29)

Model: gpt-5.6-sol (GPT‑5.6 Sol)

Reasoning: Low

Speed: Fast ON at time of incident (later also reproduced UI messaging after disabling)

Incident details (usage spike while waiting)
Session ID: 01a1563c-bfcd-7da1-aa10-97a7117ad0fc

Start local process: 2026-10-29 11:30:16 (Europe/Berlin)

Command: powershell.exe -NoProfile -File tools/testing/Invoke-GawRegression.ps1

Observed behavior: between ~11:31 and ~11:41 Codex executed 17 repeated exec/write_stdin calls against the same process_session_id: 30040 + 2 wait calls.

Only a single Codex task was active; no parallel agents/chats.

Sanitized JSONL excerpt (11:30–11:42)
{"timestamp":"2026-10-29T11:30:05+01:00","kind":"token_count","input_tokens":183499,"cached_input_tokens":183296,"output_tokens":45,"total_tokens":183544}
{"timestamp":"2026-10-29T11:30:16+01:00","kind":"tool_call","tool":"exec","action":"regression_runner","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:30:47+01:00","kind":"token_count","input_tokens":183703,"cached_input_tokens":183424,"output_tokens":308,"total_tokens":184011}
{"timestamp":"2026-10-29T11:30:56+01:00","kind":"tool_call","tool":"wait","action":"wait","cell_id":"59"}
{"timestamp":"2026-10-29T11:30:56+01:00","kind":"token_count","input_tokens":184039,"cached_input_tokens":183936,"output_tokens":31,"total_tokens":184070}
{"timestamp":"2026-10-29T11:31:06+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:31:36+01:00","kind":"token_count","input_tokens":184098,"cached_input_tokens":183936,"output_tokens":66,"total_tokens":184164}
{"timestamp":"2026-10-29T11:31:47+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:32:17+01:00","kind":"token_count","input_tokens":184187,"cached_input_tokens":184064,"output_tokens":91,"total_tokens":184278}
{"timestamp":"2026-10-29T11:32:26+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:32:56+01:00","kind":"token_count","input_tokens":184301,"cached_input_tokens":184192,"output_tokens":45,"total_tokens":184346}
{"timestamp":"2026-10-29T11:33:04+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:33:34+01:00","kind":"token_count","input_tokens":184369,"cached_input_tokens":184192,"output_tokens":103,"total_tokens":184472}
{"timestamp":"2026-10-29T11:33:43+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:34:13+01:00","kind":"token_count","input_tokens":184495,"cached_input_tokens":184320,"output_tokens":45,"total_tokens":184540}
{"timestamp":"2026-10-29T11:34:24+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:34:54+01:00","kind":"token_count","input_tokens":184563,"cached_input_tokens":184448,"output_tokens":105,"total_tokens":184668}
{"timestamp":"2026-10-29T11:35:02+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:35:32+01:00","kind":"token_count","input_tokens":184691,"cached_input_tokens":184576,"output_tokens":45,"total_tokens":184736}
{"timestamp":"2026-10-29T11:35:40+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:36:10+01:00","kind":"token_count","input_tokens":184759,"cached_input_tokens":184576,"output_tokens":81,"total_tokens":184840}
{"timestamp":"2026-10-29T11:36:18+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:36:49+01:00","kind":"token_count","input_tokens":184863,"cached_input_tokens":184704,"output_tokens":45,"total_tokens":184908}
{"timestamp":"2026-10-29T11:37:00+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:37:30+01:00","kind":"token_count","input_tokens":184931,"cached_input_tokens":184832,"output_tokens":86,"total_tokens":185017}
{"timestamp":"2026-10-29T11:37:44+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:38:14+01:00","kind":"token_count","input_tokens":185040,"cached_input_tokens":184832,"output_tokens":45,"total_tokens":185085}
{"timestamp":"2026-10-29T11:38:25+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:38:44+01:00","kind":"token_count","input_tokens":185108,"cached_input_tokens":184960,"output_tokens":80,"total_tokens":185188}
{"timestamp":"2026-10-29T11:38:53+01:00","kind":"tool_call","tool":"wait","action":"wait","cell_id":"71"}
{"timestamp":"2026-10-29T11:38:55+01:00","kind":"token_count","input_tokens":185231,"cached_input_tokens":185088,"output_tokens":79,"total_tokens":185310}
{"timestamp":"2026-10-29T11:39:05+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:39:35+01:00","kind":"token_count","input_tokens":185333,"cached_input_tokens":185216,"output_tokens":74,"total_tokens":185407}
{"timestamp":"2026-10-29T11:39:44+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:40:14+01:00","kind":"token_count","input_tokens":185430,"cached_input_tokens":185216,"output_tokens":61,"total_tokens":185491}
{"timestamp":"2026-10-29T11:40:24+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:40:54+01:00","kind":"token_count","input_tokens":185514,"cached_input_tokens":185344,"output_tokens":73,"total_tokens":185587}
{"timestamp":"2026-10-29T11:41:02+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}
{"timestamp":"2026-10-29T11:41:32+01:00","kind":"token_count","input_tokens":185610,"cached_input_tokens":185472,"output_tokens":45,"total_tokens":185655}
{"timestamp":"2026-10-29T11:41:40+01:00","kind":"tool_call","tool":"exec","action":"write_stdin","process_session_id":"30040","yield_time_ms":30000}

Expected behavior
Waiting for a deterministic local process should not require repeated model rounds that resend large context.

Ideally, “wait for process completion” should be handled passively (OS/tool-level wait) and only call the model again once results are available (or after a user action), or at least avoid re-sending full context for polling.

Actual behavior
Each wait/write_stdin poll appears to trigger a new model round with ~183k–185k input tokens.

This contributes significantly to plan usage / rate limits (5-hour window), even though most inputs are cached.

Impact
~22 percentage-point drop in the 5-hour allowance during the local regression wait window; later reached “no Codex messages left”.

UI/Translation issue (de_DE Fast Mode messaging)
In German UI:

Tooltip wording for Fast toggle: “1,5-fache Geschwindigkeit” + “Höheres Nutzungskontingent”

Banner copy after disabling Fast: “Fast‑Modus aktivieren … Erhöht die Nutzung deines Plans”
These phrases can be interpreted as “more available quota / I can use my plan more”, not “higher consumption of existing quota”.

Documentation indicates Fast Mode uses included subscription limits at a higher rate:

https://learn.chatgpt.com/docs/agent-configuration/speed

(Also reflected in pricing/usage docs: Fast = 2.5× included subscription usage)

Suggested copy change (de_DE)
Replace ambiguous phrasing with something like:

“Verbraucht mehr von deinem Nutzungskontingent” / “Höherer Kontingentverbrauch”

Ideally show the multiplier (e.g., “Fast: 2,5× Verbrauch des Abo‑Kontingents” where applicable)

Attachments
Screenshot(s) showing the de_DE banner + tooltip (provided in this support thread)

Usage screenshots (provided in this support thread)

Activity

  1. added
    bug
    extension
    windows-os
    rate-limits
    tool-calls
    on Oct 29, 2026
  2. github-actions commented on Oct 29, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. Zyph3rKeaton commented on Nov 2, 2026

    @Zyph3rKeaton

    An immediate workaround to test is running that deterministic regression script directly in a terminal while leaving the agent paused, then supplying its final exit code and a bounded failure excerpt once it finishes. Keep the full log locally, with the commit and command recorded. Comparing that with your polling trace would isolate model-driven waiting from the test itself, while preserving the same checks; it would not establish a particular subscription-credit refund.

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

    bugextensionrate-limitstool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions