Skip to content

Session storage can grow too large. #7337

@etherandrius

Description

@etherandrius

Before submitting your bug report

Relevant environment info

- OS: linux vs code backend / mac VS code frontend running in Chromium.
- Continue version: v1.1.65
- IDE version: VS Code web running in a browser

Description

Continue stores the current session in localStorage. For longer conversations this context can grow too large and hit QuotaExceededError

https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria#web_storage

Browsers can store up to 5 MiB of local storage, and 5 MiB of session storage per origin.
Image

My use-case is pretty long conversations and large amount of tool usage. Every so often I get QuotaExceededError and have to clear localStorage.

In the most recent case I had 76 messages before the error was hit.
Image

The biggest culprit seems to be the promptLogs key which stores all the tools and their properties. I have about 30 large tools with complex input schemas and long descriptions. appliedRules key is not helping either.

Image

If I delete the two keys I get a 30x smaller size

Image

Metadata

Metadata

Labels

kind:bugIndicates an unexpected problem or unintended behavioros:linuxHappening specifically on Linux

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions