Skip to content

Commit 9c68f95

Browse files
Apply PR #18079: Upgrade opentui to 0.1.88
2 parents f5eb707 + c7b93a8 commit 9c68f95

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

bun.lock

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

packages/opencode/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"@ai-sdk/xai": "2.0.51",
9090
"@aws-sdk/credential-providers": "3.993.0",
9191
"@clack/prompts": "1.0.0-alpha.1",
92-
"@effect/platform-node": "catalog:",
92+
"@effect/platform-node": "4.0.0-beta.31",
9393
"@hono/standard-validator": "0.1.5",
9494
"@hono/zod-validator": "catalog:",
9595
"@modelcontextprotocol/sdk": "1.25.2",
@@ -101,8 +101,8 @@
101101
"@opencode-ai/sdk": "workspace:*",
102102
"@opencode-ai/util": "workspace:*",
103103
"@openrouter/ai-sdk-provider": "1.5.4",
104-
"@opentui/core": "0.1.87",
105-
"@opentui/solid": "0.1.87",
104+
"@opentui/core": "0.1.88",
105+
"@opentui/solid": "0.1.88",
106106
"@parcel/watcher": "2.5.1",
107107
"@pierre/diffs": "catalog:",
108108
"@solid-primitives/event-bus": "1.1.2",

packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BoxRenderable, TextareaRenderable, MouseEvent, PasteEvent, t, dim, fg } from "@opentui/core"
1+
import { BoxRenderable, TextareaRenderable, MouseEvent, PasteEvent, decodePasteBytes, t, dim, fg } from "@opentui/core"
22
import { createEffect, createMemo, type JSX, onMount, createSignal, onCleanup, on, Show, Switch, Match } from "solid-js"
33
import "opentui-spinner/solid"
44
import path from "path"
@@ -946,7 +946,7 @@ export function Prompt(props: PromptProps) {
946946
// Normalize line endings at the boundary
947947
// Windows ConPTY/Terminal often sends CR-only newlines in bracketed paste
948948
// Replace CRLF first, then any remaining CR
949-
const normalizedText = event.text.replace(/\r\n/g, "\n").replace(/\r/g, "\n")
949+
const normalizedText = decodePasteBytes(event.bytes).replace(/\r\n/g, "\n").replace(/\r/g, "\n")
950950
const pastedContent = normalizedText.trim()
951951
if (!pastedContent) {
952952
command.trigger("prompt.paste")

0 commit comments

Comments
 (0)