Request a demo
Docs / VS Code extension / Troubleshooting

VS Code Extension — Troubleshooting

"InsightWorker CLI not found"

The extension shells out to insightworker (the CLI binary). If the CLI is missing it offers to install it with npm. If that fails:

npm install -g @verticalserve/insightworker
which insightworker  # confirm it's on PATH

Then in VS Code settings, set insightworker.cliPath to the absolute path if it's not on PATH (e.g. /usr/local/bin/insightworker).

Chat panel opened on the left, not the right

The extension uses an undocumented internal command to dock to the right. On some VS Code versions and VS Code-based editors this can fail silently.

Manual fix: right-click the panel header → Move View → Right.

To make this stick: with the panel on the right, right-click in the panel → Reset Location then Move View → Right again — VS Code remembers the last location.

"Bedrock credentials not found / expired"

You're using Bedrock with AWS SSO and your session expired (12-hour default). Run:

aws sso login --profile <your-profile>

Then fully restart VS Code (Cmd+Q, reopen). The extension caches AWS credentials at extension activation; reload-window isn't enough — the host process needs a fresh env.

See authentication/aws-sso.md for the full error path.

Chat shows "thinking" forever, no response

Most common causes:

  1. No internet on the host — try curl https://api.openai.com/v1/models (or your provider's URL)
  2. Stuck on a tool call you forgot to approve — check for an approval prompt in a different VS Code window or behind another panel
  3. Provider rate-limit, retrying silently — open the InsightWorker output channel (View → Output → InsightWorker) to see retry attempts

If the output channel shows nothing, restart the extension: Cmd+Shift+P → Reload Window.

"Working" spinner stuck after task finishes

The spinner can get out of step if a run ends without a clean stop event. Reload Window clears it.

Tool calls go through but don't show diff

If the agent edits a file but no diff appears: the file may be open in another editor pane that isn't visible. VS Code's diff viewer attaches to the active editor. Click the file in the explorer first, then re-trigger.

Editor panel shows "no workspace"

The editor panel needs a folder open in VS Code (not just a single file). Open a folder via File → Open Folder… before invoking InsightWorker.

Token / cost counter wrong

The status bar token counter aggregates session-level use. After a multi-day session it may drift. Reload window resets it.

Extension not loading in a VS Code-based editor

The extension uses VS Code 1.85+ APIs. Editors built on an older VS Code base may not load it. If you see "extension activation failed", check which VS Code version the editor is based on and tell us the editor and version.

Logs

WhatWhere
Extension log (high-level)Output → InsightWorker
AWS SDK debugSet AWS_SDK_LOAD_CONFIG=1, AWS_LOG_LEVEL=DEBUG in ~/.insightworker/.env

See also