Skip to content

Commit 5d6d713

Browse files
Apply PR #35226: deps: upgrade OpenTUI to v0.4.3
2 parents bbdb019 + 5ae05ae commit 5d6d713

6 files changed

Lines changed: 43 additions & 29 deletions

File tree

bun.lock

Lines changed: 32 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
"@octokit/rest": "22.0.0",
4040
"@hono/standard-validator": "0.2.0",
4141
"@hono/zod-validator": "0.4.2",
42-
"@opentui/core": "0.3.4",
43-
"@opentui/keymap": "0.3.4",
44-
"@opentui/solid": "0.3.4",
42+
"@opentui/core": "0.4.3",
43+
"@opentui/keymap": "0.4.3",
44+
"@opentui/solid": "0.4.3",
4545
"@tanstack/solid-virtual": "3.13.28",
4646
"@shikijs/stream": "4.2.0",
4747
"ulid": "3.0.1",

packages/plugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"zod": "catalog:"
2828
},
2929
"peerDependencies": {
30-
"@opentui/core": ">=0.3.4",
31-
"@opentui/keymap": ">=0.3.4",
32-
"@opentui/solid": ">=0.3.4"
30+
"@opentui/core": ">=0.4.3",
31+
"@opentui/keymap": ">=0.4.3",
32+
"@opentui/solid": ">=0.4.3"
3333
},
3434
"peerDependenciesMeta": {
3535
"@opentui/core": {

packages/tui/src/component/dialog-provider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ function ApiMethod(props: ApiMethodProps) {
366366
<DialogPrompt
367367
title={props.title}
368368
placeholder="API key"
369-
description={
370-
{
369+
description={() =>
370+
({
371371
opencode: (
372372
<box gap={1}>
373373
<text fg={theme.textMuted}>
@@ -390,7 +390,7 @@ function ApiMethod(props: ApiMethodProps) {
390390
</text>
391391
</box>
392392
),
393-
}[props.providerID] ?? undefined
393+
})[props.providerID] ?? undefined
394394
}
395395
onConfirm={async (value) => {
396396
if (!value) return

packages/tui/src/routes/session/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ function AssistantMessage(props: { message: AssistantMessage; parts: Part[]; las
15281528
customBorderChars={SplitBorder.customBorderChars}
15291529
borderColor={theme.error}
15301530
>
1531-
<text fg={theme.textMuted}>{props.message.error?.data.message}</text>
1531+
<text fg={theme.textMuted}>{errorMessage(props.message.error)}</text>
15321532
</box>
15331533
</Show>
15341534
<Switch>

packages/tui/src/ui/dialog-prompt.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function DialogPrompt(props: DialogPromptProps) {
8383
</text>
8484
</box>
8585
<box gap={1}>
86-
{props.description}
86+
{props.description?.()}
8787
<textarea
8888
height={3}
8989
ref={(val: TextareaRenderable) => {

0 commit comments

Comments
 (0)