Repository navigation
Description
Context
Part of #3690. #3700 maps voice provenance onto the #3692 chat marks and requires that reloaded chats render the same marks. Two of its marks have no durable evidence today, so they cannot survive a reload:
- Cut off (barge-in). The provider's
interruptedevent (ConversationWireEvent,packages/ui-sdk/src/protocol.ts:2227-2231) only flushes local playback (suppressOutput,packages/ui-react/src/voice/conversation-client.ts:234-241). It is never recorded on an output or in the durable dialogue.DialogueEvidencekeeps onlyinput_fragment,unassigned_input_fragmentandoutput_transcript(packages/ui-sdk/src/protocol.ts:4401-4405). - End divider (duration and persona). The "conversation ended" boundary exists only in the client's transcript timeline (
stopVoice,packages/ui-react/src/lib/transcript-timeline.ts). ui-react: wire spoken-turn marks into chat — inline mic/speaker, uncertain and unplayed text, end divider #3700 now shows it as the kit divider with a locally observed duration, but a reload loses it. That was already true of the old "Voice ended" line. No persona exists until ui-react: configure and select live-conversation personas through Settings #3617.
#3700 shipped the marks the retained evidence supports: mic and speaker, the in-progress outline, uncertain words from the retained calibrated confidence, and a live-only end divider. It shows no cut-off tag, because a live-only tag would make a reloaded chat render different marks.
The question
Should the host retain barge-in and conversation-end evidence in the durable dialogue, so that cut-off and the end divider render after a reload?
- Retain both (recommended). Add a
DialogueEvidencekind for an observed provider interruption (with itsoutputIdwhen given) and for a conversation's end (start and end time, and persona once ui-react: configure and select live-conversation personas through Settings #3617 lands). This is an additive contract change toServerDialogueHistoryand its schema, plus the ui-server write path. Cut-off and the divider then render the same live and reloaded. - Live-only marks. Rule that cut-off and the divider are live-only, and amend ui-react: wire spoken-turn marks into chat — inline mic/speaker, uncertain and unplayed text, end divider #3700's reload criterion. This is cheaper, but the chat then differs after a reload.
- No cut-off mark. Rule that a barge-in is not shown in the chat at all, with the divider live-only.
This is a recommendation, not an approval. A maintainer ruling is needed before any work.
Scope (after the ruling, option 1)
- An additive
DialogueEvidencekind or kinds, withdocs/integration-contract.mdupdated and aCONTRACT:commit. - ui-server records them where it already writes dialogue records.
- ui-react renders
CutOffTag(viaSpokenTurn cutOff) and the end divider from retained evidence.
Out of scope
- Dimming unplayed text. Playback evidence does not align text to audio (
playedSamples), so no word position is known. - Persona selection (ui-react: configure and select live-conversation personas through Settings #3617).
Acceptance criteria
- A maintainer ruling recorded on this issue.
- Under option 1, a barge-in observed live and the same chat reloaded both show the cut-off tag on the same reply. A conversation's end divider shows the same duration live and after a reload. Both are proven by app browser tests.
- A reply with no recorded interruption never shows the cut-off tag.
Contract impact
Option 1 is an additive change to ServerDialogueHistory/DialogueEvidence, which ships in a minor.
Decisions (maintainer, 2026-11-08)
- Option 1: retain both. Add additive
DialogueEvidencekinds for an observed provider interruption (with itsoutputIdwhen given) and for a conversation's end (start and end time, and persona once ui-react: configure and select live-conversation personas through Settings #3617 lands). ui-server records them on its existing dialogue write path. ui-react renders the cut-off tag and the end divider from retained evidence, so live and reloaded chats show the same marks. This is an additive contract change (CONTRACT:commit, contract docs updated, minor release).
2026-11-08: open decision questions answered by the maintainer and recorded above.
Activity
schlessera commentedon Nov 8, 2026
Decision (maintainer, 2026-11-08):
DialogueEvidencekinds for an observed provider interruption (with itsoutputIdwhen given) and for a conversation's end (start and end time, and persona once ui-react: configure and select live-conversation personas through Settings #3617 lands). ui-server records them on its existing dialogue write path. ui-react renders the cut-off tag and the end divider from retained evidence, so live and reloaded chats show the same marks. This is an additive contract change (CONTRACT:commit, contract docs updated, minor release).The scope and acceptance criteria now follow option 1. This issue is
agent-ready.schlessera commentedon Nov 8, 2026
Claimed for implementation (claim
wi-20261108-a2ff75a4), branchfeat/3729-dialogue-evidence, under the 2026-11-08 ruling (option 1).Collision report for the cited files: path overlap on
packages/ui-react/src/voice/conversation-client.tswith drafts #3056, #3059 and #3735; closure overlaps only otherwise. The client change will stay minimal and additive.CONTRACT: fix(ui-server): retain no conversation end after a storage …
CONTRACT: feat(ui-sdk,ui-server,ui-react): retain barge-in and conver…
schlessera commentedon Nov 9, 2026
Delivered in #3740, squash
b1843c506764eeb2ad2f6bacef1b8a72fe60c227on main (parent57abb7b9, tree8cd63a14, matching the proven candidate checkout8ee63fc5). Candidate proof: CI run 42537074299, success. Milestone: 0.45.0.DialogueEvidencegainsvoice_interruption(withoutputIdwhen named) andvoice_end(host clockstartedAt/endedAt), written on the existing dialogue path. Neither enters provider history.Follow-up: #3739 (older clients refuse a whole dialogue page carrying an unknown evidence kind; needs scoping). Persona on the divider waits for #3617.