cmux NEXT: fleet app builds pass the web step again (agent pane bundles ContextSection.css)
Summary
Every fleet app build of feat-cmux-next fails at the web step since https://github.com/manaflow-ai/cmux/pull/23789:
web: error: the agent pane imports webviews/src/agent-session/acpmux/inspector/ContextSection.css but build-agent-pane-web.sh does not add it to the page's styles
That PR added ContextSection.css (imported by ContextSection.tsx) without listing it in scripts/cmux-next/build-agent-pane-web.sh, so the bundle's missing-sheet check refuses it. This adds the sheet next to the other Inspector styles. In the app this also means the Inspector's Context section is styled at all; until now only the dev server loaded the sheet.
Testing
- Failing on the base: fleet build job
842c7dd6099fa815c87c5acd(commit87d55627, built fromfeat-cmux-nextplus an unrelated Swift-only change) stopped at the web step with the error above. - I compared every
import "*.css"underwebviews/src/agent-sessionwith the script:ContextSection.cssis the only sheet the pane's main bundle imports that the script didn't list.
Observed / Not run
- Observed: the build failure and the error above.
- Not run yet: a fleet app build that includes this commit. The capture build for https://github.com/manaflow-ai/cmux/pulls?q=head%3Afeat-cmux-next-chief-cmd-zoom (merged with this branch) is the first one; I'll post its job id here.
Changelog
Fixed: The agent chat Inspector's Context section is styled in the app
Proof
No capture: build-script fix. The visible effect is the Inspector Context section's styles, which https://github.com/manaflow-ai/cmux/pull/23789 already showed from the dev server.
🤖 Generated with Claude Code
![View with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png)
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Fixes the feat-cmux-next fleet app web build by listing the Inspector's ContextSection.css in build-agent-pane-web.sh.
PR #23789 added ContextSection.css but didn't add it to the build script, so the missing-sheet check failed every fleet app build at the web step. The fix also styles the Inspector's Context section in the app; until now only the dev server loaded the sheet.