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

Function writableGlobal

packages/opencode/src/config/config.ts:168–173  ·  view source on GitHub ↗
(info: Info)

Source from the content-addressed store, hash-verified

166}
167
168function writableGlobal(info: Info) {
169 const next = writable(info)
170 // When a user changes config from a value back to default in the Desktop app, we don't want to leave a blank `"shell": "",` key
171 if ("shell" in next && next.shell === "") return { ...next, shell: undefined }
172 return next
173}
174
175const layer = Layer.effect(
176 Service,

Callers 1

config.tsFile · 0.85

Calls 1

writableFunction · 0.85

Tested by

no test coverage detected