Skip to content

fix(powercontext): use --frozen for Codex plugin uv commands - #1211

Merged
Teingi merged 1 commit into
oceanbase:masterfrom
Evenss:master
Aug 11, 2026
Merged

fix(powercontext): use --frozen for Codex plugin uv commands#1211
Teingi merged 1 commit into
oceanbase:masterfrom
Evenss:master

Conversation

@Evenss

@Evenss Evenss commented Aug 11, 2026

Copy link
Copy Markdown
Member

Which issue or RFC does this PR close?

Closes #1210.

Rationale for this change

The PowerContext Codex plugin runs project-local helper scripts with uv run --locked.

When a user's global uv configuration uses a custom package index while the bundled uv.lock records PyPI, uv considers the lockfile outdated and exits. This breaks both the UserPromptSubmit hook and the project-context skill.

Using --frozen allows the plugin to trust its bundled lockfile without checking or modifying it.

What changes are included in this PR?

  • Replace --locked with --frozen in the UserPromptSubmit hook command.
  • Replace --locked with --frozen in the project-context skill command.
  • No dependency versions, public APIs, or persisted formats are changed.

Are there any user-facing changes?

Yes. The Codex plugin can now run when users configure a custom uv package index without requiring them to regenerate the plugin's lockfile.

There are no breaking changes.

How was this change tested?

  • Reproduced the lockfile error with --locked while using the Tsinghua PyPI mirror.
  • Verified that the same plugin command succeeds with --frozen.
  • Validated hooks/hooks.json with python3 -m json.tool.
  • Ran git diff --check upstream/master...HEAD.

AI usage statement

OpenAI Codex (GPT-5.6) was used to inspect the affected plugin paths, reproduce the uv index and lockfile behavior, and draft the change and PR description. The final diff and validation results were reviewed by the contributor.

@Teingi Teingi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Teingi
Teingi merged commit 44986c8 into oceanbase:master Aug 11, 2026
10 of 13 checks passed
222twotwotwo pushed a commit to 222twotwotwo/powercontext that referenced this pull request Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Codex plugin commands fail with --locked when uv uses a custom index

2 participants