From ffd3face6b4f3a5626b2c1d4847aee0bc061ace3 Mon Sep 17 00:00:00 2001 From: unclecode Date: Mon, 2 Feb 2026 07:04:35 +0000 Subject: [PATCH] Remove duplicate PROMPT_EXTRACT_BLOCKS definition in prompts.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first definition (with tags/questions fields) was immediately overwritten by the second simpler definition — pure dead code. Removes 61 lines of unused prompt text. Inspired by PR #931 (stevenaldinger). --- .context/PR-TODOLIST.md | 114 +++++++++++++++++++++++----------------- crawl4ai/prompts.py | 61 --------------------- 2 files changed, 66 insertions(+), 109 deletions(-) diff --git a/.context/PR-TODOLIST.md b/.context/PR-TODOLIST.md index a3e52476..ec76faf1 100644 --- a/.context/PR-TODOLIST.md +++ b/.context/PR-TODOLIST.md @@ -1,6 +1,6 @@ # PR Review Todolist -> Last updated: 2026-02-01 | Total open PRs: 79 +> Last updated: 2026-02-02 | Total open PRs: 95 --- @@ -15,29 +15,33 @@ | ~~#1717~~ | ~~YuriNachos~~ | ~~Fix local sentence-transformers embeddings blocked by OpenAI fallback. (#1658)~~ | **merged** | | ~~#1714~~ | ~~YuriNachos~~ | ~~Fix: Replace `tf-playwright-stealth` with `playwright-stealth` dependency. (#1553)~~ | **merged** | | ~~#1667~~ | ~~christian-oudard~~ | ~~Fix `crwl --deep-crawl` only outputting first page. Real CLI bug with tests.~~ | **merged** | -| #1640 | Martichou | Fix memory leak — unused browser contexts never cleaned up under continuous load. (#943) | pending | -| #1622 | zhaoyun006 | Fix redirect target verification in AsyncUrlSeeder and enhance tests. | pending | -| #1592 | jzmiller1 | Fix CDP page leaks and race conditions in concurrent crawling. (#1563) | pending | +| ~~#1640~~ | ~~Martichou~~ | ~~Fix memory leak — unused browser contexts never cleaned up under continuous load. (#943)~~ | **closed** | +| #1622 | Ahmed-Tawfik94 | Fix redirect target verification in AsyncUrlSeeder and enhance tests. | pending | +| #1592 | Ahmed-Tawfik94 | Fix CDP page leaks and race conditions in concurrent crawling. (#1563) | pending | | #1572 | yuexuan-chen | Fix CDP setting with managed browser. | pending | | #1450 | prlz77 | Fix LLM extraction fails when content is in alternative response fields. | pending | | ~~#1364~~ | ~~nnxiong~~ | ~~Fix `