Skip to content

feat: add ability to detect changed tools for dynamic configs - #13

Merged
thedadams merged 1 commit into
obot-platform:mainfrom
thedadams:push-srmyvxuyzwpo
Sep 10, 2026
Merged

thedadams merged 1 commit into
obot-platform:mainfrom
thedadams:push-srmyvxuyzwpo

Conversation

@thedadams

Copy link
Copy Markdown
Member

If we are using a dynamic config that is provided for each request, then we have to track the tool list so that we can send notifications when the list changes.

For stateless connections, the "embedding server" must pass a configID for tracking.

If we are using a dynamic config that is provided for each request,
then we have to track the tool list so that we can send notifications
when the list changes.

For stateless connections, the "embedding server" must pass a configID
for tracking.

Signed-off-by: Donnie Adams <donnie@obot.ai>
Copilot AI balanced review requested due to automatic review settings September 10, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation is synchronized, lifecycle-aware, documented, and covered by focused integration tests.

Pull request overview

Adds configuration-scoped tool-change detection and notifications for dynamic stateless requests.

Changes:

  • Introduces context-based configuration IDs.
  • Tracks tool snapshots and notifies active subscribers when tools change.
  • Adds lifecycle and protocol-level tests plus usage documentation.
File summaries
File Description
README.md Documents configuration IDs and notification behavior.
context.go Adds configuration ID context helpers.
composite.go Connects notification tracking to frontend middleware.
handler.go Detects tool-list changes per request.
notifications.go Manages configuration-scoped subscribers and snapshots.
notifications_test.go Tests subscription cleanup.
http_tool_changes_test.go Tests notifications across protocol versions.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@thedadams
thedadams merged commit 4906ff9 into obot-platform:main Sep 10, 2026
4 checks passed
@thedadams
thedadams deleted the push-srmyvxuyzwpo branch September 10, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants