tui: go plan payg msg (#26248)

This commit is contained in:
Aiden Cline
2026-05-07 16:53:24 -05:00
committed by GitHub
parent 22e64cac67
commit f5d0371efe
10 changed files with 285 additions and 83 deletions

View File

@@ -230,8 +230,19 @@ describe("SessionStatus.Info", () => {
expect(SessionStatus.Info.zod.parse({ type: "idle" })).toEqual({ type: "idle" })
})
test("retry carries attempt/message/next", () => {
const input = { type: "retry" as const, attempt: 1, message: "transient", next: 500 }
test("retry carries attempt/message/action/next", () => {
const input = {
type: "retry" as const,
attempt: 1,
message: "transient",
action: {
title: "Free limit reached",
message: "Subscribe to OpenCode Go.",
label: "subscribe",
link: "https://opencode.ai/go",
},
next: 500,
}
expect(decode(input)).toEqual(input)
expect(SessionStatus.Info.zod.parse(input)).toEqual(input)
})