Conversation
added 10 commits
February 20, 2026 23:43
…get-enhancement
…get-enhancement
…get-enhancement
…get-enhancement
…get-enhancement
added 2 commits
February 24, 2026 09:38
…in content script
…get-enhancement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request introduces several stability improvements and architectural cleanups across the Marketrix widget ecosystem. Key highlights include robust message handling in the Chrome extension, stricter tool validation in the WidgetProvider, increased schema constraints for QA requests, and a comprehensive consolidation of project documentation.
Type of Change
Changes
Chrome Extension
content.jsmessage listener to handle errors gracefully and ensuresendResponseis called synchronously to prevent "message port closed" errors.popup.jsto use a fire-and-forget pattern for tab messaging, relying on the content script's improved reliability.chrome-extension/README.mdto include detailed configuration options, extended attributes, and troubleshooting steps.Widget Core & Context
ALLOWED_TOOLSwhitelist inWidgetContextto prevent the execution of unauthorized or unknown agent commands.processedRequestIdsmanagement system with a rolling buffer (max 1000 IDs) to prevent duplicate processing of WebSocket messages.WebSocketClientwith a 10-second connection timeout and converted the connection logic to a Promise-based flow for better error handling.SessionManager.SDK & Schema
QADocumentEntitySchemaandQADocumentCreateSchemato enforce amax(1000)character limit onadditional_instructions.CI/CD & Documentation
/docsand the.cursorrulesfile, moving relevant technical details and debugging guides into the primaryREADME.md.Related Issues
N/A
Testing Checklist
Note: Manual testing was performed on the Chrome extension injection flow and the WebSocket reconnection logic.
Code Quality Checklist
npm run build)npm run type-check)npm run lint)npm run format)npm run imports:fix)npm run code:check)Breaking Changes
additional_instructionsfield now has a 1000-character maximum. While technically a narrowing of the type, it may affect users attempting to send extremely long instruction strings.Additional Context
ALLOWED_TOOLSlist in theWidgetContextsignificantly reduces the attack surface for malicious WebSocket messages.README.mdhave been updated to reflect the current state of the SDK, including new recording control functions (startRecording,stopRecording).