Skip to content

refactor(plugin-sdk): remove unused lazy fallback - #120974

Merged
steipete merged 1 commit into
mainfrom
steipete/lazy-value-fallback-cleanup
Aug 9, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/lazy-value-fallback-cleanup

Conversation

@steipete

@steipete steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Related: #120938

Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

The lazy-value primitive added for #120938 retained a two-argument nullish-fallback mode even though no production caller uses it. That left an unnecessary overload, implementation branch, and dedicated test in an internal helper whose callers already supply one non-nullish value or factory.

Why This Change Was Made

Remove the unused fallback overload and implementation so the helper has one memoization contract. Keep the plugin and channel entry constructors, their public types, and their boundary tests unchanged; also clarify the channel entry comment so it describes that constructor's responsibility directly.

User Impact

There is no user-visible behavior, configuration, or public SDK contract change. This is an AI-assisted maintainer simplification follow-up that removes an unused internal mode.

Evidence

  • node scripts/run-vitest.mjs src/plugin-sdk/lazy-value.test.ts src/plugin-sdk/core.test.ts src/plugin-sdk/channel-entry-contract.test.ts — 3 files, 22 tests passed.
  • Targeted oxfmt and git diff --check passed.
  • Blacksmith Testbox changed gate passed, including SDK guards, production and test typechecks, and lint.
  • Full pnpm build passed on Blacksmith Testbox lease tbx_01kzjnf1rhasn6zwdrg00ptj77: https://github.com/openclaw/openclaw/actions/runs/31300364065 (lease stopped successfully).
  • Fresh autoreview --mode uncommitted completed clean with no accepted/actionable findings.
  • Production LOC: +4/-16 (net -12). Tests: +1/-11 (net -10). Total: net -22.

@clawsweeper

clawsweeper Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 9, 2026 07:15
@clawsweeper

clawsweeper Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 9, 2026
@steipete
steipete merged commit 2f50cc8 into main Aug 9, 2026
178 of 182 checks passed
@steipete
steipete deleted the steipete/lazy-value-fallback-cleanup branch August 9, 2026 07:24
@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 9, 2026
Propagates the canonical dispatcher step from openclaw/clawsweeper#1083
byte-identically: the acknowledgement step waits 15s after a clean
marker check and rechecks immediately before posting, so near-simultaneous
opened and ready_for_review runs (draft PR marked ready within seconds,
as on #120974) post exactly one receipt ack.
steipete added a commit to openclaw/clawsweeper that referenced this pull request Aug 9, 2026
* fix(dispatch): recheck pull request ack marker before posting

A PR created as draft and marked ready within seconds fires opened and
ready_for_review runs that can both list comments before either
acknowledgement is visible, double-posting the receipt ack (observed on
openclaw/openclaw#120974). The ack step now waits 15s after a clean
first check and rechecks for any existing clawsweeper-pr-ack marker
immediately before posting; a superseding ready_for_review event cancels
a still-sleeping opened run through the existing concurrency group.

* docs: reference dispatcher ack fix PR in changelog
steipete added a commit that referenced this pull request Aug 9, 2026
Propagates the canonical dispatcher step from openclaw/clawsweeper#1083
byte-identically: the acknowledgement step waits 15s after a clean
marker check and rechecks immediately before posting, so near-simultaneous
opened and ready_for_review runs (draft PR marked ready within seconds,
as on #120974) post exactly one receipt ack.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
…20990)

Propagates the canonical dispatcher step from openclaw/clawsweeper#1083
byte-identically: the acknowledgement step waits 15s after a clean
marker check and rechecks immediately before posting, so near-simultaneous
opened and ready_for_review runs (draft PR marked ready within seconds,
as on openclaw#120974) post exactly one receipt ack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant