From da13299a8adf4c1dbcac80a0892759640e32a0e9 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Sat, 7 Nov 2026 09:17:59 +0100 Subject: [PATCH] Configure Codex removal on WSL --- AGENTS.md | 1 + README.md | 4 ++++ ansible/inventory/group_vars/all.yml | 9 ++++++--- ansible/inventory/host_vars/deadalus.yml | 5 +++++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 29b6b1d..b8ca056 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -547,6 +547,7 @@ validated exports of older historical data will use a dedicated Atlas NFS datase - Shared agent dotfiles live in `ai_agents_dotfiles`; rendered configs live in `ai_agents_templates`. - Every `ai_agents.` entry has independent `install_enabled`, `deploy_enabled`, and `uninstall_enabled` flags. Installation and removal must not both be true for the same agent; the common pre-task fails before changes when they conflict. - Fedora, Void desktop, and WSL workstation profiles consume the shared agent definitions; do not duplicate package entries in profile-specific vars. IBM Bob on the workstation follows its own flags. +- WSL (`deadalus`) disables Codex installation and dotfile deployment and selects its managed npm package for removal through host overrides; existing Codex user state remains untouched. - `dotfiles_common` deploys `ai_agents_dotfiles` and renders `ai_agents_templates` only when deployment is enabled. - Removal is limited to the managed npm packages and `/usr/local/bin/bob`; never remove agent dotfiles, instructions, credentials, or user data. - Keep `.config/ai/` as the common instruction source; update agent-specific entrypoints to reference it rather than duplicating instruction text. diff --git a/README.md b/README.md index 35675ed..0bf503f 100644 --- a/README.md +++ b/README.md @@ -596,6 +596,10 @@ instructions, credentials, and user data. Installation and removal are mutually exclusive per agent: the playbook fails before making changes when both flags are true for the same agent. Servers set `ai_agents: {}` and therefore manage none. +On WSL (`deadalus`), Codex installation and dotfile deployment are disabled through +host overrides; the managed `@openai/codex` npm package is selected for removal. +Existing Codex configuration, credentials, and user data are left untouched. + OpenCode Mobile (`opencode-mobile`) is installed globally through the same npm lifecycle on Fedora, Void desktops, and WSL. Its plugin declaration and `/mobile` command are deployed with the OpenCode dotfiles, so its `deploy_enabled` stays diff --git a/ansible/inventory/group_vars/all.yml b/ansible/inventory/group_vars/all.yml index bd008d5..15e915e 100644 --- a/ansible/inventory/group_vars/all.yml +++ b/ansible/inventory/group_vars/all.yml @@ -93,6 +93,9 @@ common_dotfiles: # AI coding-agent lifecycle controls are independent for every agent. # Installation and removal are mutually exclusive per agent; the common # pre-task enforces this before any changes are made. +codex_install_enabled: true +codex_deploy_enabled: true +codex_uninstall_enabled: false codex_relay_install_enabled: false codex_relay_uninstall_enabled: false gemini_cli_install_enabled: true @@ -124,9 +127,9 @@ ai_agents: uninstall_enabled: "{{ claude_code_uninstall_enabled }}" codex: npm_package: "@openai/codex" - install_enabled: true - deploy_enabled: true - uninstall_enabled: false + install_enabled: "{{ codex_install_enabled }}" + deploy_enabled: "{{ codex_deploy_enabled }}" + uninstall_enabled: "{{ codex_uninstall_enabled }}" codex_relay: npm_package: codex-relay install_enabled: "{{ codex_relay_install_enabled }}" diff --git a/ansible/inventory/host_vars/deadalus.yml b/ansible/inventory/host_vars/deadalus.yml index f9f5751..259431b 100644 --- a/ansible/inventory/host_vars/deadalus.yml +++ b/ansible/inventory/host_vars/deadalus.yml @@ -2,6 +2,11 @@ hostname: deadalus workstation_wsl_windows_user_home: /mnt/c/Users/FABIOSCOTTODISANTOLO +# Codex is not installed or configured on WSL; remove the managed npm package. +codex_install_enabled: false +codex_deploy_enabled: false +codex_uninstall_enabled: true + host_packages: [] host_enabled_services: []