docs/platforms/mac/menu-bar.md
node.list), not client/presence entries.WorkActivityStore (apps/macos/Sources/OpenClaw/WorkActivityStore.swift).ControlAgentEvent with a runId; the handler (ControlChannel.routeWorkActivity) reads sessionKey from the event payload and defaults to "main" if absent.sessionKey == "main" by default) always wins. If main is active, its state shows immediately. If main is idle, the most recently active non-main session shows instead. The store does not flip mid-activity; it only switches when the current session goes idle or main becomes active.job: high-level command execution (state: started|streaming|done|error|...).tool: phase: start|result with name, optional meta/args.idleworkingMain(ActivityKind)workingOther(ActivityKind)overridden(ActivityKind) (debug override)ActivityKind wraps a ToolKind (bash, read, write, edit, attach, other) or a bare job. Each maps to an SF Symbol badge drawn over the critter icon (IconState.badgeSymbolName):
| Kind | Symbol |
|---|---|
bash | chevron.left.slash.chevron.right |
read | doc |
write | pencil |
edit | pencil.tip |
attach | paperclip |
other / job | gearshape.fill |
idle: normal critter, no badge.workingMain: badge with symbol, full tint (.primary prominence), leg "working" animation.workingOther: badge with symbol, muted tint (.secondary prominence), no scurry.overridden: uses the chosen symbol/tint regardless of real activity.MenuSessionsInjector).<Session role> · <activity label> ("\(roleLabel) · \(activity.label)" in MenuContentView), where role label is Main or Other.agent events, routed by ControlChannel.routeWorkActivity(from:).stream: "job" with data.state for start/stop.stream: "tool" with data.phase, data.name, optional data.meta/data.args.ToolDisplayRegistry.resolve(name:args:meta:); unresolved names fall back to the raw tool name.System (auto) (default)Working: main / Working: other (per tool kind: bash, read, write, edit, other)IdleUserDefaults key openclaw.iconOverride; mapped to IconState.overridden.WorkActivityStore.toolResultGrace).