Skip to content

feat(sessions): pass relaygate group labels through to the dashboard - #204

Merged
khaliqgant merged 1 commit into
mainfrom
feat/relaygate-group-badge
Nov 16, 2026
Merged

khaliqgant merged 1 commit into
mainfrom
feat/relaygate-group-badge

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

What

relaygate's new groupLabels policy (AgentWorkforce/relaygate#39) adds relaygate: {"gid": 22, "label": "pit"} to each readable session a labeled group owns, on the session list and on one session's metadata/catalog.

  • GET .../sessions (list): sessionItem already 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 passes relaygate through, keeping only gid (non-negative safe integer) and label (relaygate's charset, <=24 chars); anything else, or a malformed value, is dropped.
  • openapi: RelaygateGroupLabel schema on DashboardSessionCatalog. 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


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with 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.

  • The catalog route previously rebuilt its response body and dropped the relaygate field; it now passes it through, keeping only gid (non-negative safe integer) and label (relaygate's charset, up to 24 chars). Malformed values are dropped.
  • Adds the RelaygateGroupLabel schema to the OpenAPI spec, a CHANGELOG entry, and test coverage for both routes.
  • No behavior change when the read API is not relaygate or no label is configured.

Written for commit b15ccd8. Summary will update on new commits.

View guided diff Turn on auto-fix

…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>
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 080af1f2-18ce-4a4e-b312-0c757b995da3
Commits

Reviewing files that changed from the base of the PR and between 59370e2 and b15ccd8.

Files selected for processing: 4

  • CHANGELOG.md
  • openapi.yaml
  • src/sessions/routes.ts
  • test/sessions.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T22:07:06.425634Z b15ccd8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@khaliqgant
khaliqgant merged commit 6838f2f into main Nov 16, 2026
5 checks passed
@khaliqgant
khaliqgant deleted the feat/relaygate-group-badge branch November 16, 2026 22:07
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.

1 participant