mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 19:04:37 +00:00
Fix --no-extensions flag not preventing extension discovery
When --no-extensions was used, extensionsResult.extensions was an empty array. The condition in buildSessionOptions() checked .length > 0, so preloadedExtensions was not set. This caused createAgentSession() to fall through to extension discovery. Remove the .length > 0 condition so the empty result is passed through, signaling that extension loading was already handled. Fixes #776
This commit is contained in:
parent
81f5a12e81
commit
3326b8f521
2 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
### Fixed
|
||||
|
||||
- Fixed `--no-extensions` flag not preventing extension discovery ([#776](https://github.com/badlogic/pi-mono/issues/776))
|
||||
- Fixed extension messages rendering twice on startup when `pi.sendMessage({ display: true })` is called during `session_start` ([#765](https://github.com/badlogic/pi-mono/pull/765) by [@dannote](https://github.com/dannote))
|
||||
- Fixed `PI_CODING_AGENT_DIR` env var not expanding tilde (`~`) to home directory ([#778](https://github.com/badlogic/pi-mono/pull/778) by [@aliou](https://github.com/aliou))
|
||||
- Fixed session picker hint text overflow ([#764](https://github.com/badlogic/pi-mono/issues/764))
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ function buildSessionOptions(
|
|||
}
|
||||
|
||||
// Pre-loaded extensions (from early CLI flag discovery)
|
||||
if (extensionsResult && extensionsResult.extensions.length > 0) {
|
||||
if (extensionsResult) {
|
||||
options.preloadedExtensions = extensionsResult;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue