fix(ai): honor codex transport option

closes #4083
This commit is contained in:
Mario Zechner
2026-05-02 14:14:22 +02:00
parent e4163fe9a5
commit b8bb2411ff
8 changed files with 120 additions and 5 deletions

View File

@@ -24,6 +24,7 @@
### Fixed
- Fixed the default transport setting to use `auto`, allowing OpenAI Codex to use cached WebSocket context when available ([#4083](https://github.com/badlogic/pi-mono/issues/4083)).
- Fixed `pi.registerProvider()` to honor per-model `baseUrl` overrides ([#4063](https://github.com/badlogic/pi-mono/issues/4063)).
- Fixed self-update detection so `pi` correctly identifies when a newer version is available and applies updates ([#3942](https://github.com/badlogic/pi-mono/issues/3942), [#3980](https://github.com/badlogic/pi-mono/issues/3980), [#3922](https://github.com/badlogic/pi-mono/issues/3922)).

View File

@@ -78,7 +78,7 @@ export interface Settings {
defaultProvider?: string;
defaultModel?: string;
defaultThinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh";
transport?: TransportSetting; // default: "sse"
transport?: TransportSetting; // default: "auto"
steeringMode?: "all" | "one-at-a-time";
followUpMode?: "all" | "one-at-a-time";
theme?: string;
@@ -656,7 +656,7 @@ export class SettingsManager {
}
getTransport(): TransportSetting {
return this.settings.transport ?? "sse";
return this.settings.transport ?? "auto";
}
setTransport(transport: TransportSetting): void {