Runtime Feedback
Read Kunai's live playback health, memory, and network panels, and understand what each diagnostic signal is telling you while a session is still running.
Kunai keeps normal playback calm, then exposes runtime feedback when it helps you understand a slow provider, a buffering stream, or a possible memory issue.
During playback
- Press
/memorywhile playback is active to reveal the memory strip. - By default, the strip is hidden and temporary.
- If the memory panel setting is enabled,
/memorypins it until you run/memoryagain. - Live
mduring playback opens the title control menu, not the memory strip. - Open
/diagnosticsfor the full runtime health view.
The memory line separates Kunai from the player:
Appis the Kunai process RSS.mpvis the direct child player RSS when the platform exposes it.totalis app plus player RSS.heapis the JavaScript heap used and reserved by Bun.swapappears only when the platform reports swap usage.
On Linux, Kunai reads /proc to include the direct mpv child. On platforms without /proc, the app memory remains available and player memory may show as 0.0 MiB.
Memory trend is a short-lived, in-process sample window. It is not written to the data DB and it resets when Kunai exits. stable means recent movement stayed inside the normal noise band, while growing means RSS or heap climbed quickly enough to deserve attention.
Network and provider feedback
The playback shell and Diagnostics panel summarize the latest mpv and provider events:
Networkshows cache speed, buffer-ahead seconds, stalls, and same-stream reconnect attempts.Providershows the resolved provider, cache hits, stream counts, subtitle counts, and typed failures.Cacheexplains whether Kunai used a fresh stream, refreshed a stale stream, or kept a cached fallback.
Use /export-diagnostics when a session behaves strangely. The bundle is redacted and stays local until you choose to share it.
When to investigate memory
Memory is worth checking when:
- The app stays open across many titles and RSS only climbs.
mpvremains non-zero after playback stops.- Swap appears in the runtime line.
Memory trendstaysgrowingafter several diagnostic checks.- The terminal becomes slow while provider/network health looks normal.
If you report this, include the /diagnostics output, the exact command you ran, platform details, and whether artwork previews or downloads were enabled.
Last updated on
Customization
Configure Kunai through config.json: provider relay, mpv forwarding, download paths, posters, keybindings, and the settings that survive an upgrade.
Troubleshooting
A symptom-first index for Kunai: provider failures, playback crashes, network problems, setup errors, and poster issues, each with concrete fix steps.