From c8d177f23f66140291c86a4636e6d72c4b915fb0 Mon Sep 17 00:00:00 2001 From: Alex-Gilbert Date: Mon, 23 Feb 2026 14:33:46 -0600 Subject: [PATCH] feat: add PAGE_SIZE constant and solve results buffer Co-Authored-By: Claude Opus 4.6 --- unredact/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unredact/app.py b/unredact/app.py index 8181585..ff53e60 100644 --- a/unredact/app.py +++ b/unredact/app.py @@ -273,6 +273,11 @@ async def get_page_data(doc_id: str, page: int): # Active solve tasks (for cancellation) _active_solves: dict[str, bool] = {} +PAGE_SIZE = 200 + +# Buffered solve results for pagination (keyed by solve_id) +_solve_results: dict[str, list[dict]] = {} + class SolveRequest(BaseModel): font_id: str