feat(tui): prettier Working... spinner (#8799)

This commit is contained in:
Cristina Poncela Cubeiro 2026-09-03 20:34:04 +02:00 • committed by GitHub
parent e44d75c20a
commit 1d9787c11f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 275 additions and 39 deletions

View file

@ -930,6 +930,7 @@ export default function (pi: ExtensionAPI) {
- **Extend `CustomEditor`** (not base `Editor`) to get app keybindings (escape to abort, ctrl+d to exit, model switching, etc.)
- **Call `super.handleInput(data)`** for keys you don't handle
- **Working status**: custom editors keep the standalone working row by default. Pass `{ embedWorkingStatus: true }` as the fourth `CustomEditor` constructor argument to use the built-in editor-border spinner instead.
- **Factory pattern**: `setEditorComponent` receives a factory function that gets `tui`, `theme`, and `keybindings`
- **Pass `undefined`** to restore the default editor: `ctx.ui.setEditorComponent(undefined)`