Skip to content

Conversation

@christian-kreuzberger-dtx
Copy link
Collaborator

@christian-kreuzberger-dtx christian-kreuzberger-dtx commented Oct 21, 2025

we accidentally filtered out the "good" ones for the fallback.
image

Fixed:
image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the find_entity_by_name tool where the filtering logic was accidentally removing valid entities instead of invalid ones when using the classic entities API fallback.

Key Changes:

  • Corrected the entity property names in the filter condition from entity.type/entity.name to entity['entity.type']/entity['entity.name']
  • Added console logging to track the filtering process
  • Updated CHANGELOG.md to document the bug fix

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/index.ts Fixed filter condition to use correct property names (entity['entity.type'] and entity['entity.name']) and added debug logging
CHANGELOG.md Documented the bug fix in the unreleased changes section

Copy link
Collaborator

@MrManny MrManny left a comment

Choose a reason for hiding this comment

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

Probably needs a little fix-up, unless I misunderstood the code

@christian-kreuzberger-dtx christian-kreuzberger-dtx force-pushed the patch/fix-find-entities-tool branch 2 times, most recently from f3afcd1 to ad19ea3 Compare October 21, 2025 13:13
@MrManny MrManny requested a review from Copilot October 22, 2025 12:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copy link
Collaborator

@MrManny MrManny left a comment

Choose a reason for hiding this comment

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

Copilot's complaints aside, I think this is gucci. Probably don't need the String(entity.id) later, but it never hurts.

@christian-kreuzberger-dtx christian-kreuzberger-dtx merged commit 454b727 into main Oct 22, 2025
7 checks passed
@christian-kreuzberger-dtx christian-kreuzberger-dtx deleted the patch/fix-find-entities-tool branch October 22, 2025 13:49
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.

3 participants