Skip to content

Terminal integration guide

VdevAI has two terminal execution modes:

  • VS Code Terminal uses the integrated terminal and VS Code shell integration. This is the default and gives the best visibility into commands and their output.
  • Background Exec runs the command as a background process. Use it when VS Code shell integration is unavailable or the integrated terminal keeps losing output.

Change the mode in VdevAI Settings → Terminal.

VS Code shell integration lets an extension know which command produced which output. If it is missing, VdevAI may not be able to read command output reliably.

  1. Update VS Code and reload the window.
  2. Run Terminal: Select Default Profile and choose zsh, bash, fish or PowerShell.
  3. Open a new terminal; existing terminals keep the old integration state.
  4. Remove prompt customisations that replace the shell’s command hooks, then reload.
  5. In SSH, WSL, dev containers or remote workspaces, verify the shell integration inside the remote environment.
  6. If the warning persists, switch to Background Exec.

This usually means VS Code is starting a shell that is not installed or not on PATH.

  • Install PowerShell or select the Windows PowerShell profile explicitly.
  • Run Terminal: Select Default Profile and choose the correct PowerShell entry.
  • If script execution is blocked, ask your administrator before changing execution policy. A common per-user setting is Set-ExecutionPolicy -Scope CurrentUser RemoteSigned.
  • Restart VS Code and open a new terminal.

VdevAI cannot answer interactive prompts such as password prompts, pagers or y/n confirmations. Run those commands yourself in a terminal, or use non-interactive flags where the tool supports them. Long-running servers should be started in a separate terminal because VdevAI waits for the command it launched to finish.

Very large output is capped before it reaches the model. Redirect output to a file and ask VdevAI to read the relevant part, or run a narrower command such as a single test file. The terminal output limit is configurable in VdevAI Settings → Terminal.

Use VS Code Terminal when you want to watch commands and interact with the terminal. Use Background Exec when shell integration is unreliable or when you need a simpler process boundary. If one mode fails, try the other before changing your shell configuration.

Terminal integration depends on the shell running where the workspace lives. Check the remote shell profile, reload the remote window and make sure the shell integration extension is available on the remote side. Local shell fixes do not automatically apply to a remote workspace.

Checkpoints use Git. If VdevAI says Git must be installed, see Checkpoints and Git.

Include the VdevAI version, VS Code version, operating system, shell and terminal execution mode. Add the failing command and the relevant output with secrets removed. Open an issue at github.com/vdevai/vdevai/issues.