Skip to content

Add assistant cost usage limits to Settings#3843

Open
nightnei wants to merge 1 commit into
trunkfrom
assistantUsageLimitsByCostInSettings
Open

Add assistant cost usage limits to Settings#3843
nightnei wants to merge 1 commit into
trunkfrom
assistantUsageLimitsByCostInSettings

Conversation

@nightnei

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

AI helped with writing code, iterated, I reviewed carefully and adjusted.

Proposed Changes

We will display percentage of usage limits based on cost in Studio Settings.

Testing Instructions

  1. Apply these wpcom (223470-ghe-Automattic/wpcom) changes
  2. Set 'cost_usage' => 1500000, in class-studio-app-ai-assistant.php
  3. Open Studio Settings and assert that you see the correct 7.5%:
    Screenshot 2026-06-16 at 12 21 05
  4. Set 'cost_usage' => 30000000, (bigger than the cap)
  5. Assert that you see 100% in Studio Settings

@nightnei nightnei self-assigned this Jun 16, 2026
@nightnei nightnei requested a review from sejas June 16, 2026 11:32
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing a57b3a2 vs trunk

app-size

Metric trunk a57b3a2 Diff Change
App Size (Mac) 2328.95 MB 2334.13 MB +5.18 MB 🔴 0.2%

site-editor

Metric trunk a57b3a2 Diff Change
load 1761 ms 1744 ms 17 ms ⚪ 0.0%

site-startup

Metric trunk a57b3a2 Diff Change
siteCreation 8040 ms 8531 ms +491 ms 🔴 6.1%
siteStartup 3876 ms 3882 ms +6 ms ⚪ 0.0%

Results are median values from multiple test runs.

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

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.

2 participants