Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge pull request #3573 from zicochaos (browser erase fix only)

milind-soni00e959070fb1
diff --cc server/browser/service.ts
index d644d69568,d7a8d77dda..51a911b05c
--- a/server/browser/service.ts
+++ b/server/browser/service.ts
@@@ -309,8 -302,8 +310,9 @@@ export class BrowserService
profile.tabs.clear();
if (reopened) profile.reopened = reopened;
try {
- if (profile.temporary || erase) this.#erase(profile);
+ if (erase) this.#erase(profile);
+ else if (profile.temporary) this.#eraseFiles(profile.key);
+ else rmSync(profile.downloadDir, { recursive: true, force: true });
} finally {
profile.control.closing = false;
profile.control.settle();