Skip to content

Agentic UI: Show the app menu button only on Windows and Linux - #4207

Merged
katinthehatsite merged 1 commit into
trunkfrom
stu-2052-fix-wrong-menu-bar-in-studio-ui
Jul 16, 2026
Merged

Agentic UI: Show the app menu button only on Windows and Linux#4207
katinthehatsite merged 1 commit into
trunkfrom
stu-2052-fix-wrong-menu-bar-in-studio-ui

Conversation

@bcotrim

@bcotrim bcotrim commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

Root-cause investigation, the fix, and the component test were written with Claude Code, guided and reviewed by the author.

Proposed Changes

#4172 added an app menu (hamburger) button to the agentic UI sidebar so Windows and Linux users can reach the app menu — those platforms have no native menu bar in production. The button rendered unconditionally, so it also appeared on macOS, duplicating the native application menu (p1784109157531499/1784109157.531499-slack-C06DRMD6VPZ), and in the browser-hosted UI (studio ui), where it did nothing.

The connector now declares whether the host needs an in-UI app menu entry point, and the sidebar only shows the button when it does: Windows/Linux desktop keeps it, macOS and the browser don't.

Windows macOS
image image

Testing Instructions

  • On macOS, launch Studio with the Agentic UI beta feature enabled → the sidebar header shows no hamburger menu button, and the native application menu bar works as before.
  • On Windows or Linux, same setup → the hamburger button is present at the top of the sidebar and opens the app menu (unchanged from Agentic UI: Add app menu button #4172).
  • Run studio ui in a browser → no hamburger button.
  • Legacy (non-agentic) UI is untouched.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

🤖 Generated with Claude Code

@bcotrim
bcotrim requested review from a team and katinthehatsite July 15, 2026 14:42
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing d8fa106 vs trunk

app-size

Metric trunk d8fa106 Diff Change
App Size (Mac) 1352.85 MB 1352.85 MB 0.00 MB ⚪ 0.0%

site-editor

Metric trunk d8fa106 Diff Change
load 1086 ms 1084 ms 2 ms ⚪ 0.0%

site-startup

Metric trunk d8fa106 Diff Change
siteCreation 6999 ms 7010 ms +11 ms ⚪ 0.0%
siteStartup 2354 ms 2350 ms 4 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@katinthehatsite katinthehatsite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me, I don't see the extra menu anymore on my end on macOS:

Image
@katinthehatsite
katinthehatsite merged commit 87c88c2 into trunk Jul 16, 2026
16 checks passed
@katinthehatsite
katinthehatsite deleted the stu-2052-fix-wrong-menu-bar-in-studio-ui branch July 16, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants