Problem / intent
icloud-cli handoff list currently treats malformed cache files as if the directory were simply empty. That hides schema drift and makes debugging much harder because a broken handoff cache and a genuinely empty cache look the same from the operator's point of view.
Acceptance criteria
- Distinguish between "no activities present" and "cache present but unreadable/unparseable".
- Keep the command read-only and local only.
- Return a clear error when files exist but none decode into valid activities.
- Add fixtures for malformed
json and plist inputs that prove the command reports a parse failure instead of a silent empty list.
Validation commands
bash scripts/ci/run-fast-checks.sh
swift test
Notes
- It is fine to ignore individual bad files if at least one valid activity can still be recovered.
- The failing case should trigger when the directory has content but the parser cannot extract anything valid at all.
Related
Problem / intent
icloud-cli handoff listcurrently treats malformed cache files as if the directory were simply empty. That hides schema drift and makes debugging much harder because a broken handoff cache and a genuinely empty cache look the same from the operator's point of view.Acceptance criteria
jsonandplistinputs that prove the command reports a parse failure instead of a silent empty list.Validation commands
bash scripts/ci/run-fast-checks.sh swift testNotes
Related