SharePoint / SharePoint/sp-dev-docs

SPFx Copilot Apps Cache Old Versions of Javascript 24+ hours

Open
#11,004 4 comments 0 reactions 2 assignees View on GitHub

@VesaJuvonen is already working on this.

Since Aug 26, 2026.

area:spfx-copilot-apps type:bug-confirmed
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested
  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)
Additional environment details

Microsoft Edge - Version 151.0.4129.101
SPFX 1.24.0-beta.2

Describe the bug / error

I have been evolving the MyDay sample and adding in a MS Graph data source.
The Copilot App works beautifully in the Copilot Dashboard but would not work in the M365 Copilot App or https://m365.cloud.microsoft.
After releasing a few different versions, I realised that the version being loaded was stuck on an old version.
Following new solution, copilot component ids, deleting the agent, solution etc. I deployed a new version and it was still loading the old code.

However, running from Copilot App in MS Teams the new code was loading and the app was working.

Finally, this morning (after about 36 hours or so) the app is working in the M365 Copilot browser but not in the M365 Copilot App
This will be difficult for developers to evolve their solutions if they are testing things out in the proper apps before releasing to the organisation.

I have tried deleting browser cache, running in new browser work profile etc to make sure its not client side cache.

Steps to reproduce
  1. Build your Copilot App
  2. Deploy Copillot App and run in M365 Copilot App
  3. Update Copilot App, increase versions of solution and agent, deploy solution, add to teams, and run in M365 Copilot App and see old code running.
Expected behavior

New code is loaded following new solution deployment.

Working in M365 Copilot Website.

Image

Not working M365 Copilot App

Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.