You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Split giant renderers and functions; add type hints along the way #104
The largest files are web_fetch/report.py (4.5k lines) and browser_use/report.py (4.1k). browser_use/report.py relies on function-local imports to dodge an import cycle. About 1,200 of 1,900 functions in web_fetch, lexbench and web_search have no type hints.
Proposal
One module per route class.
Runner stages split into prepare, session, agent and finalize.
A per-site login strategy table instead of if/elif chains.
Type hints added on touched code; a type checker (pyright or mypy) introduced on fully typed packages.
Risk: medium per PR. Depends on: the English-source migration for each renderer, so each file is rewritten once.
Carried over from #88 (closed by #119): add a synthetic LexBench report builder and a golden snapshot for it. harness/lexbench/report.pymain() currently needs a full saved-profile evidence tree, so no test can build the report; the split here should expose a builder that tests/test_golden_reports.py can call.
Closing: the Lexbench golden test was delivered by #207. Further splitting of large renderers is not needed for main functionality, so it is left unless a file blocks real work.
Activity
lanyue-llk commentedon Oct 30, 2026
Carried over from #88 (closed by #119): add a synthetic LexBench report builder and a golden snapshot for it.
harness/lexbench/report.pymain()currently needs a full saved-profile evidence tree, so no test can build the report; the split here should expose a builder thattests/test_golden_reports.pycan call.lanyue-llk commentedon Nov 4, 2026
Closing: the Lexbench golden test was delivered by #207. Further splitting of large renderers is not needed for main functionality, so it is left unless a file blocks real work.