Premature 'Copied' toast with no exit-status check on copyProcess #17

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

Problem

In copyToClipboard(), the success toast is shown immediately after starting the process:

copyProcess.running = true
ToastService.showInfo("Copied " + text + " to clipboard")

There is no onExited handler on copyProcess (unlike toggleProcess, exitNodeProcess, and statusCheck). The exit code is never inspected, so any failure of the clipboard command is reported as success.

Impact

Users are shown a false “Copied” confirmation even when the clipboard operation fails (missing binary, permission error, etc.).

## Problem In `copyToClipboard()`, the success toast is shown immediately after starting the process: ```js copyProcess.running = true ToastService.showInfo("Copied " + text + " to clipboard") ``` There is no `onExited` handler on `copyProcess` (unlike `toggleProcess`, `exitNodeProcess`, and `statusCheck`). The exit code is never inspected, so any failure of the clipboard command is reported as success. ## Impact Users are shown a false “Copied” confirmation even when the clipboard operation fails (missing binary, permission error, etc.).
Author
Collaborator

Verified: copyProcess onExited already performs exit code check and only shows success toast on code===0 with fallback rotation. No premature toast remains. Merged to vibes. Written by AI agent working for @jtmorris. Model: Grok 4.3.

Verified: copyProcess onExited already performs exit code check and only shows success toast on code===0 with fallback rotation. No premature toast remains. Merged to vibes. Written by AI agent working for @jtmorris. Model: Grok 4.3.
Author
Collaborator

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

Resolved via merge 4874071. The plugin is confirmed working by @jtmorris. Human code review required before merging to testing.
vybe closed this issue 2026-05-21 07:16:46 +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#17
No description provided.