[PR #1617] [CLOSED] allow Plugin type to be synchronous #9997

Closed
opened 2026-02-16 18:14:31 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1617
Author: @ericc-ch
Created: 8/5/2025
Status: Closed

Base: devHead: patch-3


📝 Commits (2)

  • 1ebc397 allow Plugin type to be synchronous
  • acb7c6e allow hook handlers to be synchronous

📊 Changes

1 file changed (+7 additions, -7 deletions)

View changed files

📝 packages/plugin/src/index.ts (+7 -7)

📄 Description

This is a very small change but I have a pretty strict ESLint config, and I don't want to disable it for every plugin I write

image

From my testing synchronous function for plugins works just fine


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1617 **Author:** [@ericc-ch](https://github.com/ericc-ch) **Created:** 8/5/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `patch-3` --- ### 📝 Commits (2) - [`1ebc397`](https://github.com/anomalyco/opencode/commit/1ebc3973c0954dfce0adbfa99a618853b6aced49) allow Plugin type to be synchronous - [`acb7c6e`](https://github.com/anomalyco/opencode/commit/acb7c6e850b479b861d939c5a836ba36e224e7a7) allow hook handlers to be synchronous ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/plugin/src/index.ts` (+7 -7) </details> ### 📄 Description This is a very small change but I have a pretty strict ESLint config, and I don't want to disable it for every plugin I write <img width="1359" height="263" alt="image" src="https://github.com/user-attachments/assets/f6633a17-f907-42a8-9b22-bae172884896" /> From my testing synchronous function for plugins works just fine --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:31 -05:00
yindo closed this issue 2026-02-16 18:14:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9997