Repository navigation
cmux-next: ship every stylesheet the agent pane imports - #19801
Conversation
…imports The pane bundle drops CSS and build-agent-pane-web.sh writes the page's style from a fixed list, so ui/ghost.css (#19771), addProject.css, harnesses.css, replay.css and markdown-task-checkbox.css never reach the app. bundle.mjs --css-inputs lists the imported sheets; the test checks each one's rules are in the built index.html. Fails on the current base. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Passes: CI passes on CI passes on Written by |
|
|
…checkbox styles The pane bundle drops CSS imports, so the page build concatenates sheets from a hand-kept list. Five imported sheets were missing from it, leaving New Tab's quick tools, Harnesses, Replay, Add Project and reply checkboxes unstyled in the app. Add them, and fail the build when the bundle imports a sheet the page does not contain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The style test bundled the whole pane through the React Compiler, which ran alongside the browser tests on CI and slowed them into timeouts. --css-inputs-only lists the sheets with esbuild alone in about a second. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gallery158 states changed: pages.settings/general-group-3, pages.settings/general-group-2, pages.settings/browser-group-2, pages.settings/invalid-host, pages.settings/notifications-group-2, ... · 4 new states · 40 broken states · 90 play checks failed Diff page and renders (the run's 152 more on the diff page. Live preview (follows this branch; start it with
Play checks failed (0 px anchor movement, 0 layout shift, no frame over 33 ms unless the entry gives a reason):
509 nondeterministic states differed from a second render of the same head (a clock or fixture leak) and are not counted as changes. |






The agent pane's bundle drops CSS imports.
scripts/cmux-next/build-agent-pane-web.shwrites the page's one<style>from a fixed list of sheets, so a sheet that a component imports but the list leaves out ships no rules. The dev server loads imports, so these components looked right there but rendered unstyled in the app.Five sheets were missing:
ui/ghost.css(Ghost buttons: one balanced primitive for icon+label buttons (cx-s6zvc) #19771): New Tab's tools (Changes, Terminal, Files, Side chat) lost their gap and padding. The icons touched their labels and the row wrapped onto three lines.harnesses/harnesses.css: the Harnesses page.replay/replay.css: the Replay screen.addProject.css: the Add Project dialog.markdown-task-checkbox.css: task-list checkboxes in agent replies.Changes
bundle.mjs --css-inputs <file>lists every stylesheet the bundle imports, read from esbuild's metafile.webviews/test/agent-pane-styles.test.tschecks that the builtindex.htmlcontains the rules of every imported sheet.Verification
bun run checkpasses.No new strings.
Changelog
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes the agent pane shipping without five stylesheets its components import, which left New Tab's quick tools, the Harnesses page, Replay, Add Project, and reply checkboxes unstyled in the app while the dev server looked correct.
bundle.mjs --css-inputs <file>lists every CSS file the bundle imports from esbuild's metafile;--css-inputs-onlywrites that list without compiling the pane, so the test stays fast on CI.index.htmlcontains the rules of every imported sheet.Written for commit 6fc758d. Summary will update on new commits.