mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-02 03:35:09 +02:00
af1b1352bf
Same class of brittleness as sidebar-security.test.ts fixed earlier
(commit 65bf4514). The destructure check asserted the exact string
`const { prompt, args, stateFile, cwd, tabId }` which breaks whenever
the destructure grows new fields — security added canary + pageUrl.
Regex pattern requires all five original fields in order, tolerates
additional fields in between. Preserves the test's intent without
churning on every field addition.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>