cherry-studio/src/main
SuYao 61aae7376a
fix: add dispose method to prevent abort listener leak (#12269)
* fix: add dispose method to prevent abort listener leak

Add dispose() method to StreamAbortController that explicitly removes
the abort event listener when stream ends normally. Previously, the
listener would only be removed when abort was triggered ({ once: true }),
but if the stream completed normally without abort, the listener would
remain attached until garbage collection.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: format code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-08 17:55:15 +08:00
..
__tests__ feat(mcp): add MCP Hub server for multi-server tool orchestration (#12192) 2026-01-07 16:35:51 +08:00
apiServer fix: add dispose method to prevent abort listener leak (#12269) 2026-01-08 17:55:15 +08:00
configs fix[SelectionAssistant]: shift+click behavior in macOS and clipboard behavior in Windows (#8390) 2025-07-23 17:24:26 +08:00
integration feat: enable cherryin provider 2025-09-23 20:19:05 +08:00
knowledge fix: ollama url (#11611) 2025-12-03 21:03:07 +08:00
mcpServers feat(mcp): add MCP Hub server for multi-server tool orchestration (#12192) 2026-01-07 16:35:51 +08:00
services fix(SelectionService): add macOS key code support for modifier key detection (#12355) 2026-01-08 17:42:17 +08:00
utils feat(mcp): add MCP Hub server for multi-server tool orchestration (#12192) 2026-01-07 16:35:51 +08:00
bootstrap.ts refactor: move initAppDataDir function to a new utils module (#8337) 2025-07-21 15:46:14 +08:00
config.ts feat: enable cherryin provider 2025-09-23 20:19:05 +08:00
constant.ts feat: support portable config dir (#5039) 2025-04-24 17:23:56 +08:00
electron.d.ts feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00
env.d.ts feat: added vite_main_bundle_id config and improved code cleanliness 2024-09-15 10:35:02 +08:00
index.ts fix(Tray): set X11 window class and name to cherry-studio (#12348) 2026-01-08 17:08:51 +08:00
ipc.ts fix: prevent zoom reset during in-page navigation (#12257) 2026-01-03 22:07:53 +08:00