// The failure sits in the turn that produced it, not in a toast elsewhere on the page.
// As the client makes it: the code picks the sentence the reader sees; the provider's own
// message stays on the segment, and went to the console.
document.querySelectorAll('aparte-chat-bubble')[1].setSegments([{
id: 's1',
type: 'error',
code: 'USAGE_RATE_LIMIT',
content: 'HTTP 429: {"error":{"type":"rate_limit_error","message":"Number of requests exceeded"}}',
}]);