Skip to content

[codex] Allow project selectors by unique basename#140

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
codex/fix-project-selector-basename
Jun 29, 2026
Merged

[codex] Allow project selectors by unique basename#140
ScriptedAlchemy merged 1 commit into
masterfrom
codex/fix-project-selector-basename

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • allow registered-project selectors to resolve a unique bare project basename after exact project_id and alias lookup fail
  • keep ambiguous or missing selectors fail-closed, with a more actionable error pointing to tracedecay_project_search
  • add regression coverage for cross-project graph dispatch using project_selector.path = "target"

Root Cause

Agents naturally used short project names such as react-router, but MCP selector resolution only accepted registered project ids or exact registered path aliases. That caused registered project not found for selector even when a single registered project basename matched.

Validation

  • cargo fmt --check
  • git diff --check
  • cargo test graph_reader_selector_dispatch
  • manually verified installed MCP lookup for project_selector.path = "react-router" returns React Router symbols after daemon restart

@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 764c309

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy ScriptedAlchemy marked this pull request as ready for review June 29, 2026 01:25
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/fix-project-selector-basename branch from 9b3c07f to 8533bd1 Compare June 29, 2026 01:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8533bd1d9a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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

Comment thread src/mcp/tools/handlers/support.rs Outdated
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/fix-project-selector-basename branch from 8533bd1 to 0c1abad Compare June 29, 2026 01:41
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/fix-project-selector-basename branch from 0c1abad to 764c309 Compare June 29, 2026 01:49
@ScriptedAlchemy ScriptedAlchemy merged commit e62abb2 into master Jun 29, 2026
8 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the codex/fix-project-selector-basename branch June 29, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant