[Bug] Chat hangs after running a terminal command in Agent mode · Issue #375 · microsoft/copilot-for-eclipse · GitHub
Skip to content

[Bug] Chat hangs after running a terminal command in Agent mode #375

Closed

Description

@briane80

Environment

  • OS: Windows 11
  • Eclipse Version: 2026-06 (4.40.0)
  • Plugin Version: 0.20.0.202607100822

Describe the bug
Chat hangs after running a terminal command in Agent mode. After the terminal command finishes copilot does not continue with the agent job.

To Reproduce
Steps to reproduce the behavior:
Run a prompt in agent mode that requires a terminal command such as mvn or git to be executed.
Command runs in a terminal window in eclipse and finishes (i.e. the PS> line appears after the command execution)
In the copilot chat window the text has Running run_in_terminal tool but than hangs (see screenshot)

Expected behavior
Prompt should continue

Screenshots

Image

Activity

  1. briane80 commented on Jul 28, 2026

    @briane80
    Author

    Happening every time for me - here i got it to run mvn -version and it has hung.

    Image Image
  2. briane80 commented on Jul 28, 2026

    @briane80
    Author

    Also hung with a simple echo hello command

    Image Image
  3. briane80 commented on Jul 28, 2026

    @briane80
    Author

    For context agent mode terminal commands worked ok previously for me - probably in version 0.19. I haven't used agent mode for a long time but tried today and started getting this hung chat issue.

  4. xinyi-gong commented on Jul 29, 2026

    @xinyi-gong
    Member

    briane80 Thank you for reporting this issue and for providing the screenshots.

    Could you please share the Eclipse log file (/.metadata/.log) after reproducing the issue, or any relevant entries from the Error Log view?

    I noticed that the PowerShell prompt shown in the terminal is PS> rather than the usual prompt containing the current path, such as PS C:...>. PowerShell may display PS> as a fallback when its prompt function fails. Since Copilot relies on PowerShell prompt integration to detect when a command has completed, this could explain why the command finishes but the agent continues waiting.

    One possibility is that PowerShell is running in a restricted environment, such as ConstrainedLanguage mode. Could you run the following command in the same terminal session opened by Copilot and share the output?

    $ExecutionContext.SessionState.LanguageMode

    This will help us confirm whether the PowerShell environment is preventing the prompt integration from running correctly.

  5. briane80 commented on Jul 29, 2026

    @briane80
    Author

    Thanks for the reply and upoming fix - I see you were able to replicate. I can confirm I am running in ConstraintedLanguage mode -

    PS>$ExecutionContext.SessionState.LanguageMode
    ConstrainedLanguage

  6. xinyi-gong commented on Jul 29, 2026

    @xinyi-gong
    Member

    briane80 Thanks for confirming! Once a stable or nightly release containing this fix is available, I’ll let you know so we can check whether the issue still reproduces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions