We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6099ed commit bba0a8aCopy full SHA for bba0a8a
apps/server/src/serverSettings.ts
@@ -271,7 +271,19 @@ const makeServerSettings = Effect.gen(function* () {
271
writeSemaphore.withPermits(1)(
272
Effect.gen(function* () {
273
const current = yield* getSettingsFromCache;
274
- const next: ServerSettings = { ...current, ...patch };
+ const next: ServerSettings = {
275
+ ...current,
276
+ ...patch,
277
+ providers: patch.providers
278
+ ? {
279
+ codex: { ...current.providers.codex, ...patch.providers.codex },
280
+ claudeAgent: {
281
+ ...current.providers.claudeAgent,
282
+ ...patch.providers.claudeAgent,
283
+ },
284
+ }
285
+ : current.providers,
286
+ };
287
yield* writeSettingsAtomically(next);
288
yield* Cache.set(settingsCache, cacheKey, next);
289
yield* emitChange(next);
0 commit comments