GeezerVison is showing github.com — fix(codex): discover project skills from workspace by t3-code-bot[bot] · Pull Request #5335 · pingdotgg/t3code
Conversation
t3-code-bot
Bot
commented
Aug 4, 2026
•
edited by macroscopeapp
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
summary
- discover codex skills against the active project or thread worktree
- feed workspace-scoped skills into
$ autocomplete
- keep the global fallback while excluding repo skills discovered from the server launch directory
- resolve workspace paths server-side instead of accepting arbitrary client paths
reproduction
- launch t3 code outside the target repository
- open a project containing
.agents/skills/<name>/SKILL.md
- select codex and type
$
- the project skill is now listed
tests
pnpm --filter t3 typecheck
pnpm --filter @t3tools/contracts typecheck
pnpm --filter @t3tools/client-runtime typecheck
pnpm --filter @t3tools/web typecheck
pnpm --dir apps/server exec vp test run src/server.test.ts -t "server.listProviderSkills"
pnpm --dir apps/server exec vp test run src/provider/Layers/ProviderRegistry.test.ts -t "cwd-scoped skill discovery"
pnpm lint
pnpm fmt:check
Note Medium Risk
New WS RPC and Codex subprocess probes on composer interaction add latency and failure modes; cwd is server-resolved from project/thread shells rather than client paths, which limits path injection risk.
Overview
Fixes Codex $ autocomplete when T3 Code is launched outside the target repo by loading skills for the active project or thread worktree instead of only from the server’s launch directory.
Adds server.listProviderSkills (read scope): the server maps projectId / optional threadId to workspaceRoot or worktreePath, then calls provider listSkills(cwd). Codex runs a scoped skills/list probe against that cwd (10s timeout, fallback to cached global skills on failure). Full provider refresh still drops repo-scoped skills from the global snapshot so launch-dir repo skills don’t pollute the default list.
The web composer fetches skills via useProviderSkills when the skill menu is open, with short-lived caching for smoother UX; other providers without listSkills keep using snapshot skills.
Reviewed by Cursor Bugbot for commit 6df2036. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Discover project skills from workspace via server.listProviderSkills RPC
- Adds a new
server.listProviderSkills websocket RPC that resolves skills scoped to the active workspace root or worktree path, with auth requiring OrchestrationReadScope.
- Implements
listSkills(cwd) on the Codex provider driver in CodexDriver.ts, which spawns a short-lived app-server probe with a 10s timeout and falls back to snapshot skills on failure.
- Refactors CodexProvider.ts to extract
openCodexAppServerProbe as a reusable utility; snapshot skills now exclude repo-scoped entries.
- The web
ChatComposer fetches live provider skills via the new RPC when the skill trigger is active, caching results by environment/instance/project/thread and falling back to snapshot skills filtered to non-repo scope.
- Risk: the 10s child-process timeout per
listSkills call may add latency if the Codex app-server is slow to start.
Macroscope summarized 6df2036.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
icaroryan, marijnbent, felix-exon, EmanuelMedinaAraujo, markusjura, jizc, klaemo, and Senth reacted with thumbs up emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One finding on error-log hygiene in the new Codex skill-discovery fallback. Everything else (subpath namespace imports, Effect.fn service methods, whole-channel Effect.catch, contract schemas, added focused tests) matches the conventions.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
Effect.catch((error) =>
|
|
|
Effect.logWarning("Codex workspace skill discovery failed; using global skills.", {
|
|
|
cwd,
|
|
|
error: String(error),
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String(error) puts arbitrary error text into the log payload — the failure channel here includes CodexAppServerSpawnError, whose message carries the resolved binary/app-server command and underlying spawn output. Consider logging a normalized tag instead (the pattern used by the other provider layers, e.g. errorTag/causeErrorTag from @t3tools/shared/observability), keeping the real error only as cause.
- error: String(error),
+ errorTag: errorTag(error),
Requires adding import { errorTag } from "@t3tools/shared/observability";.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6df2036. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
const isComposerMenuLoading =
|
|
|
composerTriggerKind === "path" && pathTriggerQuery.length > 0 && workspaceEntries.isPending;
|
|
|
(composerTriggerKind === "path" && pathTriggerQuery.length > 0 && workspaceEntries.isPending) ||
|
|
|
(composerTriggerKind === "skill" && providerSkills.isPending && composerMenuItems.length === 0);
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incomplete skill menu looks final
Medium Severity
The skill autocomplete menu ($) incorrectly shows only global skills as complete while project/repo-specific skills are still loading. This happens because the loading indicator is suppressed when fallback global skills are present, masking the pending state of the skill query.
Reviewed by Cursor Bugbot for commit 6df2036. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
skills: parseCodexSkillsListResponse(skillsResponse, input.cwd),
|
|
|
skills: parseCodexSkillsListResponse(skillsResponse, input.cwd).filter(
|
|
|
(skill) => skill.scope !== "repo",
|
|
|
),
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repo skill chips lost in timeline
Medium Severity
Repo-scoped skills are stripped from the Codex provider snapshot, but the message timeline still renders skill chips only from that snapshot. $repo tokens in history therefore stop turning into skill chips because timeline rendering was not switched to workspace-scoped skill discovery.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 6df2036. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Needs human review
This PR introduces a new feature for workspace-scoped skill discovery with new RPC endpoints and frontend integration. Additionally, there are unresolved review comments identifying potential bugs in loading state handling and timeline skill chip rendering that should be addressed.
You can customize Macroscope's approvability policy. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Does this work for claude project level skills as well?
|
jizc reacted with eyes emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 6, 2026
|
waiting for this as well :P
|
PedroNavHurDCA reacted with eyes emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 23, 2026
Note 🤖 GPT-5.6 Sol responding on behalf of Theo
Closing this because #8778 and #9180 have merged. Codex skill discovery now runs in the selected project or worktree, supplies the composer, and works on mobile. The separate workspace-skill RPC in this PR is no longer needed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|