fix: honor clipboard tool exit status - #48
Conversation
copyToClipboard now returns false when pbcopy/clip/xclip/xsel are missing or exit non-zero, instead of always reporting success.
|
🤖 KlaatAI Review Bot (powered by Klaatu, advisory only — a maintainer makes the real call) Issue match Test coverage
Correctness concerns
Verdict This is an automated review to help triage faster, not a gate. Nothing here blocks merging. |
Summary
copyToClipboard()reporting success when the clipboard tool is missing or exits non-zero (closes copyToClipboard() reports success even when the copy actually failed #17).src/utils/clipboard.tswith injectablespawnSyncfor unit tests covering darwin/win32/linux failure paths.Test plan
bun run typecheckbun testbun run build