Repository navigation
[Bug]: clear command does not reset context for codex #7402
Description
Activity
- addedbugSomething is broken or behaving incorrectly.Something is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.Issue needs maintainer review and initial categorization.
on Aug 18, 2026 - changed the title
[-][Bug]: reset command does not reset context for codex[/-][+][Bug]: clear command does not reset context for codex[/+]on Aug 24, 2026 Independent reproduction on T3 Code
0.0.33, with the server running on Linux and the command submitted from the mobile client. This suggests the issue is not limited to macOS or the web UI.The persisted orchestration event sequence makes the failure mode fairly explicit:
/clearis stored as an ordinarythread.message-sentuser message.- T3 immediately emits an ordinary
thread.turn-start-requested. - The same T3 thread and Codex provider session continue; there is no clear/new-session lifecycle event.
- The following Codex turn reported about 63.8k input tokens (62.2k cached), and the assistant could still answer from messages sent before
/clear.
The especially confusing part is that the assistant may respond as though the command worked, because it receives
/clearas natural-language input while retaining the old context. A safe interim behavior would be to reject or visibly mark unsupported reset commands rather than send them to the model as ordinary prompts.Current workaround is still to create a new T3 thread.
Reproduced with the Cursor provider (Claude model) on desktop, so it is not Codex-specific. Same failure mode:
/clear(and/compress, which is not a command anywhere) reaches the agent as ordinary user text, the agent improvises a "cleared" or "compressed" reply, and the thread carries on with the full context.Filed the feature side as an Ideas discussion — a native
/clearthat resets the provider session in place, and until then rejecting unsupported reset commands instead of forwarding them: #11091w00dy1981 commented
on Oct 7, 2026 More actionsAdditional reproduction / workflow impact (8 October 2026):
I use T3 Code to keep a complete task lifecycle in one thread, from Opus-heavy discovery through implementation with GPT-6 Sol, PR review and finally settling the thread once the PR is accepted.
After an Opus discovery session, I select
/clearfrom the suggested supported slash commands and submit it. The context does not appear to reset. When I switch the same thread from Opus to GPT-6 Sol, Sol still receives a nonzero amount of the preceding Opus context.What I want is a fresh provider/model context within the existing T3 thread, while keeping the visible thread history, worktree/branch and PR association, so I can track one task in one place and settle it at the end. Starting a separate T3 thread defeats that workflow.
Expected:
/cleargenuinely resets the model context for subsequent turns (including across model/provider switches).- The existing T3 thread, its visible history and task tracking remain intact.
- T3 should not advertise or silently forward
/clearas a supported command if it cannot perform that reset.
This is an observed behaviour report, not a claim about the precise internal cause. Related feature discussion: #11091.
Before submitting
Area
apps/web
Steps to reproduce
When command is invoked, context is not cleared even though Codex says so. When you ask about what's in context, it will tell you the remaining context before the reset.
Expected behavior
Actual behavior
Impact
Major degradation or frequent failure
Version or commit
0.0.33
Environment
macOS
Logs or stack traces
Screenshots, recordings, or supporting files
Screenshot 2026-08-18 at 15.41.50.jpeg
Workaround
Open a new thread instead of clearing current conversation