fix(codex): discover project skills from workspace #5335
Closedt3-code-bot[bot](GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromt3code/codex-project-skillsopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -198,3 +204,18 @@198204 ),199205 );200206207+ const listSkills = (cwd: string) =>208+ listCodexProviderSkills({209+ binaryPath: effectiveConfig.binaryPath,210+ homePath: effectiveConfig.homePath,211+ launchArgs: resolveCodexLaunchArgs(effectiveConfig.launchArgs, processEnv),212+ cwd,213+ environment: processEnv,214+ }).pipe(215+ Effect.provideService(ChildProcessSpawner.ChildProcessSpawner, spawner),216+ Effect.scoped,217+ Effect.timeout(Duration.seconds(10)),218+ Effect.catch((error) =>219+ Effect.logWarning("Codex workspace skill discovery failed; using global skills.", {220+ cwd,221+ error: String(error),
- @@ -1182,4 +1217,5 @@11821217 ]);1183121811841219 const isComposerMenuLoading =1185- composerTriggerKind === "path" && pathTriggerQuery.length > 0 && workspaceEntries.isPending;1220+ (composerTriggerKind === "path" && pathTriggerQuery.length > 0 && workspaceEntries.isPending) ||1221+ (composerTriggerKind === "skill" && providerSkills.isPending && composerMenuItems.length === 0);@@ -411,4 +425,6 @@411425 models: applyPreferredCodexDefaultModel(412426 appendCustomCodexModels(models, input.customModels ?? []),413427 ),414- skills: parseCodexSkillsListResponse(skillsResponse, input.cwd),428+ skills: parseCodexSkillsListResponse(skillsResponse, input.cwd).filter(429+ (skill) => skill.scope !== "repo",430+ ),
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed
One finding on error-log hygiene in the new Codex skill-discovery fallback. Everything else (subpath namespace imports,
Posted via Macroscope — Effect Service ConventionsEffect.fnservice methods, whole-channelEffect.catch, contract schemas, added focused tests) matches the conventions.