WeKnora/internal/handler/session
wizardchen 362bc7f6e5 feat(session): enhance stop watcher with timeout for improved resource management
- Introduced a constant `stopWatcherMaxDuration` to limit the lifetime of the stop watcher, preventing potential resource leaks in pathological stream scenarios.
- Updated the `startStopWatcher` function to use a context with a timeout, ensuring the watcher self-terminates after the specified duration.
- Refactored the handling of stop events to improve clarity and maintainability, ensuring the watcher exits appropriately on terminal stream events or user requests.
- Removed the `stopWatchCancel` from the `sseStreamContext` as the watcher now manages its own lifecycle more effectively.
2026-06-04 15:48:04 +08:00
..
agent_stream_handler.go feat(observability): log end-to-end TTFB on both ends of chat stream 2026-05-12 21:16:37 +08:00
attachment_processor.go fix:attachment_document_failed 2026-04-29 22:34:13 +08:00
handler.go feat(system): consolidate system admin and settings into one Settings panel 2026-05-26 21:13:56 +08:00
helpers.go feat(session): enhance stop watcher with timeout for improved resource management 2026-06-04 15:48:04 +08:00
image_upload.go feat(video): update ASR terminology and file type labels for improved clarity 2026-04-14 22:59:14 +08:00
qa.go feat(session): enhance stop watcher with timeout for improved resource management 2026-06-04 15:48:04 +08:00
stream.go fix(session): map ErrSessionNotFound to 404 across all handlers 2026-05-14 16:47:36 +08:00
title.go feat: 支持知识库选择模式和标题生成模型配置 2025-12-29 14:35:13 +08:00
types.go feat(session): persist last request state for UI restoration 2026-05-18 22:28:00 +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