Repository navigation
fix(tavily): preserve publication dates on search results - #10642
Open
yogev-nimble wants to merge 1 commit into
Open
yogev-nimble wants to merge 1 commit into
yogev-nimble wants to merge 1 commit into
Conversation
|
@yogev-nimble is attempting to deploy a commit to the Sim Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Confidence Score: 5/5
[Medium impact] This PR appears safe to merge. SummaryPreserves Tavily’s
Reviews (1) · Last reviewed commit: "fix(tavily): preserve publication dates ..." · Reviewed by Greptile |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tavily’s news search already returns a
published_dateon articles it can date. Sim currently drops that field when it maps the response. This change keeps the provider’s date on each result and makes it available to downstream blocks atresults[0].published_date.A null or missing date remains absent from the mapped result. The value is Tavily’s estimate of publication or update time. The search request stays the same. I maintain WebRouter and noticed the missing field while comparing how search workflows carry source dates.
Type of change
Testing
A mixed response fixture reproduces the lost date on the original mapper. With the fix, the dated article keeps its original date, articles with null or missing dates keep their original shape, and Sim’s output-reference resolver accepts the new path. The targeted Vitest runs and workspace type checks passed. The workspace lint, generation and audits passed. In the full app run, 46,068 tests passed and eight were skipped. Three MCP catalog tests failed in that run and passed when run separately. A fourth failure in the proxy TLS test also reproduced on unmodified staging. The Tavily fixture requires no API key.
Checklist
WebRouter · WebRouter documentation