VS Code 1.115 additionally introduces two adjustments designed to enhance the agent expertise for working terminal instructions within the background. First, a brand new send_to_terminal software lets an agent proceed interacting with background terminals. For instance, if an SSH session occasions out whereas ready for a password immediate, the agent nonetheless can ship the required enter to finish the connection. Beforehand, background terminals have been read-only, with solely the get_terminal_output obtainable to the agent to verify the terminal’s standing. This was significantly limiting when a foreground terminal timed out and moved to the background, as a result of the agent may now not work together with it.
Second, a brand new experimental setting, chat.instruments.terminal.backgroundNotifications, permits an agent to robotically be notified when a background terminal command finishes or requires consumer enter. This additionally applies to foreground terminals that point out and are moved to the background. The agent then can take acceptable motion, similar to reviewing the output or offering enter through the send_to_terminal software. Beforehand, when a terminal command was working within the background, the agent needed to manually name get_terminal_output to verify the standing. There was no strategy to know when the command accomplished or wanted enter.
Additionally in VS Code 1.115, when an agent invokes the browser software, the software calls now have a extra descriptive label and a hyperlink to go on to the goal browser tab, Microsoft mentioned. Plus, the Run Playwright Code software has improved assist for long-running scripts. Scripts that take longer than 5 seconds to run (by default) now return a deferred outcome for the agent to ballot.
