Answer: The effect runs when the plugin loads, and its scope closes when the plugin reloads or unloads, releasing registrations, scoped fibers, and finalizers together. The plugin scope interrupts scoped fibers during cleanup. Status: Check failed Entry: tool/opencode/features/effect-plugin-lifecycle-scope Revision: 2 Digest: sha256:71f988ffea43da05 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:44Z Last changed: 2026-11-18T13:38:10Z Last verified: 2026-11-19T13:34:43Z Last attempt: 2026-11-20T13:44:31Z (failed) Next check: 2026-11-20T14:44:31Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of lifecycle trigger | The effect runs when the plugin loads. | [1] | 2026-11-19 scope close condition | Its scope closes when the plugin reloads or unloads | [1] | 2026-11-19 scope cleanup | registrations, scoped fibers, and finalizers are released together | [1] | 2026-11-19 scoped fibers | The plugin scope interrupts the fiber during cleanup. | [1] | 2026-11-19 plugin type parameter | interface Plugin < R = Scope . Scope > | [1] | 2026-11-19 Sources: [1] opencode. "Effect plugins | OpenCode". https://opencode.ai/docs/build/plugins/effect/ Role: primary. Accessed: 2026-11-19T13:34:43Z Quote: "The effect runs when the plugin loads." (Supports: lifecycle trigger) Quote: "Its scope closes when the plugin reloads or unloads" (Supports: scope close condition) Quote: "registrations, scoped fibers, and finalizers are released together" (Supports: scope cleanup) Quote: "The plugin scope interrupts the fiber during cleanup." (Supports: scoped fibers) Quote: "interface Plugin < R = Scope . Scope >" (Supports: plugin type parameter) Snapshot SHA-256: a201bf9748af19ccffd161d2016ee0eda4521c1ea1933aec3600bdca0bfb0bb4 (captured 2026-11-18T13:38:09Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:38:10Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:34:43Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:34:43Z Last attempt: 2026-11-20T13:44:31Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Lifecycle"). Related: https://latestn.com/tool/opencode/features/glob-file-patterns How do I find files by pattern with opencode's glob tool? https://latestn.com/tool/opencode/features/grep-search-contents How do I search file contents with opencode's grep tool? https://latestn.com/tool/opencode/features/opencode-interfaces What interfaces does opencode come in (CLI, desktop, web)? https://latestn.com/tool/opencode/features/builtin-themes Which built-in themes does opencode include? https://latestn.com/tool/opencode/features/create-custom-theme How do I create a custom theme for opencode? https://latestn.com/tool/opencode/features/effect-plugin-hooks What hooks does the opencode Effect plugin API provide for sessions, shell, and tools? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:44:31Z | check-failed | Extraction did not pass verification: section "Lifecycle" not found in the source (the page may have been reorganized) | — 2026-11-18T13:38:10Z | changed | plugin type parameter: — → interface Plugin < R = Scope . Scope > | [1] 2026-11-18T13:38:10Z | changed | scoped fibers: — → The plugin scope interrupts the fiber during cleanup. | [1] 2026-11-18T13:38:10Z | changed | scope cleanup: — → registrations, scoped fibers, and finalizers are released together | [1] 2026-11-18T13:38:10Z | changed | background work guidance: Use scoped fibers for background work → — | [1] 2026-11-18T13:38:10Z | changed | cleanup behavior: The plugin scope interrupts the fiber during cleanup → — | [1] 2026-11-18T13:38:10Z | changed | lifecycle trigger: The effect runs when the plugin loads → The effect runs when the plugin loads. | [1] 2026-11-13T03:55:44Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/features/effect-plugin-lifecycle-scope/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/features/effect-plugin-lifecycle-scope POST: https://latestn.com/dispute/tool/opencode/features/effect-plugin-lifecycle-scope with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/features/effect-plugin-lifecycle-scope?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the plugin lifecycle and Scope in opencode's Effect plugin API? Revision 2, last verified 2026-11-19T13:34:43Z. https://latestn.com/tool/opencode/features/effect-plugin-lifecycle-scope (accessed 2026-11-21T09:50:29Z). @misc{LatestN_tool_opencode_features_effect_plugin_lifecycle_scope_r2, title = {What is the plugin lifecycle and Scope in opencode's Effect plugin API?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/features/effect-plugin-lifecycle-scope}}, note = {Revision 2; digest sha256:71f988ffea43da05; last verified 2026-11-19T13:34:43Z; accessed 2026-11-21T09:50:29Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/features/effect-plugin-lifecycle-scope