Skip to content

Troubleshooting

Symptom Cause and fix
An edit to .omfp/init.ts changes nothing. Init files apply only on reload: workspaces.reload_init (:reload-init).
The init file declares nothing; an error names <file>:<line>:<column>. A failing file declares nothing. workspaces.check type-checks and dry-runs it.
A declaration fails with a plain-data error. Layouts and settings cross to the daemon as JSON: no functions or class instances.
A widget shows an error in its place. Its module failed to compile or threw: windows.state reports it. Only react, react-dom, omfp/sdk, omfp/kit and relative files import; CSS cannot be imported.
A type error the window never reported. The window strips widgets’ types: workspaces.check type-checks the widgets and their files.
A mount, :widget add or closed tab vanished. Live changes last until the init files reload: declare what should stay (omfp://docs/views).
Opened files float in a panel. The view has no ["tabs", { "id": "main" }, …] slot.
Two widgets of the same kind share their state. Same reference, same instance: give each node its own instance.
A widget’s poll or timer stopped while its view was hidden. Hidden views keep state but clean up effects; they run again when shown.
A widget re-renders forever. A useSnapshot selector returning a new object or array each call.
A select, checkbox or date picker looks foreign (white menu). Native controls: use the kit’s (omfp://docs/kit).
A command works in a terminal but fails as a job. Jobs get the daemon’s environment, no login or dev shell, stdin /dev/null: write nix develop -c … (omfp://docs/jobs).
useJob runs the command again after a restart. Transient runs live in memory; declare a job for what must persist.
omfp:web / WebView stays blank. Outside the desktop app, sites refusing framing (X-Frame-Options, CSP) cannot show. omfp’s own address is refused.
A new ctx.agents.tool or MCP server is missing from a thread. A running thread picks it up once idle, by restarting its session.
An MCP server does not start, or shows no tools. mcp.test { workspaceId, name } (Test in omfp:mcp) starts it and answers its tools or its error with its stderr.
An MCP call answers unauthorized. Send /mcp login <name> in a thread of the workspace (Reauthorize in omfp:mcp).
omfp_call answers unauthorized. The method is for windows only; omfp://protocol/methods lists what agents may call.
A window key or command does nothing. :describe-key / :describe-command <name> show what it reaches; an alias already taken keeps its older command.
A notification arrived once per window. Window modules run in every window: give the notification a tag.