You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
autosave is not work by using navigator.sendbeacon #32030
This is a known limitation: navigator.sendBeacon has a 64KB payload size cap in browsers. If your autosave data exceeds this, the request hangs or stays pending, so your changes aren't saved when switching tabs or closing the page. This matches what you see in the network tab with a pending "draft" request and 0 kB size.
A common workaround is to use fetch with keepalive: true, which can handle larger payloads more reliably during page unload, but even this can have browser-specific limits and isn't guaranteed for very large data.
To avoid data loss, try to keep workflows smaller, wait for the periodic autosave to trigger before leaving the page, or manually click "Publish" before switching tabs. For maintainers, adding payload size checks, error handling, or user warnings before tab close can help prevent silent failures. There is also a recent fix referenced in PR #15597 that addresses this issue by optimizing the autosave mechanism and considering alternatives for large payloads. More details and workarounds are discussed here and here.
Activity
dosubot commentedon Feb 6, 2026
Hi @799189288! I'm Dosu and I’m helping the dify team.
This is a known limitation: navigator.sendBeacon has a 64KB payload size cap in browsers. If your autosave data exceeds this, the request hangs or stays pending, so your changes aren't saved when switching tabs or closing the page. This matches what you see in the network tab with a pending "draft" request and 0 kB size.
A common workaround is to use fetch with keepalive: true, which can handle larger payloads more reliably during page unload, but even this can have browser-specific limits and isn't guaranteed for very large data.
To avoid data loss, try to keep workflows smaller, wait for the periodic autosave to trigger before leaving the page, or manually click "Publish" before switching tabs. For maintainers, adding payload size checks, error handling, or user warnings before tab close can help prevent silent failures. There is also a recent fix referenced in PR #15597 that addresses this issue by optimizing the autosave mechanism and considering alternatives for large payloads. More details and workarounds are discussed here and here.
To reply, just mention @dosu.
Docs are dead. Just use Dosu.
fix: replace sendBeacon with fetch keepalive for autosave on page close