stumpylog
179307d57a
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.
2026-11-17 10:04:56 -08:00
stumpylog
a690885a8a
Fix: stream AI chat answers under ASGI
2026-11-17 07:42:51 -08: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] and Crowdin 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
shamoon
de75249e51
Chorehancement: move all bulk operations to async hand-off ( #14773 )
2026-11-17 00:23:44 +00:00
GitHub Actions
28bb63824f
Auto translate strings
2026-11-16 15:29:38 +00:00
Trenton H
64bf7f8457
Fix: use a constant password mask and consolidate the no-change check ( #14784 )
...
Return a constant 10 character mask instead.
Move ObfuscatedPasswordField into paperless/fields.py so core no longer
imports it from paperless_mail, and add is_obfuscated_password() to
replace the five checks
2026-11-16 15:28:13 +00:00
Trenton H
c177c13acf
Fix: use a PostgreSQL-compatible regex for scheduled workflow filename filters ( #14783 )
...
* Fix: use a PostgreSQL-compatible regex for scheduled workflow filename filters
* Tests for the translation layer
2026-11-16 06:42:34 -08:00
shamoon
4610171a94
Chore (dev): add tsconfig missing types ( #14771 )
2026-11-14 09:33:39 -08:00
GitHub Actions
cf2e2bde71
Auto translate strings
2026-11-14 07:33:25 +00:00
shamoon
aa669aca89
Fix: get users for saved view create dialog ( #14769 )
2026-11-13 23:31:27 -08:00
GitHub Actions
b42bf50b7e
Auto translate strings
2026-11-13 21:15:07 +00:00
shamoon
d31110278b
Fix: ensure ownership for manual WF runs ( #14762 )
2026-11-13 21:13:34 +00:00
GitHub Actions
5d98a5e5c8
Auto translate strings
2026-11-13 19:11:36 +00:00
shamoon
fc8c4e91ec
Fix: dont expect task ID for manual WF run in bulk dialog ( #14763 )
2026-11-13 11:10:06 -08:00
GitHub Actions
e746e008a0
Auto translate strings
2026-11-13 18:15:40 +00:00
shamoon
897f6a9e5a
Tweak: alter wording, force default for single manual wf dialog ( #14760 )
2026-11-13 10:14:23 -08:00
shamoon
694619c33e
Fix: add missing css from notes markdown PR
2026-11-13 09:57:16 -08:00
github-actions[bot] and Crowdin Bot
1f2faaec86
New Crowdin translations by GitHub Action ( #14683 )
...
Co-authored-by: Crowdin Bot <support+bot@crowdin.com >
2026-11-13 09:36:19 -08:00
GitHub Actions
6b15d625ed
Auto translate strings
2026-11-13 17:10:14 +00:00
Johannes Hager and shamoon
b63ea77543
Enhancement: render document notes as markdown ( #14626 )
...
---------
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com >
2026-11-13 09:08:20 -08:00
GitHub Actions
bfd5628dcc
Auto translate strings
2026-11-12 21:29:27 +00:00
shamoon
3dbeca603e
Feature: manual workflow trigger ( #14704 )
2026-11-12 13:28:10 -08:00
Trenton H
62d729e301
Fix: Allow AI chat filters over more than 32700 documents ( #14754 )
2026-11-12 12:08:59 -08:00
Trenton H
a1d76f3a19
Fix: Enforce CRLF when writing an email message to the file ( #14745 )
2026-11-12 00:18:43 +00:00
GitHub Actions
f5ca9bbcb6
Auto translate strings
2026-11-11 23:51:43 +00:00
shamoon
60a35edee1
Enhancement: make bulk metadata operations run async ( #14711 )
2026-11-11 15:50:15 -08:00
Trenton H
7cdcd71a6d
Performance: load a cached Hugging Face embedding model without contacting the Hub ( #14728 )
...
Every chat question and AI suggestion request builds the embedding model, and sentence-transformers
checks the Hub for a newer revision each time. With the model already cached that check cost about
2 seconds per request (0.2 seconds without it), and it fails outright when the Hub is unreachable.
Load from the local cache first and only download when the model is missing. A full rebuild still
checks the Hub, so a new model release is picked up together with re-embedding every document
instead of silently mixing revisions.
2026-11-11 21:53:27 +00:00
shamoon
759f9cd22b
Fix: restore image without archive version thumbnail generation ( #14741 )
2026-11-11 10:12:47 -08:00
Trenton H
d05e96cda2
Fix: Blacklist certain OCR user arguments that paperless itself controls/uses ( #14734 )
2026-11-11 03:13:20 +00:00
shamoon
fefce7be1b
Fix: remove redundant ui text filters ( #14736 )
2026-11-10 18:06:51 -08:00
GitHub Actions
cc65226d6d
Auto translate strings
2026-11-11 00:55:05 +00:00
shamoon
00096e0252
Fix: fix allowed_hosts default ( #14735 )
2026-11-11 00:53:49 +00:00
shamoon
2829e78009
Chore: add agents.md, update contributing guidelines ( #14713 )
2026-11-10 23:35:41 +00:00
dependabot[bot] and stumpylog
d7d4014bbd
Chore(deps): Bump the pre-commit-dependencies group with 4 updates ( #14636 )
...
* Chore(deps): Bump the pre-commit-dependencies group with 4 updates
Bumps the pre-commit-dependencies group with 4 updates: [https://github.com/rbubley/mirrors-prettier ](https://github.com/rbubley/mirrors-prettier ), prettier, [https://github.com/astral-sh/ruff-pre-commit ](https://github.com/astral-sh/ruff-pre-commit ) and [https://github.com/tox-dev/pyproject-fmt ](https://github.com/tox-dev/pyproject-fmt ).
Updates `https://github.com/rbubley/mirrors-prettier ` from v3.9.9 to 3.9.10
- [Commits](https://github.com/rbubley/mirrors-prettier/compare/v3.9.9...v3.9.10 )
Updates `prettier` from 3.9.9 to 3.9.10
Updates `https://github.com/astral-sh/ruff-pre-commit ` from v0.16.9 to 0.17.2
- [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases )
- [Commits](https://github.com/astral-sh/ruff-pre-commit/compare/v0.16.9...v0.17.2 )
Updates `https://github.com/tox-dev/pyproject-fmt ` from v2.29.4 to 2.30.3
- [Release notes](https://github.com/tox-dev/pyproject-fmt/releases )
- [Commits](https://github.com/tox-dev/pyproject-fmt/compare/v2.29.4...v2.30.3 )
---
updated-dependencies:
- dependency-name: https://github.com/rbubley/mirrors-prettier
dependency-version: 3.9.10
dependency-type: direct:production
dependency-group: pre-commit-dependencies
- dependency-name: prettier
dependency-version: 3.9.10
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: pre-commit-dependencies
- dependency-name: https://github.com/astral-sh/ruff-pre-commit
dependency-version: 0.17.2
dependency-type: direct:production
dependency-group: pre-commit-dependencies
- dependency-name: https://github.com/tox-dev/pyproject-fmt
dependency-version: 2.30.3
dependency-type: direct:production
dependency-group: pre-commit-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
* Linting fixes
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: stumpylog <797416+stumpylog@users.noreply.github.com >
2026-11-10 17:49:06 +00:00
shamoon
a139bdff46
Fixhancement: add automatic clearing of sessions ( #14722 )
2026-11-10 08:09:25 -08:00
GitHub Actions
936b1b3bfa
Auto translate strings
2026-11-09 06:53:56 +00:00
shamoon
e0c33b3d39
Tweak: chat reference tweaks ( #14723 )
2026-11-08 22:52:34 -08:00
shamoon
32bc5522e9
Update SECURITY.md
2026-11-07 12:24:29 -08:00
GitHub Actions
d5698329f5
Auto translate strings
2026-11-07 20:22:08 +00:00
shamoon
2e0d92d8f5
Fix: two dropdown-related UI fixes ( #14717 )
2026-11-07 12:20:31 -08:00
shamoon
0736c07d8e
Fix: use filtered documents for statistics ASN max ( #14710 )
2026-11-07 07:52:23 -08:00
shamoon
53d9aa34a1
FIx: make config view permissions consistent ( #14709 )
2026-11-07 07:52:12 -08:00
GitHub Actions
19fdc3b815
Auto translate strings
2026-11-07 02:45:43 +00:00
5357be2d43
Performance: stop embedding every document ID in selection_data queries ( #14597 )
...
* Fix: count selection_data from one pass over the filtered documents
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
* Chore: use document type ids in the bulk edit selection_data test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
* Batch search selection data queries
Co-Authored-By: Codex <267193182+codex@users.noreply.github.com >
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com >
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com >
Co-authored-by: Codex <267193182+codex@users.noreply.github.com >
2026-11-06 18:44:18 -08:00
GitHub Actions
2642cefd35
Auto translate strings
2026-11-06 20:20:35 +00:00