Skip to content

fix(integrations): stop the higgsfield and exa tools crashing on missing credentials and array inputs - #10198

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/validate-higgsfield-exa-crashes
Nov 19, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/validate-higgsfield-exa-crashes

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

Fixes two crashes where a tool threw a raw TypeError instead of a usable error. The recent Exa and Higgsfield validation PRs (#10179, #10174) did not touch either code path.

  • Exa (exa_search, exa_get_contents, exa_find_similar_links): parseCommaList called .split(',') on whatever arrived. Block inputs send a comma-separated string, but agent and MCP tool calls often send urls, ids, includeDomains, excludeDomains or subpageTarget as an array, which threw e.split is not a function. The parser now accepts an array of strings as well as a comma-separated string. Any other value reads as unset.
  • Higgsfield (all tools): when an Agent block uses Higgsfield as a tool with no credential selected, no token is resolved. higgsfieldAuthHeaders then called .trim() on undefined. higgsfieldHeaders now throws a UserFailure asking the user to select a Higgsfield credential.

Backward compatible: string inputs produce the same request bodies as before, and a run with a resolved credential sends the same headers. Only inputs that used to crash behave differently. Each regression test was confirmed to fail on the pre-fix code.

Follow-up, not in this PR: validateRequiredParametersAfterMerge only checks user-or-llm params, so any oauth.required tool can run without a resolved token. Most tools then send an empty token and get a 401 from the vendor. A general guard would change behavior for every credentialed tool, so it is left for a separate decision.

Release notes

Exa

  • Search, Get Contents and Find Similar Links now accept URLs, IDs, domain filters and subpage targets as a list as well as a comma-separated string, instead of failing when an agent passes a list.

Higgsfield

  • Running a Higgsfield tool from an Agent without a selected credential now says to select a Higgsfield credential, instead of failing with an internal error.

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 19, 2026 2:29am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issues were found.

Summary

Exa tools now accept list inputs without crashing, and Higgsfield tools give a clear error when no credential is selected.

  • Exa tools now accept lists from agent calls.
  • Higgsfield tools ask for a credential when none is selected.

Reviews (2) · Last reviewed commit: "fix(integrations): type-safe higgsfield ..." · Reviewed by Greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 911d599 into staging Nov 19, 2026
80 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/validate-higgsfield-exa-crashes branch November 19, 2026 02:32

This branch was previously deployed

1 inactive deployment
Preview — 5169c7ea Deployed Nov 19, 2026 by vercel[bot]
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