Skip to content

Conversation

@mscolnick
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Dec 29, 2025

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

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Dec 29, 2025 10:14pm
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors config update operations to use partial updates instead of full config replacements, preventing unintended overwrites of backend config values that aren't managed by specific UI components.

Key Changes:

  • Modified config-saving functions to accept and send Partial<UserConfig> instead of full config objects
  • Updated all state setters to use functional updates that merge new values with previous state
  • Implemented dirty field tracking in form-based config updates to only send changed values

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
frontend/src/core/config/feature-flag.tsx Added void keyword to mark fire-and-forget async call
frontend/src/core/ai/config.ts Changed parameter types to Partial<UserConfig> and updated state setters to merge with previous state
frontend/src/components/editor/package-alert.tsx Implemented dirty value tracking to only send changed fields and updated state setter
frontend/src/components/editor/controls/keyboard-shortcuts.tsx Refactored to use partial configs and functional state updates
frontend/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx Simplified hook usage, fixed callback syntax, and updated state setters
frontend/src/components/editor/actions/useConfigActions.tsx Updated to use partial config updates and functional state setters
frontend/src/components/app-config/user-config-form.tsx Updated state setter to use functional update pattern

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@Light2Dark Light2Dark left a comment

Choose a reason for hiding this comment

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

should we apply the same treatment for saveAppConfig and setAppConfig

@mscolnick
Copy link
Contributor Author

saveAppConfig doesn't have nested objects so not sure it is needed

@mscolnick mscolnick merged commit 1e62475 into main Dec 30, 2025
32 checks passed
@mscolnick mscolnick deleted the ms/more-partial-set-config branch December 30, 2025 14:33
@dmadisetti dmadisetti added the bug Something isn't working label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

4 participants