Skip to content

fix(agent): harden Querit integration boundaries - #6

Merged
ethan7zhanghx merged 3 commits into
feat/querit-search-toolfrom
fix/querit-integration-followups
Jul 28, 2026
Merged

ethan7zhanghx merged 3 commits into
feat/querit-search-toolfrom
fix/querit-integration-followups

Conversation

@ethan7zhanghx

@ethan7zhanghx ethan7zhanghx commented Jul 28, 2026 •

Copy link
Copy Markdown

Summary

Harden the Python/frontend Querit integration boundaries without expanding the supported parameter set or changing unrelated search tools.

  • Stop retrying Querit responses that return invalid JSON.
  • Reject malformed results and results.result values instead of treating falsey container types as empty results.
  • Redact standalone Querit Canvas API keys from exported graph nodes and canonical components while preserving non-sensitive parameters.
  • Keep the new standalone graph sanitizer scoped to Querit so export behavior for Tavily, Google, Keenable, and BGPT is unchanged.
  • Correct the dynamic-list placeholder and align language guidance with the Querit contract.

Root causes

  • requests.JSONDecodeError inherits from requests.RequestException, so the generic network retry handler retried invalid response bodies.
  • value or {} / value or [] collapsed malformed falsey values into valid empty containers.
  • The export sanitizer recognized the component/Agent-tool shape but not the standalone Querit Canvas graph shape.
  • Applying the graph-shape change to the full historical API-key operator list would have expanded this feature's behavior beyond Querit.

Validation

  • Python Querit and HTTP-timeout tests: 53 passed.
  • Seven focused frontend Jest suites: 40 passed.
  • All 33 Querit-related changed frontend files passed targeted formatting and lint checks.
  • Ruff checks passed for the changed Python files.
  • git diff --check passed.
  • Repository-wide TypeScript checks still report existing target-branch errors; none are in files changed by this PR.
  • A local production build exceeded the default 2 GB Node heap; on the available 8 GB host, the 4 GB retry caused heavy swapping and was stopped. Focused tests and changed-file checks passed.

Scope

This PR only repairs reviewed Querit integration behavior. It does not add parameters, change unrelated search tools, or include the Go implementation from PR #5.

@ethan7zhanghx
ethan7zhanghx marked this pull request as ready for review July 28, 2026 15:33
@ethan7zhanghx
ethan7zhanghx merged commit 1d008e9 into feat/querit-search-tool Jul 28, 2026
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