Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(opencode): native v2 server integration, subagents panel, and lifecycle hardening #13452

ClosedHsnSaboor(GitHub profile, opens in a new tab)wants to merge 12 commits intomain fromrefs/pull/13452/headopened View on GitHub

Showing 19 changed files with 8 additions and 14 deletions (loading 17).

x
0 of 19 viewed, 19 left
8 additions and 14 deletionsapps/server/src/provider/Drivers/OpenCodeDriver.tsModified
View file
@@ -168,19 +168,14 @@
Effect.provideService(OpenCodeServerOwner.OpenCodeServerOwner, serverOwner),
Effect.provideService(OpenCodeRuntime, openCodeRuntime),
- // NOTE: the local branch intentionally uses the shared SDK server
- // instead of `opencode debug skill` (loadSkillsFromCli). The CLI writes
- // its full JSON inventory to stdout, but the Bun-compiled binary does
- // not flush more than one 64KB pipe buffer to a non-TTY stdout, so the
- // piped output arrives truncated and unparseable — which degrades to an
- // empty skill list and poisons the workspace snapshot the `$` picker
- // reads. The SDK `app.skills` endpoint honors the per-request directory
- // and returns complete results regardless of size.
- const loadWorkspaceInventory = (client: Parameters<typeof loadOpenCodeCommands>[0]) =>
+ const loadWorkspaceInventory = (
+ client: Parameters<typeof loadOpenCodeCommands>[0],
+ directory: string,
+ ) =>
Effect.all(
- skills: openCodeRuntime.loadOpenCodeSkills(client),
- commands: loadOpenCodeCommands(client).pipe(
+ skills: openCodeRuntime.loadOpenCodeSkills(client, directory),
+ commands: loadOpenCodeCommands(client, directory).pipe(
Effect.timeout("10 seconds"),
Effect.orElseSucceed(() => []),
@@ -202,23 +197,22 @@
});
const client = openCodeRuntime.createOpenCodeSdkClient({