summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorSebastian <[email protected]>2026-03-21 20:00:42 +0100
committerGitHub <[email protected]>2026-03-21 19:00:42 +0000
commit040f551c57ebd39e1d95a7d09bc7dc4cbbb85566 (patch)
tree260171ffe89512d62d712da819377c5f8b00514f /packages
parentcc818f803268881ce556fba1b0069d9b92225302 (diff)
downloadopencode-040f551c57ebd39e1d95a7d09bc7dc4cbbb85566.tar.gz
opencode-040f551c57ebd39e1d95a7d09bc7dc4cbbb85566.zip
Upgrade opentui to 0.1.88 (#18079)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/package.json4
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/opencode/package.json b/packages/opencode/package.json
index f9201ddeb..824c3409c 100644
--- a/packages/opencode/package.json
+++ b/packages/opencode/package.json
@@ -101,8 +101,8 @@
"@opencode-ai/sdk": "workspace:*",
"@opencode-ai/util": "workspace:*",
"@openrouter/ai-sdk-provider": "1.5.4",
- "@opentui/core": "0.1.87",
- "@opentui/solid": "0.1.87",
+ "@opentui/core": "0.1.88",
+ "@opentui/solid": "0.1.88",
"@parcel/watcher": "2.5.1",
"@pierre/diffs": "catalog:",
"@solid-primitives/event-bus": "1.1.2",
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
index 249a48d35..c13b43651 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -1,4 +1,4 @@
-import { BoxRenderable, TextareaRenderable, MouseEvent, PasteEvent, t, dim, fg } from "@opentui/core"
+import { BoxRenderable, TextareaRenderable, MouseEvent, PasteEvent, decodePasteBytes, t, dim, fg } from "@opentui/core"
import { createEffect, createMemo, type JSX, onMount, createSignal, onCleanup, on, Show, Switch, Match } from "solid-js"
import "opentui-spinner/solid"
import path from "path"
@@ -934,7 +934,7 @@ export function Prompt(props: PromptProps) {
// Normalize line endings at the boundary
// Windows ConPTY/Terminal often sends CR-only newlines in bracketed paste
// Replace CRLF first, then any remaining CR
- const normalizedText = event.text.replace(/\r\n/g, "\n").replace(/\r/g, "\n")
+ const normalizedText = decodePasteBytes(event.bytes).replace(/\r\n/g, "\n").replace(/\r/g, "\n")
const pastedContent = normalizedText.trim()
if (!pastedContent) {
command.trigger("prompt.paste")