Skip to content

refactor(state): check ConfigLockBusy by tag - #202

Merged
altaywtf merged 3 commits into
mainfrom
refactor/config-lock-tag-check
Nov 28, 2026
Merged

altaywtf merged 3 commits into
mainfrom
refactor/config-lock-tag-check

Conversation

@altaywtf

@altaywtf altaywtf commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Config lock checks match ConfigLockBusy by tag, and @nkzw/no-instanceof now covers state.ts.

// before
while: (error) => error instanceof ConfigLockBusy,
// after
while: (error) => Predicate.isTagged(error, "ConfigLockBusy"),
  • Runtime change: retry and busy-lock message select by _tag. The lock fails only with PlatformError or ConfigLockBusy, so the same errors match.

Verification

  • pnpm exec vp run verify
  • A misspelled tag fails three existing state.test.ts lock tests.
  • Restoring instanceof fails lint in state.ts.
  • No test reaches the exhausted-retry message.

Notes

Related: #201

Match the config lock retry and the busy-lock message on the error tag instead of instanceof, so the shared lint config can enable @nkzw/no-instanceof in state.ts. The lock effect only fails with PlatformError or ConfigLockBusy, so the tag check selects the same errors.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T13:27:13.833131Z 6be5587 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@altaywtf
altaywtf merged commit edec290 into main Nov 28, 2026
6 checks passed
@altaywtf
altaywtf deleted the refactor/config-lock-tag-check branch November 28, 2026 13:35
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.

1 participant