Skip to content

chore(desktop): remove network-logs boot sweep - #7402

Open
saddlepaddle wants to merge 1 commit into
mainfrom
chore/remove-network-logs-boot-sweep
Open

saddlepaddle wants to merge 1 commit into
mainfrom
chore/remove-network-logs-boot-sweep

Conversation

@saddlepaddle

@saddlepaddle saddlepaddle commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

What & why

Removes apps/desktop/src/main/network-logger-sweep.ts and its call site in apps/desktop/src/main/index.ts.

The sweep was added in #6328 (merged 2026-08-12) alongside the deletion of the always-on Chromium network logger (an ElectricSQL-debugging tool), to reclaim stranded userData/network-logs directories (up to ~4GB per profile) left behind on existing installs. It first shipped in desktop-v1.21.0 (published 2026-08-13) and has been carried by every desktop release since (through desktop-v1.28.0). That first release is now ~4 weeks old, well past the point where the one-time cleanup would have run on any install that updated. The sweep only ever needed to run once per install, so it's now dead weight on every boot.

How I tested it

  • bun run lint:fix — no fixes needed
  • bun run lint — exit 0
  • bunx turbo run typecheck --filter=@superset/desktop — exit 0

Checklist

  • PR title follows conventional commits (type(scope): subject)
  • bun run lint and bun run typecheck pass (CI fails on lint warnings too)
  • "Allow edits from maintainers" is checked on fork PRs

https://claude.ai/code/session_0197P3FZTcXBNKjFrddw3o8q


Generated by Claude Code


Summary by cubic

Removes the one-time network-logs boot sweep that cleaned up stranded userData/network-logs directories left behind by the deleted Chromium network logger. The sweep shipped in desktop v1.21.0 over four weeks ago, so any install that updated has already run it; keeping it just adds dead weight to every boot.

Written for commit 40a69cc. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Chores
    • Removed automatic cleanup of network log files during desktop app startup.
    • Development profile cleanup remains part of app initialization.

The sweep (added in #6328, shipped starting desktop-v1.21.0 on
2026-08-13) only needed to run once per install to clean up stranded
userData/network-logs directories left by the deleted always-on
Chromium network logger. That release is now ~4 weeks old, so the
sweep is dead weight.

Claude-Session: https://claude.ai/code/session_0197P3FZTcXBNKjFrddw3o8q
@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 77f09956-1067-43ab-88e8-bd176f73c52f

📥 Commits

Reviewing files that changed from the base of the PR and between 92ef0fe and 40a69cc.

📒 Files selected for processing (2)
  • apps/desktop/src/main/index.ts
  • apps/desktop/src/main/network-logger-sweep.ts
💤 Files with no reviewable changes (2)
  • apps/desktop/src/main/index.ts
  • apps/desktop/src/main/network-logger-sweep.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The desktop app no longer imports or runs sweepNetworkLogs() during initialization. The network log sweep implementation was deleted. Development app-profile sweeping remains.

Changes

Network log sweep removal

Layer / File(s) Summary
Remove startup network log sweep
apps/desktop/src/main/index.ts, apps/desktop/src/main/network-logger-sweep.ts
The network log sweep implementation, import, and startup call were removed. Development app-profile sweeping remains in the initialization flow.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 40a69

The desktop app will stop deleting obsolete network-log directories during startup; the one-time cleanup period has elapsed, and no merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title uses conventional commit format and clearly describes the removal of the desktop network-logs boot sweep.
Description check ✅ Passed The description explains what changed, why the one-time sweep is no longer needed, and how the change was tested. It includes the required sections. The unchecked maintainer-edits item is conditional …
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/remove-network-logs-boot-sweep

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

This PR has had no activity for 53 days and will close in 7 days unless there is new activity. If this contribution is still important or relevant, please leave a comment to keep it open. If it closes, you are welcome to reopen it or ask a maintainer to reopen it. Thank you for contributing!

@github-actions github-actions Bot added the stale label Nov 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants