CallsInterop: CALLS_INTEROP_SECONDS for soaks longer than 400 s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+3
−1
native/apple/Sources/CallsInterop/Interop.swift+3 −1
diff --git a/native/apple/Sources/CallsInterop/Interop.swift b/native/apple/Sources/CallsInterop/Interop.swift| index f027765..bc84396 100644 |
| --- a/native/apple/Sources/CallsInterop/Interop.swift |
| +++ b/native/apple/Sources/CallsInterop/Interop.swift |
| @@ -264,7 +264,9 @@ struct Input: Decodable { |
| // Long enough for the member scenario, screens and all, and for the |
| // motion gate's three modes: the gate always says `leave` long before |
| // this runs out. |
| - for _ in 0..<400 { |
| + // CALLS_INTEROP_SECONDS for the soaks, which outlast that (§15.22). |
| + let life = Int(ProcessInfo.processInfo.environment["CALLS_INTEROP_SECONDS"] ?? "") ?? 400 |
| + for _ in 0..<life { |
| try? await Task.sleep(nanoseconds: 1_000_000_000) |
| let stats = await call.sampleStats() |
| if let data = try? JSONSerialization.data(withJSONObject: [ |