I am unable to build Clawdbot on macos lately

I pull the latest version of the clawdbot repo, run pnpm install and pnpm build then I run ./scripts/build-and-run-mac.sh or ./scripts/package-mac-ap.sh and when I do, I get build errors:

Here is a portion of the logs. No output in dist/

❯ ./scripts/build-and-run-mac.sh

▶️  Building Clawdbot (debug, build path: .build-local)
[1/1] Planning build
Building for debugging...
/Users/byronrode/Work/Tools/clawdbot/apps/macos/Sources/Clawdbot/GatewayConnection.swift:242:58: error: value of type '[String : AnyCodable]' has no member 'mainsessionkey'
240 |     func cachedMainSessionKey() -> String? {
241 |         guard let snapshot = self.lastSnapshot else { return nil }
242 |         let trimmed = snapshot.snapshot.sessiondefaults?.mainsessionkey
    |                                                          `- error: value of type '[String : AnyCodable]' has no member 'mainsessionkey'
243 |             .trimmingCharacters(in: .whitespacesAndNewlines) ?? ""
244 |         return trimmed.isEmpty ? nil : trimmed
Was this page helpful?