fix(web): clear stale chat action shortcuts #15394
Mergedmaria-rcksmerged 1 commit into
main fromrefs/pull/15394/headmerged by maria-rcks View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -4839,0 +4845,21 @@4845+ !input.nextScripts.some((script) => script.id === scriptId) &&4846+ (settings.defaultProjectScripts.some((script) => script.id === scriptId) ||4847+ Object.entries(settings.projectSettingsOverrides).some(4848+ ([projectId, entry]) =>4849+ projectId !== input.projectId &&4850+ entry.defaultProjectScripts?.some((script) => script.id === scriptId),4851+ ) ||4852+ allProjects.some(4853+ (other) =>4854+ other.environmentId === environmentId &&4855+ other.id !== input.projectId &&4856+ resolveProjectScripts(settings, other).some((script) => script.id === scriptId),4857+ ));4858+ if (!keybindingRule && retainedElsewhere) return updateResult;4859+4860+ const previousRules = (4861+ environmentById.get(environmentId)?.serverConfig?.keybindings ?? []4862+ ).flatMap((binding) => {4863+ if (binding.command !== input.keybindingCommand || binding.whenAst) return [];4864+ const previous = decodeProjectScriptKeybindingRule({4865+ keybinding: keybindingValueForCommand([binding], input.keybindingCommand),
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
maria-rcks merged this2d81e4c
maria-rcks closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed