Sfoglia il codice sorgente

Merge pull request #826 from alvinunreal/fix/council-sidebar

fix(tui): hide council and dynamic councillors from sidebar
Mike Henke 2 settimane fa
parent
commit
ee1b0c2c73
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      src/index.ts

+ 6 - 1
src/index.ts

@@ -759,7 +759,12 @@ const OhMyOpenCodeLite: Plugin = async (ctx) => {
       const tuiAgentModels: Record<string, string> = {};
       const tuiAgentVariants: Record<string, string> = {};
       for (const agentDef of agentDefs) {
-        if (agentDef.name === 'councillor') continue;
+        if (
+          agentDef.name === 'council' ||
+          agentDef.name === 'councillor' ||
+          agentDef.name.startsWith('councillor-')
+        )
+          continue;
 
         const entry = configAgent[agentDef.name] as
           | Record<string, unknown>