fix(cos): prevent CoS panel width blowout when non-canvas avatar is active - #6234
Merged
Conversation
…canvas avatar is active
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
Fixes an issue where the Chief of Staff left panel expanded beyond its intended 320px column width after an agent completed a task, pushing the right column of stat cards (Pending, Issues, Queue Pause) outside the visible render area.
Root Cause
ChiefOfStaff.jsx, when an agent is active with a dynamic 3D/canvas avatar style (e.g.cyber,sigil,esoteric,rigged),hasCanvasAvataristrue, and the avatar container appliedlg:w-full.activeAgentMetawas cleared andavatarStylefell back toconfigAvatarStyle(SVG).hasCanvasAvatartofalse. Thefalsebranch lackedw-full/lg:w-full, rendering withlg:flex-noneand unconstrained width.max-contentwidth (~600px).overflow-x-hidden.activeAgentMetawas re-set,hasCanvasAvatarbecametrueagain, re-applyinglg:w-fulland snapping the pane back to 320px.Fix
min-w-0,w-full, andlg:w-full lg:max-w-fullacross the CoS sidebar rail, the collapsible agent panel, the inner avatar container (for both canvas and non-canvas branches), and child wrappers (stats grid and event log).client/src/pages/ChiefOfStaff.test.jsxasserting that non-canvas avatar styles retainw-full,max-w-full, andmin-w-0constraints on the desktop rail.