Skip to content

Auto-kill conflicting port 3003 process on startup #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MasuRii
Copy link

@MasuRii MasuRii commented Jun 1, 2025

image
image

MasuRii added 4 commits June 1, 2025 22:11
…3003 process on startup' and reflect that on the server!
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.
Add auto-kill feature for conflicting port and improve message sending robustness
…sing and proper UTF-8 handling for debugger responses
@MasuRii MasuRii changed the title Feature: Auto-kill conflicting port 3003 process on startup Auto-kill conflicting port 3003 process on startup Jun 4, 2025
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