Skip to content

fix(schedule-editor): invalidate manifest cache after save [CUST-5442]#477

Merged
maithri471 merged 2 commits into
mainfrom
nines/CUST-5442-fix-manifest-cache
Jun 18, 2026
Merged

fix(schedule-editor): invalidate manifest cache after save [CUST-5442]#477
maithri471 merged 2 commits into
mainfrom
nines/CUST-5442-fix-manifest-cache

Conversation

@openclaw-sre-agent

@openclaw-sre-agent openclaw-sre-agent Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Problem

Deleted custom fields (additional_fields) in the Scheduler Editor reappear after saving and navigating away/back.

Root Cause

ManifestStore (Svelte writable store backed by a Proxy) caches the scheduler manifest on first fetch and never invalidates the cache. When saveManifest() PUTs the updated config to the server, the client-side cache still holds the pre-save config. On the next component mount, onMount reads stale data from the cache and buildInternalProps falls through to it — bringing deleted fields back.

Fix

  1. commons/src/store/manifest.ts — export invalidateManifestCache(componentId, accessToken) which deletes the cached entry so the Proxy's get-trap refetches on next access.
  2. components/schedule-editor/src/ScheduleEditor.svelte — after saveManifest() resolves:
    • Invalidate the store cache via invalidateManifestCache()
    • Update the local manifest variable so in-session reads also reflect the saved state
    • Make saveProperties() async to properly await the save

Testing

  • Load the Scheduler Editor with existing custom fields
  • Delete one or more custom fields, save
  • Navigate away, return — deleted fields should remain deleted
  • Verify new fields can still be added after the fix

Fixes CUST-5442

Deleted custom fields (additional_fields) reappeared after saving
because ManifestStore cached the pre-save manifest indefinitely.
On re-mount the stale cache was served, and buildInternalProps fell
through to it when the prop wasn't set by the parent.

- Export invalidateManifestCache() from the manifest store
- Call it after saveManifest() in the schedule editor
- Also update the local manifest variable for in-session consistency

Fixes CUST-5442
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
components Error Error Jun 17, 2026 6:06pm
components-pnmt Error Error Jun 17, 2026 6:06pm

Request Review

GitHub now auto-fails any workflow run that references the deprecated
actions/cache@v2 (toolkit cache package shutdown). This failed the
`build` job during job setup, before any code ran, which gated
lint/type-check/test-unit (all skipped) and the Vercel deploys.

Bumps all 8 actions/cache refs in build-test-publish.yaml to v4.
No code changes; unblocks CI for this PR and the repo as a whole.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@maithri471 maithri471 merged commit 5d79c23 into main Jun 18, 2026
10 of 14 checks passed
@maithri471 maithri471 deleted the nines/CUST-5442-fix-manifest-cache branch June 18, 2026 18:42
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.

2 participants