- 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. |
||
|---|---|---|
| .. | ||
| agent_stream_handler.go | ||
| attachment_processor.go | ||
| handler.go | ||
| helpers.go | ||
| image_upload.go | ||
| qa.go | ||
| stream.go | ||
| title.go | ||
| types.go | ||
| wiki_fixer_scope.go | ||
| wiki_fixer_scope_test.go | ||