Skip to content

Commit 6d30ffb

Browse files
Apply PR #18079: Upgrade opentui to 0.1.88
2 parents 054aa15 + c7b93a8 commit 6d30ffb

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
@@ -93,8 +93,8 @@
9393
"@opencode-ai/sdk": "workspace:*",
9494
"@opencode-ai/util": "workspace:*",
9595
"@openrouter/ai-sdk-provider": "1.5.4",
96-
"@opentui/core": "0.1.87",
97-
"@opentui/solid": "0.1.87",
96+
"@opentui/core": "0.1.88",
97+
"@opentui/solid": "0.1.88",
9898
"@effect/platform-node": "4.0.0-beta.31",
9999
"@parcel/watcher": "2.5.1",
100100
"@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)