Files
teamai-cli/docs
Saul Moro b2d3598b38 fix(config): honor CODEX_HOME through toolRoots (#942)
* fix(config): honor CODEX_HOME through toolRoots

Codex keeps its home in $CODEX_HOME, but teamai resolved every Codex
path under ~/.codex, so a member who exports the variable got no
skills, hooks, agents or MCP in the directory Codex reads, and doctor
stayed green.

Extend the toolRoots relocation built for CLAUDE_CONFIG_DIR (#725) to
Codex. A RELOCATABLE_TOOLS table maps each tool to its variable; init
records CODEX_HOME into toolRoots.codex, a re-init that moves the root
releases the old hooks and managed MCP servers, and doctor adds a
"Codex root matches CODEX_HOME" check. The two Codex writes outside
toolPaths now follow the root: the co-author setting in config.toml and
the skill-existence probe used by usage tracking.

The doctor check compares the paths each root resolves to rather than
requiring a record, so an unrecorded CODEX_HOME=~/.codex passes while
an unrecorded CLAUDE_CONFIG_DIR=~/.claude still fails (it moves
.claude.json).

Closes #939

* fix(config): address review on CODEX_HOME relocation

Derive the Codex co-author file from the scoped paths, list relocatable
skill roots from RELOCATABLE_TOOLS, and skip the root-release warning
for a tool the member does not sync or whose old root does not exist.

* fix(coauthor): resolve the Codex config root, not the skills mapping

A team mapping toolPaths.codex.skills to .agents/skills sent the Codex
co-author setting to ~/.agents/config.toml. Resolve each Codex's own root
(toolRoots.codex or ~/.codex, ~/.tcodex, ~/.codex-internal) instead.
2026-10-01 16:30:07 +08:00
..