Skip to content

Commit 5fe63d3

Browse files
Apply PR #18079: Upgrade opentui to 0.1.88
2 parents 4ffe60d + c7b93a8 commit 5fe63d3

3 files changed

Lines changed: 14 additions & 16 deletions

File tree

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
@@ -103,8 +103,8 @@
103103
"@opencode-ai/sdk": "workspace:*",
104104
"@opencode-ai/util": "workspace:*",
105105
"@openrouter/ai-sdk-provider": "1.5.4",
106-
"@opentui/core": "0.1.87",
107-
"@opentui/solid": "0.1.87",
106+
"@opentui/core": "0.1.88",
107+
"@opentui/solid": "0.1.88",
108108
"@effect/platform-node": "4.0.0-beta.31",
109109
"@parcel/watcher": "2.5.1",
110110
"@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)