Repository navigation
feat(trackers,electron): Electron Power, Display and window trackers (TR9, part 2) - #91
Conversation
…(TR9, part 2) Adds ElectronPowerTracker, ElectronDisplayTracker and ElectronApplicationTracker (@bugsee/trackers/electron, Electron injected structurally) over a shared per-stage lazy listener base. @bugsee/electron forwards them through the lazy events mux (power_*, display_*, window_*, renderer_(un)responsive) and adds the electron_displays trace; launchMain takes optional powerMonitor, screen and BrowserWindow. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Claude finished @krassx's task in 51s —— View job Review of PR #91: Electron Power, Display and window trackers (TR9, part 2)I read the PR diff in full, plus No inline comments: I found no defects that I could back with a concrete failure scenario. What I checked and found sound
Observations (non-blocking, not defects)
Summary
|
…play id -1, add captureWindowEvents (#91 review) Guards every host property read (Electron's real screen throws before app ready), isolates each mux subscription so stop() always releases, documents the held electron_displays caveat and platform-dependent power events. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Claude finished @krassx's task in 29s —— View job Re-review of PR #91 after
|
…o and Electron trackers merged) Update §14.5/§15.5 to origin/main 9b05e36: TR8 (#87, #88) and TR9 (#90, #91) as built, owner decision on private-mode opt-out, captureUserIdle opt-in pending confirmation, unverified-Electron list, and the remaining plan. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…o and Electron trackers merged) Update §14.5/§15.5 to origin/main 9b05e36: TR8 (#87, #88) and TR9 (#90, #91) as built, owner decision on private-mode opt-out, captureUserIdle opt-in pending confirmation, unverified-Electron list, and the remaining plan. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
@bugsee/trackers/electron(Electron injected structurally, no electron/DOM dep), per-object singletons over a shared per-stage lazy attach/release base:ElectronPowerTracker(powerMonitor),ElectronDisplayTracker(screen),ElectronApplicationTracker(app+BrowserWindow).events.system:power_suspend|resume|lock|unlock|ac|battery;display_added|removed|metrics_changed;window_focus|blur|show|hide({windowId?});renderer_unresponsive|responsive({webContentsId?}, onwebContentsONLY, never double-recorded).electron_displays={displays:[{id,width,height,scale_factor?,rotation?,internal?,refresh_rate_hz?}]}(held step trace;displaysstays reserved until the Android-shaped list is confirmed against the viewer).launchMaingains optionalpowerMonitor,screen,BrowserWindow; each tracker is built through its registry accessor, skipped on repeat launches, absent object = domain off. Mux and producers are lazy: nothing attached withcaptureSystemEvents:false, all released onclient.stop().thermal-state-change/speed-limit-change.Test plan
pnpm ci:localpasses (coverage gate included)🤖 Generated with Claude Code