feat: add newChat as URL param and top-level trigger param#24
Open
naftalis-elementor wants to merge 1 commit into
Open
feat: add newChat as URL param and top-level trigger param#24naftalis-elementor wants to merge 1 commit into
naftalis-elementor wants to merge 1 commit into
Conversation
- Add angie-new-chat=1 hash param for prompt URLs (#angie-prompt=...&angie-new-chat=1) - Move newChat from options to top-level in AngieTriggerRequest (types, payload) - Parse newChat from URL in handlePromptHash; forward newChat in sdk.ts relay
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension. |
2 tasks
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
#angie-prompt=...&angie-new-chat=1— when present, opens in new chat.newChatis now a top-level field onAngieTriggerRequest(no longer underoptions).handlePromptHashparsesangie-new-chat=1from the hash and passesnewChatintotriggerAngie;sdk.tsforwardsnewChatin the payload to the iframe.Changes
src/types.ts:newChat?: booleanonAngieTriggerRequest;optionsonly hastimeout.src/angie-mcp-sdk.ts: Parseangie-new-chat=1in hash, passnewChattotriggerAngieand in postMessage payload.src/sdk.ts: Destructure and forwardnewChat(notoptions) to iframe.Testing
npm test/npx jest— all 12 suites, 113 tests pass.✨ PR Description
Purpose: Add newChat parameter to SDK trigger API and URL hash parsing to enable control over chat session creation from external integrations.
Main changes:
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how