fix: PlayMode start reports compiler errors instead of timing out#1354
Conversation
Use Unity's script compilation failure flag to stop PlayMode entry immediately, and surface the saved compiler diagnostics instead of waiting for the state poll timeout.
Return saved compiler diagnostics from status polling so Play requests that become blocked after the initial command do not fall back to the generic wait timeout.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (12)
📝 WalkthroughWalkthroughAdds compile-error blocking to the play-mode control feature. A new Unity service tracks script compilation failures via pipeline events and snapshots diagnostics. The use case checks compilation state before entering play mode and returns a blocked response with error details. The Go CLI decodes these blocked responses and exits early with a structured error envelope. Tests cover all new paths on both sides. ChangesCompile-Error Blocking for Control-Play-Mode
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
User Impact
uloop control-play-mode --action Playwith compiler errors could hang until the wait timeout and hide the actual cause.Changes
CONTROL_PLAY_MODE_COMPILE_ERRORSduring both the initial request and polling.Verification
cli/dist/darwin-arm64/uloop compile --project-path "$(git rev-parse --show-toplevel)"cli/dist/darwin-arm64/uloop run-tests --project-path "$(git rev-parse --show-toplevel)" --test-mode EditMode --filter-type regex --filter-value "ControlPlayModeUseCaseTests"go test ./internal/cli -run TestRunControlPlayModeWithStateWaitscripts/check-go-cli.sh/Users/a12115/dotfiles/.claude/skills/codex-review/scripts/codex-review v3-beta