Loss of Intermediate Steps on Interrupt in VS Extension
Resolved 💬 3 comments Opened Sep 9, 2025 by dpolivaev Closed Sep 10, 2025
💡 Likely answer: A maintainer (gpeal, contributor)
responded on this thread — see the highlighted reply below.
What version of the VS Code extension are you using?
_No response_
Which IDE are you using?
Cursor
What platform is your computer?
Darwin 23.6.0 arm64 arm
What steps can reproduce the bug?
- Start a long-running agent task in the Codex VS extension.
- Interrupt/cancel the task before it finishes.
- Try to resume by sending “continue”.
What is the expected behavior?
- Intermediate reasoning steps (actions and thoughts after the last user message) should remain visible after interruption.
- Resuming with “continue” should take those steps into account instead of starting from scratch.
What do you see instead?
- All intermediate steps are shown in the "cancelled" group.
- Resuming causes the agent to ignore its prior thoughts and actions, starting a new reasoning chain.
<img width="414" height="630" alt="Image" src="https://github.com/user-attachments/assets/34ec8edc-03a7-4849-a904-d02f6e7fafe9" />
Additional information
In Codex-CLI, intermediate steps remain visible, and I can interrupt, adjust, and resume without losing context.
The lack of this functionality in the VS extension makes it significantly less useful for iterative work.
3 Comments
Can you elaborate what you mean? The behavior should be the same, in theory, at least.
Thanks for clarifying. I checked again and confirmed the model doesn’t lose its internal context after interruption. It still knows which files it has read and which tools it has used.
The issue turned out to be about the way this state is presented to the user:
Because of this presentation (everything under “cancelled,” no summary, and duplicated blocks), I initially assumed the agent had lost all its recent work, while in fact it hadn’t.
Could you adjust the UI so that interrupted steps are shown as stopped rather than cancelled and provide a summary of completed work after stop? That would remove the ambiguity, increase confidence, and make the progress easier to follow.
@dpolivaev We can look into the copy here. As far as all of the sections. That is the model's chain of thought so don't worry too much about it duplicating work and expect things like that to improve with the models over time.