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

@ -2829,6 +2829,7 @@ export default function (pi: ExtensionAPI) {
**Key points:**
- Extend `CustomEditor` (not base `Editor`) to get app keybindings (escape to abort, ctrl+d, model switching)
- Call `super.handleInput(data)` for keys you don't handle
- 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 receives `tui`, `theme`, and `keybindings` from the app
- Use `ctx.ui.getEditorComponent()` before `setEditorComponent()` to wrap the previously configured custom editor
- Pass `undefined` to restore default: `ctx.ui.setEditorComponent(undefined)`