Commit graph

9 commits

Author SHA1 Message Date
BinaryBeastMaster
1cfc01411e added websocket method for essage capture 2025-07-24 00:23:41 -07:00
BinaryBeastMaster
c4a5553e7e Resolve merge conflict: integrate text encoding fixes while preserving local improvements 2025-07-07 20:14:54 -07:00
BinaryBeastMaster
0b6f9798cc Merge branch 'fix-text-encoding-clean' of https://github.com/MasuRii/chat-relay into MasuRii-fix-text-encoding-clean 2025-07-07 20:12:55 -07:00
BinaryBeastMaster
fbc488842f changes to relay settings 2025-07-07 20:05:50 -07:00
BinaryBeastMaster
13d6e82732 Resolve merge conflicts: preserve local improvements while integrating PR changes 2025-07-07 19:58:52 -07:00
MasuRii マス リ
a7664217cd Fix text encoding issues by implementing URI encoding for message passing and proper UTF-8 handling for debugger responses 2025-06-04 09:54:47 +08:00
MasuRii マス リ
16946db2b1 Fix text encoding issues by implementing URI encoding for message passing and proper UTF-8 handling for debugger responses 2025-06-04 09:36:00 +08:00
MasuRii マス リ
fc7b28a737 Fix: Improve AI Studio message sending robustness and handle tab updates
This commit addresses multiple issues affecting message delivery
to AI Studio:

1.  Resolved a ReferenceError in `AIStudioProvider.sendChatMessage`
    where `sendButton` was used before definition, preventing message
    submission. The logging has been corrected.

2.  Implemented logic in `background.js` to detect if an active
    chat request to AI Studio is interrupted by a tab update
    (e.g., navigation or reload). If an interruption is suspected,
    the command is re-queued and re-sent to the content script
    after the tab and debugger have re-initialized. This aims to
    prevent requests from being lost due to page refreshes.

3.  Ensured `currentRequestTargetTabId` is correctly managed and
    nulled when request processing completes or fails, supporting
    the resend logic.

These changes significantly improve the reliability of sending
messages to AI Studio, particularly in dynamic page environments.
2025-06-03 12:00:29 +08:00
BinaryBeastMaster
25abcd2974 Initial commit 2025-05-10 15:09:23 -07:00