Skip to content

[codex] fix plugin CLI active user layer compile#22666

Merged
caseychow-oai merged 1 commit into
mainfrom
caseychow/codex/fix-plugin-cli-layer-api
May 14, 2026
Merged

[codex] fix plugin CLI active user layer compile#22666
caseychow-oai merged 1 commit into
mainfrom
caseychow/codex/fix-plugin-cli-layer-api

Conversation

@caseychow-oai
Copy link
Copy Markdown
Contributor

@caseychow-oai caseychow-oai commented May 14, 2026

Why

PR #21396 merged after #17141 removed the old ConfigLayerStack::get_user_layer() API. The new plugin CLI call sites still used that stale API, which caused main to fail compilation.

What Changed

  • update codex plugin marketplace list to read configured marketplaces through get_active_user_layer()
  • update the plugin snapshot validation helper to use get_active_user_layer()

This preserves the intended active writable user-layer behavior from the profile-aware config API while fixing the stale call sites.

Validation

  • cargo check -p codex-cli
  • cargo test -p codex-cli --test plugin_cli
  • git diff --check
@caseychow-oai caseychow-oai enabled auto-merge (squash) May 14, 2026 18:25
@caseychow-oai caseychow-oai merged commit 4a1f1df into main May 14, 2026
31 checks passed
@caseychow-oai caseychow-oai deleted the caseychow/codex/fix-plugin-cli-layer-api branch May 14, 2026 18:41
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants