nexus/server/src
Cody (Radius Red) ce8d9eb323 fix(server): preserve adapter-agnostic keys when changing adapter type
When the adapter type changes via PATCH, the server only preserved
instruction bundle keys (instructionsBundleMode, etc.) from the
existing config. Adapter-agnostic keys like env, cwd, timeoutSec,
graceSec, promptTemplate, and bootstrapPromptTemplate were silently
dropped if the PATCH payload didn't explicitly include them.

This caused env var data loss when adapter type was changed via the
UI or API without sending the full existing adapterConfig.

The fix preserves these adapter-agnostic keys from the existing config
before applying the instruction bundle preservation, matching the
UI's behavior in AgentConfigForm.handleSave.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-31 15:42:03 +00:00
..
__tests__ Merge pull request #2065 from edimuj/fix/heartbeat-session-reuse 2026-03-31 08:29:45 -05:00
adapters Merge branch 'master' into add-gpt-5-4-xhigh-effort 2026-03-31 06:19:26 -05:00
auth fix: disable secure cookies for HTTP deployments 2026-03-08 22:00:51 -05:00
middleware fix(server): include x-forwarded-host in board mutation origin check 2026-03-25 00:06:43 -07:00
onboarding-assets Preserve workspaces for follow-up issues 2026-03-30 14:10:36 -05:00
realtime update typing to node v24 from v20 2026-03-05 14:36:00 -03:00
routes fix(server): preserve adapter-agnostic keys when changing adapter type 2026-03-31 15:42:03 +00:00
secrets refactor: rename packages to @paperclipai and CLI binary to paperclipai 2026-03-03 08:45:26 -06:00
services Merge pull request #2065 from edimuj/fix/heartbeat-session-reuse 2026-03-31 08:29:45 -05:00
storage refactor: rename packages to @paperclipai and CLI binary to paperclipai 2026-03-03 08:45:26 -06:00
types Add browser-based board CLI auth flow 2026-03-23 08:46:05 -05:00
agent-auth-jwt.ts Implement local agent JWT authentication for adapters 2026-02-18 16:46:45 -06:00
app.ts Fix company zip imports 2026-03-23 16:57:39 -05:00
attachment-types.ts feat(issues): add issue documents and inline editing 2026-03-13 21:30:48 -05:00
board-claim.ts refactor: rename packages to @paperclipai and CLI binary to paperclipai 2026-03-03 08:45:26 -06:00
config-file.ts refactor: rename packages to @paperclipai and CLI binary to paperclipai 2026-03-03 08:45:26 -06:00
config.ts Fix worktree runtime isolation recovery 2026-03-26 11:12:39 -05:00
dev-server-status.ts Add guarded dev restart handling 2026-03-20 08:50:00 -05:00
dev-watch-ignore.ts Harden dev-watch excludes for nested UI outputs 2026-03-26 12:35:19 -05:00
errors.ts Add server routes for companies, approvals, costs, and dashboard 2026-02-17 09:07:27 -06:00
home-paths.ts Redesign project codebase configuration 2026-03-16 15:56:37 -05:00
index.ts Clarify manual workspace runtime behavior 2026-03-29 10:55:45 -05:00
log-redaction.ts Add username log censor setting 2026-03-20 08:50:00 -05:00
paths.ts feat(cli): add client commands and home-based local runtime defaults 2026-02-20 07:10:58 -06:00
redaction.ts Implement secrets service with local encryption, redaction, and runtime resolution 2026-02-19 15:43:52 -06:00
startup-banner.ts Add configurable automatic database backup scheduling 2026-03-04 18:03:23 -06:00
ui-branding.ts Add worktree UI branding 2026-03-13 11:12:43 -05:00
version.ts add app version label 2026-03-17 09:40:07 +05:30
worktree-config.ts Avoid sibling worktree port collisions 2026-03-26 11:12:39 -05:00