Skip to content

chore: change default room version to 11 - #416

Merged
sampaiodiego merged 1 commit into
mainfrom
chore-room-version-default-to-11
Oct 19, 2026
Merged

sampaiodiego merged 1 commit into
mainfrom
chore-room-version-default-to-11

Conversation

@sampaiodiego

@sampaiodiego sampaiodiego commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

View guided diff

Summary by CodeRabbit

  • Updates
    • Updated the default room version from 10 to 11 when no version is configured.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8147c30a-593a-4499-a82d-9763736637a7
📥 Commits

Reviewing files that changed from the base of the PR and between 3ab79f0 and d41a6e7.

📒 Files selected for processing: 1
  • packages/federation-sdk/src/services/config.service.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout: 2
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: Code Quality Checks(lint, test, tsc)
🔇 Additional comments: 1
packages/federation-sdk/src/services/config.service.ts: 1

6-6: LGTM!

Walkthrough

When no room version is configured, ConfigService.defaultRoomVersion now uses version 11 instead of version 10.

Changes

Room version configuration

Layer / File(s) Summary
Fallback default room version
packages/federation-sdk/src/services/config.service.ts
The fallback value changes from 10 to 11.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested labels: type: chore

Merge Risk: ⚪ Minimal · up to d41a6

The default changes to room version 11, which the SDK’s supported creation and validation paths accept. No actionable merge-blocking risk was established.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating the default room version from 10 to 11.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

🔧 Biome (2.5.14)
packages/federation-sdk/src/services/config.service.ts

Biome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins.

Warning

Errors were encountered while retrieving linked issues.

Errors: 1
  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.

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

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/federation-sdk/src/services/config.service.ts">

<violation number="1" location="packages/federation-sdk/src/services/config.service.ts:6">
P1: Changing the default to '11' breaks remote joins to newly created rooms. The make_join handler still advertises only `['10']` (profiles.controller.ts:123), so `ProfilesService.makeJoin` rejects every v11 room with M_INCOMPATIBLE_ROOM_VERSION. Advertise '11' there (e.g. `['10', '11']`) before merging, and check the make_join room_version response as well.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

import * as z from 'zod';

const DEFAULT_ROOM_VERSION: RoomVersion3To11 = '10';
const DEFAULT_ROOM_VERSION: RoomVersion3To11 = '11';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1: Changing the default to '11' breaks remote joins to newly created rooms. The make_join handler still advertises only ['10'] (profiles.controller.ts:123), so ProfilesService.makeJoin rejects every v11 room with M_INCOMPATIBLE_ROOM_VERSION. Advertise '11' there (e.g. ['10', '11']) before merging, and check the make_join room_version response as well.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At packages/federation-sdk/src/services/config.service.ts, line 6:

<comment>Changing the default to '11' breaks remote joins to newly created rooms. The make_join handler still advertises only `['10']` (profiles.controller.ts:123), so `ProfilesService.makeJoin` rejects every v11 room with M_INCOMPATIBLE_ROOM_VERSION. Advertise '11' there (e.g. `['10', '11']`) before merging, and check the make_join room_version response as well.</comment>

<file context>
@@ -3,7 +3,7 @@ import { PersistentEventFactory, type RoomVersion3To11 } from '@rocket.chat/fede
 import * as z from 'zod';
 
-const DEFAULT_ROOM_VERSION: RoomVersion3To11 = '10';
+const DEFAULT_ROOM_VERSION: RoomVersion3To11 = '11';
 
 export interface AppConfig {
</file context>

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.71%. Comparing base (3ab79f0) to head (d41a6e7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #416      +/-   ##
==========================================
+ Coverage   53.51%   53.71%   +0.19%     
==========================================
  Files         113      113              
  Lines       12706    12706              
==========================================
+ Hits         6800     6825      +25     
+ Misses       5906     5881      -25     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sampaiodiego
sampaiodiego merged commit 7411cda into main Oct 19, 2026
3 checks passed
@sampaiodiego
sampaiodiego deleted the chore-room-version-default-to-11 branch October 19, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants