Skip to content

Commit 43a49ca

Browse files
Apply PR #18079: Upgrade opentui to 0.1.88
2 parents 908040e + c7b93a8 commit 43a49ca

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
"@opencode-ai/sdk": "workspace:*",
106106
"@opencode-ai/util": "workspace:*",
107107
"@openrouter/ai-sdk-provider": "1.5.4",
108-
"@opentui/core": "0.1.87",
109-
"@opentui/solid": "0.1.87",
108+
"@opentui/core": "0.1.88",
109+
"@opentui/solid": "0.1.88",
110110
"@effect/platform-node": "catalog:",
111111
"@parcel/watcher": "2.5.1",
112112
"@pierre/diffs": "catalog:",

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)