Repository navigation
fix(python): preserve unrenamed async crawl preview fields - #5367
Draft
Kayvan-Zahiri wants to merge 1 commit into
Draft
Kayvan-Zahiri wants to merge 1 commit into
Kayvan-Zahiri wants to merge 1 commit into
Conversation
This was referenced Oct 29, 2026
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.
Problem
AsyncFirecrawlClient.crawl_params_preview()only copies response fields in its camelCase mapping, so ordinarylimit,delay, andintegrationfields disappear. For example, a successful response containing{"limit": 25, "delay": 3}produceslimit=Noneanddelay=None. Reusing the preview can therefore discard the intended crawl limit and delay. The synchronous method already preserves these fields.Change
Preserve response fields that do not require renaming, matching the synchronous method. Keep the top-level warning precedence unchanged. Add public-client response-replay regressions for limit, positive/zero delay, and integration, alongside renamed-field and warning assertions.
Validation
python -m pytest apps/python-sdk/firecrawl/__tests__/unit -q: 723 passed.test_agent_integration.py): 761 passed, 13 failed. The same 13 failures reproduce against unchanged HEAD with the new regression cases deselected (757 passed). They concern existing API-key, change-tracking, direct-kwargs, and timeout expectations. Logs retained locally.git diff --checkpasses.Tests replay HTTP responses locally; no hosted API requests or API/worker changes. No configuration, migration, or deployment impact.
Summary by cubic
Fixes
AsyncFirecrawlClient.crawl_params_preview()dropping unrenamed response fields likelimit,delay, andintegrationasNone, discarding the intended crawl settings. The async method now preserves these fields, matching the synchronous method.Written for commit 6970420. Summary will update on new commits.