Skip to content

fix(python): preserve unrenamed async crawl preview fields - #5367

Draft
Kayvan-Zahiri wants to merge 1 commit into
firecrawl:mainfrom
Kayvan-Zahiri:codex/preserve-async-crawl-preview-fields
Draft

Kayvan-Zahiri wants to merge 1 commit into
firecrawl:mainfrom
Kayvan-Zahiri:codex/preserve-async-crawl-preview-fields

Conversation

@Kayvan-Zahiri

@Kayvan-Zahiri Kayvan-Zahiri commented Oct 23, 2026 •

Copy link
Copy Markdown

Problem

AsyncFirecrawlClient.crawl_params_preview() only copies response fields in its camelCase mapping, so ordinary limit, delay, and integration fields disappear. For example, a successful response containing {"limit": 25, "delay": 3} produces limit=None and delay=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

  • Before the source change: four new cases fail; existing request validation passes.
  • python -m pytest apps/python-sdk/firecrawl/__tests__/unit -q: 723 passed.
  • Broader unit plus top-level tests (excluding hosted 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 --check passes.

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 like limit, delay, and integration as None, 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.

View guided diff

This branch has not been deployed

No deployments
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