Desktop goal run continued for hours and consumed millions of tokens without a progress cutoff

Open 💬 1 comment Opened Jul 31, 2026 by rickgude
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Summary

A long-running Codex Desktop goal continued autonomously for several hours after progress had clearly diminished. The user observed roughly seven hours of wall-clock work. The goal telemetry at completion reported 8,719,248 tokens and 16,622 seconds (about 4h37m) inside the tracked goal alone.

What happened

  • The task involved debugging and testing a native C++ plugin with local build and GUI-runtime probes.
  • The agent repeatedly iterated through diagnosis, edits, builds, and runtime tests inside one broad goal.
  • It did not establish or enforce a time/token checkpoint.
  • It continued across context compactions and revisited hypotheses instead of stopping to report diminishing progress.
  • The long run did not produce a proportional improvement in quality; the user experienced it as slower and less reliable than prior behavior.
  • The final response exposed the unexpectedly large token count, confirming that the run had become excessive.

Expected behavior

For long local-agent goals, Codex Desktop should:

  1. Detect excessive token/time use or repeated low-progress loops.
  2. Pause at a bounded checkpoint and provide a concrete status report.
  3. Ask the user before continuing a materially longer investigation.
  4. Prefer a narrow reproducible probe over repeated broad rebuild/runtime cycles.
  5. Avoid silently continuing through multiple compactions when coherence is degrading.

Suggested safeguards

  • User-visible elapsed-time and token-budget warnings.
  • Automatic checkpointing after a configurable duration or repeated failed iterations.
  • A non-progress detector for repeated build/test loops.
  • A hard or soft goal budget that requires explicit user confirmation to extend.
  • A concise continuation summary that preserves the current hypothesis and prevents repeated work after compaction.

Environment

  • Codex Desktop on Windows
  • Local repository workflow with shell commands, native builds, and GUI-runtime tests

No proprietary project paths or source details are included here.

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 28 days ago

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

  • #36056
  • #35892
  • #35935
  • #35226
  • #35165

Powered by Codex Action