Repository navigation
id(world): thread a DeviceManifest through the spawn path (#7942) - #8127
Conversation
spawn_inner hardcoded device_manifest: None, so device.info could never succeed outside actor unit tests. WorldHandle gains spawn_with_device_manifest / spawn_durable_with_device_manifest, threading an Option<DeviceManifest> into the actor; served worlds (world_store::open_world and the ephemeral serve path) supply WorldHandle::host_device_manifest() for the headless server host. The manifest is supplied once at spawn and served from the actor cache per request. A new test drives device.info through the public spawn path and asserts the supplied manifest returns in the result event for repeated requests.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Agent note · Codex findings disposition for PR #8127 (task 14570)
|
Fixes #7942 (task 14570).
device.infoshipped dead:WorldHandle::spawn_innerhardcodeddevice_manifest: Noneand no public spawn entry point accepted a manifest, so every real granted request was refusedunknown_cap.WorldHandle::spawn_with_device_manifest/spawn_durable_with_device_manifestaccept anOption<DeviceManifest>and thread it throughspawn_innerinto the actor, replacing the hardcodedNone. Existing spawn entry points delegate withNone(unchanged behaviour for hosts that cannot describe themselves).world_store::open_world(durable served worlds) and the ephemeral serve path incommands/serve.rspassWorldHandle::host_device_manifest()— the headless server host describing itself (no display/keys/sensors/audio, network https).device.inforequests serve the actor's cached copy (no per-request enumeration).Tests:
cargo test --lib device_info— 4 passed, including the newdevice_info_through_the_public_spawn_path_returns_the_supplied_manifest, which spawns through the publicWorldHandleAPI (no direct field mutation), drives twodevice.inforequests from the program's wants, and asserts the supplied manifest comes back in both result events. Existing unknown-cap-when-Noneand unsupported-version tests stay green.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.