Skip to content

Troubleshooting

Start with diagnostics:

Terminal window
tapplack doctor
tapplack status
tapplack config path

doctor prints paths, the active pipeline, provider readiness, and limits. status focuses on routing. Most problems are visible in one of them.

“No provider in the active agent chain is configured”

Section titled ““No provider in the active agent chain is configured””

The active agent’s primary provider and every fallback lack a usable key.

Fix:

Terminal window
tapplack config key gemini
# or point the agent at a provider you have
tapplack config provider assistant openrouter

If you meant to use environment variables, confirm they are set in the same shell:

Terminal window
echo $env:GEMINI_API_KEY # PowerShell
printenv GEMINI_API_KEY # bash

Ollama is keyless but must be running locally.

A provider needs a key and none is present. Set it with tapplack config key <provider> or the matching environment variable. The message names the missing variable.

The config file does not parse. Tapplack refuses to overwrite it, so your data is still there.

  1. Open it: tapplack config edit.
  2. Fix the JSON (a trailing comma or missing quote is the usual cause).
  3. Re-run tapplack status.

If you want a clean slate, tapplack config init --force resets to the template — this destroys your settings, including keys.

“Unknown config command” or a rejected value

Section titled ““Unknown config command” or a rejected value”

tapplack config set validates the schema. The error names the key. Common causes:

  • an unknown provider id (use one of the nine),
  • an unknown tool name,
  • mode not single/multi,
  • skillMode not off/manual/auto.

Run tapplack config --help for the accepted forms.

run_command refused a binary or an argument. This is the whitelist and git policy working.

  • The error lists allowed commands.
  • Git destructive operations, force flags, pushes to main/master, and pathspec checkout are refused by design.
  • Commit messages must be Conventional Commits.

Do not try to work around it inside the prompt; adjust the task or the config. If a tool is genuinely missing, add a different workflow rather than disabling the whitelist.

“Path … resolves outside the workspace”

Section titled ““Path … resolves outside the workspace””

The agent tried to touch a file outside workspaceDir. Either:

  • move the work inside the workspace, or
  • point the workspace at the intended directory:
Terminal window
tapplack config set runtime.workspaceDir .

Remember the default is ./workspace, a subfolder — not your project root.

The full-screen TUI requires a real TTY, TAPPLACK_NO_TUI not 1, and TERM not dumb. Piped output, CI, and some IDE terminals fall back to appended output by design.

To force the fallback:

Terminal window
TAPPLACK_NO_TUI=1 tapplack

If colors are the problem, set NO_COLOR=1; for ASCII, TAPPLACK_ASCII=1.

Usually a Unicode or width issue. Try:

Terminal window
TAPPLACK_ASCII=1 tapplack

If your terminal reports an odd TERM, set it to a sane value (xterm-256color) or use TAPPLACK_NO_TUI=1. The layout also degrades on very small terminals: narrow widths drop the banner and keep the tab bar.

A side effect is waiting for approval. Inspect it:

Terminal window
/apply status

Then apply or cancel:

Terminal window
/apply
/apply cancel

See Human approval.

  1. Open runs/<run-id>/FINAL.md for the summary and incidents.
  2. Check the stage ledger for ERROR/SKIPPED.
  3. Open the stage artifact and its JSON for finishReason and providerTrail.
  4. Open the referenced file under runs/error-logs/ for the underlying error.

Common causes:

Symptom Likely cause
All providers failed Keys invalid/expired, quota exhausted, or network blocked.
Timeout Slow provider, large task, or low requestTimeoutMs.
Tool loop Model repeating an action; lower maxToolRounds or tighten the task.
Budget exhausted maxTokens too low for the work.
Repeated apply failure The command itself is wrong; read the error and adjust the task.

Rate limits and 5xx responses are retried and then handled by the fallback chain. If a specific provider is flaky, reorder the chain:

Terminal window
tapplack config set agents.assistant.fallback anthropic,openrouter,ollama

Lower retryBaseDelayMs only if you are sure it is not a rate limit.

  • CLI changes apply on the next tapplack invocation.
  • Inside a session, use /config or /skills mutating commands, which reload config.
  • Direct file edits are not picked up by a running session until it reloads or restarts.

Restart the session if in doubt.

The global bin directory is not on PATH.

  • npm: check npm bin -g (older npm) or npm prefix -g.
  • pnpm: run pnpm setup and restart the shell.
  • Source checkout: run pnpm run setup again to rebuild and relink.
  • Docs-only pushes do not trigger a package release; the release workflow only runs when src/**, bin/**, package.json, pnpm-lock.yaml, tsdown.config.ts, or tsconfig.json change.
  • The docs site builds from docs/ with pnpm build (use pnpm install --ignore-workspace in that folder, because it is a standalone package inside the workspace).

When asking for help, include:

  • tapplack doctor output,
  • the relevant run.json and FINAL.md,
  • the error-log path, if any,
  • your OS, Node version, and terminal.

Do not paste API keys. config show masks them, but double-check before sharing.