Stop, Retry and Failure
Real users press Stop, lose their connection, hit rate limits and wait on slow models. Build the controls and the honest messages for each case.
Phase 2 made Mitra stream. This phase makes it survive. A streamed answer is a long-lived connection to a slow, expensive service, so everything that can go wrong with a long conversation can go wrong here: the user changes their mind, the connection drops, the model is busy, the provider says "slow down", or the stream simply goes quiet.
You will learn the Stop button and what it really does to the browser, the network and your bill; how to keep and label a partial answer; what to do when the stream breaks halfway; the difference between retry and regenerate; how to notice a slow or stuck stream; and how to show a rate limit as a countdown instead of an error.
Every example runs real browser code against a scripted stand-in model, so each failure happens on demand and prints the same thing every time. By the end Mitra can be stopped, can recover, and always tells the user the truth about what happened.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.