Commit 4c7a8ea
committed
fix(gui): clear the two React Doctor findings blocking the push gate
Both live in commits that are local-only, which is why origin/dev passes
the same gate and this tree did not.
Logs kept a `pollFailing` boolean in sync with the settlement state via
an effect, so every settle painted one frame with the stale banner and
the deps needed `logsState.error` purely to make repeated failures count
once. It is now derived: the streak is stored keyed by the error identity
that produced it, so re-renders of the same failure do not inflate the
count and a success clears it. (An intermediate attempt counted in a ref
during render, which traded this rule for no-ref-current-in-render - the
keyed-state form is the one React actually endorses.)
The Anthropic pool loader was already safe - `cancelled` guard plus an
AbortController - but its async/await shape put the setters after an
await where static analysis cannot see the guard. Rewritten as a promise
chain so each setter sits in a `.then` the checker can verify. Behaviour
is unchanged.
gui typecheck clean; gui doctor exit 0; gui test 427 pass 0 fail.1 parent 4c8bc61 commit 4c7a8ea
2 files changed
Lines changed: 33 additions & 32 deletions
Lines changed: 20 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | | - | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | | - | |
56 | 63 | | |
57 | | - | |
58 | 64 | | |
59 | 65 | | |
60 | | - | |
| 66 | + | |
61 | 67 | | |
62 | | - | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
68 | | - | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | 77 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
396 | 394 | | |
397 | 395 | | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
410 | 409 | | |
411 | 410 | | |
412 | 411 | | |
| |||
0 commit comments