fix: Launch now confirms when Unity is ready or restarted#1301
Conversation
Make launch success paths machine-readable so agents can tell whether Unity was already running, newly launched, or restarted. Include process IDs in restart responses and bump the CLI contract version for the new launch output contract.
|
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 selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughBump CLI/tool version to 3.0.0-beta.28. Extend uloop launch to wait for tool readiness when reusing an existing Unity process, capture previous/current process IDs, and emit richer structured JSON responses for already-running, launched, restarted, and quit paths. Add tests and update SKILL docs. ChangesLaunch Command Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Packages/src/Editor/CliOnlyTools`~/Launch/Skill/SKILL.md:
- Around line 55-66: The launch JSON schema in SKILL.md is missing the Quit
field emitted by writeLaunchQuitResponse; update the enumerated output fields to
include `Quit`: a boolean indicating whether the command quit the running Unity
process (true when a process was stopped via quit, false otherwise), and place
it alongside the other top-level flags (e.g., near `Launched`/`Restarted`) so
consumers can detect quit outcomes without parsing `Message`; ensure the field
name exactly matches `Quit` and the description matches the boolean semantics
used by writeLaunchQuitResponse.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a03b8474-7340-4996-a99e-196ff3800079
📒 Files selected for processing (9)
.agents/skills/uloop-launch/SKILL.md.claude/skills/uloop-launch/SKILL.mdPackages/src/Editor/CliOnlyTools~/Launch/Skill/SKILL.mdPackages/src/Editor/Domain/CliConstants.cscli/contract.jsoncli/internal/cli/launch.gocli/internal/cli/launch_ready.gocli/internal/cli/launch_test.gocli/internal/tools/default-tools.json
There was a problem hiding this comment.
3 issues found across 9 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
List the Quit flag in the launch skill output contract so agents can detect quit outcomes from the structured response instead of parsing the message text.
Summary
uloop launchnow waits until Unity can answer tool requests even when the Editor was already running.uloop launch -rnow reports a structured restart result with previous and current process IDs.User Impact
AlreadyRunning,Launched,Restarted,PreviousProcessId, andCurrentProcessIdto confirm Unity is ready.Changes
Verification
scripts/check-go-cli.shcli/dist/darwin-arm64/uloop compile --project-path "$(git rev-parse --show-toplevel)"cli/dist/darwin-arm64/uloop launch --project-path "$(git rev-parse --show-toplevel)"cli/dist/darwin-arm64/uloop launch -r --project-path "$(git rev-parse --show-toplevel)"cli/dist/darwin-arm64/uloop execute-dynamic-code --project-path "$(git rev-parse --show-toplevel)" --code "return 12 + 12.22;"CLI_MINIMUM_VERSION_BASE_REF=origin/v3-beta CLI_MINIMUM_VERSION_HEAD_REF=HEAD scripts/check-cli-minimum-version-warning.shgit diff --checkcodex-review --parallel-tests "scripts/check-go-cli.sh" v3-beta