codex - 💡(How to fix) Fix Intermittent mismatch between displayed collaboration mode and actual model mode [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18954Fetched 2026-04-23 07:32:48
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Root Cause

Creates confusion about whether execution is allowed Makes mode switching unreliable Causes repeated user friction because visible state and actual behavior diverge Frequency Happens repeatedly; not a one-off incident.

RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.417.41555 (1858)

What subscription do you have?

ChatGPT plus

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

Description I encountered a bug where the collaboration mode shown in the UI did not match the mode the model was actually operating under.

In the same thread, the UI appeared to indicate one mode, but the model behaved according to a different mode and enforced the wrong set of constraints. This affected whether the model would execute actions or only produce plans/explanations.

Later in the same thread, the mode behavior returned to normal and the UI and model appeared to be in sync again.

Observed behavior

The UI showed one collaboration mode The model behaved as if it was in a different mode This caused a mismatch in allowed behavior, especially around execution vs planning The issue later resolved within the same thread without a clear user-visible reason Expected behavior The collaboration mode shown in the UI should always match the mode the model is actually following.

Actual behavior The displayed mode and the model’s effective mode became inconsistent.

Impact This makes mode switching unreliable and confusing. It becomes unclear whether the assistant is actually allowed to execute actions or is still constrained by a previous mode.

Frequency Intermittent. This has happened multiple times, but I do not currently have reliable reproduction steps.

Additional note This bug happened in the current thread, but the thread later returned to normal. That suggests the problem may be related to mode-state synchronization or propagation rather than a permanent UI display issue.

Possible cause A state synchronization issue between the UI layer and the model’s active conversation context.

What steps can reproduce the bug?

Steps to Reproduce

Start a conversation in Plan Mode. Switch the UI to Default mode. Ask the model to perform an action that should be allowed in Default mode. Observe that the model still refuses to execute and says it is in Plan Mode.

What is the expected behavior?

Expected Result When the UI shows Default mode, the model should behave according to Default mode.

Actual Result The model continues following Plan Mode constraints even though the UI shows Default mode.

Impact

Creates confusion about whether execution is allowed Makes mode switching unreliable Causes repeated user friction because visible state and actual behavior diverge Frequency Happens repeatedly; not a one-off incident.

Possible Root Cause Mode changes appear to update in the UI layer but do not reliably propagate to the model’s active conversation context.

Attachments

screenshot of the UI showing the wrong mode conversation snippet where the model explicitly says it is still in another mode

Additional information

No response

extent analysis

TL;DR

The issue can be addressed by ensuring that mode changes are properly synchronized between the UI layer and the model's active conversation context.

Guidance

  • Verify that the mode change event is correctly propagated from the UI layer to the model's conversation context.
  • Check the code responsible for updating the model's mode and ensure it is correctly handling mode transitions.
  • Investigate the possibility of a race condition or asynchronous update issue that may cause the UI and model modes to become desynchronized.
  • Review the conversation snippet and screenshot attachments to identify any patterns or clues that may help reproduce the issue.

Example

No specific code snippet can be provided without more information about the underlying implementation, but a potential area to investigate could involve ensuring that the model's mode is updated synchronously with the UI mode change, for example:

# Pseudo-code example, actual implementation may vary
def update_mode(new_mode):
    # Update UI mode
    ui_mode = new_mode
    
    # Ensure model mode is updated synchronously
    model_mode = new_mode
    model.update_mode(model_mode)

Notes

The issue appears to be intermittent and related to mode-state synchronization, making it challenging to provide a definitive fix without more information about the underlying implementation.

Recommendation

Apply a workaround to ensure mode changes are properly synchronized between the UI layer and the model's conversation context, as the root cause is likely related to this synchronization issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING