mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #5957] [feature]: Optional clearing of local workspace data on explicit logout #2341
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2341
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @edlyra on GitHub (Mar 6, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5957
Is there an existing issue for this?
Summary
Add an optional setting to clear locally persisted workspace data on explicit logout only.
The default behavior should remain unchanged, so local data continues to be preserved unless the user enables this option.
Why should this be worked on?
The current behavior makes sense for offline/disconnected continuity, and this should be preserved.
However, explicit logout is a different scenario. When a user intentionally clicks "Logout", there may be an expectation that locally cached workspace data should no longer remain accessible in that browser, especially on shared or public machines.
A good compromise would be to add a user-controlled option to clear local workspace data only on explicit logout, while keeping the current behavior as the default.
This cleanup should not happen when:
This would support both use cases:
This would also help in support scenarios on customer machines.
In practice, it is easy to forget opening Hoppscotch in a private/incognito window before starting a support session. When that happens, manually clearing browser storage afterward is inconvenient and not always practical, especially in a customer environment.
An optional setting to clear local data on explicit logout would provide a safer and more convenient fallback, while still preserving the current default behavior for offline/disconnected use.
@statxc commented on GitHub (Mar 6, 2026):
@jamesgeorge007 Can I take on this? I'd like to contribute! thanks
@luongquochai commented on GitHub (Mar 10, 2026):
hi @jamesgeorge007 Can I try on this ?
@statxc commented on GitHub (Mar 10, 2026):
@luongquochai Sorry, I am working on that now. Almost ready for PR 🙁
@luongquochai commented on GitHub (Mar 10, 2026):
@statxc I'm sorry I missed your comment. Please keep going 👍