Skip to main content

Module UpdateScmGroup

Module UpdateScmGroup 

Source
Expand description

Cocoon → Mountain update_scm_group notification.

Parallels the typed RPC/CocoonService/SCM.rs::UpdateScmGroup gRPC; Cocoon’s ScmNamespace.ts emits through SendToMountain(...) for fire-and-forget resource-state updates. Re-emits on the canonical sky://scm/updateGroup channel so the renderer SCM view updates without waiting for a round-trip response.

Wire shape (from ScmNamespace.ts:108):

{ scm_handle: u32, group_handle: "<scm_handle>/<group_id>", resource_states: [...] }

Earlier revisions of this atom read provider_id/group_id and silently dropped every update because Cocoon never sends those keys

  • the resulting [ScmGroup] skip: missing provider_id or group_id line was the only signal the SCM viewlet was being starved. The current decoder reads the canonical handle pair, splits the <handle>/<groupId> form for the renderer payload, and falls back to the legacy provider_id/group_id keys for any stale caller that hasn’t migrated yet.

Functions§

UpdateScmGroup