[codex] fix: prefer active IntelliJ workspace for relative paths#12090
[codex] fix: prefer active IntelliJ workspace for relative paths#12090yzlu0917 wants to merge 4 commits intocontinuedev:mainfrom
Conversation
💡 Codex Reviewcontinue/gui/src/forms/AddModelForm.tsx Lines 75 to 77 in 2f98da9 The provider check in continue/core/llm/fetchModels.ts Lines 180 to 181 in 2f98da9 Building the endpoint with ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
2f98da9 to
0d3ffb5
Compare
Summary
Why
In IntelliJ multi-Maven setups, Continue can receive multiple workspace roots for related projects. When the same relative path exists in more than one workspace, the previous behavior effectively fell back to the first workspace root, which could cause
lsandcreate_new_fileto operate in a sibling project instead of the one containing the current file.This change biases relative path resolution toward the workspace that contains the active file, while preserving the existing first-workspace fallback when there is no active file context.
Validation
npm test -- --runInBand util/ideUtils.test.tsincoregit diff --checkCloses #10644
Summary by cubic
Prefer the active editor’s workspace when resolving relative paths in IntelliJ multi-workspace projects to keep actions in the current project. Also adds dynamic provider model fetching with a simple UI hook to make model selection easier, and fixes a CLI install banner unmount update.
Bug Fixes
resolveRelativePathInDirandinferResolvedUriFromRelativePath.getCurrentFileisn’t available.CliInstallBannerstate updates after unmount during CLI detection.New Features
models/fetchcore protocol and provider adapters to list models (Ollama, OpenRouter, Anthropic, Gemini, or generic vialistModels).OpenAIo-series checks.ModelSelectionListboxlabel tweak.GPT-5.4variants andGemma 4; update docs; include OpenRouter request headers via@continuedev/openai-adapters.Written for commit 198d7d8. Summary will update on new commits.