What Changed#
Codex provider status checks now pass the configured T3 project cwd into the Codex app-server probe instead of always using process.cwd().
This lets Codex discover repo-level skills from the active project, including skills under .agents/skills.
The change also adds a focused regression test that verifies the Codex probe receives ServerConfig.cwd.
Why#
Codex discovers repo-level skills relative to the cwd used by the app-server provider probe.
When T3 Code is launched from a different directory than the active project, process.cwd() can point at the T3 server/runtime directory instead of the project directory. In that case, repo-level Codex skills do not appear even though they are valid for the project.
Using ServerConfig.cwd keeps skill discovery aligned with the project T3 is serving.
UI Changes#
No UI changes.
Test Plan#
bunx vitest run apps/server/src/provider/Layers/ProviderRegistry.test.ts
bun run lint apps/server/src/provider/Layers/CodexProvider.ts apps/server/src/provider/Layers/ProviderRegistry.test.ts
bun run fmt:check apps/server/src/provider/Layers/CodexProvider.ts apps/server/src/provider/Layers/ProviderRegistry.test.ts
bun run typecheck --filter=t3
Checklist#
Note
Low Risk
Low risk: only changes the cwd used during Codex provider probing (with a fallback to process.cwd()), affecting skill discovery but not auth or data handling.
Overview
Codex provider status checks now pass the configured project working directory (ServerConfig.cwd) into the Codex app-server probe instead of always using process.cwd(), improving repo-scoped skill discovery when the server is launched from a different directory.
Adds a focused regression test ensuring checkCodexProviderStatus forwards the configured cwd when ServerConfig is available.
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 1bdad4358c1c0107e91d09ef036898516cf41c8a. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
Note
Fix checkCodexProviderStatus to use project cwd for Codex skill discovery#
Replaces the hardcoded process.cwd() in CodexProvider.ts with the cwd from ServerConfig when available, falling back to process.cwd() if not. A new test in ProviderRegistry.test.ts verifies the probe receives the configured cwd.
Macroscope summarized 1bdad43.
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
Run ID:
889c978c-2ad4-4486-96aa-ecd4625922a7You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip
💬 Introducing Slack Agent: The best way for teams to turn conversations into code.
Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack.
👉 Get started
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