fix(desktop): recover from macOS directory permission failures
This commit is contained in:
@@ -75,6 +75,7 @@ The composer compares normalized attachment MIME types with the selected model's
|
||||
- A mounted directory-store consumer pins that store for its lifetime. Eviction may dispose only unmounted directories, so optimistic actions and realtime events cannot move to a replacement store while visible React consumers remain subscribed to an older identity.
|
||||
- Reconfiguration and runtime switching invalidate stale generations. A stale completion must not publish state into the new runtime.
|
||||
- Failure is recorded as `failed`; it is not converted into a successful empty snapshot. Forced demand can retry failed or completed work.
|
||||
- A failed bootstrap is classified as `os-permission` only when the owning runtime filesystem API independently confirms `EPERM`/`EACCES` for that exact directory. OpenCode/proxy error text is never used as permission evidence. The scheduler retains the directory-scoped reason so local Desktop can offer native folder selection before a forced retry.
|
||||
|
||||
Bootstrap remains stale-while-revalidate: a directory store may paint persisted sessions immediately, but only a successful authoritative fetch may replace that cached list.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user