fix(coding-agent): handle ctrl+z on windows closes #3191

This commit is contained in:
Mario Zechner
2026-04-16 12:33:47 +02:00
parent eb1cf80b10
commit 624a7f794f
5 changed files with 47 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, `ctrl+1
| `app.interrupt` | `escape` | Cancel / abort |
| `app.clear` | `ctrl+c` | Clear editor |
| `app.exit` | `ctrl+d` | Exit (when editor empty) |
| `app.suspend` | `ctrl+z` | Suspend to background |
| `app.suspend` | `ctrl+z` (none on Windows) | Suspend to background |
| `app.editor.external` | `ctrl+g` | Open in external editor (`$VISUAL` or `$EDITOR`) |
| `app.clipboard.pasteImage` | `ctrl+v` (`alt+v` on Windows) | Paste image from clipboard |
@@ -145,6 +145,8 @@ Create `~/.pi/agent/keybindings.json`:
Each action can have a single key or an array of keys. User config overrides defaults.
On native Windows, `app.suspend` has no default binding because Windows terminals do not support Unix job control. If you bind it manually, pi shows a status message instead of suspending. In WSL, the normal Linux `ctrl+z`/`fg` behavior still applies.
### Emacs Example
```json