Skip to content

Common Error Troubleshooting

Symptom

CODEBUDDY_BROKER_DENY
Brokered host mkdir requires an available runtime file rule
Sensitive content approval timed out

Cause A shim script is injected into the NODE_OPTIONS environment variable. It’s attached to the node process, not the sandbox layer.

Fix

终端窗口
env -u NODE_OPTIONS npm install
env -u NODE_OPTIONS npm run build

Note: disabling sandbox won’t help — the problem is in the node process, not the sandbox. Node version is irrelevant too; it’s only that variable.

Symptom: Not connected

Check in order

  1. File name (mcp.json, not .mcp.json)
  2. Valid JSON
  3. Did you click Trust in the connector page? — config alone doesn’t activate
  4. Are command/args copied from official docs? Guessed fields rarely work

Still failing? Switch approach. Some MCP servers are flaky. For browser automation, a local Playwright driver with an explicit Chromium path is far more reliable.

Symptom

fetch failed / 10s timeout

Certain external domains (Google properties, some archive sites) are entirely blocked in sandboxed environments.

Fix Don’t retry ten times — the result won’t change. Ask the user to paste the content, or have them download it as a text file into the workspace.

Symptom: after rebuilding, the browser shows old content and search can’t find new pages.

Cause The tab cached the old page, and the search index file is content-hashed — the old page is still requesting an index file that no longer exists.

Fix: hard refresh (Cmd + Shift + R), or open a new tab.

  1. Is the target directory authorized for the workspace?
  2. Is it a system directory (/System, /Library, AppData)?
  3. On macOS, did you approve the first-write prompt?

Scheduled jobs not running or producing wrong output

Section titled “Scheduled jobs not running or producing wrong output”
  1. Does the script require interactive input? (It will hang.)
  2. Does it write logs to a file? (No logs = undebuggable.)
  3. Is the working directory correct? (Relative paths resolve differently under cron.)
  4. Is scraping failing silently? (Source redesign → selector matches nothing.)

Scenario: exported CSV shows garbage characters

Fix: export as UTF-8 with BOM. Plain UTF-8 breaks in Excel with non-ASCII content.

Cause: too much accumulated irrelevant context.

Fix: start a new session and re-supply key context. Store important conclusions in project memory first so they carry over.

  1. Paste the full error — don’t paraphrase (line numbers and call chains matter)
  2. Ask for the cause, not just the fix — “why does this happen” beats “how do I fix it”
  3. Minimize the repro — three lines that reproduce it lock down the scope
  4. Rule out the environment — different directory, different machine

Collaborating With Other AI Tools.