feat(coding-agent): add switchSession to Extension API (#1191)

Allows extension commands to programmatically switch to a different session file via ctx.switchSession(sessionPath).

fixes #1187
This commit is contained in:
Juan Ibiapina 2026-02-02 18:03:26 +01:00 committed by GitHub
parent 0d934091f4
commit d0228412d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 24 additions and 0 deletions

View file

@ -4,6 +4,7 @@
### Added
- **Extension API switchSession**: Added `ctx.switchSession(sessionPath)` to `ExtensionCommandContext` for programmatic session switching in extension commands ([#1187](https://github.com/badlogic/pi-mono/issues/1187)).
- **Clear on shrink setting**: New `terminal.clearOnShrink` setting (and `/settings` toggle) controls whether empty rows are cleared when content shrinks. Disabled by default to reduce flicker. Enable via settings or `PI_CLEAR_ON_SHRINK=1` env var.
## [0.51.0] - 2026-02-01