Commit baebcc7
test+docs(game_eval): address self-review findings on #518
- Move the no-session test's skip-guard BEFORE _send_eval. The old guard
checked conn.captured AFTER the call, so if a session were ever present
on the bare plugin, _send_eval would already have armed timers and sent
a real mcp:eval into the running game before the test could bail.
Gate on _first_active_session() up front instead (precondition, not
post-hoc) so the test can never have side effects.
- tools/editor.py: note EVAL_GAME_NOT_READY also covers a missing/disabled
_mcp_game_helper autoload, not just "still launching" -- matches the
fuller handlers/editor.py wording so an LLM caller doesn't retry forever
when the real fix is enabling the autoload.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c0de00e commit baebcc7
2 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
415 | 414 | | |
416 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
0 commit comments