Skip to content

refactor: decouple assistant chat surfaces - #48970

Closed
SaxonF wants to merge 1 commit into
masterfrom
codex/assistant-chat-foundation
Closed

SaxonF wants to merge 1 commit into
masterfrom
codex/assistant-chat-foundation

Conversation

@SaxonF

@SaxonF SaxonF commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • extract the reusable assistant conversation body from the sidebar interface
  • drive shared chat rendering and mutations with an explicit chat ID
  • keep sidebar selection, shortcuts, SQL-editor context, and header controls in the sidebar wrapper
  • add selection-free chat creation/branching primitives while preserving existing sidebar helpers
  • add store tests for cross-surface selection and mutation isolation

This is PR 1 of 2. The Explorer chat tabs feature will be stacked on this foundation.

Test plan

  • mise exec node@22 -- pnpm --dir apps/studio exec tsc --noEmit
  • mise exec node@22 -- pnpm --dir apps/studio exec vitest run state/ai-assistant-state.test.ts
  • ESLint on changed files
  • Prettier on changed files

@vercel

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

Request Review

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 094b92ad-81c8-4201-a48d-8d5ad9f23cee

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@supabase

supabase Bot commented Aug 12, 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 ↗︎.

@github-actions

github-actions Bot commented Aug 12, 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, 27 seconds
commit  15ab2dd

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

@SaxonF SaxonF closed this Aug 12, 2026
@SaxonF
SaxonF deleted the codex/assistant-chat-foundation branch August 12, 2026 07:01
SaxonF added a commit that referenced this pull request Aug 13, 2026
## Summary

- extract the reusable assistant conversation body from the sidebar
interface
- drive shared chat rendering and mutations with an explicit chat ID
- keep sidebar selection, shortcuts, SQL-editor context, and header
controls in the sidebar wrapper
- add selection-free chat creation and branching primitives while
preserving existing sidebar helpers
- add store tests for cross-surface selection and mutation isolation

This is PR 1 of 3. Review this foundation first, then #49031 for the
routed Explorer chat lifecycle, followed by #49032 for discovery and
cross-surface entry points.

Supersedes #48970 after renaming the branch to use the repository's
`chore/` convention.

## Test plan

- `mise exec node@22 -- pnpm --dir apps/studio exec tsc --noEmit`
- `mise exec node@22 -- pnpm --dir apps/studio exec vitest run
state/ai-assistant-state.test.ts`
- ESLint on changed files
- Prettier on changed files
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.

1 participant