Skip to content

🧱 feat: Count PDF Pages in the Isolated Processor - #429

Merged
danny-avila merged 3 commits into
mainfrom
danny-avila/extraction-pdf-page-count
Dec 4, 2026
Merged

danny-avila merged 3 commits into
mainfrom
danny-avila/extraction-pdf-page-count

Conversation

@danny-avila

Copy link
Copy Markdown
Collaborator

Summary

I added a count-only operation to the isolated document processor so LibreChat can validate PDF pages without loading a parser into the API process or extracting document text.

  • Route authenticated PDF requests through the existing admission, deadline, native worker isolation, and cleanup.
  • Bound PDF input at 32 MiB and the digest-bound count response at 256 bytes.
  • Cover malformed responses, authorization, and page counts beyond the text-extraction page ceiling.

Change Type

  • New feature (non-breaking change which adds functionality)

Testing

  • Pass the 21 focused runtime tests with npm --prefix packages/extraction test.
  • Run the live Docker suite with npm --prefix packages/extraction run test:container.

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the current PR head 28fb985. Confirm this exact commit is the reviewed commit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T23:06:30.460781Z 94eb01e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 28fb9856bd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the current PR head 94eb01e. It preserves the existing RAG extraction capability response and advertises PDF page counting separately.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 94eb01e5c3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila
danny-avila merged commit 94c4d4b into main Dec 4, 2026
25 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.

1 participant