Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 400321e and df302d3de82b1d23a361fcf0cc33a9f8c99ddecc. 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (9)
📝 WalkthroughWalkthroughCodex model discovery now uses a shared bounded JSON probe that normalizes models, effort levels, defaults, and duplicates. Shared catalog helpers generate Codex effort options and expose model-list discovery. Commit-message discovery uses the shared parser and command arguments. Native chat accepts probe-origin Codex results, creates per-model thinking options, and uses discovered Codex models directly. Tests cover parsing, defaults, malformed output, deduplication, enrichment, and fallback behavior. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
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. Comment |
16ca22f to
e705db5
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 06910a60-2a42-47a1-aa62-6c872ffff9e3
📥 Commits
Reviewing files that changed from the base of the PR and between 4349599 and e705db52372a902df7ed3e713c0d68ea593598e3.
📒 Files selected for processing (8)
src/renderer/src/components/native-chat/native-chat-session-option-discovery.tssrc/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.tssrc/renderer/src/components/native-chat/native-chat-session-option-enrichment.tssrc/shared/agent-session-option-catalog-claude-codex.tssrc/shared/agent-session-option-catalog.test.tssrc/shared/agent-session-option-catalog.tssrc/shared/codex-model-list-probe.tssrc/shared/commit-message-agent-spec.ts
🚧 Files skipped from review as they are similar to previous changes (7)
- src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts
- src/renderer/src/components/native-chat/native-chat-session-option-discovery.ts
- src/shared/agent-session-option-catalog.test.ts
- src/shared/commit-message-agent-spec.ts
- src/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
- src/shared/agent-session-option-catalog-claude-codex.ts
- src/shared/agent-session-option-catalog.ts
7e8c7a1 to
35575ea
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Rebased onto current |
35575ea to
df302d3
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
fd5bf00 to
939abf4
Compare
|
Restacked onto current The stack was also restructured so each PR is green on its own head — previously every follow-up fix landed on the tip (#13276), which meant ancestor heads failed This head was verified standalone: |
939abf4 to
065a4d8
Compare
Suggested title
feat(codex): discover native session models from the runtimeSummary
Native Codex session controls now discover the models exposed by the effective runtime instead of relying only on the static seed catalog. The discovery path reuses the existing bounded
codex debug modelsparser and converts each model's supported reasoning levels into model-specific native-chat options.The static catalog remains available immediately while discovery runs and remains the fallback when the CLI is unavailable, returns no models, or emits malformed output.
This is intentionally the first, narrow step toward account-scoped model discovery. It does not add an account picker or change account selection. A follow-up can bind discovery to a PTY-pinned managed account without expanding this PR's wire surface.
Screenshots
No visual layout change. Existing native Codex model and reasoning controls receive runtime-discovered choices after the asynchronous probe completes.
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildFocused validation:
pnpm exec vitest run --config config/vitest.config.ts src/shared/codex-model-list-probe.test.ts src/shared/agent-session-option-catalog.test.ts src/shared/commit-message-agent-spec.test.ts src/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts— 70 tests passed after rebasing onto the currentmain.pnpm run check:max-lines-ratchet— passed with no new bypasses.git diff --check— passed.pnpm run build:desktop— passed as part of the full build attempt.env -u npm_execpath node config/scripts/build-native-for-platform.mjs— passed.Local environment notes:
pnpm testrun reported six remaining failures inconfig/scripts/check-root-directory-entries.test.mjsandsrc/main/ssh/ssh-posix-command-wrapper.test.ts. The same failures reproduced from a clean detachedorigin/mainworktree. Another 23 failures caused by inherited OrcaCODEX_HOMEand Git environment variables passed after those variables were removed.pnpm buildreached the native stage after desktop compilation succeeded. The native wrapper then attempted to execute this workstation's standalone Mach-Onpm_execpathwith Node. Running the same native build script without that injected variable passed. No build script is changed in this PR.AI Review Report
The review checked the shared parser extraction, fallback behavior, asynchronous enrichment, model-specific reasoning defaults, duplicate input handling, and preservation of existing Claude and Cursor behavior.
It flagged two missing regression assertions:
Both assertions were added. Automated review also identified the missing total-output bound; the parser now rejects input over 4,194,304 characters before structural scanning or
JSON.parse. All cases pass in the focused 70-test suite.Cross-platform review:
Security Audit
JSON.parse.codex debug modelsinvocation and runtime command-override handling are reused.Notes