fix(app): the wizard resumes until finished, late answers stay off other screens, logs follow the chosen folder

- app_status reports firstRun until wizard_finish; wizard_step saves the
  step reached in config/setup.json, and the wizard resumes there (a stored
  token lets the bot step go on).
- show() and refresh() drop answers that arrive after the screen changed.
- folder_choose points the log hub at the folder's logs/ at once.
- Choosing another server clears the voice channel picker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-12 14:25:59 +09:00
parent 20300c017e
commit b68eef3ec1
4 changed files with 126 additions and 27 deletions

View File

@@ -135,7 +135,8 @@ back as Korean messages for the screen. The Tauri shell passes the screens' `inv
| Command | Does |
|---|---|
| `app_status` | version, data folder, whether a token is stored; `firstRun` while either is missing |
| `app_status` | version, data folder, whether a token is stored, `wizardStep`; `firstRun` until the wizard's last step was reached (a stored token alone does not finish it) |
| `wizard_step` `{step}` / `wizard_finish` | remember the wizard step reached / mark it done (needs a stored token); both in `config/setup.json` |
| `folder_check` `{path}` / `folder_choose` `{path}` | free space against the recommendation / create the folder and remember it |
| `pc_check` | OS, CPU threads, RAM, NVIDIA GPUs, the driver version and whether it is 580 or newer, free disk |
| `token_check` `{token}` | the bot's tag and IDs, whether the Message Content intent is on, the invite link (REST only, nothing stored) |
@@ -147,8 +148,8 @@ back as Korean messages for the screen. The Tauri shell passes the screens' `inv
The invite link asks for: view channels, send messages, read history, add reactions, manage
messages, manage channels, connect, speak, voice activity, and the slash command scope; never
administrator. The log hub writes to the data folder's `logs/` from the first start after a
folder is chosen (before that, memory only).
administrator. The log hub writes to the data folder's `logs/` as soon as a folder is chosen
(`folder_choose` points it there; before that, memory only).
## Screens (`app/ui/`)
@@ -157,11 +158,15 @@ Plain HTML, CSS and an ES module, no build step, dark theme after `DESIGN.md`. A
- **First-run wizard** (while `firstRun`): data folder (free space, warning under 200 GB), PC check,
the model to download (the download itself is step 4 of M5), Discord bot (token check with the
Message Content state and the invite link, then save), server and auto-join voice channel
pickers, wake words, then start. It resumes at the bot step when a folder is already chosen.
pickers, wake words, then start. Each step reached is saved, so a reload or a restart resumes at
that step; only the last step's start finishes it. A stored token lets the bot step go on
without entering it again.
- **Dashboard**: the snapshot every second; the header with start, restart and stop is rebuilt
only when the state changes, so a click is never lost to the refresh.
only when the state changes, so a click is never lost to the refresh. Every screen change starts
a new generation: an answer that arrives after the user moved to another screen is dropped.
- **Settings screens** (봇, 채널·호출, 채팅 채널, 대화 기억, 모델): built from `settings_fields`; only
changed fields are sent; the server and voice channel are pickers; the chat channels are a table
changed fields are sent; the server and voice channel are pickers (choosing another server clears
the voice channel and lists only that server's channels); the chat channels are a table
with their switches; the bot screen also changes the token.
- **Logs**: tab, level and text filters, pause, live follow (lines after the last seen), "최근 오류
복사" (to the clipboard; over 2,000 characters it suggests the zip), and the zip export by days.
@@ -180,7 +185,8 @@ categories, query filters and follow, files per day and retention, error report
cap, redaction of stored secrets and token-shaped text; the controller's state rules with a fake
service starter; the dashboard from made-up events (captions replaced and cleared, latency stages
and medians, an answer matched to its asker's final, missed requests without text); the admin
commands (first run: folder then token, the token never returned whole, settings and logs through
commands (first run: folder then token, the token never returned whole, the wizard resumed at its
step until finished, log files and the zip from the folder choice on, settings and logs through
their modules, the dashboard before anything runs), the invite link's permissions and the Message
Content flags. The screens are checked in a browser against the development server with the real
services (wizard, dashboard start, restart and stop, settings save, chat channels, logs, export). Windows-only paths (DPAPI, `%APPDATA%`) are