diff options
| author | Daniel Polito <[email protected]> | 2026-02-03 12:06:02 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-03 09:06:02 -0600 |
| commit | 76381f33d5b25f01867034767ab30650cb10fd32 (patch) | |
| tree | 201691141f488af0d4b0558b0aaa5aa6b9886f88 | |
| parent | 95d0d476e306e0767e569466e39152390e7024d1 (diff) | |
| download | opencode-76381f33d5b25f01867034767ab30650cb10fd32.tar.gz opencode-76381f33d5b25f01867034767ab30650cb10fd32.zip | |
feat(desktop): Allow empty prompt with review comments (#11953)
| -rw-r--r-- | packages/app/src/components/prompt-input.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index 619d4e5d9..ac3c74589 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -1132,7 +1132,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { const images = imageAttachments().slice() const mode = store.mode - if (text.trim().length === 0 && images.length === 0) { + if (text.trim().length === 0 && images.length === 0 && commentCount() === 0) { if (working()) abort() return } @@ -2068,7 +2068,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { > <IconButton type="submit" - disabled={!prompt.dirty() && !working()} + disabled={!prompt.dirty() && !working() && commentCount() === 0} icon={working() ? "stop" : "arrow-up"} variant="primary" class="h-6 w-4.5" |
