Add session creation and browsing to Mason chat UI - #487
Merged
Conversation
elainewang-db
approved these changes
Aug 28, 2026
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
POST /api/session/newto create a fresh UUID session and rotate the existing routing cookieRouting behavior
The client still does not send
session_idin invocation request bodies. The session id is the routing key:__Host-databricks-app-routermason-local-sessionX-Routing-KeyremainsCreating or opening a session replaces the routing cookie, so sticky routing and the LangGraph thread/session id stay identical.
Session Store filtering
The Session Store continues to retain LangGraph checkpoints and durability events. The browser-facing session APIs only return message-shaped items with supported chat roles, and the session picker excludes internal
mason-demo-durabilityexecution sessions.Validation
uv run pytest tests/unit_tests -q— 146 passedmason init --framework langgraph --enable-chat-appproject tests — 27 passed, 1 skippeduv run ruff check src tests templates/agent-langgraph templates/ui/agent-langgraphuv run ruff format --check src tests templates/agent-langgraph templates/ui/agent-langgraphuv run ty checknode --check ui/app.jsAccount-routed workspace support
DATABRICKS_WORKSPACE_IDasX-Databricks-Org-Idfor account/vanity-host profilesintegrations/openaiDemo app
Additional E2E validation · August 28, 2026
mason init --framework langgraph --enable-chat-appscaffold30 passed, 1 skippedtool_step_1andtool_step_2, then resumed onlytool_step_3andtool_step_4on a new processmason-pr487-185019: deploymentSUCCEEDED, appRUNNING, computeACTIVE