Skip to content

The open source coding agent.

TypeScript

Fix: TUI single-line paste cursor position (#7277)

Octane0c0057a7deb8
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 1463c813e8a..ad55c526850 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -915,7 +915,6 @@ export function Prompt(props: PromptProps) {
// Force layout update and render for the pasted content
setTimeout(() => {
input.getLayoutNode().markDirty()
- input.gotoBufferEnd()
renderer.requestRender()
}, 0)
}}