Skip to content

Staging - #326

Merged
suguanYang merged 13 commits into
stagingfrom
main
Aug 25, 2026
Merged

Staging#326
suguanYang merged 13 commits into
stagingfrom
main

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • describe the change
  • describe any API, worker, deployment, or migration impact
  • link the related issue or task

Verification

  • list the commands you ran
  • list any manual API, worker, or local-dev checks you performed
  • note anything intentionally not tested

Deployment Notes

  • note new or changed environment variables
  • note database migrations, queue changes, storage changes, or release-order requirements
  • note backwards compatibility or rollback concerns

Checklist

  • Tests were added or updated when behavior changed
  • Public docs, examples, or OpenAPI contracts were updated when needed
  • Database migrations are idempotent and safe to deploy
  • Logs, errors, and validation paths avoid leaking secrets or user data
  • The pull request description explains any breaking or user-visible change

suguanYang and others added 13 commits August 24, 2026 21:14
Write stages.token_usage to the durable jobs.job_metadata JSON so usage survives Redis TTL.

Co-authored-by: Cursor <cursoragent@cursor.com>
Dense vector pages skip table detection and drawing clustering so probe stays under the 300s child timeout, and workers flush the result queue before exit so an empty-queue crash is retried instead of failing the job.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ith 'import' and 'import from''

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…TOC extraction limits

- Modified the scanning start logic in phase1 to ensure it begins after the TOC, allowing for negative offsets when necessary.
- Updated the TOC extraction tool to use a new maximum token limit for anchor confirmation, improving efficiency.
- Refactored the token calculation in the VLM TOC extractor to be page count dependent, enhancing flexibility.
- Adjusted related tests to reflect changes in scanning behavior and ensure accurate results.
…dget

Co-authored-by: Cursor <cursoragent@cursor.com>
fix: allow negative TOC offset scan and page-scaled TOC max_tokens
Incremental Quartz PDFs can be probed but fail insert_pdf when copying xrefs. Catch only that error, rewrite a clean copy once, and retry the split.

Co-authored-by: Cursor <cursoragent@cursor.com>
fix: keep PyMuPDF asset probe from hanging or dropping results
…out-of-range

fix: retry PDF shard split after source object out of range
…ith 'import' and 'import from''

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
CodeQL flagged mixing from-import with module import for the same package. Use one module alias for both monkeypatching and the call.

Co-authored-by: Cursor <cursoragent@cursor.com>
…n-usage

Persist parse token usage on job metadata
@suguanYang
suguanYang merged commit 9a16786 into staging Aug 25, 2026
6 checks passed
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.

2 participants