[VS Code] Closing Duo's terminal prevents tool runs until restart
MR: fix: Re-create workflow terminal when closed (!2788 - merged)
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: Put your extension version here
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: Put your VS Code version here
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: Put your GitLab version here, or say "happens on
gitlab.com"
- GitLab version: Put your GitLab version here, or say "happens on
Summary
Closing Duo's terminal prevents tool runs until restart
Steps to reproduce
When Duo Agentic Chat runs commands, it does it in a terminal window that pops up. That's really nice for transparency. But if I close that terminal then it will just hang when trying to run tools again.
What is the current bug behavior?
I just get stuck on the approve tool flow, clicking on the blue button but nothing happens. However if I restart VS Code and open that chat from history, I can approve the tool and it will open a fresh terminal.
What is the expected correct behavior?
It would be nice if Agentic Chat could recover by opening a new terminal if it's closed.
Relevant logs and/or screenshots
Approving will continue to run and requires user intervention.
Proposed Solution
When the terminal is closed, the next tool execution should either:
- Create a new terminal automatically OR
- Detect the closed terminal and clean up, then create a fresh one
