Skip to content

Windows port — Phase 6: scheduling, autostart & notifications#12

Merged
ronylicha merged 5 commits into
masterfrom
feat/win-phase-6
Jun 26, 2026
Merged

Windows port — Phase 6: scheduling, autostart & notifications#12
ronylicha merged 5 commits into
masterfrom
feat/win-phase-6

Conversation

@ronylicha

Copy link
Copy Markdown
Member

Phase 6 of the Windows port. Autostart via HKCU Run key (winreg); weekly cleanup via schtasks running a user-level (no-UAC) headless cleanup of %LOCALAPPDATA%\Temp; WinRT toast notifications (PowerShell) for the scheduled-cleanup result and the low-space alert.

headless run() now resolves the cleanup root per-OS (clean_root refactor: Linux/macOS ~/.cache unchanged, Windows %LOCALAPPDATA%\Temp). No windows crate, no unsafe (winreg + schtasks + PowerShell). Linux/macOS unchanged (cfg-gated). Windows runtime = manual-smoke.

rony added 5 commits June 27, 2026 01:00

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bdaabdc8fe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src-tauri/src/headless.rs
.join("Local")
});
let root = local.join("Temp");
clean_root(&root, &root, MIN_AGE_DAYS, apply)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Filter Temp directories before scheduled cleanup

When the Windows scheduled task runs with --apply, this path scans %LOCALAPPDATA%\Temp through TempService::scan(), whose directory branch adds every non-empty immediate child directory without applying the min_age_days cutoff (only loose files are age-filtered). With a fresh installer/app temp directory present at the weekly run, clean_root will pass that directory to to_trash, so the scheduled cleanup can remove active recent temp trees rather than only stale files.

Useful? React with 👍 / 👎.

@ronylicha ronylicha merged commit b88fd7f into master Jun 26, 2026
6 checks passed
@ronylicha ronylicha deleted the feat/win-phase-6 branch June 26, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant