Troubleshooting
Start with the daemon. Most symptoms resolve to "the daemon is not where you think it is."
curl -s http://127.0.0.1:7456/api/health
# {"ok":true,"version":"1.3.2","dataRoot":"/path/to/your/cwd/.tfdesign"}
Check dataRoot first — it tells you whether you are talking to the daemon you expect.
CLI and daemon
| Symptom | Cause | Fix |
|---|---|---|
cannot reach the TF Design daemon (exit 3) | No daemon at that URL, or --no-boot set | Drop --no-boot, or start TF Design |
daemon is rooted at X, not this location (exit 3) | Data-root mismatch — the running daemon belongs to a different directory | Drop --no-boot so a private daemon boots here, or pass --daemon-url deliberately |
failed to reach daemon … EPERM | The calling agent's sandbox denied outbound connect | Relax the agent's network policy; the daemon itself is fine from a normal shell |
| Project missing under a new directory | State is location-inherited | Run from the directory the project was created in, or set OD_DATA_DIR explicitly |
unknown flag on a media command | Flags are whitelisted | Use tfdesign media generate --help for the accepted set |
Exit 2 from media wait | Not a failure — the task is still running | Continue with --since <nextSince> |
Location inheritance is not a bug
tfdesign deliberately refuses to attach to a daemon rooted elsewhere. Silently using another directory's projects is exactly the class of cross-contamination the rule prevents.
Generation
| Symptom | Cause | Fix |
|---|---|---|
| No agent detected | Coding CLI missing from PATH | Install TF Code / another supported CLI; restart |
| Insufficient UoI | Workspace entitlement exhausted | Top up the workspace balance |
| Run stops after a form | Expected — the agent waits for answers | Answer the form; the CLI relays it over stdin in --format json |
| Run produces a web artifact for a media brief | --kind not set | Pass --kind image / video / audio |
UNKNOWN_SKILL / UNKNOWN_DESIGN_SYSTEM | Hallucinated id | tfdesign skills list / design-systems list for real ids |
| Run stops with unfinished todos | Interrupted or hit a limit | Use Continue remaining in the app, or re-run with a narrower brief |
Preview
| Symptom | Cause | Fix |
|---|---|---|
| Blank preview | Artifact not emitted yet | Wait, or check the run status |
| Blank after a run finished | File written but no manifest | Ask the agent to declare the artifact manifest, or open the file directly |
| JSX render error | Syntax error in generated code | Use the in-app lint action |
| Preview does not match the file | Stale render | Refresh the preview |
Media
| Symptom | Cause | Fix |
|---|---|---|
unknown model | Id not in the registry | list_media_models / GET /api/media/models |
model … is unavailable upstream | Flagged broken; rejected before dispatch | Switch to a named alternative |
unsupported audioKind | Music/SFX requested | Speech is the only implemented kind |
Image renders as JPEG despite a .png prompt instruction | Correct behaviour — the extension is sniffed from the bytes | Reference the returned filename and extension |
| Video shorter than requested | The model ignores --length | Only mystica_video_sd honours it; use a sequence for longer pieces |
clamped to N warning | Requested length exceeded the model ceiling | Expected; the warning names the applied value |
| MCP media call times out | Client's 30s tool timeout | Drive wait_media instead of awaiting the render |
ffmpeg/ffprobe missing on media sequence | No ffmpeg on PATH | Install ffmpeg |
Motion
| Symptom | Cause | Fix |
|---|---|---|
runtime.ready: false | Chromium or ffmpeg unavailable | Check the message field — it names the missing dependency |
503 on generate | Runtime preflight failed | Install the missing dependency; the check is cached, so retry after install |
| Rendered video shows one frozen frame | Composition used setInterval / rAF / transition | Every animation must derive from --od-t |
| Media layer in the preview but not the video | Layer positioned with CSS transform | Use data-od-rect |
media layer(s) not found | Layer path is wrong or missing | Paths are project-relative; verify the file exists |
resolves outside the project directory | Layer path escaped the project | Keep layers inside the project |
| Render slower than expected | 120s @ 60fps = 7200 frames | Expected; the capture budget is 20 minutes |
See Motion.
Design systems
| Symptom | Cause | Fix |
|---|---|---|
| System not in the picker | Not under the user registry, or DESIGN.md unreadable | Check the folder and file permissions |
DESIGN_SYSTEM_READ_ONLY | Tried to edit a bundled id | Create a user: copy |
DESIGN_SYSTEM_NOT_FOUND | Unknown user id | tfdesign design-systems list |
| Direction picker still appears with a system bound | The binding did not reach the run | Bind at project creation or with --design-system; an unknown id is rejected, not ignored |
Category shows as Uncategorized | Missing > Category: line | Add it beneath the H1 |
Export
| Symptom | Cause | Fix |
|---|---|---|
| PPTX fails immediately | python-pptx / Pillow missing | python3 -m pip install python-pptx Pillow |
| PDF fails immediately | No python3 | Install Python 3 (the PDF script is stdlib-only) |
| PPTX text not editable | SVG used raster text | Text must be real <text> elements in the generated SVG |
| Fonts substituted in PowerPoint | Chosen family not on the viewer's machine | Pick office-system or designer-classic |
| Export created a new project | It should not — --project is required | Pass --project; the command refuses without it |
| PDF pages blank | CSS not inlined into the SVG | Inline attributes; no <style>, no rgba() |
See Export & Import.
MCP
| Symptom | Cause | Fix |
|---|---|---|
| Empty tool list | Client failed to spawn the process | Use the absolute node path from /api/mcp/install-info |
daemon not reachable | Wrong or dead URL | Start TF Design; pass --daemon-url |
get_active_context → {active:false} | No UI activity for ~5 minutes | Open a project |
| Wrong project matched | Name substring ambiguity | Pass the UUID; check resolvedProject |
skills run denied | Missing OD_TOOL_TOKEN | Run inside a design run, or use the MCP mount |
Install snippet has cliExists: false | Daemon CLI not built | Build the daemon package, then refresh |
Connectors
| Symptom | Cause | Fix |
|---|---|---|
Connector error | OAuth expired | Reconnect |
| Tool blocked | Classified write / destructive | Confirm explicitly or use a read-only tool |
| Refresh no-ops | No refresh-eligible tools | Check refreshEligible per tool |
Live artifacts
| Symptom | Cause | Fix |
|---|---|---|
| Nothing to refresh | No connector configured | Connect a data source |
| Marked stale | Last refresh failed | Check connector status, then retry |
| Refresh refused | Another refresh holds the lock | Wait for it, or abort it |
403 FORBIDDEN on create | projectId supplied in the body | The project comes from the tool token; remove the field |
Performance
| Symptom | Cause | Fix |
|---|---|---|
| Slow file panel | Many files in the project | Split the project, or archive old artifacts |
| Long conversations degrade | Context growth | Start a new conversation for unrelated work |
| Several media renders at once | Renders are heavy | Queue them; prefer a sequence over parallel single clips |
| Warm engines accumulating | One engine per visited project | Engines are released on project delete and daemon exit; restart the daemon to reclaim |
Collecting diagnostics
# daemon identity and data root
curl -s http://127.0.0.1:7456/api/health
# what the daemon knows
curl -s http://127.0.0.1:7456/api/projects
curl -s http://127.0.0.1:7456/api/skills
curl -s http://127.0.0.1:7456/api/design-systems
# media / motion capability
curl -s http://127.0.0.1:7456/api/media/models
curl -s http://127.0.0.1:7456/api/media/motion/models
# CLI version and help
tfdesign --help
tfdesign run --help
Logs are written under the daemon's data root. In the Desktop app, Help → Diagnostics surfaces the same information plus whether the background service is running.
Getting help
- Support:
support@toothfairyai.com - Issues: github.com/toothfairyai/tfcode/issues