fix(providers): show Grok and OpenCode skills/slash commands in the picker #5131
Closedfm1randa(GitHub profile, opens in a new tab)wants to merge 4 commits into
main fromrefs/pull/5131/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
- apps/server/src/provider/acp/GrokAcpSupport.ts lines 15 to 15OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -8,6 +8,8 @@88 import type * as EffectAcpSchema from "effect-acp/schema";99 import { normalizeModelSlug } from "@t3tools/shared/model";101011+import { mapAcpAvailableCommandsToProviderCatalog } from "../providerCommandCatalog.ts";1112 import * as AcpSessionRuntime from "./AcpSessionRuntime.ts";1213 import { makeXAiPromptCompletionRuntime } from "./XAiAcpExtension.ts";131415+export { mapAcpAvailableCommandsToProviderCatalog };
- apps/server/src/provider/opencodeRuntime.ts line 808Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -725,9 +795,14 @@725795 agents = parseAgentListCliOutput(agentsResult.value.stdout);726796 }727797798+ // CLI inventory does not expose commands/skills; callers that need a799+ // catalog open an SDK session via loadProviderCommandCatalog.728800 return {729801 providerList: { all: allProviders, default: {}, connected },730802 agents,803+ commands: [],804+ skills: [],731805 };732806 });733807808+ const loadProviderCommandCatalog: OpenCodeRuntimeShape["loadProviderCommandCatalog"] = (input) =>apps/server/src/provider/acp/AcpSessionRuntime.ts line 427Resolvedby fm1randa(GitHub profile, opens in a new tab)@@ -369,2 +427,2 @@369427370428 yield* acp.handleSessionUpdate((notification) =>apps/server/src/provider/acp/AcpSessionRuntime.ts line 349Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -292,3 +347,4 @@292347 const assistantSegmentRef = yield* Ref.make<AcpAssistantSegmentState>({ nextSegmentIndex: 0 });293348 const configOptionsRef = yield* Ref.make(sessionConfigOptionsFromSetup(undefined));294349 const startStateRef = yield* Ref.make<AcpStartState>({ _tag: "NotStarted" });350+ const availableCommandsRef = yield* Ref.make<ReadonlyArray<EffectAcpSchema.AvailableCommand>>(
- apps/server/src/provider/opencodeRuntime.ts line 827Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -733 +807,21 @@733807808+ const loadProviderCommandCatalog: OpenCodeRuntimeShape["loadProviderCommandCatalog"] = (input) =>809+ Effect.scoped(810+ Effect.gen(function* () {811+ const server = yield* connectToOpenCodeServer({812+ binaryPath: input.binaryPath,813+ serverUrl: input.serverUrl,814+ environment: input.environment,815+ });816+ const client = createOpenCodeSdkClient({817+ baseUrl: server.url,818+ directory: input.directory,819+ ...(input.serverPassword ? { serverPassword: input.serverPassword } : {}),820+ });821+ const inventory = yield* loadOpenCodeInventory(client);822+ return mapOpenCodeSdkCatalogToProviderCatalog({823+ commands: inventory.commands,824+ skills: inventory.skills,825+ });826+ }),827+ ).pipe(Effect.orElseSucceed(() => EMPTY_PROVIDER_COMMAND_CATALOG));
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
f4bb2778-907d-4369-90c6-856c78a14949You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share