fix: route cloud debug plugins to runtime owner - #779
Merged
Conversation
fatelei
approved these changes
Jul 27, 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
Remote debug plugins are now identified using the persisted installation runtime type instead of inferring their runtime type from the plugin author's format.
Background
Historically,
RemotePluginRuntime.Identity()replaced the plugin manifest author with the tenant UUID:PluginUniqueIdentifier.RemoteLike() therefore used “the author is a UUID” as an implicit marker for remote debug plugins.
This behavior changed in #731 while fixing #730. To keep plugin_id consistent between runtime listings and installation records, remote debug identities started preserving the manifest author:
Preserving the manifest author was the correct fix for plugin identity consistency, but it invalidated the UUID-based remote runtime detection.
#761 later restored cross-node redirection for remote debug plugins, but continued to gate the redirect logic with:
For identities such as langgenius/openai, RemoteLike() returns false.
In a multi-node serverless deployment, a remote debug runtime only exists on the node that owns the debugging connection. Requests routed to that node succeed, while requests routed to another replica are treated as normal serverless invocations. Since a newly debugged plugin does not have a serverless runtime, those requests fail with a runtime/node-not-found error.
This made the issue appear intermittent and dependent on load-balancer routing.
Type of Change
Essential Checklist
Testing
Bug Fix (if applicable)
Fixes #123orCloses #123)Additional Information
Please provide any additional context that would help reviewers understand the changes.