(req: DaemonRequest)
| 50 | } |
| 51 | |
| 52 | function resolveFreshSessionBindingRequest(req: DaemonRequest): DaemonRequest { |
| 53 | if (!req.meta?.lockPolicy) return req; |
| 54 | try { |
| 55 | return applyRequestLockPolicy(req); |
| 56 | } catch { |
| 57 | // The request will be rejected during locked binding preparation. Keep lock |
| 58 | // selection best-effort so invalid selectors do not block unrelated work. |
| 59 | return req; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function shouldResolveFreshSessionDeviceLock(req: DaemonRequest): boolean { |
| 64 | return req.command === 'open' || hasExplicitDeviceSelector(req.flags); |
no test coverage detected