Repository navigation
fix(mobile-web): use one Claw icon for assistant entries and session history - #3691
Merged
Merged
Conversation
…history Claw sessions rendered a generic AppWindow icon in the launch panel, resume card and history rows while the assistant workspace row used the Bot icon. Route every session icon through a shared sessionIconKind mapping and SessionTypeIcon component so Claw sessions and assistant entries both use the Bot icon, including Claw rows in the compact sidebar. Fixes openBitFun#2363
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remote mobile web now resolves every session icon through one mapping (
sessionIconKindinworkspaceIdentity.ts, rendered by the newcomponents/SessionTypeIcon.tsx). Claw sessions and assistant workspaces both use the robot (Bot) icon in the assistant entry/launch panel, resume card, session history rows, and the compact sidebar (assistant workspace row and its Claw session rows). The previous Claw-onlyAppWindowicon is gone.Fixes #2363
Type and Areas
Type: bug fix / UI consistency
Areas: mobile web
Motivation / Impact
Claw sessions looked like a different session type in history (generic window/card icon) than in the assistant entry (robot icon). Users now see the same Claw icon everywhere it is listed. Cowork and code session icons are unchanged. The active session header has no session-type icon, so nothing changes there.
isCoworkAgentmoved next toisClawAgentinworkspaceIdentity.tsso the mapping has one owner.Verification
pnpm --dir src/mobile-web run test:workspace-identity- 37 pass, including a new test forsessionIconKindand a source contract thatSessionListPageno longer carries its own icon mapping.pnpm --dir src/mobile-web run test:ui-components- 18 pass.pnpm --dir src/mobile-web run type-check- pass.pnpm run i18n:audit- pass (no copy changes).Remote scenarios: the change is purely client-side rendering in mobile web (Remote control). No protocol, persisted shape, or host change; works with older hosts because it only reads
agent_typeandworkspace_kind.Reviewer Notes
The native HarmonyOS client has no Claw-specific session icon, so it is out of scope.
Checklist