MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isScopeOwnershipConflict

Function isScopeOwnershipConflict

apps/desktop/src/main/index.ts:590–594  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

588// wedged the app into the crash screen whenever a CLI `executor daemon run`
589// (or a daemon a prior run left behind) held the data dir.
590const isScopeOwnershipConflict = (error: unknown): boolean => {
591 // oxlint-disable-next-line executor/no-instanceof-error, executor/no-unknown-error-message -- boundary: spawn-conflict failures arrive as plain Node errors from startSidecar; classified by message text
592 const message = error instanceof Error ? error.message : String(error);
593 return /already running|owns the current data directory/i.test(message);
594};
595
596const startWithCurrentSettings = async (): Promise<SidecarConnection | null> => {
597 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: bind failures surface as a user-facing dialog

Callers 1

startWithCurrentSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected