mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix the remaining voice review gaps
keep analyst counts, speech, cards, cancellation, pointer capture, tool schema boundaries, and session lifetime consistent add the exact Alps fallback and focused regression coverage
This commit is contained in:
1 parent
6858976b01
commit
0343b4495e
21 files changed
+1745
-441
No files matched your search
@@ -242,12 +242,28 @@ export function reduceVoiceCard(state, event) {
|
||||
export function voiceCardView(state) {
|
||||
const running = state.steps.some((step) => step.status === 'running');
|
||||
const display = state.result?.display || null;
|
||||
const notes = [
|
||||
const allNotes = [
|
||||
...(display?.notes || []),
|
||||
...(display?.sources || []).map((source) => `Source: ${source.label}`),
|
||||
]
|
||||
.map((note) => spokenLabel(note, 96))
|
||||
.slice(0, MAX_NOTES);
|
||||
];
|
||||
// Analyst notes carry count/scope/provenance qualifications. Preserve their
|
||||
// full sanitized text in at most six existing rows, joining overflow into
|
||||
// the last row. Other tool cards retain their compact note contract.
|
||||
const completeNotes = display?.preserveNotes
|
||||
? [
|
||||
...new Set(
|
||||
allNotes.map((note) => spokenLabel(note, Infinity)).filter(Boolean),
|
||||
),
|
||||
]
|
||||
: null;
|
||||
const notes = completeNotes
|
||||
? completeNotes.length > MAX_NOTES
|
||||
? [
|
||||
...completeNotes.slice(0, MAX_NOTES - 1),
|
||||
completeNotes.slice(MAX_NOTES - 1).join('; '),
|
||||
]
|
||||
: completeNotes
|
||||
: allNotes.map((note) => spokenLabel(note, 96)).slice(0, MAX_NOTES);
|
||||
return {
|
||||
visible: Boolean(state.visible),
|
||||
busy: running,
|
||||
|
||||
Reference in new issue
Block a user