Skip to content

Commit 265f79e

Browse files
authored
fix(mac): allow five-minute node worker cold starts (#106380)
* fix(mac): extend node worker startup timeout * chore: keep release notes in PR
1 parent f87a746 commit 265f79e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/macos/Sources/OpenClaw/NodeMode/MacNodeHostWorker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protocol MacNodeHostWorking: Sendable {
2727
/// The worker never connects to Gateway; this app remains the sole node identity
2828
/// and keeps TCC-sensitive execution behind the native exec-host socket.
2929
final class MacNodeHostWorker: MacNodeHostWorking, @unchecked Sendable {
30-
nonisolated static let defaultStartupTimeout: TimeInterval = 120
30+
nonisolated static let defaultStartupTimeout: TimeInterval = 300
3131

3232
enum WorkerError: LocalizedError {
3333
case unavailable(String)

apps/macos/Tests/OpenClawIPCTests/MacNodeHostWorkerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private actor StubMacNodeHostWorker: MacNodeHostWorking {
3030
@Suite(.serialized)
3131
struct MacNodeHostWorkerTests {
3232
@Test func `worker allows a generous cold-start window`() async throws {
33-
#expect(MacNodeHostWorker.defaultStartupTimeout == 120)
33+
#expect(MacNodeHostWorker.defaultStartupTimeout == 300)
3434

3535
let worker = MacNodeHostWorker(session: GatewayNodeSession(), startupTimeout: 1)
3636
let script = """

0 commit comments

Comments
 (0)