WeKnora/internal/handler/session
lyingbug 061319581d refactor(chat): build SSE payload after the liveness check
In public resource URL mode, building the payload consumes the chunk into the
holdback buffer, so returning between build and write would drop it. Reusing
emitStreamEvent also removes the duplicated flush-before-completion logic.

Co-authored-by: lyingbug <lyingbug@users.noreply.github.com>
2026-08-05 14:42:51 +08:00
..
agent_stream_handler.go fix(chunks): retain questions across content edits 2026-07-28 20:23:48 +08:00
attachment_processor.go feat: add EPUB and MHTML document support 2026-06-16 11:25:27 +08:00
continue_stream_resource_urls_test.go test(api): cover resource_urls=public across the rewriter, handlers and SSE wire 2026-08-05 14:42:51 +08:00
handler.go feat(session): gate IM/embed/API channel sessions behind admin 2026-07-20 20:31:54 +08:00
helpers.go fix(chunks): retain questions across content edits 2026-07-28 20:23:48 +08:00
helpers_test.go fix(search): harden tag scope resolution after #1907 2026-07-08 10:55:42 +08:00
image_upload.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
qa.go docs(api): document resource_urls and RESOURCE_URL_MODE 2026-08-05 14:42:51 +08:00
resolve_agent_test.go fix: harden shared agent source selector validation 2026-07-30 12:28:23 +08:00
resource_urls.go feat(api): add resource_urls=public to return directly loadable file URLs 2026-08-05 14:42:51 +08:00
resource_urls_test.go test(api): cover resource_urls=public across the rewriter, handlers and SSE wire 2026-08-05 14:42:51 +08:00
stream.go refactor(chat): build SSE payload after the liveness check 2026-08-05 14:42:51 +08:00
temporary_attachment_persist_test.go feat(attachments): implement normalization and limits for temporary attachment IDs 2026-07-16 17:41:27 +08:00
temporary_document.go fix: harden shared agent source selector validation 2026-07-30 12:28:23 +08:00
title.go feat(session): implement strict owner scope for API-key sessions 2026-07-20 19:31:02 +08:00
types.go fix: harden shared agent source permissions 2026-07-30 12:28:23 +08:00
wiki_fixer_scope.go fix(session): scope wiki fixer to shared KB tenant 2026-05-21 11:19:19 +08:00
wiki_fixer_scope_test.go fix(session): scope wiki fixer to shared KB tenant 2026-05-21 11:19:19 +08:00