Commit 471ab4d
fix: analysis controller was stealing stockfish from bg analysis
Root cause: useAnalysisController's useEngineAnalysis hook auto-runs
stockfish on every currentNode change. During drill play, each move
synced the node to the analysis controller, which called
stockfish.streamEvaluations() — killing the background analysis's
in-progress evaluation (the new call's stopEvaluation() terminates
the old generator).
Fix: only sync currentNode to the analysis controller when analysis
is actually active (post-drill continue-analyzing mode), not during
active drill play.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a63e1d5 commit 471ab4d
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
186 | 188 | | |
187 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
191 | 202 | | |
192 | 203 | | |
193 | 204 | | |
| |||
0 commit comments