Skip to content
Source
Sign inSign up
pingdotgg/t3code

Fix OpenCode events on versions greater than 1.14.40 #2673

Closedsamjandris(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/2673/headopened View on GitHub

Showing 2 changed files with 132 additions and 17 deletions.

x
0 of 2 viewed, 2 left
115 additions and 9 deletionsapps/server/src/provider/Layers/OpenCodeAdapter.test.tsModified
View file
@@ -1,6 +1,6 @@
-import assert from "node:assert/strict";
+import * as NodeTimersPromises from "node:timers/promises";
import * as NodeServices from "@effect/platform-node/NodeServices";
-import { it } from "@effect/vitest";
+import { assert, it } from "@effect/vitest";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
@@ -63,6 +63,9 @@
closeError: null as Error | null,
messages: [] as MessageEntry[],
subscribedEvents: [] as unknown[],
+ subscribedEventDirectory: process.cwd(),
+ globalEventCalls: 0,
+ keepSubscriptionOpen: false,
},
reset() {
this.state.startCalls.length = 0;
@@ -76,9 +79,21 @@
this.state.closeError = null;
this.state.messages = [];
this.state.subscribedEvents = [];
+ this.state.subscribedEventDirectory = process.cwd();
+ this.state.globalEventCalls = 0;
+ this.state.keepSubscriptionOpen = false;
},
};
​