fix(app): the dashboard keeps each run's events, each answer's own times, and only its session's captions
- Each start gets a new dashboard; stop ends the event feeding and waits for it before forgetting, so queued or earlier-run events never reach the screen. - AnswerAsked carries the request's speech end and final times, so a second waiting question does not change the first answer's timing. - Captions are shown only while Jarvis is in a voice channel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -94,7 +94,10 @@ The dashboard's start and stop buttons, and the app binary itself, run the servi
|
||||
`Controller` for the data folder: states `stopped`, `starting`, `running`, `stopping`, `failed`
|
||||
(with the error, secrets masked). `start` from stopped or failed only, `stop` from running only;
|
||||
`restart` is stop then start. A start that fails leaves nothing running. Starting reads the
|
||||
settings and the stored token again, so saved changes take effect on the next start.
|
||||
settings and the stored token again, so saved changes take effect on the next start. Each start
|
||||
gets a new dashboard fed by that run's events; `stop` ends the feeding (and waits for it) before
|
||||
the dashboard is forgotten, so an event queued before the stop, or sent by an earlier run, never
|
||||
reaches the screen.
|
||||
|
||||
## Dashboard data (`app/src/dashboard.rs`)
|
||||
|
||||
@@ -105,12 +108,14 @@ settings and the stored token again, so saved changes take effect on the next st
|
||||
- `voice`: the voice channel Jarvis is in and the people there (ID and display name), as the core
|
||||
reports them to the worker.
|
||||
- `captions`: live captions, the last 30 lines: a speaker's partial transcript is replaced by
|
||||
their next partial and then by the final. On the screen only: never logged, never written,
|
||||
their next partial and then by the final. Only while Jarvis is in a voice channel: a transcript
|
||||
that arrives after it left is not shown. On the screen only: never logged, never written,
|
||||
cleared when Jarvis leaves the voice channel or the services stop.
|
||||
- `latency`: the last 20 voice answers, each split into its stages: speech end to final transcript,
|
||||
the brain (answer asked to answer text), the voice (answer text to the first sound) and the
|
||||
total; with the median of each. An answer is matched to its question by the core's
|
||||
`AnswerAsked { id, user }` event (the speech id and the asker) and that user's latest final.
|
||||
total; with the median of each. The core's `AnswerAsked { id, user, ended_at, final_at }` event
|
||||
carries the speech id and the request's own times (when its speech ended, when its final
|
||||
arrived), so a second question waiting behind the first does not change the first's times.
|
||||
- `missed`: the conversation's missed requests (`conversation.spec.md`), newest first, at most 20:
|
||||
who, why and how long ago, never the text.
|
||||
- `system`: memory in use and total, and per NVIDIA GPU its use and VRAM (from `nvidia-smi`,
|
||||
|
||||
Reference in New Issue
Block a user