The open source coding agent.
TypeScript
fix: resize textarea when pasting prompt less than 150 chars (#6070)
OpeOginni2806f240ea0a
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsxindex 18384f65e01..8972ba36e84 100644--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx@@ -930,6 +930,13 @@ export function Prompt(props: PromptProps) {pasteText(pastedContent, `[Pasted ~${lineCount} lines]`)return}++ // Force layout update and render for the pasted content+ setTimeout(() => {+ input.getLayoutNode().markDirty()+ input.gotoBufferEnd()+ renderer.requestRender()+ }, 0)}}ref={(r: TextareaRenderable) => {input = r