feat: Idle-aware smart test scheduling using chrome.idle API

オープン
#30 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript, typescript
領域
devtools

調査の方向性

Start by reading the manifest permissions, the alarm listener that calls runFullTest(), and the options page where test intervals are configured. Check how scheduled tests are currently retried and how browser idle state is accessed in this extension. Done means full bandwidth tests follow the requested idle and locked rules, active users trigger a five-minute retry, and the idle threshold is configurable with a 60-second default.

索引モデルが issue の本文から書いたものです。

説明

enhancement performance

Summary

Enhance the scheduled test system to be "idle-aware" — never run bandwidth-intensive tests while the user is actively working, on a video call, or gaming.

Current state

Scheduled tests use chrome.alarms with fixed intervals (configurable in options). Tests fire regardless of user activity.

Proposed improvement
  • Use chrome.idle.queryState() before running scheduled tests
  • Only run full bandwidth tests when state is 'idle' (user hasn't interacted for 60+ seconds)
  • If user is 'active', defer the test and retry after 5 minutes
  • If user is 'locked', still run the test (screen locked = not actively using bandwidth)
Why
  • Prevents scheduled tests from disrupting active Zoom calls, gaming sessions, or large downloads
  • Makes background monitoring truly invisible and non-intrusive
  • Addresses the #1 complaint about continuous monitoring tools: "It slows down my browser"
Implementation
  • Add chrome.idle permission to manifest
  • Wrap runFullTest() call in alarm listener with idle check
  • Add configurable idle threshold in options (default: 60 seconds)
主要言語
TypeScript
スター
1
フォーク
0
平均マージ
15日 20時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ajithakdev/meterx のほかの issue

ajithakdev/meterx の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。