Skip to content

Fix TS issue - #49187

Merged
awaseem merged 2 commits into
masterfrom
chore/fix-ts-issue-master-180926
Aug 18, 2026
Merged

awaseem merged 2 commits into
masterfrom
chore/fix-ts-issue-master-180926

Conversation

@joshenlim

@joshenlim joshenlim commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Context

Think the TS issue was introduced here but not sure why the TS action didn't catch this on that PR

Summary by CodeRabbit

  • Bug Fixes
    • Improved AI assistant chat state handling for more consistent chat interactions and reliability.

@joshenlim
joshenlim requested a review from a team as a code owner August 18, 2026 09:36
@vercel

vercel Bot commented Aug 18, 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 18, 2026 9:52am
studio-staging Ready Ready Preview Aug 18, 2026 9:52am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 18, 2026 9:52am
design-system Skipped Skipped Aug 18, 2026 9:52am
docs Skipped Skipped Aug 18, 2026 9:52am
ui-library Skipped Skipped Aug 18, 2026 9:52am
zone-www-dot-com Skipped Skipped Aug 18, 2026 9:52am

Request Review

@supabase

supabase Bot commented Aug 18, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cabef6e5-fde9-46aa-bbdb-5a0f548a68d8

📥 Commits

Reviewing files that changed from the base of the PR and between 83c3a36 and 26aef08.

📒 Files selected for processing (1)
  • apps/studio/state/ai-assistant-state.tsx

Included review availability: Your plan includes up to 10 reviews per rolling hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

The public AiAssistantState.chatInstances type now represents Valtio reference-wrapped Chat<MessageType> instances.

Changes

Assistant chat state

Layer / File(s) Summary
Live chat instance typing
apps/studio/state/ai-assistant-state.tsx
chatInstances now uses the ReturnType of ref<Chat<MessageType>>, matching the stored state values.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 26aef

This is a localized TypeScript fix with no actionable merge-blocking risk remaining; it is merge-ready after normal checks and review.

Suggested reviewers: saxonf

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only provides context and omits the required contribution confirmation, change type, current behavior, new behavior, and additional context. Complete all required template sections and describe the TypeScript error, its cause, and the change that fixes it.
Title check ❓ Inconclusive The title identifies a TypeScript fix but does not describe the specific change to the AI assistant state type. Specify the affected type or state property, such as updating chatInstances to use Valtio reference-wrapped Chat instances.
✅ Passed checks (3 passed)
Check name Status Explanation
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 chore/fix-ts-issue-master-180926

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.

@github-actions

github-actions Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  3 minutes, 56 seconds
commit  26aef08

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

@awaseem
awaseem merged commit 9587eee into master Aug 18, 2026
39 checks passed
@awaseem
awaseem deleted the chore/fix-ts-issue-master-180926 branch August 18, 2026 13:22
@github-actions

github-actions Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1787059542)

Score Average Improvements Regressions
Completeness 99% (+2pp) 3 🟢 1 🔴
Conciseness 45.2% (+1pp) 11 🟢 9 🔴
Correctness 78.3% (+6pp) 5 🟢 3 🔴
Docs Faithfulness 63.3% (+2pp) 5 🟢 4 🔴
Goal Completion 85.2% (+4pp) 7 🟢 4 🔴
Knowledge Usage 94.9% (+3pp) 1 🟢 -
Tool Usage 79.7% (+0pp) 2 🟢 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 90.5% (-2pp) 1 🟢 1 🔴
URL Validity 100% (+0pp) - -
Time_to_first_token 8tok (+2.54tok) 3 🟢 32 🔴
Llm_calls 7.23 (+0.55) 21 🟢 14 🔴
Tool_calls 2.55 (+0) 11 🟢 15 🔴
Errors 0.07 (-0.7) 10 🟢 1 🔴
Llm_errors 0.02 (+0.02) - 2 🔴
Tool_errors 0.03 (+0) - -
Prompt_tokens 25659.11tok (+1647.95tok) 14 🟢 17 🔴
Prompt_cached_tokens 9128.23tok (-546.13tok) 11 🟢 19 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 553.68tok (+25.97tok) 11 🟢 24 🔴
Completion_reasoning_tokens 86.74tok (-0.41tok) 14 🟢 18 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 26212.79tok (+1673.92tok) 14 🟢 21 🔴
Estimated_cost 0$ (+0$) 11 🟢 22 🔴
Duration 34.13s (+8.52s) 3 🟢 32 🔴
Llm_duration 23.77s (+5.61s) 8 🟢 27 🔴

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