chore: generate

This commit is contained in:
opencode-agent[bot]
2026-10-11 00:54:32 +00:00
Unverified
parent 9c97b807d0
commit add9b4ba5a
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -139,8 +139,8 @@ function UpdateNotification(props: { width: number }) {
: state.type === "major"
? " to upgrade to OpenCode 2.0"
: state.target.type === "major"
? " restart to use OpenCode 2.0"
: ` restart to use v${state.target.version}`}
? " restart to use OpenCode 2.0"
: ` restart to use v${state.target.version}`}
</text>
</box>
)}
@@ -13,7 +13,10 @@ describe("dialog update", () => {
test("skipping an OpenCode 1 version hides it until a newer one ships", () => {
const now = 1_000_000
expect(visibleNotice({ type: "available", version: "1.4.2" }, {}, now)).toEqual({ type: "available", version: "1.4.2" })
expect(visibleNotice({ type: "available", version: "1.4.2" }, {}, now)).toEqual({
type: "available",
version: "1.4.2",
})
expect(visibleNotice({ type: "available", version: "1.4.2" }, { skippedVersion: "1.4.2" }, now)).toBeUndefined()
expect(visibleNotice({ type: "available", version: "1.4.3" }, { skippedVersion: "1.4.2" }, now)).toEqual({
type: "available",