mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-25 17:22:27 +08:00
The add dialog for these apps now follows the same rules as the editor and Claude Code's add dialog. Picking a preset (or the custom template) projects it onto the current client files, so the editor shows what the files will look like after switching to the new provider. On save, key fields and provider-exclusive fields go to the row and other edits go to live as global settings with a three-way check. Before, anything typed there besides key fields was stored in the row and never took effect. - Adding and editing share one backend path per app. When the new provider is the first one, its key fields and the direct pointer are committed in the same write; the Gemini and Grok editor writers take a set_pointer flag for this, as Codex's already did. - The form reports each projection to the dialog as the three-way base. Only the latest request counts; while a projection is pending or after it fails, the add saves the row only. Every reset of the shown content re-projects or clears the base, otherwise global settings missing from the editor would be written to live as deletions. Grok's official card has no editor and keeps its seed flow. - Remove six unused common-config strings and rewrite the empty-state hint that still described the snippet; it now explains key-field switching and also shows for Grok Build.