fix: the $ skill picker now lists the active project's skills #6450
ClosedBrechard(GitHub profile, opens in a new tab)wants to merge 5 commits into
main fromrefs/pull/6450/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/Layers/CodexProvider.ts line 479Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -417,0 +470,21 @@470+ if (!codexSettings.enabled) {471+ return Effect.succeed([]);472+ }473+ const resolvedEnvironment = environment ?? process.env;474+ return requestCodexWorkspaceSkills({475+ binaryPath: codexSettings.binaryPath,476+ homePath: codexSettings.homePath,477+ launchArgs: resolveCodexLaunchArgs(codexSettings.launchArgs, resolvedEnvironment),478+ cwd,479+ environment: resolvedEnvironment,480+ }).pipe(481+ Effect.scoped,482+ // A typed timeout rather than `timeoutOption` so a slow app-server is483+ // logged on the same path as a spawn failure instead of silently reading484+ // as "this workspace has no skills".485+ Effect.timeout(Duration.millis(AUTH_PROBE_TIMEOUT_MS)),486+ Effect.tapError((cause) =>487+ Effect.logDebug("codex workspace skill discovery failed", { cwd, cause }),488+ ),489+ Effect.orElseSucceed((): ReadonlyArray<ServerProviderSkill> => []),490+ );
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/web/src/components/ChatView.tsx line 2667OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -2659,3 +2660,8 @@26592660 const activeProjectCwd = activeProject?.workspaceRoot ?? null;26602661 const activeThreadWorktreePath = activeThread?.worktreePath ?? null;26612662 const activeWorkspaceRoot = activeThreadWorktreePath ?? activeProjectCwd ?? undefined;2663+ // Highlights `$skill` mentions in the transcript against the thread's own2664+ // instance. `ChatComposer` runs its own query for the `$` picker.2665+ const timelineWorkspaceSkills = useWorkspaceSkills({2666+ environmentId,2667+ instanceId: activeProviderInstanceId ?? null,
- apps/web/src/components/ChatView.tsx line 2670OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -2659,3 +2661,10 @@26592661 const activeProjectCwd = activeProject?.workspaceRoot ?? null;26602662 const activeThreadWorktreePath = activeThread?.worktreePath ?? null;26612663 const activeWorkspaceRoot = activeThreadWorktreePath ?? activeProjectCwd ?? undefined;2664+ // Highlights `$skill` mentions in the transcript against the thread's own2665+ // instance, not `activeProviderInstanceId` — that prefers the composer's2666+ // pick, which would re-highlight sent messages on a provider switch.2667+ // `ChatComposer` runs its own query for the `$` picker.2668+ const timelineWorkspaceSkills = useWorkspaceSkills({2669+ environmentId,2670+ instanceId: resolveTranscriptProviderInstanceId(activeThread),
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:
678b6c82-147d-4d6f-8d7e-b2f1e1da41d4You 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