agent-desktop/scripts
Lahfir f73c023eac fix(ffi): resolve 4 code review findings (P1-P3)
P1: last_error_survives_successful_calls used ad_check_permissions as
a success-only probe but it returns ErrPermDenied without Accessibility
permission, overwriting the TLS error slot. Replaced with null-tolerant
list accessors that never set last-error.

P2: build.rs auto-copied the generated header into include/, making the
CI drift check self-heal instead of catching stale ABI. Removed the
copy step; CI now diffs OUT_DIR output against the committed header.
Added scripts/update-ffi-header.sh for developers.

P2: ad_free_handle suppressed ActionNotSupported but the default adapter
returns PlatformNotSupported. Added PlatformNotSupported to the match.

P3: ad_get_clipboard returned Ok with *out=NULL when clipboard text had
an interior NUL. Now returns ErrInternal with a diagnostic message.
2026-04-16 16:11:51 -07:00
..
link-skills.sh feat: scalable skill architecture with ClawHub auto-publishing (#14) 2026-03-03 06:16:15 -08:00
update-ffi-header.sh fix(ffi): resolve 4 code review findings (P1-P3) 2026-04-16 16:11:51 -07:00