7ce928992174dbf0f21c37325b6366cfb8f0f925
Also found uncommitted in the shared tree; unrelated to agent panels, so it lands on its own. `reset` closed over `initialValue` from the first render, and its `useCallback` dep list deliberately omitted it — with an eslint-disable to silence the warning that was correctly pointing at the bug. Any caller whose default is computed (derived from props, from a fetch, from another piece of state) got reset to whatever that default happened to be on mount, which after the first render is the wrong value. Reads through a ref instead, so reset always sees the current default. The eslint-disable goes away because there is nothing left to suppress — the dep list is honest now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Description
No description provided
42 MiB
Languages
TypeScript
90.9%
Shell
4.7%
JavaScript
4.1%
CSS
0.2%
HTML
0.1%