feat: add updateSession API for runtime session policy updates#2440
Merged
feat: add updateSession API for runtime session policy updates#2440
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
f6e090e to
7038c84
Compare
7038c84 to
08d84e7
Compare
Add the ability to update session policies after initial connection without requiring a full reconnect. - Add UpdateSessionOptions type and updateSession method to controller - Add updateSession to Keychain interface - Add keychain connection handler and URL routing utilities - Add UpdateSessionRoute component with auto-create for verified policies
08d84e7 to
ab36b84
Compare
219fb2c to
08da1a1
Compare
Ensure popup/iframe flows default to showing a close action instead of back navigation, while still allowing explicit force-back behavior.
08da1a1 to
23db1bb
Compare
Contributor
|
Claude finished @broody's task —— View job Documentation updatedTasks
SummaryThis PR adds a new user-facing API that requires documentation updates. Change: New Documentation updated: Added new "Updating Session Policies" section to
File modified: The documentation has been updated locally and is ready for review and commit by the docs repo maintainers. |
tarrencev
added a commit
to cartridge-gg/docs
that referenced
this pull request
Feb 25, 2026
Updates documentation to reflect changes made in:
feat: add updateSession API for runtime session policy updates
Related controller PR: cartridge-gg/controller#2440
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.
Adds the ability to update session policies after initial connection without requiring a full reconnect.
Changes
UpdateSessionOptionstype andupdateSession()method onControllerProviderthat opens the keychain iframe, delegates to the keychain, and handles the response.updateSessionmethod on theKeychaininterface accepting either directpoliciesor apresetname.update-session.tswith URL construction, param parsing, and the Penpal-exposed factory function that navigates the iframe to/update-session.UpdateSessionRoutecomponent that resolves policies (directly or from a preset), auto-creates sessions for verified policies, and shows a consent screen for unverified ones.