fix(ui): surface model retry status (NAN-34) (#5504)
This commit is contained in:
1 parent
0b1fa0c3e4
commit
b581a496a6
52 files changed
+1697
-55
No files matched your search
@@ -140,6 +140,27 @@ function installReducedMotion() {
|
||||
}
|
||||
|
||||
describe("AgentActivityCluster", () => {
|
||||
it("shows model retries in the existing live activity header", () => {
|
||||
render(
|
||||
<AgentActivityCluster
|
||||
messages={[]}
|
||||
isTurnStreaming
|
||||
hasBodyBelow={false}
|
||||
retryStatus={{
|
||||
state: "waiting",
|
||||
attempt: 1,
|
||||
max_attempts: 4,
|
||||
error_kind: "connection",
|
||||
next_retry_at: Date.now() / 1000 + 5,
|
||||
}}
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(
|
||||
screen.getByText("Connection failed · retrying in 5s · attempt 1/4"),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("keeps intermediate assistant output as normal Markdown inside live activity", async () => {
|
||||
await act(async () => {
|
||||
await preloadMarkdownText();
|
||||
|
||||
Reference in new issue
Block a user