Repository navigation
Conversation
…e Terminal Add run_shell_command, read_terminal_session and stop_terminal_session on IdeTerminalService; run and stop always ask first. Handlers declare their approval preview; working_directory is contained before approval; each answer shows once. Fix the OpenAI backend dropping all tools after one model refused them. Bumps AI-Core to 3.4.0. Refs: ADFA-6339
Report non-zero exits as results, poll terminal sessions as live reads, count shell commands as project changes, share Read/Stop session code, and correct the shell-state and network-access docs. Refs: ADFA-6339
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR allows the AI agent to execute shell commands directly within the IDE's visible Terminal rather than making the user manually run them. It introduces three new tools:
run_shell_command,read_terminal_session, andstop_terminal_session. Every command requires user approval, and the dialog now distinctly shows the full uncut command and its working directory. The agent can read back the exit code and up to 8000 characters of terminal output, or it can leave a long-running process (like a server) active and read its session later.Details
run_shell_command: Runs scripts via bash, automatically bounds directories to the project root, and captures terminal output.read_terminal_session/stop_terminal_session: Allow the agent to check on or interrupt existing background commands without needing new user approvals.ApprovalDialogFragmentwithApprovalKindto properly format shell commands and directories in the review prompt.Screen_Recording_20261007_161740_Code.on.the.Go.mp4
Ticket
ADFA-6339
Observation
The new shell tools are safely gated; they will only be registered and exposed to the AI if the host supports
IdeTerminalService. Older IDE versions will operate as before without these tools.Needs to be merged first: