GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@t3-code-bot 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.

Copy link
Copy Markdown
Contributor

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

  1. launch t3 code outside the target repository
  2. open a project containing .agents/skills/<name>/SKILL.md
  3. select codex and type $
  4. 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
All reactions
  • 👍 8 reactions
@t3-code-bot
fix: discover project skills from workspace
6df2036
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Aug 4, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 4, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread apps/server/src/provider/Drivers/CodexDriver.ts
Effect.catch((error) =>
Effect.logWarning("Codex workspace skill discovery failed; using global skills.", {
cwd,
error: String(error),

@macroscopeapp macroscopeapp Bot Aug 4, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions
cursor[bot]
cursor Bot reviewed Aug 4, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Fix All in Cursor

❌ 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.

All reactions
Comment thread apps/web/src/components/chat/ChatComposer.tsx
const isComposerMenuLoading =
composerTriggerKind === "path" && pathTriggerQuery.length > 0 && workspaceEntries.isPending;
(composerTriggerKind === "path" && pathTriggerQuery.length > 0 && workspaceEntries.isPending) ||
(composerTriggerKind === "skill" && providerSkills.isPending && composerMenuItems.length === 0);

@cursor cursor Bot Aug 4, 2026

Copy link
Copy Markdown
Contributor

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.

Fix in Cursor Fix in Web

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.

All reactions
Comment thread apps/server/src/provider/Layers/CodexProvider.ts
skills: parseCodexSkillsListResponse(skillsResponse, input.cwd),
skills: parseCodexSkillsListResponse(skillsResponse, input.cwd).filter(
(skill) => skill.scope !== "repo",
),

@cursor cursor Bot Aug 4, 2026

Copy link
Copy Markdown
Contributor

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)
  • apps/web/src/components/ChatView.tsx#L5829-L5830
Fix in Cursor Fix in Web

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.

All reactions
@macroscopeapp

macroscopeapp Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@archiekd

archiekd commented Aug 4, 2026

Copy link
Copy Markdown

Does this work for claude project level skills as well?

jizc reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nemesiscodex nemesiscodex mentioned this pull request Aug 5, 2026
[Bug]: Cursor/OpenCode skill discovery returns zero skills despite skills existing on disk (Claude/Codex discover them fine) #2736
Closed
2 tasks done
This was referenced Aug 6, 2026
[Bug]: Skill discovery never scans repo-local .agents/skills (Agent Skills standard dir) #5487
Closed
fix(claude): discover repo-local .agents/skills in skill discovery #5488
Merged
[Feature]: Discover repo-local .agents/skills (Agent Skills standard) provider-agnostically, not per provider #5492
Closed
@kamafozilov kamafozilov mentioned this pull request Aug 11, 2026
[Bug]: Explicit Codex $skill invocation does not attach user-invoked skills #6095
Closed
2 tasks done
@jln13x jln13x mentioned this pull request Aug 17, 2026
feat(codex): add project skills and queue-first steering jln13x/t3code#28
Merged
@felix-exon

felix-exon commented Aug 19, 2026

Copy link
Copy Markdown

waiting for this as well :P

PedroNavHurDCA reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Aug 23, 2026
Fix/project scoped provider skills #6661
Closed
fix: the $ skill picker now lists the active project's skills #6450
Closed
fix(codex): show project-local skills in composer #7717
Closed
@t3dotgg

t3dotgg commented Sep 3, 2026

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

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.

Projects

None yet

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.

3 participants

@archiekd @felix-exon @t3dotgg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.