diff --git a/clients/web/src/App.tsx b/clients/web/src/App.tsx index 9e764b6b..e1685093 100644 --- a/clients/web/src/App.tsx +++ b/clients/web/src/App.tsx @@ -4591,21 +4591,31 @@ function App() { initialConfig={configModalTarget?.config} existingIds={existingIds} onClose={() => setConfigModal(null)} - onSubmit={onConfigSubmit} + // Wrapped like the settings persists: this submit carries stdio `env` + // values, so it can perform the pending plaintext-to-encrypted + // upgrade and change the descriptor the footer reports. + onSubmit={refreshingPersist(onConfigSubmit, refreshInitialConfig)} + secretStorage={secretStorage} /> setImportConfigOpen(false)} onFetchSource={importSource} - onAddServer={addServerHighlighted} - onUpdateServer={updateServer} + onAddServer={refreshingPersist( + addServerHighlighted, + refreshInitialConfig, + )} + onUpdateServer={refreshingPersist(updateServer, refreshInitialConfig)} /> setImportJsonOpen(false)} - onAddServer={addServerHighlighted} + onAddServer={refreshingPersist( + addServerHighlighted, + refreshInitialConfig, + )} />