fix(agents): replace 'in' with Object.hasOwn() for prototype-safe property checks
Addresses cubic-dev-ai review: using 'in' on plain objects can skip valid agent names that match inherited properties (toString, constructor, etc.). Switched both occurrences in opencode-config-agents-reader.ts to Object.hasOwn() for safe own-property checks.
B
Brandon Webb committed
cf4b23155376ed1afd1f56368e34e16be9c97e4d
Parent: 42445f5
Committed by YeonGyu-Kim <code.yeon.gyu@gmail.com>
on 4/15/2026, 1:57:54 AM