Troubleshooting
Start with diagnostics:
tapplack doctortapplack statustapplack config pathdoctor 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:
tapplack config key gemini# or point the agent at a provider you havetapplack config provider assistant openrouterIf you meant to use environment variables, confirm they are set in the same shell:
echo $env:GEMINI_API_KEY # PowerShellprintenv GEMINI_API_KEY # bashOllama is keyless but must be running locally.
“Missing required value …”
Section titled ““Missing required value …””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.
“Invalid JSON in …”
Section titled ““Invalid JSON in …””The config file does not parse. Tapplack refuses to overwrite it, so your data is still there.
- Open it:
tapplack config edit. - Fix the JSON (a trailing comma or missing quote is the usual cause).
- 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,
modenotsingle/multi,skillModenotoff/manual/auto.
Run tapplack config --help for the accepted forms.
Commands are blocked
Section titled “Commands are blocked”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:
tapplack config set runtime.workspaceDir .Remember the default is ./workspace, a subfolder — not your project root.
The TUI does not appear
Section titled “The TUI does not appear”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:
TAPPLACK_NO_TUI=1 tapplackIf colors are the problem, set NO_COLOR=1; for ASCII, TAPPLACK_ASCII=1.
Output looks garbled
Section titled “Output looks garbled”Usually a Unicode or width issue. Try:
TAPPLACK_ASCII=1 tapplackIf 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 task stopped with “PENDING”
Section titled “A task stopped with “PENDING””A side effect is waiting for approval. Inspect it:
/apply statusThen apply or cancel:
/apply/apply cancelSee Human approval.
A run failed
Section titled “A run failed”- Open
runs/<run-id>/FINAL.mdfor the summary and incidents. - Check the stage ledger for
ERROR/SKIPPED. - Open the stage artifact and its JSON for
finishReasonandproviderTrail. - 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. |
Provider fails intermittently
Section titled “Provider fails intermittently”Rate limits and 5xx responses are retried and then handled by the fallback chain. If a specific provider is flaky, reorder the chain:
tapplack config set agents.assistant.fallback anthropic,openrouter,ollamaLower retryBaseDelayMs only if you are sure it is not a rate limit.
Changes to the config do not apply
Section titled “Changes to the config do not apply”- CLI changes apply on the next
tapplackinvocation. - Inside a session, use
/configor/skillsmutating 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.
tapplack command not found
Section titled “tapplack command not found”The global bin directory is not on PATH.
- npm: check
npm bin -g(older npm) ornpm prefix -g. - pnpm: run
pnpm setupand restart the shell. - Source checkout: run
pnpm run setupagain to rebuild and relink.
Release and docs
Section titled “Release and docs”- 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, ortsconfig.jsonchange. - The docs site builds from
docs/withpnpm build(usepnpm install --ignore-workspacein that folder, because it is a standalone package inside the workspace).
Collecting a useful report
Section titled “Collecting a useful report”When asking for help, include:
tapplack doctoroutput,- the relevant
run.jsonandFINAL.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.
- Configuration — fix settings safely.
- Runs and artifacts — read a failed run.
- Environment variables — override without editing.