The ChatGPT desktop app owns and rewrites ~/.codex/config.toml, so symlinking that file into the repo leaked the app's own config (model, [desktop], [plugins], [mcp_servers]) into git and got clobbered on launch. - Stop symlinking ~/.codex/config.toml; keep it app-owned and merge the repo fragment home/.codex/config.toml into it on every activation (home.activation.codexOpenCodeGo + home/bin/codex-opencode-go-sync). - Replace requires_openai_auth with a command-backed token (~/.local/bin/opencode-go-token reads the key from the opencode store), so ~/.codex/auth.json stays in ChatGPT mode and ChatGPT sign-in coexists with Go. - Add the Codex 0.160+ profile file home/.codex/luna.config.toml (gpt-6-luna). - Declare the chatgpt + codex casks; document the decision in AGENTS.md. Verified: default deepseek-v4.1-flash and --profile luna both return over the Go Responses API while auth.json remains in chatgpt mode.
8 lines
304 B
TOML
8 lines
304 B
TOML
# Codex profile: gpt-6-luna on OpenCode Go.
|
|
#
|
|
# Codex 0.160+ reads profiles from $CODEX_HOME/<name>.config.toml, so this file
|
|
# is symlinked in as ~/.codex/luna.config.toml. Select it with
|
|
# `codex --profile luna` (or `codex --profile luna exec ...`).
|
|
model = "gpt-6-luna"
|
|
model_provider = "opencode-go"
|