diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c03a05..7d59cd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2026-09-15 + + +### Fixed + +- Restored official Release builds by keeping the RPC stall test override confined to Debug builds. + ## 2026-09-09 ### Fixed diff --git a/PiNative/PiConversationModel.swift b/PiNative/PiConversationModel.swift index a98d10d..d8386db 100644 --- a/PiNative/PiConversationModel.swift +++ b/PiNative/PiConversationModel.swift @@ -67,7 +67,10 @@ final class PiConversationModel: ObservableObject { return milliseconds * 1_000_000 } private var shouldStallRPCForTesting: Bool { - shouldStallRPCOverrideForTesting ?? (ProcessInfo.processInfo.environment["PI_NATIVE_TEST_RPC_STALL"] == "1") +#if DEBUG + if let shouldStallRPCOverrideForTesting { return shouldStallRPCOverrideForTesting } +#endif + return ProcessInfo.processInfo.environment["PI_NATIVE_TEST_RPC_STALL"] == "1" } private var shouldFailRPCForTesting: Bool { #if DEBUG