-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
copy only requiredDirs and make storeRemoteSession safer #3744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
copy only requiredDirs and make storeRemoteSession safer #3744
Conversation
to avoid unhandled exceptions bug in fs-extra
…1231234/whatsapp-web.js into remote-auth-compress-improve
|
Hi @alechkos @pedroslopez @wwebjs-bot @purpshell @shirser121 |
|
Looks great. I was running into this exact issue, and this PR completely fixes it for me |
|
That's great solution for it. Works for me |
|
Thanks that helped me alot!! |
|
@tuyuribr can you help please? 🙏 |
|
@BenyFilho can you check this out please? 🙏 |
I don’t have any say in that. I’m just a user like you. Unfortunately, no one is taking care of it. |
|
@tuyuribr @shirser121 @aliyss @purpshell @codebossdev |
|
@purpshell Thanks! |
Fixed ESLint indentation errors (lines 105-127) by changing from 2-space to 4-space indentation to match project standards. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
@tuyuribr Please can you review this? |
|
@pedroslopez @tuyuribr |
|
@Adi1231234 review your PR with the recent changes |
PR Details
Refactor and harden
RemoteAuthbackup/restore flow to improve reliability, ensure deterministic cleanup, and avoid persisting unnecessary metadata.Description
Refactored
storeRemoteSessiontry/finally; centralized cleanup withPromise.allSettled.REMOTE_SESSION_SAVEDonly after a successfulstore.save.Improved
compressSessiontempDir/Default) prepared withfs.emptyDir.copyByRequiredDirs(from, to)to copy only required subfolders (Default,IndexedDB,Local Storage).Code cleanup
deleteMetadata(selective copy makes it unnecessary).module.exports = RemoteAuth.Related Issue(s)
closes #3724
Motivation and Context
How Has This Been Tested
afterAuthReady: verified first backup runs andREMOTE_SESSION_SAVEDis emitted.Environment
Types of changes
Checklist