Skip to content

fix(plugins): state overdue migration once a removal date has passed - #190752

Closed
huwei-xydt wants to merge 3 commits into
openclaw:mainfrom
huwei-xydt:fix/plugins-deprecation-overdue-notice
Closed

huwei-xydt wants to merge 3 commits into
openclaw:mainfrom
huwei-xydt:fix/plugins-deprecation-overdue-notice

Conversation

@huwei-xydt

@huwei-xydt huwei-xydt commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

After a plugin SDK removeAfter date has passed, OpenClaw still describes the migration window as future. Operators see "retire on Oct 1… keeps working until then" on Nov 2, and Control UI never switches to an overdue notice because compatibilityDeprecatedPast did not exist.

User Impact

Operators of plugins that still import migration-pending SDK APIs (for example MsgContext.mediaPath with removeAfter: 2026-10-01) are told the APIs still have time left. Plugin authors are not told migration is overdue. The APIs remain available (removal-pending), so the product must not claim they already retired.

Why This Change Was Made

Issue #190536 reported future-tense notices after the removal date. This branch:

  1. Backend buildPluginSdkDeprecationNotices: when removalDate < today (UTC date string compare), emit elapsed-date wording that keeps the availability distinction ("migration date passed… APIs remain available; plugin authors should migrate") instead of claiming retirement.
  2. Control UI renderPluginCompatibilityNotices: same elapsed-date rule; add compatibilityDeprecatedPast (en) so the inventory/detail rows switch to the overdue text.
  3. Pin clocks in dated-notice Node/DOM/browser tests and exercise the final compatibility day vs the next UTC day so 2027-01-01 does not flip existing fixtures.

Evidence

Real CLI: openclaw plugins inspect --runtime (UTC today 2026-11-02, plugin removeAfter 2026-10-01)

Isolated config/state under /tmp/pr190752-cli-proof/. Synthetic plugin elapsed-sdk-demo statically imports openclaw/plugin-sdk/agent-media-payload (compat record media-legacy-projection, status removal-pending, removeAfter: "2026-10-01"). Entry point: source CLI node --import ./scripts/tsx.mjs src/entry.ts plugins inspect elapsed-sdk-demo --runtime on Node v26.12.1 (host OpenClaw 2026.10.9 (7139500)).

Before (main sdk-deprecation-notices.ts, same inspect command):

Status: loaded
Format: openclaw
Source: /tmp/pr190752-cli-proof/plugins/elapsed-sdk-demo/index.mjs
Origin: config

Compatibility warnings:
elapsed-sdk-demo Uses OpenClaw APIs that retire on Oct 1, 2026. It keeps working until then; check for a plugin update.

After (this branch head 71395005fe9, same inspect command):

UTC host date: 2026-11-02
Status: loaded
Format: openclaw
Source: /tmp/pr190752-cli-proof/plugins/elapsed-sdk-demo/index.mjs
Origin: config

Compatibility warnings:
elapsed-sdk-demo Uses OpenClaw APIs whose migration date passed on Oct 1, 2026. The APIs remain available; plugin authors should migrate. See the migration guide.

The Compatibility warnings line is produced by the shipped CLI path buildCompatibilityNoticesForInspect → buildPluginSdkDeprecationNotices → formatPluginCompatibilityNotice after a real runtime plugin load records the deprecated SDK import.

Control UI before/after (Chromium, page.clock fixed at 2026-11-02T12:00:00Z, removeAfter 2026-10-01)

Inventory DOM before (main overview + locale):

Uses OpenClaw APIs that retire on Oct 1, 2026. It keeps working until then; check for a plugin update.

Inventory DOM after (this branch):

Uses OpenClaw APIs whose migration date passed on Oct 1, 2026. The APIs remain available; plugin authors should migrate. See the migration guide.

Before — inventory notice

before inventory

After — inventory notice

after inventory

Before — inventory row

before row

After — inventory row

after row

Before — detail surface

before detail

After — detail surface

after detail

Local regression suite (green on this head 71395005fe9)

  • pnpm exec vitest run --config test/vitest/vitest.plugins.config.ts src/plugins/sdk-deprecation-notices.test.ts → 5/5
  • pnpm exec vitest run --config test/vitest/vitest.ui.config.ts ui/src/pages/plugins/catalog-detail.test.tsx → 14/14
  • pnpm ui:i18n:verify → 0 missing keys
  • src/plugins/status.test.ts → 11/11

Review findings addressed on head 71395005fe9

  • CI check-test-types-core-5: wrapped vi.useRealTimers() in block bodies so onTestFinished callbacks return void (tsgo Awaitable<void>).
  • P2 wording: message no longer claims APIs retired; names plugin authors as migration actors; keeps availability distinction.
  • P2 clock pins: backend/DOM/browser dated tests use fixed clocks; boundary day tests cover 2026-12-31 still future vs 2027-01-01 past.
  • Prior re-review hold=proof: supplied real openclaw plugins inspect --runtime terminal output (above) with an elapsed-date plugin, not a bypassed builder/format-only proof.

Merge Danger

  • Only en gains compatibilityDeprecatedPast; pnpm ui:i18n:verify must stay green (other locales keep dated/undated keys).
  • Elapsed detection is UTC date-string compare on removeAfter, same rule as Control UI; do not switch to local-time without a product decision.
  • Notice text only; plugins continue loading. No schema/config changes.

buildPluginSdkDeprecationNotices always said "retire on <date>. It keeps
working until then; check for a plugin update" even after removeAfter
was in the past, so plugins doctor/status and the Control UI taught
operators to ignore a permanent unfixable-looking notice.

Branch on whether the earliest removalDate is before today's UTC date:
past dates use past-tense overdue copy and stop suggesting a plugin
update; future and undated notices keep their existing wording.

Fixes openclaw#190536

Co-Authored-By: Claude Code <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Nov 2, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

CLI and Control UI plugin notices describe elapsed migration deadlines without claiming the deprecated APIs are unavailable.

Example: On November 2, 2026, a loaded plugin uses an API with removeAfter set to 2026-10-01.

  • Before: The notice says the API retires on October 1 and keeps working until then.
  • After: The notice says the migration date passed, confirms the API remains available, and directs plugin authors to migrate.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A small, useful correction with supplied CLI behavior proof, inspected visual evidence, deterministic boundary tests, and no open correctness finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Runtime plugin inspection output on the reviewed head shows the real loaded elapsed-sdk-demo plugin producing the corrected October 1 notice on November 2; inspected Chromium screenshots show the corresponding before/after notice and inventory row, satisfying the prior CLI proof request.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Operators see a future migration window after its deadline has passed and are directed toward updates that may not exist.
Reason: The correction restores accurate diagnostics while preserving the documented informational notice and retained compatibility.

Merge readiness

✅ Ready for maintainer review

This PR fixes a current diagnostic bug; the earlier findings are resolved, and no new correctness blocker was found.

Priority: P2
Reviewed head: 71395005fe9fa5d9e3f6a2e19110e15b228445eb

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: An executed red-on-base regression run is not recorded; source inspection shows the elapsed-date assertions contradict the base's unconditional future-tense output.
Agent review details

How this fits together

Plugin import and API-use observations feed structured compatibility notices, which CLI inspection formats and Control UI renders with localized dates and copy.

flowchart LR
  A[Plugin imports and API calls] --> B[Usage observations]
  B --> C[Compatibility notice builder]
  C --> D[CLI inspection output]
  C --> E[Gateway plugin metadata]
  E --> F[Localized Control UI notices]
Loading

Technical review

Best possible solution:

Land the focused UTC-date presentation correction while retaining the existing compatibility registry and plugin execution behavior.

Do we have a high-confidence way to reproduce the issue?

Elapsed removal-pending registry dates reach unconditional future-tense notices on current main; the contributor also supplies matching before/after runtime CLI output.

Is this the best way to solve the issue?

The existing backend notice builder and localized UI renderer are the appropriate owners; changing their date-dependent copy fixes the problem without changing removal policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against afbe0a8e8f2c.

Provenance checked

  • Observed SDK notices and localized UI presentation keeps the original intent (d795875: Expose actual deprecated SDK usage with calm informational notices, structured deadlines, migration guidance, and no execution changes.)
  • Retention after elapsed compatibility dates keeps the original intent (fix(ci): keep unresolved compatibility removals in the review queue #163127: Keep unresolved compatibility removals pending with their existing dates and reader-migration blockers rather than treating elapsed dates as removal authorization.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +18, Tests +107. Total +125 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 32 14 +18
Tests 3 108 1 +107
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 140 15 +125

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Misleading compatibility diagnostics create operator confusion, while affected plugins continue to load.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-02T01:25:09.536Z sha 2390b28 :: needs real behavior proof before merge. :: [P2] Describe an elapsed deadline without claiming the APIs retired | [P2] Pin the clocks in the existing dated-notice tests
  • reviewed 2026-11-02T02:30:33.843Z sha 7139500 :: needs real behavior proof before merge. :: none

Reviewed November 1, 2026, 10:09 PM ET / November 2, 2026, 03:09 UTC (Revision 3).

…ement

ClawSweeper: removal-pending APIs stay available after removeAfter; the
past notice must say the migration date passed and name plugin authors
as the actors. Pin clocks in dated-notice tests and add final-day /
next-UTC-day boundaries so fixtures do not flip after 2027-01-01.

Co-Authored-By: Claude Code <[email protected]>
@huwei-xydt

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head: 52b8bd8de75 (2 commits). Real behavior proof is in the PR body Evidence section:

  1. Elapsed-date production notice path (record → build → format) before/after for removeAfter 2026-10-01 on UTC 2026-11-02.
  2. Control UI Chromium before/after screenshots with page.clock fixed at 2026-11-02T12:00:00Z (main overview/locale vs this branch).
  3. Both P2 findings addressed on this head: elapsed wording without claiming retirement; clock-pinned dated tests with final-day / next-UTC-day cases.

Please re-review 52b8bd8de75.

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
onTestFinished callbacks that return VitestUtils fail tsgo
Awaitable<void>. Wrap vi.useRealTimers() in a block body.

Co-Authored-By: Claude Code <[email protected]>
@huwei-xydt

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head is now 71395005fe9 (adds void fake-timer cleanup for catalog-detail.test.tsx after check-test-types-core-5 failed on VitestUtils → Awaitable<void>).

Real behavior proof remains in the PR body Evidence section (elapsed-date production path + Control UI before/after screenshots for removeAfter 2026-10-01 on clock 2026-11-02). Both original P2 findings are addressed on this head.

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper clawsweeper Bot removed the clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. label Nov 2, 2026
@huwei-xydt

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review — head 7139500 now includes real openclaw plugins inspect --runtime terminal before/after for an elapsed-date plugin (main builder vs this branch). Evidence is in the PR body Evidence section.

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 2, 2026
@obviyus

obviyus commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the work here. We're closing this: it doesn't show a real user-facing problem (no report from an affected user and no natural reproduction), and it follows a pattern of small, speculative or duplicate changes split across many PRs. Please open an issue with a reproduction of real harm first; a fix can follow once the problem is confirmed.

@obviyus

obviyus commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the work here. We're closing this: it doesn't show a real user-facing problem (no report from an affected user and no natural reproduction), and it follows a pattern of small, speculative or duplicate changes split across many PRs. Please open an issue with a reproduction of real harm first; a fix can follow once the problem is confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants