Repository navigation
cmux-next: New Tab tabs draw the new-tab icon, not the agent chat bubble - #17914
azooz2003-bit wants to merge 3 commits into
Conversation
…ubble Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tab still on the New Tab page and an Agent chat tab both rode a conversation record and drew the agent chat bubble. The pane knows which tabs are New Tab pages; it now tells the mapping, which draws tab.new. 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 |
|
Not verified: macOS jobs did not run: compile and app tests were skipped on CI passes on Written by |
Summary
Fixes item 15 of the cmux-next sweep (cmuxterm-hq#1421): Agent tabs and New Tab tabs shared the generic chat bubble. Both ride a conversation record, and
TabItemMappinggave every conversation tabagent.chat.The pane already knows which tabs are still on the New Tab page (
AgentTabs.pageTabs), since it titles them "New Tab". It now passes that to the mapping, and those tabs draw the registry'stab.new.agent.chattab.newagent.chatagent.chat(unchanged)Converted call sites:
TabItemMapping.item(_:fallbackTitle:isNewTabPage:): newisNewTabPageflag, defaultfalse.PaneController.snapshot(): computesisNewTabPageonce and uses it for both the title and the icon.When a New Tab page becomes a chat, its title and icon change in the same snapshot.
Not changed:
agent.chatfor them. Follow-up: giveSidebarTabKinda new-tab case once the sidebar gets that state.Testing
Red commit d6ea400 adds
ConversationTabItemTests.aNewTabPageTabDrawsTheNewTabIcon; the fix follows. The same conversation record maps totab.newas a New Tab page and toagent.chatas a chat.Changelog
Fixed: New Tab tabs show a new-tab icon instead of the agent chat bubble
Demo Video
Fleet builds of base (ff267c4) and the fix, on a capture mini (1x display), opening a workspace's first New Tab.
New Tab tab at 6x, before (top) and after (bottom):
Checklist
🤖 Generated with Claude Code
Migrated from #17630 after correcting the PR author identity. The original head commit 4527a78 is preserved.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes New Tab tabs in cmux-next drawing the agent chat bubble; they now draw the new-tab icon.
TabItemMappinggave every conversation tabagent.chat.PaneController.snapshot()now computes whether a tab is still on the New Tab page and passes it toTabItemMapping.item(_:fallbackTitle:isNewTabPage:).tab.newas a New Tab page andagent.chatas a chat.Written for commit 4527a78. Summary will update on new commits.