Cline error
Cline: Shell Integration Unavailable
Shell Integration Unavailable. Cline may have trouble viewing the command's output. Please update VSCode (CMD/CTRL + Shift + P → "Update") and make sure you're using a supported shell: zsh, bash, fish, or PowerShell (CMD/CTRL + Shift + P → "Terminal: Select Default Profile").Status: WorkaroundLast verified 8 documented fixes4 sources
What it means
Cline runs commands through VS Code's Terminal Shell Integration API (added in VS Code 1.93). When shell integration is not active in the terminal, Cline cannot read the output of the commands it runs, so it cannot react to results on its own.
Causes
- Outdated VS Code or Cursor that lacks the Terminal Shell Integration API (VS Code 1.93+), per the official wiki.
- Default terminal profile is not a supported shell (zsh, bash, fish, or PowerShell).
- On Windows, PowerShell older than v7 or a Restricted/AllSigned execution policy, per the wiki.
- Terminal customizations such as Powerlevel10k, Oh My Zsh or fish themes interfering, per the wiki.
- On Windows with OneDrive, the Desktop path differs from C:\Users\<user>\Desktop, per the wiki.
How to fix it
- Fix 1.
Update VS Code (Command Palette > "Check for Updates") or Cursor ("Attempt Update"), then restart the editor.
- Fix 2.
Set a supported default shell: Command Palette > "Terminal: Select Default Profile" and pick zsh, bash, fish, or PowerShell. Quit VS Code completely, reopen it, and start a new Cline task.
- Fix 3.
On Windows, the wiki recommends Git Bash as the default profile, or PowerShell v7+. Check the version and, if needed, set the execution policy for the current user.
Snippet$PSVersionTable.PSVersion Get-ExecutionPolicy Set-ExecutionPolicy RemoteSigned -Scope CurrentUser - Fix 4.
Manually install shell integration. For zsh add this line to ~/.zshrc (open it with
code ~/.zshrc):Snippet[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)" - Fix 5.
For PowerShell, run
code $Profileand add:Snippetif ($env:TERM_PROGRAM -eq "vscode") { . "$(code --locate-shell-integration-path pwsh)" } - Fix 6.
Temporarily disable Powerlevel10k, Oh My Zsh or fish themes in your shell config to rule them out.
Terminal# source /path/to/powerlevel10k/powerlevel10k.zsh-theme - Fix 7.
OneDrive users on Windows: create a junction from the expected Desktop path to the OneDrive Desktop in an admin Command Prompt, then restart VS Code.
Snippetmklink /J "C:\Users\<username>\Desktop" "C:\Users\<username>\OneDrive\Desktop - Fix 8.
After repeated failures the extension itself recommends switching to Background Terminal mode ("Enable Background Terminal (Recommended)"), which does not depend on shell integration.
More Cline errors
All 17 Cline errorsError executing command: The command ran successfully, but we couldn't capture its output. Please proceed accordingly.Status: Fixed in releaseCommand failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption 'powershell' is not recognized as an internal or external command, operable program or batch file.Status: WorkaroundUnexpected API Response: The language model did not provide any assistant messages. This may indicate an issue with the API or the model's output.Status: WorkaroundInvalid API Response: The provider returned an empty or unparsable response. This is a provider-side issue where the model failed to generate valid output or returned tool calls that Cline cannot process. Retrying the request may help resolve this issue.Status: OpenModel returned empty responseStatus: OpenFunction call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance.Status: Fixed in release429 {"type":"error","error":{"type":"rate_limit_error","message":"Number of request tokens has exceeded your per-minute rate limit (https://docs.anthropic.com/en/api/rate-limits); see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase."}}Status: WorkaroundInvalid MCP settings format. Please ensure your settings follow the correct JSON format.Status: Workaround
Related reading
- What Is Cline? The Open-Source AI Coding Agent for VS CodeCline is a free, open-source VS Code extension for agentic AI coding. Bring your own model, a cloud API or a local one via Ollama, with no vendor lock-in.
- Every AI Coding Tool Compared: The 2026 MatrixEvery AI coding tool compared: 15 terminal, IDE, cloud and browser tools side by side on pricing, model surface, strengths, weaknesses and best use cases.
FAQ
What does "Shell Integration Unavailable" mean in Cline?
Cline runs commands through VS Code's Terminal Shell Integration API (added in VS Code 1.93). When shell integration is not active in the terminal, Cline cannot read the output of the commands it runs, so it cannot react to results on its own.
How do I fix "Shell Integration Unavailable"?
There are 8 documented fixes. Start with the first: Update VS Code (Command Palette > "Check for Updates") or Cursor ("Attempt Update"), then restart the editor.
Is this Cline error fixed?
Status: Workaround. No release removes the cause. The documented fixes work around it. Affected versions: All VS Code extension versions; requires VS Code 1.93+ shell integration
Sources
Last verified against 4 sources: official docs, maintainer replies and release notes.
- github.comhttps://github.com/cline/cline/wiki/Troubleshooting-%E2%80%90-Shell-Integration-Unavailable
- github.comhttps://github.com/cline/cline/blob/main/apps/vscode/webview-ui/src/components/chat/ChatRow.tsx
- github.comhttps://github.com/cline/cline/issues/299
- github.comhttps://github.com/cline/cline/issues/4356
Newsletter
Fixes for the tools you use, weekly
One email per week. New coding agent releases, what broke, and how developers are working around it.