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
{{ message }}
Repository navigation
CoreSpotlight donation failures cause repeated XPC reinitialization on macOS 27
#12920
While DSH is open and a session is active, the unified log repeatedly shows CoreSpotlight donation failures followed by XPC reinitialization. During an approximately 15-minute DSH session, a 20-minute log query contained:
121 CSIndexErrorDomain messages
172 XPC_ERROR_CONNECTION_INTERRUPTED messages
Failures occurring in repeated bursts
Representative lines:
[com.apple.corespotlight:index] Completed donation:
Error Domain=CSIndexErrorDomain Code=-1000 "Failed to request donation"
UserInfo={... NSCocoaErrorDomain Code=4099 ...}
[com.apple.xpc:connection] Re-initialization successful;
calling out to event handler with XPC_ERROR_CONNECTION_INTERRUPTED
At the same time, Spotlight was performing heavy index merge/compaction, and DSH's renderer/GPU helpers intermittently increased CPU usage substantially. I have not proven that the donation failures cause the renderer load, but the repeated XPC retries appear to amplify system indexing pressure.
Reproduction
Launch DSH 0.2.2-rc.1 on macOS 27.
Open and use a session long enough for incremental output/tool activity.
Search for CSIndexErrorDomain, Failed to request donation, and XPC_ERROR_CONNECTION_INTERRUPTED.
Questions
Does DSH intentionally donate session or user activities to CoreSpotlight, or is this induced by Electron/macOS?
Should donation failures be deduplicated and retried with bounded exponential backoff instead of repeatedly reinitializing the XPC connection?
Can macOS CoreSpotlight integration be made optional or disabled while this platform issue is investigated?
I could not find direct CoreSpotlight, CSSearchable, or NSUserActivity calls in the DSH source tree or installed app strings, so I would appreciate help identifying the exact origin.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Environment
Observed behavior
While DSH is open and a session is active, the unified log repeatedly shows CoreSpotlight donation failures followed by XPC reinitialization. During an approximately 15-minute DSH session, a 20-minute log query contained:
CSIndexErrorDomainmessagesXPC_ERROR_CONNECTION_INTERRUPTEDmessagesRepresentative lines:
At the same time, Spotlight was performing heavy index merge/compaction, and DSH's renderer/GPU helpers intermittently increased CPU usage substantially. I have not proven that the donation failures cause the renderer load, but the repeated XPC retries appear to amplify system indexing pressure.
Reproduction
log show --last 20m --style compact --predicate 'process == "DeepSeek Harness"'CSIndexErrorDomain,Failed to request donation, andXPC_ERROR_CONNECTION_INTERRUPTED.Questions
I could not find direct
CoreSpotlight,CSSearchable, orNSUserActivitycalls in the DSH source tree or installed app strings, so I would appreciate help identifying the exact origin.All reactions