Skip to content

Commit a9d561e

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 8661758 commit a9d561e

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
@@ -340,7 +340,7 @@ import Security
340340
if blockedPeers.contains(peer) { return ["status": "revoked"] }
341341
if let binding = binding(for: peer) { return bound(binding) }
342342
let lookup = trust.lookup(keyID: claim.keyID, host: claim.host ?? "")
343-
let outcome: [String: Any]
343+
let outcome: [String: String]
344344
switch lookup {
345345
case .revoked: outcome = ["status": "revoked"]
346346
case .trusted(let record) where claim.host != nil:
@@ -355,7 +355,7 @@ import Security
355355
default:
356356
outcome = ["status": requestApproval(claim, leaf: leaf, helperHash: helperHash)]
357357
}
358-
Self.logConnect(claim: claim, lookup: lookup, result: outcome["status"] as? String ?? "?")
358+
Self.logConnect(claim: claim, lookup: lookup, result: outcome["status"] ?? "?")
359359
return outcome
360360
}
361361

0 commit comments

Comments
 (0)