You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
lsc
committed
fix(mcp): echo unmodeled state on full-replace connector/skill writes
Both full-replace write paths now preserve stored state the form doesn't model,
matching the skill metadata-edit path (and the admin fix):
- Connector edit: toPluginUpsert seeds the modeled server from the stored raw
server (keeps cwd/disabled/timeout/autoApprove/…), re-emits other mcpServers
entries, and re-emits non-modeled attachments verbatim. updateMcpReal pulls
these from the freshly-fetched current record. A metadata edit (e.g. slogan)
no longer destroys a Cline `disabled:true`, a second server, or a sixth file.
- Skill re-upload: EditSkillModal (no visibility control) now threads the skill's
current visibility, and importBody fails closed to `private` when absent — a
re-upload can no longer let a backend default widen a private skill.
Adds regression tests for both (connector unmodeled-field/second-server/extra-
attachment survival; skill re-upload fail-closed + explicit-visibility).
0 commit comments