Repository navigation
Description
Problem
lint fails only on errors. react-hooks/exhaustive-deps is configured at warn, so a genuine stale-closure defect passed npm run ci — the mandatory pre-push gate — and was caught only by a review round on #2076.
The defect: two useCallbacks in App.tsx captured refreshInitialConfig without listing it in their dependency arrays. useInitialConfig's refresh is not referentially stable (it is a useCallback over load, whose deps are [base, authToken, doFetch]), so after any of those change the callbacks keep invoking the obsolete closure.
ESLint printed exactly the right message on both lines, on every run. Nothing consumed it.
Why this is worth a guard rather than vigilance
The gate's whole promise is that passing it locally means CI's gates pass — and it kept that promise while a real bug walked through. A warning channel nobody fails on is one people learn to skim, which is the same argument AGENTS.md already makes under Build output is never a gate target:
It trains people to skim the channel. A scope whose lint is never clean has no signal left in it, and the real warning added later lands where everyone has learned to look past.
That section reasons about generated output polluting the channel; this is the same channel failing for the complementary reason.
The change is cheap right now
Verified 2026-08-22 on the #2076 branch, after fixing the two warnings above — all five lint scopes are warning-free:
| Scope | Warnings |
|---|---|
clients/web |
0 |
clients/cli |
0 |
clients/tui |
0 |
clients/launcher |
0 |
root lint:core + lint:shared |
0 |
So --max-warnings 0 can be added to each lint script today with no cleanup work and no suppressions. That window is the reason to do it now — the cost only grows as warnings accumulate.
Proposed
- Add
--max-warnings 0to thelintscript in all fourclients/*/package.jsonand to the rootlint:core/lint:shared. - Consider promoting
react-hooks/exhaustive-depstoerroras well, so its severity reads correctly in an editor rather than depending on the CLI flag.
Not proposed
Do not silence a finding to satisfy the new gate. If a dependency genuinely must be omitted, that is what the rule's inline disable comment plus a one-line justification is for — the same standard AGENTS.md sets for v8 ignore and for void on a floating promise.
Out of scope
The two warnings that prompted this are already fixed in #2076; this issue is only about the gate.
Activity
cliffhall commentedon Aug 23, 2026
Triage: Priority Low (total 5)
Board: #28, Status
Todo, milestone v2.4.0.cliffhall commentedon Aug 23, 2026
Shipped in #2090 (merged to
v2/mainas 6829b45).fix: address Copilot review round 6