mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
* improvement(knowledge): show selector with saved option in connector edit modal * fix(kb-connectors): clear canonical siblings when non-canonical dep changes; share selector field * refactor(kb-connectors): extract canonical-field logic into useConnectorConfigFields hook * fix(kb-connectors): only merge changed fields into sourceConfig on edit save Avoids writing spurious empty-string keys for untouched optional fields when another field triggers a save. * refactor(kb-connectors): tighten state primitives in modals - edit modal: replace useMemo([]) + eslint-disable with useState lazy initializer for initialSourceConfig — same mount-once semantics without the escape hatch. - add modal: drop useCallback on handleConnectNewAccount (no observer saw the reference) and inline the one call site.