tauri-ipc-debug
Skill2 starsChanged 40 days agoMITView on GitHub
Systematic Tauri IPC debugging — triage Intent Engine layers (MVU → safeInvoke → Rust commands → HTTP/sqlite/keyring), avoid false leads (browser Network tab, keyring noise). Use when invoke fails, search/cycle broken, bearer errors, tauri dev hangs, blank window, or user asks to debug Tauri/desktop shell issues.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adversarial-auditSkill
- agentic-reactorSkill
- agent-orchestratorSkill
- ai-optimizationSkill
- architecture-synthesisSkill
- audit-allow-buildsSkill
- audit-ide-dependenciesSkill
- author-workflow-skillSkill
- bdd-strategizerSkill
- chrome-extension-mv3Skill
- concurrent-cli-agentsSkill
- control-feederSkill
- control-graphSkill
- cursor-transcript-harvestSkill
- cv-promote-guardSkill
- devcontainer-hardenedSkill
- dual-copy-skill-publishSkill
- explore-repo-readonlySkill
- finder-reactorSkill
- fix-dependency-securitySkill
- fusion-sageSkill
- git-worktreesSkill
- grok-host-prepSkill
- gt-flowSkill
- higher-order-decision-architectSkill
- looperSkill
- master-plannerSkill
- mvu-refactor-planSkill
- odysseus-navigatorSkill
- project-editor-profileSkill
- react-client-expertSkill
- semantic-markup-cssSkill
- semantic-nameSkill
- session-unit-orderSkill
- shell-kernel-ontologySkill
- skill-rename-propagationSkill
- split-to-prsSkill
- src-tree-reorganizeSkill
- stellar-roadmapSkill
- stellar-spacemapSkill
- subagent-delegationSkill
- subagent-explore-reportSkill
- supply-chain-hardenSkill
- tauri-agenticSkill
- tidy-commit-pushSkill
- upgrade-packagesSkill
- verification-cockpitSkill
- x-agent-resourcesSkill
The file
Files
Tauri IPC Debug
Mission: Fix desktop shell issues fast by tracing one layer at a time. Do not patch random files until the failing layer is identified.
Canonical doc: Your project should maintain docs/tauri-ipc-debugging.md (and related command maps). Read those first if present.
Pair with tauri-agentic for architecture; finder-reactor for guard/cycle logic; x-agent-resources for platform API errors after IPC proves Rust ran.
Rules (non-negotiable)
invokeis not HTTP — Browser Network tab will not show Tauri commands. External API calls appear in the terminal runningtauri dev.- Single IPC seam — Prefer one adapter module (e.g.
safe-invoke.ts) that wraps@tauri-apps/api. Debug there before scatteringinvoke. - Secrets in Rust — Bearer/tokens read in commands from keyring/file store, not passed from UI each call.
- Keyring fallback ≠ IPC failure — keyring read failure with file fallback is often expected on Linux without Secret Service.
- Verify with evidence — Quote ipc logs, db logs, or handler
eprintln!before claiming root cause.
Triage checklist
IPC debug progress:
- [ ] Repro captured (user action + expected vs actual)
- [ ] Layer identified (intent | ipc-js | ipc-rust | http | sqlite | webview)
- [ ] Dev running: pnpm tauri dev (terminal visible)
- [ ] Console: ipc adapter logs
- [ ] Terminal: secrets / db / platform client logs after repro
- [ ] Fix applied at correct layer only
- [ ] Repro retried; build + cargo check if code changedStep 0 — Classify symptom
| Symptom | Start at |
| Blank window / crash on launch | WebKit/GTK deps — not IPC |
| UI frozen, no error banner | Rust blocked / hang |
| Error banner in app | ipc-js then ipc-rust |
| "Bearer not configured" | secrets storage |
| Platform API 400/401/403 | HTTP layer after invoke proves Rust ran |
| History/DB empty | sqlite layer |
Layer map (generic)
UI intent → safeInvoke (JS) → Tauri command (Rust) → { sqlite | keyring | HTTP client }Debug top-down: confirm intent fired → ipc request/response → Rust handler entry → downstream service.
Common fixes by layer
ipc-js: Wrong command name, unhandled promise, adapter swallowing errors — enable dev logging in the single seam module.
ipc-rust: Panic in handler, blocking sync call on async runtime, wrong serde types — add eprintln! at handler entry with args summary.
secrets: Missing token file, wrong app identifier, keyring unavailable — check config path and fallback file permissions (0600).
sqlite: Migration not run, WAL lock, wrong app data dir — verify DB path under XDG/app data.
HTTP client: Malformed query (see x-agent-resources), expired token, rate limit — read terminal output from Rust client, not browser.
webview: Missing webkit2gtk/GTK on Linux — install platform deps per Tauri docs.
Anti-patterns
- Adding
invokecalls outside the adapter seam without updating the decision table - Fixing UI state when Rust never received the command
- Assuming Network tab shows Tauri or X API traffic
- Patching bearer in frontend instead of secrets module
Example provenance: collab-finder — see decision-table.md for a sample layer map.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

