Merge pull request #1374 from superhedge22/fix-review-enter-submit

Fix /review custom instructions submission
This commit is contained in:
Can Bölük
2026-05-26 21:40:15 +03:00
committed by GitHub
10 changed files with 292 additions and 23 deletions
+3 -1
View File
@@ -245,12 +245,14 @@ export default function contextFilter(omp: HookAPI): void {
| `select(title, options)` | Show a selection dialog |
| `confirm(title, message)` | Show a yes/no dialog |
| `input(title, placeholder?)` | Show a text input dialog |
| `editor(title, prefill?, { signal }?)` | Show a multi-line editor |
| `editor(title, prefill?, { signal }?, { promptStyle }?)` | Show a multi-line editor |
| `setEditorText(text)` | Set the input editor content |
| `getEditorText()` | Get current input editor content |
| `custom(factory)` | Render a custom TUI component |
| `theme` | Current theme object |
Pass `{ promptStyle: true }` as the fourth argument when Enter should submit and Shift+Enter should insert a newline. The default hook editor behavior keeps Enter as newline and Ctrl+Enter as submit.
`ctx.hasUI` is `false` in headless/print/subagent mode — always guard interactive calls.
## Further reading