Commit Graph
12556 Commits
Author SHA1 Message Date
shamoon b6247d0602 Enhancement: updated private tags UX (#14870) 2026-11-27 04:55:27 +00:00
Trenton H e116b3e7ac Chore: compare export JSON files in chunks instead of reading them into memory (#14884) 2026-11-26 19:15:59 -08:00
GitHub Actions a21c5086ab Auto translate strings 2026-11-27 02:54:58 +00:00
Trenton H 89f0037362 Feature: add PAPERLESS_COOKIE_SECURE to mark session, CSRF and language cookies Secure (#14886) 2026-11-26 18:53:45 -08:00
Trenton H 2b8697e850 Fix: close the output PDF even if building it fails (#14887) 2026-11-26 18:42:43 -08:00
Trenton H 33fb750529 Fix: close the uploaded logo image with a context manager when sanitizing (#14888) 2026-11-26 18:31:35 -08:00
Trenton H 0a8de70c26 Fix: detect Redis socket URLs by scheme instead of substring (#14885) 2026-11-26 17:32:33 -08:00
GitHub Actions 2f21aa80a6 Auto translate strings 2026-11-27 00:52:49 +00:00
Trenton H 8008646ae6 Fix: make URI validator error messages translatable (#14883) 2026-11-26 16:51:32 -08:00
Trenton H 748470d47c Chore: align ruff version between uv and pre-commit (#14881) 2026-11-27 00:08:35 +00:00
Trenton H b471679469 Chore: copy PDFs on disk instead of reading them into memory (#14882) 2026-11-26 23:24:20 +00:00
GitHub Actions 5c399653d7 Auto translate strings 2026-11-26 22:28:58 +00:00
5f6a071d36 Feature: OCR Templates (#14507)
---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Christoph Schlaepfer <1939311+Anuril@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: stumpylog <797416+stumpylog@users.noreply.github.com>
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
2026-11-26 14:27:46 -08:00
Trenton H f775b94cd6 Fix: flag recreated search index for reindex on next startup (#14877) 2026-11-26 09:57:00 -08:00
Trenton H b0dea5a07d Fix: clarify corrupted search index log tells user to run reindex (#14876) 2026-11-26 09:56:59 -08:00
shamoon 5ea1bd92c0 Fix/change: only split password list on new lines (#14869) 2026-11-25 15:55:24 -08:00
GitHub Actions 0a1bdad96b Auto translate strings 2026-11-25 23:54:55 +00:00
shamoon a139c2fd21 Fix/tweak: correct token throttling behind trusted proxies (#14862) 2026-11-25 23:53:47 +00:00
Trenton H 958bf8e34b Chore: switch sqlite-vec to the paperless-ngx patched wheels (#14838)
They are built from a patched fork that carries
upstream PRs including NEON on Linux arm64, memory-safety fixes and
performance improvements for both reading and cosine ranking
2026-11-25 18:12:57 +00:00
GitHub Actions 69142c043c Auto translate strings 2026-11-25 17:56:28 +00:00
Trenton H b9c7a21340 Enhancement: Answer chat questions from all retrieved chunks in one call (#14851)
* Enhancement: Answer chat questions from all retrieved chunks in one LLM call

The chat response synthesizer packed the retrieved chunks using the embedding
chunk size as its limit, so nothing merged and each question took 3 to 6
sequential LLM calls. Use the configured context size as the limit instead,
so the chunks share one prompt.

If the server rejects the larger prompt with a 400, log a warning naming
PAPERLESS_AI_LLM_CONTEXT_SIZE and retry once with the embedding chunk size,
as before. The retry only happens before anything has streamed.

* Fne, annotate chat synthesizer llm as LLM
2026-11-25 09:54:50 -08:00
Trenton H 2d83770098 Fix: Stream AI chat natively async so a disconnect cancels the LLM request (#14850)
* Fix: stream AI chat natively async so a disconnect cancels the LLM request

The chat answer was a sync generator wrapped for ASGI, pulling each chunk
through sync_to_async(next). A client disconnect cancelled the response
task, but the worker thread waiting on the LLM could not be interrupted,
so the upstream request kept generating the whole answer for nobody.

Make stream_chat_with_documents an async generator. All the blocking setup
(ORM queries, the index read lock and its thread-bound sqlite connection,
the query embedding, building the LLM client) moves into one sync
_prepare_chat called once through sync_to_async, which also hands the DB
connection back before the answer streams. The answer then streams through
llama-index's asynthesize over the pinned async httpx clients, so a
disconnect cancels the LLM request directly. The view returns the async
generator as is, replacing the sync-to-async wrapper.

The async pinned transport resolved hostnames with a blocking getaddrinfo
on the event loop, which would stall the whole worker on slow DNS now that
chat uses it in the web server. Resolve in a thread instead, and add the
async counterparts of the existing transport tests.

* Ensures all the resources are closed even in odd cases and not just by gc
2026-11-25 09:54:50 -08:00
GitHub Actions faa6f09f28 Auto translate strings 2026-11-23 19:47:58 +00:00
Trenton H 098694c6e4 Chore: Remove dead code (#14817)
* Chore: remove unused is_file_ext_supported

Nothing in production called it, only its own test.

* Chore: remove unused Tag.parent_pk

It was an alias of tn_parent_id used only by two test asserts, which now use tn_parent_id directly.

* Chore: remove unused SanityCheckMessages summary properties

has_global_issues was never referenced and total_issue_count was only asserted in tests. The two private issue counters that fed it are removed as well, and the tests assert on has_error and has_warning instead.

* Chore: remove unused DocumentViewSet._has_document_permissions

It duplicated has_document_operation_permissions and had no callers.

* Chore: remove legacy DocumentParser base class

Parsers are resolved through the parser registry and ParserProtocol now, and nothing referenced this class. Its now unused imports are removed too.

* Chore: remove unused ColorField and DeprecatedColors

No serializer used ColorField, and DeprecatedColors was only referenced by it.

* Chore: remove unused RtlLanguageException

A leftover from the old tesseract parser, nothing referenced it.

* Chore: remove unused TASK_WORKERS setting

An alias of CELERY_WORKER_CONCURRENCY that nothing read. PAPERLESS_TASK_WORKERS is unchanged.

* Chore: remove unused GNUPG_HOME setting

Nothing read it. The mail GPG code uses EMAIL_GNUPG_HOME.

* Chore: remove unused test helpers

Drops the shared_samples_dir fixture, MailAttachmentMock, _SHORT_TEXT and _make_extract_text, none of which any test used.
2026-11-23 19:46:34 +00:00
shamoon 0399008fb7 Fix: fix password removal for non-ASCII passwords on older PDFs (#14856) 2026-11-23 10:12:11 -08:00
shamoon f722730db7 mb-5 2026-11-22 13:21:40 -08:00
Trenton H 8866538369 Chore(deps): bump packages with open security advisories (#14810)
Clears the Dependabot alerts for twisted, autobahn, pyasn1, tornado and oauthlib.
2026-11-22 13:11:09 -08:00
Trenton H 245e819cb5 Chore: Bumps nltk to 3.10.4 to clear its 14 Dependabot alerts (#14811) 2026-11-22 10:42:18 -08:00
Trenton H 40fed2c70f Bumps psycopg-c to 3.3.8 (#14764) 2026-11-22 10:06:36 -08:00
shamoon 40598db447 Fix/tweak: include other loopbacks in default ALLOWED_HOSTS (#14846) 2026-11-22 09:27:53 -08:00
GitHub Actions d1e574ff8f Auto translate strings 2026-11-22 16:51:28 +00:00
shamoon 94ee54e4a6 Enhancement: nested tag 'split' display (#14843) 2026-11-22 08:49:24 -08:00
shamoon 51499afa5a Feature: What's new (in-app release notes) (#14835) 2026-11-22 16:48:54 +00:00
Trenton H d00da2b2ee Chore: bump jbig2enc to 0.32 (#14758) 2026-11-22 08:41:39 -08:00
Trenton H 4973be8499 Fix: Add socket timeout options for broker and celery during status API (#14824) 2026-11-19 07:20:11 -08:00
shamoon 14252054a1 Fix/tweak: update form inputs while typing (#14821) 2026-11-18 16:28:02 -08:00
github-actions[bot]andshamoon bcfdfcaa29 Documentation: Add v3.5.1 changelog (#14814)
* Changelog v3.5.1 - GHA

* Modify changelog for paperless-ngx version 3.5.1

Updated changelog to reflect changes in version 3.5.1.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2026-11-17 21:52:43 -08:00
shamoon 35b0439195 Bump version to 3.5.1 v3.5.1 2026-11-17 21:05:28 -08:00
github-actions[bot]andCrowdin Bot f21f6b9795 New Crowdin translations by GitHub Action (#14798)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-11-18 04:15:05 +00:00
Trenton H 7977093e83 Chore: restrict uv lock environments to supported architectures (#14759)
* Chore: restrict uv lock environments to supported architectures

Limit the lock to Linux x86_64, Linux aarch64 and macOS arm64. Locked
versions are unchanged; only the unused wheel entries are removed.

* Chore: restrict uv lock environments to CPython

Add platform_python_implementation == 'CPython' to each supported
environment so the lock only resolves for interpreters we actually run on.
Basically PyPy was never supported anyway
2026-11-17 21:16:40 +00:00
shamoon 237521ec4b Fix: skip dont use set_actor if audit log disabled (#14808) 2026-11-17 21:02:16 +00:00
GitHub Actions 0596579d4b Auto translate strings 2026-11-17 20:49:24 +00:00
shamoon a22579e311 Tweak: adjust chat timing for streaming (#14805) 2026-11-17 20:47:55 +00:00
Trenton H 199d1a88e9 Fix: stream AI chat answers under ASGI (#14803) 2026-11-17 20:47:55 +00:00
GitHub Actions f68c093097 Auto translate strings 2026-11-17 11:38:40 +00:00
shamoon b5d6009e15 Tweak/fix: retain bulk edit selection after queuing operation (#14797) 2026-11-17 03:37:03 -08:00
github-actions[bot] c3fa454ffa Changelog v3.5.0 - GHA (#14792)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-16 19:48:40 -08:00
shamoon bfd0d7fe36 Bump version to 3.5.0 v3.5.0 2026-11-16 19:20:01 -08:00
github-actions[bot]andCrowdin Bot 48c7a11195 New Crowdin translations by GitHub Action (#14761)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-11-17 03:11:47 +00:00
GitHub Actions 9ba98d1cb3 Auto translate strings 2026-11-17 00:25:18 +00:00