MCPcopy Create free account
hub / github.com/anomalyco/opencode / persistWindowID

Function persistWindowID

packages/desktop/src/main/windows.ts:239–243  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

237}
238
239function persistWindowID(id: string) {
240 const ids = readWindowIDs()
241 if (ids.includes(id)) return
242 writeWindowIDs([...ids, id])
243}
244
245function removeWindowID(id: string) {
246 writeWindowIDs(readWindowIDs().filter((item) => item !== id))

Callers 1

registerWindowFunction · 0.85

Calls 2

readWindowIDsFunction · 0.85
writeWindowIDsFunction · 0.85

Tested by

no test coverage detected