Skip to content

🔨 chore(desktop): bust stable release manifest cache#13157

Merged
Innei merged 1 commit into
canaryfrom
innei/fix/desktop-release-manifest-cache-busting
Mar 20, 2026
Merged

🔨 chore(desktop): bust stable release manifest cache#13157
Innei merged 1 commit into
canaryfrom
innei/fix/desktop-release-manifest-cache-busting

Conversation

@Innei

@Innei Innei commented Mar 20, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

None.

🔀 Description of Change

Add a cache-busting timestamp query to stable desktop manifest requests.
This avoids stale stable*.yml responses from the update server or intermediate caches, so desktop release metadata stays in sync with the latest published artifacts.

🧪 How to Test

  • Run bunx vitest run --silent='passed-only' 'src/server/services/desktopRelease/index.test.ts'
  • Tested locally
  • Added/updated tests
  • No tests needed

📸 Screenshots / Videos

Before After
N/A N/A

📝 Additional Information

This change only appends a shared timestamp query string when fetching stable-mac.yml, stable.yml, and stable-linux.yml.

@vercel

vercel Bot commented Mar 20, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Mar 20, 2026 0:14am

Request Review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We've reviewed this pull request using the Sourcery rules engine

@lobehubbot

Copy link
Copy Markdown
Member

@ONLY-yours @nekomeowww - This is a desktop release service fix (cache-busting for stable manifest requests). Please take a look.

@Innei Innei changed the title 🐛 fix(desktop): bust stable release manifest cache 🔨 chore(desktop): bust stable release manifest cache Mar 20, 2026
@Innei Innei merged commit a64f4bf into canary Mar 20, 2026
27 of 28 checks passed
@Innei Innei deleted the innei/fix/desktop-release-manifest-cache-busting branch March 20, 2026 12:12
@lobehubbot

Copy link
Copy Markdown
Member

❤️ Great PR @Innei ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.

@codecov

codecov Bot commented Mar 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.57%. Comparing base (e577c95) to head (081c24c).
⚠️ Report is 1 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #13157      +/-   ##
==========================================
- Coverage   74.57%   74.57%   -0.01%     
==========================================
  Files        1517     1517              
  Lines      125037   125038       +1     
  Branches    13913    13914       +1     
==========================================
- Hits        93249    93247       -2     
- Misses      31677    31680       +3     
  Partials      111      111              
Flag Coverage Δ
app 67.67% <0.00%> (-0.01%) ⬇️
database 97.89% <ø> (ø)
packages/agent-runtime 89.60% <ø> (ø)
packages/context-engine 83.53% <ø> (ø)
packages/conversation-flow 92.36% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 66.68% <ø> (ø)
packages/model-bank 99.84% <ø> (ø)
packages/model-runtime 84.77% <ø> (ø)
packages/prompts 74.60% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 90.09% <ø> (ø)
packages/web-crawler 88.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 66.23% <ø> (ø)
Services 49.95% <ø> (ø)
Server 69.80% <0.00%> (-0.01%) ⬇️
Libs 42.20% <ø> (ø)
Utils 91.41% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 081c24c72a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +178 to +181
const timestamp = Date.now();

const [mac, win, linux] = await Promise.all([
fetchUpdateServerManifest(baseUrl, 'stable-mac.yml').catch(() => null),
fetchUpdateServerManifest(baseUrl, 'stable.yml').catch(() => null),
fetchUpdateServerManifest(baseUrl, 'stable-linux.yml').catch(() => null),
fetchUpdateServerManifest(baseUrl, 'stable-mac.yml?t=' + timestamp).catch(() => null),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep manifest cache-busting stable within the revalidate window

Using Date.now() here changes the manifest URL on every invocation, so the next: { revalidate: 300, tags: [...] } cache inside fetchUpdateServerManifest can never hit. Any caller that resolves desktop downloads more than once in a 5-minute window will now trigger three origin fetches every time, adding latency and load even though the code still declares these requests cacheable. If the intent is only to bypass stale upstream/CDN manifests, the cache-buster needs to stay constant for the revalidate interval instead of changing per call.

Useful? React with 👍 / 👎.

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