Skip to content

cmux-next New Tab: the mic leaves a narrow row at the chat bar's step - #21816

Merged
teamleaderleo merged 1 commit into
feat-cmux-nextfrom
fix/newtab-narrow-mic
Oct 19, 2026
Merged

teamleaderleo merged 1 commit into
feat-cmux-nextfrom
fix/newtab-narrow-mic

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

web / react-apps-check (1) fails on every feat-cmux-next PR (#21794, #21786, #21734) in test/narrow-layouts.test.ts, at 280 px:

new-tab: New Tab chips: Mode overlaps Dictate

Cause. Two merges that each passed CI on their own:

The New Tab row (.nt-pickers) has no fit hook. As it narrows, only the model chip shrinks, down to its 56 px floor. The 4 px #20391 took left the 280 px pane 1 px above that floor. With CI's font metrics the row ran out, and the mic and Send ran into the mode chip.

Fix. The New Tab row's mic now leaves at the composer width where the chat bar's mic leaves (COMPOSER_FIT_STEPS.micHidden, 340 px). A listening mic stays, as it does in the chat bar. At 280 px the model chip now has 89 px, 33 px above its floor.

Testing

On huge-blue (Linux, Chromium headless shell 1234, Playwright's font packages):

  • CMUX_BROWSER_TESTS=1 bun test test/narrow-layouts.test.ts test/composer-fit-steps.test.ts: 10/10 pass.
  • composer-menu-dismiss, composer-location-strip and new-tab-chat-title-width pass.

Not reproduced locally: narrow-layouts also passes at the base tip on huge-blue. There the 280 px row is 1 px from the floor, and only CI's fonts push it over. A probe of the controls' rects (Model, Effort, Mode, Dictate, Send) shows the margin before and after the change. CI's run on this PR is the red-to-green check.

Changelog

  • Changed: In a narrow pane, the New Tab composer hides its mic button, as the chat composer already does; it stays while dictating.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes the New Tab composer overlapping the mode chip at 280 px panes, which broke narrow-layouts CI on every feat-cmux-next PR. The New Tab row's mic now hides at the same composer width as the chat bar's mic (340 px), with a listening mic staying visible while dictating.

Written for commit f8a00d7. Summary will update on new commits.

View guided diff Turn on auto-fix

The New Tab row (.nt-pickers) has no fit hook: under 340 px its chips can only
shrink to the model's 56 px floor. #20391 took the New Tab screen's side padding
from 16 to 18 px, which left the 280 px pane 1 px from that floor; with CI's
font metrics the actions cluster ran into the mode chip and
test/narrow-layouts.test.ts failed on every feat-cmux-next PR ("new-tab: New
Tab chips: Mode overlaps Dictate"). The mic now leaves the New Tab row at the
composer width where it leaves the chat bar (COMPOSER_FIT_STEPS.micHidden); a
listening mic stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: manaflow-ai/cmux/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0d7e9e20-79fa-442b-830e-b11dd26b51d9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Receipt for f8a00d7 (this PR's head; a new push replaces it)

  • Visual review: HQ feed card · gallery before/after runs
  • Checks: this head
  • App of this head (app.zip, kept 1 day): gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr21816 -f ref=fix/newtab-narrow-mic -f platform=macos -f backend_mode=local

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Bead cx-ip0aw created for this PR by the cmux coordinator.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

#21839 merged (1579441). It fixes the same narrow-layouts red ("New Tab chips: Mode overlaps Dictate" at 280 px) by showing just the model's mark on New Tab at 297 px and below. Check whether this PR still changes anything on top of that. If it doesn't, it can be closed.

@teamleaderleo
teamleaderleo merged commit 7a440f4 into feat-cmux-next Oct 19, 2026
152 of 162 checks passed
@teamleaderleo
teamleaderleo deleted the fix/newtab-narrow-mic branch October 19, 2026 02:30
@github-actions

Copy link
Copy Markdown
Contributor

cmux-next tour of f8a00d7bac595cbecfa7c874bd2bf21e063e4209 (run)

The tour job failed before the tour ran (build or setup); the run log has the output.

The tour produced no media.

Tours are data in scripts/cmux-next/media/tours: add a step or a tour file to show your feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant