You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[backend] Scans() and ScansPage() load per-workspace history without a server-side cap — growth is unbounded #111
startScan calls s.db.Scans(ctx, work.ID) (server.go:1459) which returns every scan ever run on the workspace just to check "is anything non-terminal" — the same pattern in deleteWorkspace (server.go:722). With demo data (18 scans × 120 workspaces) this is small, but scan history is unbounded — prune only runs when the user calls it. A workspace with a year of daily scans loads thousands of rows for a boolean check.
Same for FindingIdentities and Findings in report/compare paths — no LIMIT on what can grow. scans.state should also be indexed (check schema) — filtering "non-terminal" rows currently means scanning the table.
Fixed in #152 — the remaining unbounded Scans() callers (history_cmd, stats_cmd, workspace_cmd, cli_common) now use bounded ScansPage; Scans() is documented as tests/dumps only.
Activity
sanketpatel32 commentedon Nov 22, 2026
Not fixed — Scans/ScansPage still load unbounded per-workspace history. Queued.
devin-ai-integration commentedon Nov 22, 2026
Fixed in #152 — the remaining unbounded
Scans()callers (history_cmd,stats_cmd,workspace_cmd,cli_common) now use boundedScansPage;Scans()is documented as tests/dumps only.devin-ai-integration commentedon Nov 22, 2026
Fixed in PR #152 — see the earlier comment for the specific change.
fix(backend): resolve verified issues #111 #127 #122 #109 #114 (#152)