Repository navigation
feat(doctor): warn on oversized sessions.db - #107
Merged
Merged
Conversation
A huge sessions.db is the top cause of slow Devin starts, but the disk check only flagged it if it made the top-3 stores listing. A dedicated finding stats cli/sessions.db exactly (outside the bounded walk, same contract as acp-messages) and warns over ctx.sessions_db_warn_bytes (default 2 GiB) with the path and an export-then-prune pointer (devin-history + devin-janitor). Generated with [Devin](https://devin.ai) & QA Engineer Icaro Galvao Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6.
sessions.db > 2 GiBnow warns with the store's path, its exact size, and a pointer to devin-history (export) + devin-janitor (prune). Exact stat outside the bounded walk — same contract as acp-messages — so live growth cannot hide a breach and the finding fires even when the file would not make the top-3 listing.ctx.sessions_db_warn_bytes = 2 GiBdefault (Context field, consistent with the other warn_bytes thresholds)Note:
test_auto_approve_workflow.py/test_release_workflow.pyfail collection locally withNo module named 'yaml'— reproduces on a clean main checkout too (env, not this change); CI resolves it via dev extras.Generated with Devin