Skip to content

Comments

performance: support multiple contexts#70

Open
bbbugg wants to merge 47 commits intomainfrom
performance/muli-context
Open

performance: support multiple contexts#70
bbbugg wants to merge 47 commits intomainfrom
performance/muli-context

Conversation

@bbbugg
Copy link
Member

@bbbugg bbbugg commented Feb 15, 2026

中文:
由于近期 AIStudio 更新,原有的账号登录逻辑已发生变更,导致该分支的多账号同时登录功能暂时不兼容。请等待后续开发与适配更新。

English:
Due to recent updates to AIStudio, the original account login logic has changed, causing the multi-account concurrent login feature in this branch to become incompatible. Please wait for further development and compatibility updates.


支持多个账号同时登录,切换账号的时间降低到2秒。

Support multiple accounts to log in simultaneously, reducing the time to switch accounts to 2 seconds.

@bbbugg bbbugg marked this pull request as draft February 15, 2026 09:27

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

…ly and enhance authIndex validation in addConnection

This comment was marked as outdated.

@bbbugg bbbugg requested a review from Copilot February 18, 2026 15:17
@bbbugg bbbugg marked this pull request as ready for review February 18, 2026 15:22

This comment was marked as outdated.

This comment was marked as outdated.

bbbugg and others added 8 commits February 19, 2026 10:21
…dation

- Add _safeCloseWebSocket() helper method to both ConnectionRegistry and ProxyServerSystem
- Check WebSocket readyState before calling close() to avoid errors on already closing/closed connections
- Replace silent error ignoring with proper logging (warn level for failures, debug for already-closed)
- Apply safe close to all WebSocket termination points: invalid authIndex validation and duplicate connection handling
- Improves robustness and debuggability by logging close failures instead of silently ignoring them

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…p operations

- Replace /* ignore */ comments with descriptive warning logs in ConnectionRegistry and RequestHandler
- Log failed message queue closures with request ID for better debugging
- Log failed context closures with account index and error message
- Improves observability and debugging capabilities for cleanup operations
- Maintains non-blocking behavior while providing visibility into failures

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

This comment was marked as outdated.

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant