Dashboard › opencode › Distillation
7f1a7add-1a45-4b5f-9d34-cb2ccd4e9652["lore_tm_v1_7Bt-iSd3Vjxgq9vtxXw78nIHWotEkmsBpxpT94fuh7I","lore_tm_v1__iWpAAJWDh0OJOXfyltvmDDLRaHbOdJ8N495oewAsns","lore_tm_v1_cnpQoOnFj-l3vdqCtHJpoaMoRCsVji9Sxs133weRhPY","lore_tm_v1_HAkRboHNeH4HXXLaleBuGpI4gRH4grAwFHobPBGjR28"]
Date: Sep 8, 2026
/home/byk/Code/opencode-v2-pilot found 39 FetchHttpClient/HTTP-client references: packages/sdk/test/transport.test.ts lines 3, 35, 52, 53, 59 use FetchHttpClient.Fetch and ambient service injection; packages/sdk/src/effect/opencode.ts lines 7, 38, 42-43 import FetchHttpClient, HttpClient, construct the client with Effect.provide(FetchHttpClient.layer), and preserve host.fetch via HttpClient.transformResponse(... Effect.provideService(FetchHttpClient.Fetch, host.fetch)); packages/core/test/wellknown.test.ts lines 3, 10 uses testEffect(FetchHttpClient.layer); packages/core/test/session-compaction-transport.test.ts lines 9, 82 and packages/core/test/session-checkpoint-transport.test.ts lines 9, 14 provide FetchHttpClient.layer to LLMClient.layer; packages/core/test/network-guard.test.ts lines 3, 28 injects FetchHttpClient.Fetch; packages/util/src/observability.ts lines 6, 44 provides FetchHttpClient.layer; packages/desktop/src/main/browser-pane.ts lines 2, 35 instead imports NodeHttpClient from @effect/platform-node and uses ManagedRuntime.make(NodeHttpClient.layerNodeHttp); packages/http-recorder/test/http.test.ts lines 3, 23 provides FetchHttpClient.layer; packages/http-recorder/src/http/recorder.ts lines 4, 163, 176 imports FetchHttpClient and provides its layer; packages/core/test/lib/effect.ts lines 4, 13-14, 37 explains that FetchHttpClient reads the fetch reference at request time and injects refuseNetwork(violations); packages/util/src/effect/app-node-platform.ts lines 6, 11 defines global httpClient with makeGlobalNode({ service: HttpClient.HttpClient, layer: FetchHttpClient.layer, deps: [] }); packages/console/core/src/billing.ts line 32 uses Stripe.createFetchHttpClient(); packages/ai/test/compaction-http.test.ts lines 3, 11 uses testEffect(runtimeLayer(FetchHttpClient.layer)) for an end-to-end HTTP compaction/tool-loop test; packages/ai/src/route/executor.ts lines 3, 269 exports fetchLayer = layer.pipe(Layer.provide(FetchHttpClient.layer)); and packages/ai/script/setup-recording-env.ts lines 8, 555 provides NodeFileSystem.layer and FetchHttpClient.layer to main()./home/byk/.local/share/opencode-v2-pilot/config/opencode/plugins/followup.ts lines 1-45 define plugin id: "followup". SUBAGENT_REFUSAL is "Error: scheduled follow-ups are disabled in subagents. A subagent must finish its task and return a result synchronously."; DelayInput has string fields delay (“How long to wait, such as 30s, 2m, or 1h. A bare number means seconds.”) and message (“The instruction to deliver when the delay expires.”); EmptyInput = Schema.Struct({}); CancelInput has string id (“The follow-up ID to cancel, or all.”)./home/byk/.local/share/opencode-v2-pilot/config/opencode/plugins/followup.ts, setup(ctx) maintains pending as Map<string, Map<string, { timer: ReturnType<typeof setTimeout>; message: string; fireAt: number }>>, subagentCache as Map<string, boolean>, and events as an AbortController. isSubagent(sessionID) checks the cache, otherwise calls ctx.session.get({ sessionID }), determines subagent status with session.parentID !== undefined, caches it, and returns it. clearSession(sessionID) clears all session timers and deletes that session from both pending and subagentCache.Ref declarations in /home/byk/Code/opencode-v2-pilot/packages/schema/src/model.ts: line 14 export const Ref = Schema.Struct({ and line 39 export interface Ref extends Schema.Schema.Type<typeof Ref> {}./home/byk/Code/opencode-v2-pilot/packages/schema/src/model.ts lines 8-42 define branded strings ID with brand "Model.ID" and VariantID with brand "Model.VariantID". Ref is a Schema.Struct containing required id: ID, required providerID: Provider.ID, and optional variant: VariantID.pipe(optional), annotated with identifier "Model.Ref", with interface Ref extends Schema.Schema.Type<typeof Ref>.Ref.parse(input: string) in /home/byk/Code/opencode-v2-pilot/packages/schema/src/model.ts lines 22-36 parses references as providerID/id with optional #variant: it requires the first / after at least one provider character; takes the first # after the slash as variantStart; extracts id between / and # or end of input; and extracts the suffix as variant. It throws Error(\Invalid model reference: ${input}`)when the provider separator is invalid,idis empty,providerIDcontains#, or the variant is empty or contains another #. Valid values are returned via schema.make({ providerID: Provider.ID.make(providerID), id: ID.make(id), ...(variant ? { variant: VariantID.make(variant) } : {}) })`.