You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: FB-002 distinguish ENOENT from other read errors, FB-003 catch save failures
FB-002: readSettingsSource now distinguishes ENOENT (file genuinely
missing -> exists:false) from other read errors like EACCES/EISDIR
(exists:true, invalid:true). The resolveHandoffResumeBehavior function
already handles invalid sources with warnings and fallback to wait.
FB-003: The async IIFE in createAgenticodingSettingsComponent's
SettingsList change callback now wraps the save/rebuild sequence in
try/catch. On failure it calls notify() with an error-level message
instead of silently dropping the rejection as an unhandled promise.
Regression tests:
- non-ENOENT read error test (FB-002): makes global settings file
unreadable via chmod 000, asserts invalid:true + warning + wait
- write failure test (FB-003): blocks the .pi/agent directory with a
file, asserts writeGlobalHandoffResumeBehavior rejects with EEXIST
0 commit comments