[Feat] Allow the agent to send input to a running background terminal (send_to_terminal)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java
- Domain
- cli, developer-experience
Research direction
Start by locating IRunInTerminalTool and RunInTerminalTool.executeCommand(); the issue identifies these entry points and notes that sendCommand() already uses ITerminalViewControl.pasteString(). Trace how background terminals are opened and how get_terminal_output selects a terminal, then determine how input should target the running process. Done means the agent can send abc to a background interactive terminal and receive got: abc.
Written by the indexing model from the issue text.
Description
Problem
The copilot agent can start a long-running interactive process with
run_in_terminal (isBackground=true) and read it with get_terminal_output,
but it cannot send further input to that process. Interactive CLIs (debugger
consoles, serial monitors) therefore cannot be driven step by step:
the model has to pre-script all input (stdin pipe + sleeps) and cannot react
to intermediate replies.
Evidence (0.21.0)
IRunInTerminalToolonly exposesexecuteCommand,getBackgroundCommandOutput,
cancelCurrentCommand.RunInTerminalTool.executeCommand()opens a newCopilot-<id>terminal per
background call; a new foreground call first runs
closeRunningForegroundTerminal(...).- Internally
sendCommand()already usesITerminalViewControl.pasteString().
Repro
- Ask the agent to run in background:
powershell -NoProfile -Command 'while ($true) { $l = Read-Host ''input''; Write-Output (''got: '' + $l) }' - Ask it to send
abcto that terminal and showgot: abc.
Observed
Eclipse Copilot: the agent can't type into the running terminal. It ends up writing one script that pipes all input with sleeps and only sees the output at the end.
VS Code Copilot: send_to_terminal works, I get got: abc back.
- Dominant language
- Java
- Stars
- 128
- Forks
- 70
- Avg merge
- 5d 20h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/copilot-for-eclipse
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/copilot-for-eclipse#522 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
microsoft/copilot-for-eclipse#521 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 30/100
microsoft/copilot-for-eclipse#519 · 1 comment ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
microsoft/copilot-for-eclipse#518 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
microsoft/copilot-for-eclipse#517 ·
All issues in microsoft/copilot-for-eclipse
Similar issues
-
JPA security login throws when the stored password or roles string is nullPossibly taken @SebTardif claimed this today. Openarea/security env/windows
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
quarkusio/quarkus#58548 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
marchof/java-almanac#354 ·
-
bug posit-ai
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
linkedin/shaky-android#103 ·