Skip to content

Debug Workflows

Advanced debugging techniques to diagnose and resolve issues.

  1. Open Console.app (in Applications/Utilities)
  2. In the search field, enter: ClipboardRecast
  3. Filter by Process to see only Clipboard Recast logs
  4. Look for error messages or warnings

Normal Operation:

ClipboardRecast: Started clipboard monitoring
ClipboardRecast: Clipboard changed, content type: code
ClipboardRecast: Workflow matched: Explain Code
ClipboardRecast: AI request successful

Error Conditions:

ClipboardRecast: Failed to get API response: Invalid API key
ClipboardRecast: Network error: Connection timeout
ClipboardRecast: No workflows matched for content type: text
  1. Open Workflows window
  2. Create a test workflow:
    • Name: “Test”
    • Trigger: Text
    • Action: Explain
    • Auto-trigger: ✗ (disabled)
  3. Copy some text
  4. Press Cmd+Shift+A
  5. Check if “Test” appears in menu

Copy different content types and check what’s detected:

Code:

def hello():
print("world")

Error:

Error: Connection refused
at connect (net.js:123)

URL:

https://example.com

Text:

Just plain text

Create a simple workflow and try each action:

  1. Explain
  2. Summarize
  3. Translate

If one fails but others work, the issue is action-specific.

  1. Visit provider’s dashboard
  2. Check key is valid and not revoked
  3. Verify account has credits/quota
  4. Check key permissions

Test your API key directly:

Claude:

Terminal window
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: YOUR_KEY" \
-H "content-type: application/json" \
-d '{"model":"claude-sonnet-4-5","messages":[{"role":"user","content":"test"}],"max_tokens":100}'

OpenAI:

Terminal window
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4","messages":[{"role":"user","content":"test"}]}'
  1. Take screenshot (Cmd+Shift+4)
  2. Open Console.app
  3. Search for “ClipboardRecast”
  4. Look for messages like:
    ClipboardRecast: New screenshot detected: Screenshot 2026-01-27...
    ClipboardRecast: Added screenshot to history

Screenshots must match this pattern:

  • Screenshot YYYY-MM-DD at H.MM.SS AM.png
  • Screen Shot YYYY-MM-DD at H.MM.SS AM.png

Create a screenshot workflow and manually trigger it:

  1. Take screenshot
  2. Press Cmd+Shift+A
  3. Select vision-capable action
  4. Check Console.app for API response
  1. Open Activity Monitor
  2. Find ClipboardRecast process
  3. Check CPU percentage
  4. Normal: <1% when idle, <10% when processing

Normal memory usage: 15-25 MB If much higher: possible memory leak

Use Activity Monitor → Network tab to see API calls:

  • Each transformation makes 1-2 API requests
  • Check for excessive requests
  • Auto-trigger workflows make frequent requests

Detailed logging options:

  1. Check Console.app for application logs
  2. Monitor file system access
  3. Use macOS diagnostic tools

Settings are stored in UserDefaults:

Terminal window
defaults read com.clipboardrecast.app

If settings are corrupted:

Terminal window
defaults delete com.clipboardrecast.app

Then relaunch and reconfigure.

  1. Quit Clipboard Recast
  2. Delete app from Applications
  3. Remove settings:
    Terminal window
    defaults delete com.clipboardrecast.app
  4. Reinstall app
  5. Reconfigure settings

When reporting issues, collect:

  1. Console logs: Export from Console.app
  2. System info: macOS version, app version
  3. Settings: Provider, model (hide API key!)
  4. Steps to reproduce: What you did before error
  5. Error message: Exact error text
  6. Workflow config: Export or screenshot

Scenario: Workflow triggers but action fails

Section titled “Scenario: Workflow triggers but action fails”

Debug steps:

  1. Check Console.app for API error
  2. Test API key with curl
  3. Try different model
  4. Verify content type matches action

Debug steps:

  1. Verify screenshot saved to Desktop
  2. Check Console for “screenshot detected” message
  3. Verify provider supports vision
  4. Check model is vision-capable
  5. Test with manual trigger

Debug steps:

  1. Verify “Auto-process clipboard changes” enabled
  2. Check workflow has “Auto-trigger” enabled
  3. Test content type detection
  4. Check Console for matching messages
  5. Try manual trigger to isolate issue