Skip to content

fix: query_project rejected read-only tools excluded by the current context#1537

Open
bor wants to merge 1 commit into
oraios:mainfrom
bor:fix/query-project-drop-is-active-assertion
Open

fix: query_project rejected read-only tools excluded by the current context#1537
bor wants to merge 1 commit into
oraios:mainfrom
bor:fix/query-project-drop-is-active-assertion

Conversation

@bor
Copy link
Copy Markdown
Contributor

@bor bor commented Jun 2, 2026

Summary

Minimal follow-up to #1527 per @opcode81's review: drop the is_active() assertion in QueryProjectTool.apply so a read-only tool hidden by the caller's current context (e.g. search_for_pattern in the claude-code context, where the client has native grep) can still be forwarded to another registered project.

The is_readonly() guard is unchanged; nothing else is touched.

Changes

  • src/serena/tools/query_project_tools.py: remove the assert tool.is_active() line.
  • CHANGELOG.md: short entry under # Unreleased (main) / * Tools:.

Test plan

  • CI green on ubuntu/macos/windows.
  • Manual: in a claude-code context (which excludes search_for_pattern), forward search_for_pattern to another registered project via query_project and confirm it succeeds.

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