# UI manual smoke playbook ## Host rule Use zellij on win32. Do not invoke tmux on win32. Use tmux only on non-win32 hosts where it is installed. ## win32 zellij ```sh node extensions/ui/scripts/zellij-smoke.mjs zellij attach ``` The script creates a zellij session through a real Windows console process, launches Pi in the default zellij terminal pane, sends `/ui`, captures the exact URL through a smoke-only local handoff file, dumps the terminal screen, probes tokenless `401`, verifies the authenticated browser shell with Playwright, sends `/ui off`, and writes `.pi/tmp/ui-zellij-smoke/*.summary.json`. It sets `MSYS_NO_PATHCONV=1` for zellij actions so `/ui` is not rewritten to a Git-for-Windows path. If URL extraction still fails, the script can run `scripts/phase1-smoke.mjs` as a fallback unless `--no-fallback` is passed. Do not switch to tmux on win32. Checkpoints: 1. Run `pi -e extensions/ui/index.ts` inside the zellij pane if the script did not keep Pi running. 2. Send `/ui`. 3. Verify the terminal widget shows a token URL and QR. 4. Open the exact URL in Chrome or Firefox. 5. Verify `/api/status` without the token returns `401`. 6. Try `/`, `/skill:`, `!`, `!!`, Esc, Ctrl+O, and Ctrl+P from the browser composer. 7. Ask for card, form, and raw HTML widgets. 8. Click one widget action and verify a visible attribution row appears before any widget-originated prompt reaches the agent. 9. Scroll, click, select text, background the tab, return, and send one prompt. 10. Verify the digest indicator appears and the digest is attached once only. 11. Send `/ui off` in Pi. 12. Verify browser disconnect and terminal UI restores as far as Pi exposes. Cleanup: ```sh zellij kill-session ``` ## non-win32 tmux ```sh node extensions/ui/scripts/tmux-smoke.mjs tmux attach -t ``` Use the same checkpoints. ## Evidence to capture - zellij/tmux session name. - `/ui` URL redacted to origin plus `token=[redacted]`. - 401 result for tokenless request. - Browser stream screenshot for widget + attribution + digest. - `/ui off` terminal state.