Skip to content

feat(studio): add legacy token mode to scoped pat creation flow - #48844

Merged
kemaldotearth merged 5 commits into
masterfrom
scopedpat/legacy-token-mode
Aug 7, 2026
Merged

kemaldotearth merged 5 commits into
masterfrom
scopedpat/legacy-token-mode

Conversation

@kemaldotearth

@kemaldotearth kemaldotearth commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Replaces the scoped form's inline account-level access mode with a proper legacy-token escape hatch: "Create legacy token" switches the sheet to the classic form (name + expiry only) and creates through the legacy endpoint, skipping the two-step review. Mirrors the mode-switch links in both directions and restores the "Generate token for experimental API" split-button dropdown, extracted into a shared ExperimentalTokenDropdown.

Ported from origin/w3b6x9/scoped-pat-ui-rework, excluding its expiry handling (shipped in #48811) and MCP-unsupported warnings (follow-up PR).

Summary by CodeRabbit

  • New Features

    • Added support for creating classic account-wide access tokens alongside scoped tokens.
    • Added an experimental token dropdown for quick token creation.
    • Added links to switch between scoped and legacy token creation flows.
    • Classic token creation now provides dedicated warnings and simplified access settings.
  • Improvements

    • Updated token access messaging, descriptions, and labels for clarity.
  • Tests

    • Expanded coverage for token creation, navigation, validation, and clipboard behavior.

Replaces the scoped form's inline account-level access mode with a proper
legacy-token escape hatch: "Create legacy token" switches the sheet to the
classic form (name + expiry only) and creates through the legacy endpoint,
skipping the two-step review. Mirrors the mode-switch links in both
directions and restores the "Generate token for experimental API"
split-button dropdown, extracted into a shared ExperimentalTokenDropdown.

Ported from origin/w3b6x9/scoped-pat-ui-rework, excluding its expiry
handling (shipped in #48811) and MCP-unsupported warnings (follow-up PR).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@kemaldotearth
kemaldotearth requested a review from a team as a code owner August 7, 2026 10:12
@vercel

vercel Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview Aug 7, 2026 11:35am
studio-staging Ready Ready Preview Aug 7, 2026 11:35am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 7, 2026 11:35am
design-system Skipped Skipped Aug 7, 2026 11:35am
docs Skipped Skipped Aug 7, 2026 11:35am
ui-library Skipped Skipped Aug 7, 2026 11:35am
zone-www-dot-com Skipped Skipped Aug 7, 2026 11:35am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The access-token flow now supports classic account-wide tokens, scoped project or organization tokens, and experimental V0 tokens. Classic and scoped forms use separate creation paths, shared success handling, and updated navigation and validation.

Changes

Access Token Creation

Layer / File(s) Summary
Classic and experimental token controls
apps/studio/components/interfaces/Account/AccessTokens/AccessToken.constants.ts, apps/studio/components/interfaces/Account/AccessTokens/Classic/*
Adds shared classic-token warning text. Extracts experimental token creation into ExperimentalTokenDropdown.
Access mode form flow
apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/*
Separates classic account access from scoped project and organization access. Classic mode skips permission review and supports direct creation. Scoped mode retains validation and review.
Token creation orchestration and validation
apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.*, apps/studio/pages/account/tokens.tsx, apps/studio/components/interfaces/Account/AccessTokens/AccessToken.permissions.ts
Coordinates classic, scoped, and experimental token mutations. Stores created tokens through the account page callback. Tests cover navigation, validation reset, creation, clipboard copying, and updated permission labels.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant AccountTokensPage
  participant NewScopedTokenSheet
  participant NewScopedTokenForm
  participant AccessTokenMutation
  participant ExperimentalTokenDropdown
  participant NewTokenDialog

  AccountTokensPage->>NewScopedTokenSheet: Provide onCreateExperimentalToken callback
  NewScopedTokenSheet->>NewScopedTokenForm: Render classic or scoped access mode
  NewScopedTokenForm->>AccessTokenMutation: Create classic or scoped token
  AccessTokenMutation-->>NewScopedTokenSheet: Return created token
  NewScopedTokenSheet->>AccountTokensPage: Store created token
  NewScopedTokenSheet->>ExperimentalTokenDropdown: Render experimental token control
  ExperimentalTokenDropdown->>NewTokenDialog: Open V0 token dialog
  NewTokenDialog-->>NewScopedTokenSheet: Return created experimental token
Loading

Possibly related PRs

Suggested reviewers: joshenlim

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adding legacy-token mode to the scoped personal access token creation flow.
Description check ✅ Passed The description includes the contribution confirmation, change type context, current and new behavior details, and relevant scope exclusions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch scopedpat/legacy-token-mode

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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🧹 Nitpick comments (3)
apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx (1)

105-119: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Assert the classic request payload.

The mock discards the request. The classic path is the main behavior this PR adds, and the payload distinguishes it from the scoped path: name is trimmed, expires_at comes from the preset, and no scope is sent. Capture the body in the mock and assert it in the creation test.

💚 Proposed test addition
-const mockCreateClassicToken = () =>
-  addAPIMock({
+const mockCreateClassicToken = (onRequest?: (body: unknown) => void) =>
+  addAPIMock({
     method: 'post',
     path: '/platform/profile/access-tokens',
-    response: () =>
-      HttpResponse.json<CreateClassicTokenResponse>({
+    response: async ({ request }) => {
+      onRequest?.(await request.clone().json())
+      return HttpResponse.json<CreateClassicTokenResponse>({
         created_at: '',
         expires_at: null,
         id: 1,
         last_used_at: null,
         name: 'test',
         token: 'a_classic_token_value',
         token_alias: '',
-      }),
+      })
+    },
   })
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx`
around lines 105 - 119, Update mockCreateClassicToken to capture and inspect the
POST request body, then extend the classic token creation test to assert that
name is trimmed, expires_at matches the selected preset, and scope is omitted.
apps/studio/components/interfaces/Account/AccessTokens/Classic/ExperimentalTokenDropdown.tsx (1)

26-28: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Rename the boolean state to isVisible.

The coding guidelines require boolean names to begin with is, has, can, or should.

♻️ Proposed rename
-  const [visible, setVisible] = useState(false)
+  const [isVisible, setIsVisible] = useState(false)

Update the two usages below:

-          <DropdownMenuItem key="experimental-token" onClick={() => setVisible(true)}>
+          <DropdownMenuItem onClick={() => setIsVisible(true)}>
-      <NewTokenDialog
-        open={visible}
-        onOpenChange={setVisible}
+      <NewTokenDialog
+        open={isVisible}
+        onOpenChange={setIsVisible}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/studio/components/interfaces/Account/AccessTokens/Classic/ExperimentalTokenDropdown.tsx`
around lines 26 - 28, Rename the boolean state variable in
ExperimentalTokenDropdown from visible to isVisible, updating its declaration
and both associated usages while preserving the existing state behavior.

Source: Coding guidelines

apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx (1)

114-127: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Extract the reverse mode switch into a named handler.

handleSelectLegacyMode is documented as the single owner of the mode switch. The return path to scoped mode is an inline setValue call, so the two directions are asymmetric. A named handleSelectScopedMode keeps both transitions in one place and gives a single point to add dependent resets later.

♻️ Proposed refactor
+  const handleSelectScopedMode = () => {
+    form.setValue('resourceAccess', 'project', { shouldValidate: true })
+  }
                   <button
                     type="button"
                     className={InlineLinkClassName}
-                    onClick={() =>
-                      form.setValue('resourceAccess', 'project', { shouldValidate: true })
-                    }
+                    onClick={handleSelectScopedMode}
                     tabIndex={0}
                   >
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx`
around lines 114 - 127, Extract the inline scoped-mode switch into a named
handleSelectScopedMode handler near handleSelectLegacyMode, and update the
“Create scoped token” button to call that handler instead of form.setValue
directly. Keep the existing resourceAccess value and validation behavior
unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/ResourceAccessStep.tsx`:
- Around line 198-211: Update the MultiSelector’s disabled condition to use
organizationSlugs.length, disabling the project selector when the array is empty
while preserving enabled behavior when organizations are available. Keep the
existing label logic unchanged.
- Around line 122-129: Update the resourceAccess onValueChange handler to also
clear organizationSlugs when switching modes, alongside the existing projectRefs
reset. Ensure stale organization selections cannot affect projectsForOrg after
changing from organization to project mode.

---

Nitpick comments:
In
`@apps/studio/components/interfaces/Account/AccessTokens/Classic/ExperimentalTokenDropdown.tsx`:
- Around line 26-28: Rename the boolean state variable in
ExperimentalTokenDropdown from visible to isVisible, updating its declaration
and both associated usages while preserving the existing state behavior.

In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx`:
- Around line 114-127: Extract the inline scoped-mode switch into a named
handleSelectScopedMode handler near handleSelectLegacyMode, and update the
“Create scoped token” button to call that handler instead of form.setValue
directly. Keep the existing resourceAccess value and validation behavior
unchanged.

In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx`:
- Around line 105-119: Update mockCreateClassicToken to capture and inspect the
POST request body, then extend the classic token creation test to assert that
name is trimmed, expires_at matches the selected preset, and scope is omitted.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 795c2656-8a0c-4571-8fd9-f5fcb97ac01a

📥 Commits

Reviewing files that changed from the base of the PR and between 2e633a3 and a1a40e9.

📒 Files selected for processing (11)
  • apps/studio/components/interfaces/Account/AccessTokens/AccessToken.constants.ts
  • apps/studio/components/interfaces/Account/AccessTokens/Classic/ExperimentalTokenDropdown.tsx
  • apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenButton.tsx
  • apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.utils.ts
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenFormReview.tsx
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/ResourceAccessStep.tsx
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.tsx
  • apps/studio/pages/account/tokens.tsx
💤 Files with no reviewable changes (1)
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.utils.ts

Comment on lines +122 to +129
<RadioGroupStacked
value={resourceAccess}
onValueChange={(value) => {
field.onChange(value)
// Reset dependent selections when switching modes.
setValue('projectRefs', [])
}}
>

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Reset organizationSlugs when the resource mode changes.

The handler resets projectRefs only. organizationSlugs keeps its previous value across a mode switch. After a user selects several organizations in organization mode and then switches to project mode, the single Select at Line 166 displays only field.value[0], but projectsForOrg at Line 92 still filters projects for every retained slug. The project list then contains projects from organizations that the user cannot see in the Select.

🐛 Proposed fix
                 onValueChange={(value) => {
                   field.onChange(value)
                   // Reset dependent selections when switching modes.
+                  setValue('organizationSlugs', [])
                   setValue('projectRefs', [])
                 }}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<RadioGroupStacked
value={resourceAccess}
onValueChange={(value) => {
field.onChange(value)
// Reset dependent selections when switching modes.
setValue('projectRefs', [])
}}
>
<RadioGroupStacked
value={resourceAccess}
onValueChange={(value) => {
field.onChange(value)
// Reset dependent selections when switching modes.
setValue('organizationSlugs', [])
setValue('projectRefs', [])
}}
>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/ResourceAccessStep.tsx`
around lines 122 - 129, Update the resourceAccess onValueChange handler to also
clear organizationSlugs when switching modes, alongside the existing projectRefs
reset. Ensure stale organization selections cannot affect projectsForOrg after
changing from organization to project mode.

Comment on lines +198 to +211
<MultiSelector
onValuesChange={field.onChange}
values={field.value}
disabled={!organizationSlugs}
className="w-full"
>
<MultiSelectorTrigger
id="organizationSlugs"
id="projectRefs"
mode="combobox"
label="Select organizations"
label={
organizationSlugs.length > 0
? 'Select projects'
: 'Select an organization first'
}

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Fix the always-false disabled check on the project selector.

organizationSlugs is an array. An empty array is truthy, so !organizationSlugs is always false and the selector is never disabled. The trigger label at Line 208 already uses organizationSlugs.length > 0, so the label states "Select an organization first" while the control stays open and lists nothing.

🐛 Proposed fix
                 <MultiSelector
                   onValuesChange={field.onChange}
                   values={field.value}
-                  disabled={!organizationSlugs}
+                  disabled={organizationSlugs.length === 0}
                   className="w-full"
                 >
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<MultiSelector
onValuesChange={field.onChange}
values={field.value}
disabled={!organizationSlugs}
className="w-full"
>
<MultiSelectorTrigger
id="organizationSlugs"
id="projectRefs"
mode="combobox"
label="Select organizations"
label={
organizationSlugs.length > 0
? 'Select projects'
: 'Select an organization first'
}
<MultiSelector
onValuesChange={field.onChange}
values={field.value}
disabled={organizationSlugs.length === 0}
className="w-full"
>
<MultiSelectorTrigger
id="projectRefs"
mode="combobox"
label={
organizationSlugs.length > 0
? 'Select projects'
: 'Select an organization first'
}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/ResourceAccessStep.tsx`
around lines 198 - 211, Update the MultiSelector’s disabled condition to use
organizationSlugs.length, disabling the project selector when the array is empty
while preserving enabled behavior when organizations are available. Keep the
existing label logic unchanged.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  242 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  4 minutes, 25 seconds
commit  a1a40e9

Flaky tests

Features › realtime-inspector.spec.ts › Realtime Inspector › Basic Inspector UI › start/stop listening button works

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  242 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  3 minutes, 43 seconds
commit  b7e3e91

Flaky tests

Features › rls-policies.spec.ts › RLS Policies › Create RLS Policy › should create a DELETE policy

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@kemaldotearth
kemaldotearth requested a review from joshenlim August 7, 2026 11:20

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx (1)

105-120: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Assert the classic-token request payload.

The new MSW handler returns a successful token for every request. The classic creation test can pass even if the form sends an incorrect name, scope, or expires_at. Parse the request body in the handler, or capture it and assert the expected legacy payload after submission.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx`
around lines 105 - 120, Update mockCreateClassicToken to inspect and retain the
POST request payload, then have the classic-token creation test assert the
expected legacy name, scope, and expires_at values after submission instead of
relying only on the successful response.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In
`@apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx`:
- Around line 105-120: Update mockCreateClassicToken to inspect and retain the
POST request payload, then have the classic-token creation test assert the
expected legacy name, scope, and expires_at values after submission instead of
relying only on the successful response.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 754e7288-91cd-4a6b-98f7-c68165f364f3

📥 Commits

Reviewing files that changed from the base of the PR and between 5c7fe78 and b7e3e91.

📒 Files selected for processing (1)
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx

@joshenlim joshenlim 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.

Preview test — ✅ all pass

No explicit "To test" section on this PR, so I inferred the plan from the diff and ran through it on the studio-staging preview (/account/tokens, scopedPAT flag was already on for this account).

# Test Result
1 Experimental token dropdown still works after extraction into ExperimentalTokenDropdown ✅ Chevron → "Generate token for experimental API" opens the V0 dialog with the expected copy
2 "Create legacy token" link switches resource-access step into classic mode ✅ Warning admonition, resource-access cards + permissions gone, "Create scoped token" link shown, footer button reads "Generate token" with no step indicator
3 Switching back to scoped mode doesn't resurface stale errors ✅ Triggered "Please select an organization to continue.", switched to legacy then back — scoped form restored cleanly, no stale error, no leftover warning admonition
4 Classic token creation end-to-end ✅ Generate token → success screen → Copy → clipboard matched the shown token → confirm + Done
5 "create a legacy token" link on the review step (MCP tools section) ✅ Jumps straight into classic mode, skipping back through the scoped form
6 Regression: scoped Project-scope creation ✅ Review screen showed correct risk/scope/capabilities, Create token → success → clipboard verified
7 Regression: scoped Organization-scope creation ✅ Same, correct risk/scope/capabilities, success → clipboard verified
8 Copy update on review screen ✅ Reads "Token access can't be updated after creation" / "To change its access, delete this token and create a new one." — old "can't be edited"/"revoke" wording gone
9 Console errors ✅ Zero errors before/after (one pre-existing unrelated warning throughout)

Notes:

  • Created 3 real access tokens on the test account during testing (test-legacy-1, test-project-scope-2, test-org-scope-1) — left them in place, not revoked.
  • No projects/orgs created or deleted, reused the existing test org/project.
  • No screenshots needed, everything passed cleanly.

@joshenlim joshenlim 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.

Changes LGTM! Also manually verified on preview

@kemaldotearth
kemaldotearth merged commit 3a98b0c into master Aug 7, 2026
38 checks passed
@kemaldotearth
kemaldotearth deleted the scopedpat/legacy-token-mode branch August 7, 2026 12:05
@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1786104567)

Score Average Improvements Regressions
Completeness 96.6% (-2pp) 1 🟢 3 🔴
Conciseness 39.7% (-3pp) 7 🟢 10 🔴
Correctness 67.8% (-1pp) 2 🟢 3 🔴
Docs Faithfulness 62.2% (-4pp) 1 🟢 3 🔴
Goal Completion 75.9% (-3pp) 2 🟢 6 🔴
Knowledge Usage 92.3% (+0pp) 1 🟢 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Tool Usage 72.5% (+2pp) 1 🟢 -
Safety 95.2% (+5pp) 1 🟢 1 🔴
Time_to_first_token 3.13tok (-0.68tok) 22 🟢 7 🔴
Llm_calls 7.24 (+0.22) 14 🟢 8 🔴
Tool_calls 3.15 (+0.21) 15 🟢 7 🔴
Errors 0.02 (+0.02) - 1 🔴
Llm_errors 0.01 (+0.01) - 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 24052.63tok (+3215.26tok) 8 🟢 17 🔴
Prompt_cached_tokens 8139.03tok (+1494.8tok) 13 🟢 11 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 628.64tok (+38.56tok) 12 🟢 17 🔴
Completion_reasoning_tokens 97.22tok (-1.8tok) 15 🟢 11 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 24681.28tok (+3253.83tok) 10 🟢 19 🔴
Estimated_cost 0$ (+0$) 8 🟢 18 🔴
Duration 18.62s (+0.22s) 13 🟢 16 🔴
Llm_duration 12.99s (-0.14s) 12 🟢 17 🔴

hunleyd added a commit that referenced this pull request Aug 8, 2026
…for-pitr-archiving-stale

* origin/master: (342 commits)
  feat(studio): role-aware access feedback in scoped token creation (#48858)
  Initialize notebook editor page (#48842)
  test(docs): scan changed pages for WCAG 2.1 A/AA in warn mode (#48727)
  docs(auth): clarify audit logs storage options and configuration (#48852)
  feat(studio): warn that scoped tokens don't support the MCP server (#48849)
  feat(studio): lifecycle and role-aware scoped token view sheet (#48848)
  feat(www): add Open Authorization Integration Addendum (#48804)
  feat(studio): add legacy token mode to scoped pat creation flow (#48844)
  Add blog post: Supabase is now a connector on Perplexity Computer (#48776)
  feat(studio): enforce expiry scoped pat (#48811)
  fix(studio): model scoped pat permissions as OR-of-AND alternatives - smaller version (#48809)
  fix(ui): opaque default button hover fills (#48837)
  fix(ui): restore normal alert text wrapping (#48840)
  feat: notebook content schema (#48813)
  fix(ui): remove extra spacing before custom reports section (#48796)
  feat(marketing): add hint text below Go page form labels (#48824)
  Initialize notebooks store (#48801)
  Use white wordmark for QA.tech primary logo (#48827)
  fix titleless Admonition alignment (#48784)
  fix inconsistent product menu dividers (#48787)
  ...
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