| name | markrig |
| description | Use when the user wants to run, launch, start, or preview the markrig desktop app, or to verify a change in the running app. |
Launch markrig
Run the Tauri dev build from the repo root as a background task, passing the folder to auto-import (everything after the third -- goes to the app binary):
npm run tauri dev -- -- -- "$PWD"
The app imports the passed folder on startup — no manual Import Folder click. Omit the argument to start with the empty state.
- Run it with
run_in_background: true — the process stays alive while the app window is open; a clean exit (code 0) means the window was closed.
- Tauri starts the Vite dev server itself (
beforeDevCommand) on http://localhost:1420. Do NOT run npm run dev alone: outside the Tauri runtime the frontend only shows a "run inside Tauri" placeholder message.
- First launch compiles the Rust crate and can take 1–2 minutes; later launches take a few seconds. The app window opens automatically when the build finishes.
- Launch succeeded when the background output shows the Vite dev server ready and the Rust build completes with a
Running line (or the markrig process appears in ps). Hot reload applies frontend changes without restarting; Rust changes trigger an automatic rebuild.
- If port 1420 is already in use, a previous dev instance is still running — kill that background task (or the
markrig/vite process) instead of starting a second one.
To stop the app: stop the background task; the app window closes with it.