Skip to content

Cache the placeholder regex for MCP hook argument expansion - #49956

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2ac8aec86de3430335c068e47d09422dcd276f7c
Oct 1, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2ac8aec86de3430335c068e47d09422dcd276f7c

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Cache the placeholder regex for MCP hook argument expansion

Use LazyLock to compile the placeholder regex once and reuse it across
argument strings, avoiding repeated compilation during template expansion.
Preserve regex error propagation and placeholder substitution behavior.

Use `LazyLock` to compile the placeholder regex once and reuse it across
argument strings, avoiding repeated compilation during template expansion.
Preserve regex error propagation and placeholder substitution behavior.

GitOrigin-RevId: 2ac8aec86de3430335c068e47d09422dcd276f7c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2ac8aec86de3430335c068e47d09422dcd276f7c branch from 9ddfe2b to 8a400e7 Compare October 1, 2026 11:01
@copyberry
copyberry Bot merged commit 8a400e7 into main Oct 1, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2ac8aec86de3430335c068e47d09422dcd276f7c branch October 1, 2026 11:01
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2026

This branch was previously deployed

1 inactive deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants