refactor(setup): accept retained fields from the registration schema

Setup keeps a registration field only when the schema doctor parses accepts it, and the OpenCode legacy disclosure follows that client's dialect.
This commit is contained in:
Cursor Agent
2026-10-12 21:37:33 -04:00
committed by xeropresence
parent ecd92970a4
commit fb3fa1dc5f
3 changed files with 23 additions and 42 deletions
@@ -1618,7 +1618,7 @@ export const describeClientRegistrationRetention = (
? removed
: `Setup replaces ${replaced.join(" and ")}. ${removed}`;
const legacy =
clientName === "opencode"
dialect === "opencode"
? " A legacy OpenCode entry moved into the native server table keeps only its environment."
: "";
return `On an existing local command entry, other user fields are kept. ${replacement} When that entry is remote, its other fields are replaced.${legacy}`;