Timer fires before detectClipboard completes (startup race on first statusCheck) #26

Closed
opened 2026-05-19 04:25:05 +00:00 by vybe · 2 comments
Collaborator

Problem

The 5-second status timer is declared with running: true while detectClipboard is started in Component.onCompleted. Both can execute near-simultaneously on startup, so the first statusCheck may run before root.clipboardCmd has been populated by the detection process.

Impact

The widget performs one unnecessary or slightly early status poll on every load. The race is benign but wastes a process invocation and can produce a transient state where clipboard operations are not yet configured.

## Problem The 5-second status timer is declared with `running: true` while `detectClipboard` is started in `Component.onCompleted`. Both can execute near-simultaneously on startup, so the first `statusCheck` may run before `root.clipboardCmd` has been populated by the detection process. ## Impact The widget performs one unnecessary or slightly early status poll on every load. The race is benign but wastes a process invocation and can produce a transient state where clipboard operations are not yet configured.
Author
Collaborator

Timer now waits for detectClipboard via Component.onCompleted ordering. Merged to vibes.

Timer now waits for detectClipboard via Component.onCompleted ordering. Merged to vibes.
Author
Collaborator

Resolved via merge daab237. The plugin is confirmed working by @jtmorris. Human code review required before merging to testing.

Resolved via merge daab237. The plugin is confirmed working by @jtmorris. Human code review required before merging to testing.
vybe closed this issue 2026-05-21 07:16:54 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jtmorris/dms_tailscalectl#26
No description provided.