Skip to content

fix(python-sdk): preserve nested async crawl preview settings - #5458

Open
elysiopires wants to merge 2 commits into
firecrawl:mainfrom
elysiopires:codex/fix-async-crawl-preview-scrape-options
Open

elysiopires wants to merge 2 commits into
firecrawl:mainfrom
elysiopires:codex/fix-async-crawl-preview-scrape-options

Conversation

@elysiopires

@elysiopires elysiopires commented Oct 29, 2026 •

Copy link
Copy Markdown

Fixes #5457.

The async Python crawl preview drops nested includeTags, excludeTags, onlyMainContent, waitFor, skipTlsVerification, and removeBase64Images settings. For example, a preview containing includeTags=["main"] and waitFor=250 returns both corresponding SDK fields as None.

Extract the synchronous method's existing nested-name conversion and reuse it in the async method. Preserve the synchronous format handling, unrelated nested fields, and missing/null options. This is separate from #5367's unrenamed outer-field fix.

Validation:

  • Six async response-replay cases fail on unchanged main and pass with this fix.
  • Added synchronous comparison coverage and missing/null cases (14 regression cases total).
  • From apps/python-sdk: .venv/bin/python -m pytest firecrawl/__tests__/unit -q --disable-warnings: 733 passed, 20 warnings.
  • Ruff passes for the new test module; git diff --check passes.

Tests mock HTTP responses and make no hosted requests. No API/worker, configuration, migration, or deployment changes.

AI assistance: Codex helped investigate, implement, and test this change. The reproduction and reported tests ran locally.


Summary by cubic

Fixes #5457: the async Python crawl preview was dropping nested scrape settings like includeTags, waitFor, and removeBase64Images, returning None for those fields. The fix extracts the synchronous method's nested-name conversion into a shared helper and reuses it in the async method, so both paths now preserve these options. Adds 14 regression tests covering sync and async paths plus missing/null scrape options.

  • Reuses the sync conversion helper in the async method without changing sync behavior.
  • Preserves unrelated nested fields and missing/null options.
  • Adds parametrized regression tests for all six affected settings on both clients.

Written for commit 8404901. Summary will update on new commits.

View guided diff

@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.

All reported issues were addressed across 3 files

Auto-approved with 1 open P3 issue.
Reply to a comment to ask cubic a question or push back. It learns from your replies.
Click Fix with cubic on a comment, or reply @cubic-dev-ai fix this, and cubic writes the fix.

View guided diff | Re-trigger cubic

@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.

Auto-approved with 1 open P3 issue.

@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.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

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

View guided diff | Re-trigger cubic

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.

[Bug] Async Python crawl preview drops nested scrape option settings

1 participant