fix(tui): keep retry attempt before message (#30275)
This commit is contained in:
parent
6072a68d6b
commit
57d602d07a
2 changed files with 12 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import { For } from "solid-js"
|
|||
import { testRender, type JSX } from "@opentui/solid"
|
||||
import {
|
||||
formatCompletedSubagentDetail,
|
||||
formatSubagentRetry,
|
||||
formatSubagentTitle,
|
||||
formatSubagentToolcalls,
|
||||
InlineToolRow,
|
||||
|
|
@ -155,6 +156,12 @@ describe("TUI inline tool wrapping", () => {
|
|||
)
|
||||
})
|
||||
|
||||
test("keeps retry status ahead of wrapping messages", () => {
|
||||
expect(formatSubagentRetry(2, "Rate limited by provider")).toBe(
|
||||
"Retrying (attempt 2) · Rate limited by provider",
|
||||
)
|
||||
})
|
||||
|
||||
test("snapshots consecutive grep, glob, and read rows at a narrow width", async () => {
|
||||
expect(await renderFrame(() => <Fixture />, { width: 72, height: 12 })).toMatchSnapshot()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue