fix(docs): search live docs with unrelated invalid config (#111803)

This commit is contained in:
mushuiyu886
2026-07-20 15:49:03 -07:00
committed by GitHub
parent a2a0e932c8
commit 0e6561bc2c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -89,6 +89,7 @@ export const cliCommandCatalog: readonly CliCommandCatalogEntry[] = [
},
},
{ commandPath: ["message"], policy: { loadPlugins: "never" } },
{ commandPath: ["docs"], policy: { bypassConfigGuard: true } },
{
commandPath: ["channels"],
policy: {
+1
View File
@@ -24,6 +24,7 @@ describe("command-startup-policy", () => {
expect(shouldBypassConfigGuardForCommandPath(["config"])).toBe(true);
expect(shouldBypassConfigGuardForCommandPath(["config", "validate"])).toBe(true);
expect(shouldBypassConfigGuardForCommandPath(["config", "schema"])).toBe(true);
expect(shouldBypassConfigGuardForCommandPath(["docs"])).toBe(true);
expect(shouldBypassConfigGuardForCommandPath(["config", "set"])).toBe(false);
expect(shouldBypassConfigGuardForCommandPath(["status"])).toBe(false);
});