canonical_island_id maps 'ai' to archipelago id 'intelligence', not an island #148

Open
opened 2026-05-18 08:23:16 +00:00 by zaelgohary · 0 comments
Member

In crates/hero_os_app/src/registry.rs::canonical_island_id, the alias chain maps "intelligence" | "ai" | "brain""intelligence". But "intelligence" is the archipelago id (per the ArchipelagoMetadata builder around registry.rs line 7), not an island id. Result: navigating to /space/<ctx>/ai rewrites the URL to /intelligence, then reg.get("intelligence") returns None (no island with that id), and main.rs:903 logs URL references unknown island: intelligence. Page falls back to the default desktop.

Fix: map ai to the canonical AI island id (likely ai, since the dock has an AI island). Decide the canonical name once and align the alias map to it.

In `crates/hero_os_app/src/registry.rs::canonical_island_id`, the alias chain maps `"intelligence" | "ai" | "brain"` → `"intelligence"`. But "intelligence" is the **archipelago** id (per the ArchipelagoMetadata builder around registry.rs line 7), not an island id. Result: navigating to `/space/<ctx>/ai` rewrites the URL to `/intelligence`, then `reg.get("intelligence")` returns None (no island with that id), and main.rs:903 logs `URL references unknown island: intelligence`. Page falls back to the default desktop. Fix: map `ai` to the canonical AI island id (likely `ai`, since the dock has an AI island). Decide the canonical name once and align the alias map to it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_os#148
No description provided.