openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 885 B
JavaScript
import{i as isNativeSessionCatalogOptOutOnly}from"./native-session-catalog-config-qTMdE-og.mjs";
//!src/commands/doctor/shared/codex-plugin-activation-warning.ts
function collectCodexPluginActivationWarnings(e){const t=e.plugins?.entries?.codex;const n=e.plugins?.allow;if(t?.enabled!==true||Object.keys(t).length!==2||!isNativeSessionCatalogOptOutOnly(`codex`,{config:t.config})||n&&n.length>0&&!n.includes(`codex`))return[];return[`plugins.entries.codex contains only enabled=true and the session catalog privacy opt-out. This may be left over from machine auto-enablement in OpenClaw 2026.9.3/2026.9.4; Doctor cannot determine whether you enabled it intentionally. If you did not enable Codex, set plugins.entries.codex.enabled=false and remove "codex" from plugins.allow if present. No automatic repair was applied to this selection.`]}export{collectCodexPluginActivationWarnings};