Context Pollution When Reverting a Task
What version of Codex is running?
0.5.39
What subscription do you have?
Context Pollution When Reverting a Task
Which model were you using?
codex
What platform is your computer?
mac + vscode + codex.ide.ext
What issue are you seeing?
Description:
When reverting a task, the context does not properly clear the data from the previously reverted task, which leads to context pollution. This issue causes incorrect behavior or unexpected results due to lingering context data from previous tasks.
Steps to Reproduce:
Create and run a task using Codex.
Revert a previously executed task.
Observe that the context from the previous task is not cleared, leading to polluted context data.
The lingering context data affects the execution of the current task.
Expected Behavior:
When reverting a task, the context should be properly reset or cleared to avoid any contamination from previous tasks.
Actual Behavior:
The context is not cleared when reverting a task, causing context pollution and potentially impacting the task's execution.
Environment:
Codex version: [Include the version you are using]
Operating system: [Include your operating system details]
Python version: [Include the Python version used, if applicable]
Additional Information:
If possible, a potential fix could involve ensuring that the context is explicitly cleared when reverting a task or creating a new task. This would prevent any remnants from a previous task from interfering with subsequent ones.
What steps can reproduce the bug?
revert task
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗