Skip to content

Optimize Web UI blocking tasks and fix hardware detection regression#204

Open
Cylae wants to merge 1 commit intomainfrom
opt-and-fix-1754513785323550624
Open

Optimize Web UI blocking tasks and fix hardware detection regression#204
Cylae wants to merge 1 commit intomainfrom
opt-and-fix-1754513785323550624

Conversation

@Cylae
Copy link
Owner

@Cylae Cylae commented Feb 24, 2026

This PR introduces performance optimizations for the Web UI and fixes a regression in hardware detection.

Changes:

  • Web UI: The dashboard handler now offloads heavy system metric collection (which involves locking and I/O) to a blocking thread using tokio::task::spawn_blocking. This prevents blocking the async executor. Similarly, user management handlers (add_user, delete_user) now use spawn_blocking to handle file I/O and password hashing without stalling the reactor.
  • Hardware Detection: Restored sys.refresh_disks_list() in HardwareInfo::detect to ensure the disk list is populated before querying disk usage. Added sys.refresh_disks() to ensure accurate usage statistics.
  • Documentation: Updated README.md to reflect version 1.0.8 and highlighted the new optimizations.
  • Version: Bumped package version to 1.0.8.

PR created automatically by Jules for task 1754513785323550624 started by @Cylae

- Optimize `dashboard` handler to use `tokio::task::spawn_blocking` for system metric collection.
- Optimize `add_user_handler` and `delete_user_handler` to use `tokio::task::spawn_blocking` and non-blocking locks.
- Fix regression in `HardwareInfo::detect` by restoring `refresh_disks_list()`.
- Bump version to 1.0.8.
- Update README with version and optimization notes.
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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