Skip to content
AIBRAINWORX / OpenSourceCoder.comLOCAL-FIRST. BUILT IN THE OPEN.
Open Source

OpenCode 2.4.4 lets an HTTP request hook answer without sending the model request

Plugins can supply a Response and still use response hooks, making mocks and gateways easier while expanding the importance of plugin trust.

Listen to this articleBrowser Voice
Ready
Official OpenCode repository screenshot, used as background product imagery. It does not depict the new hook or a test performed by OpenSourceCoder.com.
Official OpenCode repository screenshot, used as background product imagery. It does not depict the new hook or a test performed by OpenSourceCoder.com. · Official mark for editorial identification; no endorsement.
Event / context: 2026-12-02. Source check: Dec 3, 2026.

OpenCode 2.4.4 adds a way for a plugin's model-HTTP request hook to provide the response itself. The release timestamp is December 3 UTC, or December 2 in Pacific time. Custom gateways, fixtures and request interception can use the new path without requiring the normal model transport to produce an answer first.

A short circuit that preserves response hooks

The merged patch adds an optional Response field to the hook's event type. In the tagged request implementation, the request hook runs before the transport handler. When a plugin supplies a response, the function takes an early return through a shared response-processing helper.

That helper still triggers the response hook. This is more precise than saying the plugin bypasses all downstream processing: it avoids the normal HTTP handler for that request while retaining the response-hook stage. When no response is supplied, the transport runs and its output follows the same shared response path.

The upstream regression test illustrates the distinction with a plugin-generated 403 reply. It expects zero calls to the handler and records both request and response hooks. We read that test and verified that the merged commit is in the release's ancestry; we did not execute the upstream suite or test an installed agent.

A useful seam for controlled experiments

For maintainers, this can support a repeatable fixture or an application-specific gateway without standing up a full substitute service. A deliberately supplied failure response can also exercise application behavior that would otherwise depend on a provider returning the right error at the right time.

Our analysis

The same flexibility makes plugin trust more consequential. A supplied response can look like ordinary model-transport output unless an application's own observability records where it came from. That is a design consideration, not evidence that this release contains an exploit. Response hooks continuing to run also means plugin ordering and transformations deserve review.

The reviewed project license is MIT. That code license is separate from any external model provider's service terms, billing and data-handling rules. The new hook does not itself prove an agent is offline, prevent other requests or establish a complete sandbox. The repository profile links readers to upstream code; no software was installed and no model service was invoked for this reporting.

EXPLORE THE SOURCE

GitHub repositories

Original reporting from primary sources; source review is not an installation, inference run or independent benchmark.

Follow your curiosity.

Pass the signal.