Repository navigation
feat(api): record who started each thread, and list them in the web client - #184
Merged
Merged
Conversation
ciaransweet
force-pushed
the
feat/thread-owner
branch
from
October 7, 2026 16:07
30b66aa to
1b1d554
Compare
…lient create_router and create_app take an `owner` hook: a function from the request to an opaque identifier, or None. The first run on a thread puts it on the checkpoints' metadata under `owner`; later runs leave it alone, so the owner is whoever sent the first message. GET /threads lists the caller's threads, newest first, with each one's first question and start time, and refuses a caller with no identity. No identity is recorded as "", because LangGraph drops None from run metadata. Nothing is enforced yet, and nothing is added to the database: the listing filters checkpoint metadata, which on Postgres scans the checkpoints table. The bundled web client lists those threads in a collapsible column on the right, and opens one on click. Without the hook it draws no column. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ciaransweet
force-pushed
the
feat/thread-owner
branch
from
October 7, 2026 16:18
1b1d554 to
3f7bd9a
Compare
yellowcap
approved these changes
Oct 9, 2026
yellowcap
left a comment
Member
There was a problem hiding this comment.
Its my thread! 😆 ! Looks good, thanks @ciaransweet !
ciaransweet
pushed a commit
that referenced
this pull request
Oct 13, 2026
🤖 I have created a release *beep* *boop* --- ## [0.10.6](mcp-toolsets-runtime-v0.10.5...mcp-toolsets-runtime-v0.10.6) (2026-10-13) ### Features * **api:** record who started each thread, and list them in the web client ([#184](#184)) ([d076d88](d076d88)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: ds-release-bot[bot] <116609932+ds-release-bot[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 an
ownerhook tocreate_routerandcreate_app: a function from the request to an opaque identifier, orNone.ownerin its checkpoints' metadata. Later runs leave it unchanged, so the owner is whoever sent the first message.GET /threadslists the caller's threads, newest first, each with its first question and start time. It is added only with the hook, and answers 403 for a caller with no identity."", because LangGraph dropsNonefrom run metadata. A thread from before the hook has noownerkey.checkpoints; a GIN index onmetadatais the fix if that becomes slow.Tested against InMemorySaver and a real Postgres (
MCP_AGENT_TEST_POSTGRES), and the web client locally against dss with an accounts-test sign-in.🤖 Generated with Claude Code