The reason will be displayed to describe this comment to others. Learn more.
Pass Codex launch args to skill probes
When a Codex instance is configured with launchArgs or T3CODE_CODEX_LAUNCH_ARGS (for example --strict-config, --config, or feature flags), status checks and real sessions resolve and pass those args, but this new server.listProviderSkills path starts a plain app-server without them. In that configuration the $ menu can discover a different skill set or fail even though the provider itself works with the configured app-server; pass the resolved launch args into probeCodexAppServerProvider here as the other Codex app-server callers do.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The reason will be displayed to describe this comment to others. Learn more.
🟡 MediumDrivers/CodexDriver.ts:173
listSkills calls probeCodexAppServerProvider without passing effectiveConfig.launchArgs, so instances that require custom Codex launch arguments (e.g. --config flags) are probed with a different app-server configuration than their normal snapshot and sessions. Skill discovery can return the wrong skill set or fail even though the provider itself works. Pass launchArgs: resolveCodexLaunchArgs(effectiveConfig.launchArgs, processEnv) as the status probe already does.
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/provider/Drivers/CodexDriver.ts around lines 173-180:
`listSkills` calls `probeCodexAppServerProvider` without passing `effectiveConfig.launchArgs`, so instances that require custom Codex launch arguments (e.g. `--config` flags) are probed with a different app-server configuration than their normal snapshot and sessions. Skill discovery can return the wrong skill set or fail even though the provider itself works. Pass `launchArgs: resolveCodexLaunchArgs(effectiveConfig.launchArgs, processEnv)` as the status probe already does.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
All reactions
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
Uh oh!
There was an error while loading. Please reload this page.
Effect.scoped,
Effect.map((result) => result.skills),
Effect.mapError(
(cause) =>
new ProviderDriverError({
driver: DRIVER_KIND,
instanceId,
detail: `Failed to list Codex skills: ${cause.message}`,
The reason will be displayed to describe this comment to others. Learn more.
Same issue as the Grok wrapper: detail interpolates cause.message, which then flows into ProviderDriverError.message. Interpolating an arbitrary defect message can also pull spawn command/output text into the caller-visible detail. Prefer structural context and keep the original error only as cause.
Suggested change
detail: `Failed to list Codex skills: ${cause.message}`,
detail: `Failed to list Codex skills for cwd '${cwd}'`,
The reason will be displayed to describe this comment to others. Learn more.
Same issue as the Grok wrapper: detail interpolates cause.message, which then flows into ProviderDriverError.message. Interpolating an arbitrary defect message can also pull spawn command/output text into the caller-visible detail. Prefer structural context and keep the original error only as cause.
Suggested change
detail: `Failed to list Codex skills: ${cause.message}`,
detail: `Failed to list Codex skills for cwd '${cwd}'`,
The reason will be displayed to describe this comment to others. Learn more.
detail only copies cause.message, and ProviderDriverError.message interpolates detail, so the wrapper message is derived from the cause rather than from its own stable attributes. Consider a fixed detail that keeps the context known here (cwd) and leave the underlying failure available solely as cause.
Suggested change
detail: cause.message,
detail: `Failed to list Grok skills for cwd '${cwd}'`,
The reason will be displayed to describe this comment to others. Learn more.
detail only copies cause.message, and ProviderDriverError.message interpolates detail, so the wrapper message is derived from the cause rather than from its own stable attributes. Consider a fixed detail that keeps the context known here (cwd) and leave the underlying failure available solely as cause.
Suggested change
detail: cause.message,
detail: `Failed to list Grok skills for cwd '${cwd}'`,
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.
You are visitor 01402792 — 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.