Skip to content

Commit 7df63a3

Browse files
committed
chore(release): codex 1.1.6 (source)
1 parent 5dd8ef8 commit 7df63a3

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

scripts/install_system_codex.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ def is_rldyour_plugin_header(header_path: list[str]) -> bool:
588588
def is_managed_header(header: str, header_path: list[str]) -> bool:
589589
if header in managed_headers:
590590
return True
591+
if len(header_path) >= 2 and header_path[0] == "mcp_servers" and header_path[1] in mcp_servers:
592+
return True
591593
return (
592594
len(header_path) >= 2
593595
and header_path[0] == "profiles"

scripts/smoke_codex_hooks_migration.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,19 @@ memories = true
156156
157157
[profiles."rldyour-safe".features]
158158
terminal_resize_reflow = false
159+
EOF
160+
;;
161+
mcp_secret_placeholder_upgrade)
162+
cat >"$config_path" <<'EOF'
163+
[mcp_servers.github]
164+
command = "github-mcp-server"
165+
args = ["stdio", "--toolsets", "context,repos"]
166+
167+
[mcp_servers.github.env]
168+
GITHUB_PERSONAL_ACCESS_TOKEN = "${GITHUB_PERSONAL_ACCESS_TOKEN}"
169+
170+
[mcp_servers.github.tools.old]
171+
approval_mode = "approve"
159172
EOF
160173
;;
161174
*)
@@ -255,6 +268,17 @@ if case_name == "memories_legacy":
255268
raise SystemExit(f"{case_name}: memories legacy alias was not migrated: {memories!r}")
256269
if "no_memories_if_mcp_or_web_search" in memories:
257270
raise SystemExit(f"{case_name}: memories legacy alias was not removed: {memories!r}")
271+
if case_name == "mcp_secret_placeholder_upgrade":
272+
github = (data.get("mcp_servers") or {}).get("github") or {}
273+
if "env" in github:
274+
raise SystemExit(f"{case_name}: stale github env table was not removed: {github!r}")
275+
if github.get("env_vars") != ["GITHUB_PERSONAL_ACCESS_TOKEN"]:
276+
raise SystemExit(f"{case_name}: github token was not forwarded through env_vars: {github!r}")
277+
if "${GITHUB_PERSONAL_ACCESS_TOKEN}" in text:
278+
raise SystemExit(f"{case_name}: literal GitHub token placeholder remains in config")
279+
tools = github.get("tools") or {}
280+
if "old" in tools:
281+
raise SystemExit(f"{case_name}: stale managed github tool approval remains: {tools!r}")
258282
PY
259283

260284
printf 'ok %s\n' "$case_name"
@@ -283,6 +307,7 @@ cases=(
283307
memories_legacy
284308
features_legacy_landlock
285309
profiles_nested_legacy
310+
mcp_secret_placeholder_upgrade
286311
)
287312

288313
for case_name in "${cases[@]}"; do

0 commit comments

Comments
 (0)