Skip to content

Studio Code: Show a clear notice when AI is disabled for the account - #4386

Merged
nightnei merged 5 commits into
trunkfrom
stu-2143-studio-code-kill-switch-client
Jul 29, 2026
Merged

Studio Code: Show a clear notice when AI is disabled for the account#4386
nightnei merged 5 commits into
trunkfrom
stu-2143-studio-code-kill-switch-client

Conversation

@nightnei

@nightnei nightnei commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

AI assisted

Proposed Changes

Let's print clear messages when Studio Code AI is blocked.

Classic UI Agentic UI
Screenshot 2026-07-29 at 13 24 18 Screenshot 2026-07-29 at 13 23 44
Screenshot 2026-07-29 at 13 24 07 Screenshot 2026-07-29 at 13 23 29

Testing Instructions

See testing instructions in 163787-ghe-Automattic/missioncontrol

@nightnei
nightnei marked this pull request as ready for review July 29, 2026 13:17
@nightnei
nightnei requested a review from a team July 29, 2026 13:38

@gcsecsey gcsecsey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @nightnei, this PR looks good to me.

I tested both the classic and agentic UIs after blocking usage on my account, and it works as described.

Screen Classic UI Agentic UI
Settings Image Image
Chat Image Image
@nightnei
nightnei enabled auto-merge (squash) July 29, 2026 14:41
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 39f4fba vs trunk

app-size

Metric trunk 39f4fba Diff Change
App Size (Mac) 1378.84 MB 1378.85 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk 39f4fba Diff Change
load 748 ms 1075 ms +327 ms 🔴 43.7%

site-startup

Metric trunk 39f4fba Diff Change
siteCreation 6481 ms 6539 ms +58 ms 🔴 0.9%
siteStartup 2387 ms 2383 ms 4 ms ⚪ 0.0%

Results are median values from multiple test runs.

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

@nightnei
nightnei merged commit ae98ed0 into trunk Jul 29, 2026
13 checks passed
@nightnei
nightnei deleted the stu-2143-studio-code-kill-switch-client branch July 29, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants