Skip to content

Commit 3469714

Browse files
Apply PR #18079: Upgrade opentui to 0.1.88
2 parents c3cf234 + c7b93a8 commit 3469714

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
@@ -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)