Skip to content

Conversation

@callzhang
Copy link
Owner

@callzhang callzhang commented Nov 19, 2025

Summary

  • harden the macOS sync envelope decoder so Android clipboard updates without AES metadata no longer crash while removing the redundant padding/print logic
  • mark incoming WebSocket connections with the decoded device id and broadcast online status changes so paired devices report their reachability again

Testing

  • swift test (fails: AppKit is unavailable on this Linux runner)

Codex Task


Note

Refactors Base64 decoding in SyncEngine to be safe and reusable, and updates connection metadata + online status when clipboard frames arrive over LAN WebSocket.

  • SyncEngine:
    • Introduces addBase64Padding and decodeBase64Field to safely decode Android Base64 (handles missing padding, empty strings).
    • Refactors SyncEnvelope.Payload and EncryptionMetadata custom decoders to use the helper; removes verbose debug/padding logic.
  • TransportManager:
    • On didReceiveClipboardData, decodes envelope header to attach deviceId to the connection and posts DeviceConnectionStatusChanged (isOnline: true).

Written by Cursor Bugbot for commit 39f44d1. This will update automatically on new commits. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants