Repository navigation
feat(sessions): pass relaygate group labels through to the dashboard - #204
Merged
Merged
Conversation
…talog route
relaygate (groupLabels) annotates readable sessions with `relaygate: {gid, label}`.
The list route already spreads upstream items, so the field reaches the
dashboard; the catalog route rebuilds its body, so it now passes `relaygate`
through, keeping only a non-negative integer gid and a label in relaygate's
charset. Documented in openapi (RelaygateGroupLabel).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 16, 2026
Merged
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.
What
relaygate's new
groupLabelspolicy (AgentWorkforce/relaygate#39) addsrelaygate: {"gid": 22, "label": "pit"}to each readable session a labeled group owns, on the session list and on one session'smetadata/catalog.GET .../sessions(list):sessionItemalready spreads upstream items, so the field reaches the dashboard unchanged. Now covered by a test.GET .../sessions/:id/catalog: the route rebuilds its body and dropped the field. It now passesrelaygatethrough, keeping onlygid(non-negative safe integer) andlabel(relaygate's charset, <=24 chars); anything else, or a malformed value, is dropped.RelaygateGroupLabelschema onDashboardSessionCatalog. CHANGELOG entry.No behaviour change when the read API is not relaygate or no label is configured.
Tests
npm run typecheck;node --import tsx --test test/sessions.test.ts(45 pass, incl. new "relaygate group labels reach the dashboard..."); openapi doc tests.Consumer: relay-web badge PR (follows).
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Passes relaygate's owning-group labels through to the dashboard so the session catalog now shows them alongside the session list.
relaygatefield; it now passes it through, keeping onlygid(non-negative safe integer) andlabel(relaygate's charset, up to 24 chars). Malformed values are dropped.RelaygateGroupLabelschema to the OpenAPI spec, a CHANGELOG entry, and test coverage for both routes.Written for commit b15ccd8. Summary will update on new commits.