IDEA intellij - copilot cannot see the output in terminal of command it executed #160060
Replies: 10 comments 4 replies
-
|
Hi @dantuch, Thank you for reporting this issue with GitHub Copilot in agent mode not being able to reliably see terminal output in IntelliJ IDEA. This is a known limitation in the current implementation of Copilot's agent mode for JetBrains IDEs. Issue DetailsFrom your report, you're experiencing:
Technical ExplanationThis behavior occurs due to how Copilot agent mode interfaces with the JetBrains terminal. When Copilot executes a command in the terminal:
The intermittent nature of the issue (sometimes working, sometimes not) is likely related to timing and buffering differences depending on the specific terminal session, command type, and output volume. Current WorkaroundsUntil this is addressed in a future update, here are some effective workarounds:
Thank you for your patience and for helping us improve GitHub Copilot! |
Beta Was this translation helpful? Give feedback.
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
I've had this issue today on Windows. Changing the terminal engine to "Classic" and the shell to "CMD.exe" fixed things for me. |
Beta Was this translation helpful? Give feedback.
-
|
I have same problem too. I tried it with engine "Classic" and powershell 7, and it worked fine. |
Beta Was this translation helpful? Give feedback.
-
|
In VS Code (in the context of Java) and running tests I generally tell copilot to "use test runner for java to run tests." Then it can read the results of tests. Wonder what the alternative is for IntelliJ. |
Beta Was this translation helpful? Give feedback.
-
|
Does anyone have a workaround for macos? Not very keen on using powershell for the time being |
Beta Was this translation helpful? Give feedback.
-
|
Solution: Fix Copilot Agent's Terminal Output Issue on macOS Solution: Step-by-Step Instructions In the search bar, type Terminal: Select Default Profile. From the list of available profiles, select "bash". Close and reopen any active integrated terminals to apply the change. After following these steps, the next time you use the Copilot Agent, it will use the bash shell, which should allow it to correctly read command output. Why This Works: |
Beta Was this translation helpful? Give feedback.
-
|
It seems in IntelliJ IDEA I can trigger this bug by actively using the Copilot terminal session for manual commands myself. I can "fix" the issue by closing the session and let Agent open a "clean" new one. |
Beta Was this translation helpful? Give feedback.
-
|
Having the problem with bash under wsl-linux-Ubuntu-bash |
Beta Was this translation helpful? Give feedback.
-
|
Sorry @Akash1134 and Intellij - but the suggestions (pressing enter after a cmd, or changing theme to zsh) are either degrading the capabilities in agent mode or restrict the dev from using its own environment. Please fix this. This is a paid product and should support working with the most common shells and coding assitants. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Copilot Feature Area
Copilot Agent Mode
Body
I made copilot try a basic:
echo "This is a test output to see if I can view it"and it didnt see the output in my terminal - is that normal?
"I see the issue now. It appears that while I'm executing commands in the terminal, I'm not able to see their actual output content. This applies not just to Spectral but to basic commands like echo as well. The function_results are showing me that commands were executed, but the actual output text isn't being displayed within the Output: section.
This explains why I've been having trouble verifying the Spectral validation results - I can confirm that commands are running but I can't see their actual textual output in the terminal.
Given this limitation, let's modify our approach. Instead of relying on direct terminal output visibility, we can use the read_file function to check the contents of the validation output "
copilot: 1.5.45.10445-243-nightly
IDEA: Build #IU-251.25410.129, built on May 9, 2025
tested on Mac: 15.0.1 (24A348)
btw. my copilot in MOST cases doesnt see the terminal output - but sometimes it does see it - so it seems not deterministic to me.
Beta Was this translation helpful? Give feedback.
All reactions