You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build fail on main: makepad_ai_services::peer not found #317
cargo build --release -p octosense fails on main (commit 4a54177, tag desktop-v0.1.0-beta.1) because crates/ai-host/src/module_peer.rs imports makepad_ai_services::peer, but the pinned makepad fork exposes the peer module under makepad_ai_hub::peer instead.
```
error[E0432]: unresolved import makepad_ai_services::peer
--> crates/ai-host/src/module_peer.rs:22:26
|
22 | use makepad_ai_services::peer::{PeerDown, PeerLink, PeerUp};
| ^^^^ could not find peer in makepad_ai_services
error: could not compile octosense-ai-host (lib) due to 1 previous error
```
The same wrong path appears at crates/ai-host/src/module_peer.rs:67 (use makepad_ai_services::peer::{OctosPeer, PeerCaller, PeerToolOutcome};).
Root cause
The pinned makepad fork at rev c155f61d0e1600d2ec474209374444a38a09a470 exports:
makepad_ai_hub::peer (.sources/makepad/libs/ai/hub/src/lib.rs:91: pub mod peer;)
makepad_ai_hub::peer_fetch
makepad_ai_hub::peer_serve
The makepad_ai_services crate exists at .sources/makepad/libs/ai/services/src/lib.rs but does not declare a peer module. Its lib.rs only re-exports engine, port, state, wire.
crates/ai-host/src/module_peer.rs was added in commit a672eb8 (PR #142, 2026-09-30) referencing makepad_ai_services::peer, but the runtime was repinned to the current makepad fork the same day (6c4746f, PR #192, 2026-09-30) so the import no longer resolves.
Suggested fix
Option 1 (minimal, 2 lines): rename the import path in crates/ai-host/src/module_peer.rs from makepad_ai_services::peer to makepad_ai_hub::peer (two use lines: L22 and L67). This matches what the current pinned runtime actually exposes.
Option 2: re-export peer under the makepad_ai_services name in makepad so the OctoSense contract is preserved.
Option 1 is the lowest-risk fix and unblocks the build immediately.
Environment
OctoSense: 4a54177 (main, tag desktop-v0.1.0-beta.1)
Activity