Skip to content

fix: keep independent AIDP search selectable and recommendable - #4046

Open
xuyaqist wants to merge 1 commit into
developfrom
fix/ind-aidp-search-selectability
Open

xuyaqist wants to merge 1 commit into
developfrom
fix/ind-aidp-search-selectability

Conversation

@xuyaqist

Copy link
Copy Markdown
Contributor

Summary

  • Keep knowledge_base_search unavailable for manual selection and ind_aidp_search selectable regardless of AIDP deployment mode.
  • Recommend aidp_search when AIDP knowledge is enabled, knowledge_base_search when disabled, and ind_aidp_search in both modes.
  • Add an idempotent migration to correct existing tool metadata.

Verification

  • backend/.venv/Scripts/python.exe -m pytest test/backend/services/test_tool_configuration_service.py -k 'independent_aidp_search' -q (2 passed)
  • backend/.venv/Scripts/python.exe -m pytest test/backend/services/test_nl2agent_service.py -k 'installed_resource_catalog_filters_knowledge_tools_by_deployment' -q (2 passed)
  • git diff --check (passed)

The SQL migration has not been applied to a live database.

Copilot AI balanced review requested due to automatic review settings September 30, 2026 03:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation consistently satisfies the stated selection and recommendation behavior with focused regression coverage and an idempotent migration.

Review effort: Balanced
Findings: None

What changed in this PR

Updates AIDP search selection and recommendation behavior while migrating existing metadata.

Changes:

  • Keeps independent AIDP search selectable in all deployment modes.
  • Recommends deployment-appropriate knowledge tools.
  • Adds regression tests and an idempotent metadata migration.
File Description
backend/​services/​tool_configuration_service.py Removes deployment-based hiding of independent AIDP search.
backend/​services/​nl2agent_service.py Recommends independent AIDP search in both modes.
sdk/​nexent/​core/​tools/​ind_aidp_search_tool.py Marks the tool user-selectable.
deploy/​sql/​migrations/​v2.7.1_001_ind_aidp_search_selectable.sql Corrects persisted selection metadata.
test/​backend/​services/​test_tool_configuration_service.py Tests selection metadata behavior.
test/​backend/​services/​test_nl2agent_service.py Tests mode-dependent recommendations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
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.

2 participants