Skip to content

Commit 6d48dfd

Browse files
committed
Fix connect outcome type in agent connection log (#13)
Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7MWqYoCZivtQ96kBhP
1 parent ffb1a7e commit 6d48dfd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Sources/App/AgentSessionController.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ import Security
327327
if blockedPeers.contains(peer) { return ["status": "revoked"] }
328328
if let binding = binding(for: peer) { return bound(binding) }
329329
let lookup = trust.lookup(keyID: claim.keyID, host: claim.host ?? "")
330-
let outcome: [String: Any]
330+
let outcome: [String: String]
331331
switch lookup {
332332
case .revoked: outcome = ["status": "revoked"]
333333
case .trusted(let record) where claim.host != nil:
@@ -342,7 +342,7 @@ import Security
342342
default:
343343
outcome = ["status": requestApproval(claim, leaf: leaf, helperHash: helperHash)]
344344
}
345-
Self.logConnect(claim: claim, lookup: lookup, result: outcome["status"] as? String ?? "?")
345+
Self.logConnect(claim: claim, lookup: lookup, result: outcome["status"] ?? "?")
346346
return outcome
347347
}
348348

0 commit comments

Comments
 (0)