fix CoS content panel overflow and wrap long log tokens#485
Merged
Conversation
… long log tokens in the 320px sidebar ChiefOfStaff.jsx: collapse the redundant outer flex wrapper into a single flex-1 min-h-0 min-w-0 overflow-y-auto overflow-x-hidden div so tall tab content scrolls inside the panel instead of expanding it and getting clipped by the parent's overflow-hidden. EventLog.jsx / TerminalCoSPanel.jsx: add break-all to log rows and min-w-0 to the scroll container ancestry so long unbreakable tokens (URLs, hashes, paths) wrap inside the 320px sidebar instead of pushing the column wider.
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes layout overflow issues on the Chief of Staff (CoS) page by ensuring the main content panel properly scrolls within its grid/flex container and by forcing long, unbroken log tokens to wrap instead of widening the sidebar.
Changes:
- Refactors the CoS content panel wrapper so the scroll container correctly claims available height (
flex-1 min-h-0 min-w-0) and enables vertical scrolling. - Prevents horizontal layout expansion from long log lines by adding
min-w-0to relevant containers andbreak-allto log rows in both log UIs. - Documents the fix in the vNEXT changelog.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| client/src/pages/ChiefOfStaff.jsx | Collapses nested wrappers into a single scrollable content panel with correct flex/grid sizing and overflow behavior. |
| client/src/components/cos/TerminalCoSPanel.jsx | Adds min-w-0 to log container ancestry and break-all to log rows to prevent sidebar widening. |
| client/src/components/cos/EventLog.jsx | Adds min-w-0 to containers and break-all to log rows to wrap long tokens within the sidebar. |
| .changelog/NEXT.md | Adds a “Fixed” entry describing the CoS overflow and log wrapping changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
The Chief of Staff page's content panel could appear wider than its allocated grid column and clip tab content past the fold. Two underlying causes:
<div className="overflow-y-auto p-3 lg:p-4">sat inside aflex flex-col overflow-hiddenwrapper with noflex-1 min-h-0, so its height equalled content height and itsoverflow-y-autonever triggered. Tall tab content spilled out and was clipped by the wrapper'soverflow-hidden, leaving the user with no way to scroll. Collapsed the two divs into a singleflex-1 min-h-0 min-w-0 overflow-y-auto overflow-x-hidden p-3 lg:p-4div — it claims parent height in both the lg+ grid context and the sub-lgflex flex-colcontext, scrolls vertically, and clips horizontal overflow defensively.EventLogandTerminalCoSPanelrendered raw log strings with nobreak-all, so a long unbreakable token (URL, hash, path) in a single message could push the row wider than the 320px sidebar column visually. Addedbreak-allto log rows andmin-w-0to the scroll-container ancestry in both components.Test plan
/cos/taskswith the SVG avatar style and a long pending task list — content scrolls inside the right column instead of being clipped past the fold./cos/agentsand trigger an agent that emits a long log line (paste a long URL or hash into a task description) — the EventLog row wraps inside the 320px sidebar rather than pushing the column wider./cos/config— the TerminalCoSPanel's event log wraps long lines the same way.