Repository navigation
fix(selection): surface macOS Finder AppleScript errors instead of returning [] - #1085
Conversation
…turning [] - Extract `interpret_finder_script_output` in `selection/platform/macos.rs` so empty Finder selections (-2753 / -2763) still return Ok(vec![]) while other osascript failures (such as -1743 Automation permission denials) return Err(SelectionError::OperationFailed) with trimmed stderr or exit status. - Use `extractErrorMessage` in `SelectionService.throwSelectionError` so serialized Rust `Diagnostic` errors surface `developerDetail` instead of `[object Object]`. - Add unit tests for `interpret_finder_script_output` and `SelectionService`.
|
No actionable comments were generated in the recent review. WalkthroughThe macOS Finder selection path now distinguishes known empty-selection errors from other failures. The selection service extracts diagnostic text when it converts rejected requests into ChangesFinder Selection Errors
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk:
|
interpret_finder_script_outputinselection/platform/macos.rsso empty Finder selections (-2753 / -2763) still return Ok(vec![]) while
other osascript failures (such as -1743 Automation permission denials)
return Err(SelectionError::OperationFailed) with trimmed stderr or exit status.
extractErrorMessageinSelectionService.throwSelectionErrorsoserialized Rust
Diagnosticerrors surfacedeveloperDetailinstead of[object Object].interpret_finder_script_outputandSelectionService.#1074
What changed
Affected areas
asyar-sdk, extension runtime, IPC contracts, manifest)Manual smoke test & Validation
pnpm dev) and visually verified the fix/feature works.AI usage
asyar-contributionskill (.agents/skills/asyar-contribution/SKILL.md), followed it, and reviewed every generated line.Boundaries
pnpm check:ci(or the relevant inner-loop checks) passes locally.Summary by CodeRabbit