fix(app): a transcript belongs to the voice session its utterance started in

Each Joined carries a new session number; the core records, when an
utterance's speech_start arrives, the session Jarvis is in, and its Partial
and Final carry that number (Heard.session) even when they arrive after a
leave or a move. The dashboard shows only the current session's captions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-12 14:00:21 +09:00
parent 371e87f553
commit e8ddde5be6
6 changed files with 129 additions and 25 deletions

View File

@@ -108,8 +108,9 @@ reaches the screen.
- `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. 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,
their next partial and then by the final. A transcript belongs to the voice session its
utterance started in (`Heard.session`, `discord_core.spec.md`): only the current session's are
shown, so one arriving after Jarvis left, or after it moved to another channel, is not. 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