fix: inquiries.take not throwing error on clientAction:true#39250
fix: inquiries.take not throwing error on clientAction:true#39250dionisio-bot[bot] merged 2 commits intodevelopfrom
inquiries.take not throwing error on clientAction:true#39250Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 8c577b9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughAdds options parameter propagation to the livechat inquiries take endpoint and introduces comprehensive end-to-end tests for chat limit scenarios, including per-agent, per-department, and global limits with various blocking/allowance conditions. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts (1)
1167-1171: Extract repeated “take inquiry should fail” request into a helper.The same POST + payload +
expect(400)sequence is duplicated many times; a local helper would reduce noise and future maintenance cost.♻️ Proposed refactor
+const expectTakeInquiryToFail = async (args: { + inquiryId: string; + userId: string; + agentCredentials: Credentials; +}) => + request + .post(api('livechat/inquiries.take')) + .set(args.agentCredentials) + .send({ userId: args.userId, inquiryId: args.inquiryId, options: { clientAction: true } }) + .expect(400);- await request - .post(api('livechat/inquiries.take')) - .set(manualUser.credentials) - .send({ userId: manualUser.user._id, inquiryId: inquiry._id, options: { clientAction: true } }) - .expect(400); + await expectTakeInquiryToFail({ + inquiryId: inquiry._id, + userId: manualUser.user._id, + agentCredentials: manualUser.credentials, + });Also applies to: 1210-1214, 1279-1283, 1297-1301, 1363-1367, 1403-1407, 1453-1457
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/meteor/tests/end-to-end/api/livechat/07-queue.ts` around lines 1167 - 1171, Several test blocks repeat the same POST to livechat/inquiries.take with the same payload and expect(400); extract this into a local helper (e.g., takeInquiryShouldFail or expectTakeInquiryToFail) that accepts request, manualUser.credentials, and the inquiry._id (or the whole inquiry) and performs request.post(api('livechat/inquiries.take')).set(manualUser.credentials).send({ userId: manualUser.user._id, inquiryId, options: { clientAction: true } }).expect(400); replace each duplicated sequence (the occurrences using request, api, manualUser, inquiry and expect(400)) with calls to that helper to reduce duplication and improve readability.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@apps/meteor/tests/end-to-end/api/livechat/07-queue.ts`:
- Around line 1084-1094: Replace the fixed sleep in the before hook with a
deterministic wait: after calling updateSetting/updateEESetting in the
before(async () => { ... }) block, poll or await a concrete condition that
proves settings are applied (for example, query the settings API or call a
helper that reads Livechat_enabled, Livechat_Routing_Method,
Omnichannel_enable_department_removal and Livechat_waiting_queue until they
return expected values), or wait for a UI/network response that reflects the
changes, instead of using sleep(1000); keep references to updateSetting,
updateEESetting and remove the hardcoded sleep call.
---
Nitpick comments:
In `@apps/meteor/tests/end-to-end/api/livechat/07-queue.ts`:
- Around line 1167-1171: Several test blocks repeat the same POST to
livechat/inquiries.take with the same payload and expect(400); extract this into
a local helper (e.g., takeInquiryShouldFail or expectTakeInquiryToFail) that
accepts request, manualUser.credentials, and the inquiry._id (or the whole
inquiry) and performs
request.post(api('livechat/inquiries.take')).set(manualUser.credentials).send({
userId: manualUser.user._id, inquiryId, options: { clientAction: true }
}).expect(400); replace each duplicated sequence (the occurrences using request,
api, manualUser, inquiry and expect(400)) with calls to that helper to reduce
duplication and improve readability.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
apps/meteor/app/livechat/imports/server/rest/inquiries.tsapps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📜 Review details
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}
📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation
Files:
apps/meteor/app/livechat/imports/server/rest/inquiries.tsapps/meteor/tests/end-to-end/api/livechat/07-queue.ts
🧠 Learnings (11)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.
Applied to files:
apps/meteor/app/livechat/imports/server/rest/inquiries.tsapps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.
Applied to files:
apps/meteor/app/livechat/imports/server/rest/inquiries.tsapps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Ensure tests run reliably in parallel without shared state conflicts
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Use `test.step()` for complex test scenarios to improve organization in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Implement proper wait strategies for dynamic content in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Utilize Playwright fixtures (`test`, `page`, `expect`) for consistency in test files
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/page-objects/**/*.ts : Utilize existing page objects pattern from `apps/meteor/tests/e2e/page-objects/`
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Group related tests in the same file
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Maintain test isolation between test cases in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.{ts,spec.ts} : Follow Page Object Model pattern consistently in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-12-10T21:00:54.909Z
Learnt from: KevLehman
Repo: RocketChat/Rocket.Chat PR: 37091
File: ee/packages/abac/jest.config.ts:4-7
Timestamp: 2025-12-10T21:00:54.909Z
Learning: Rocket.Chat monorepo: Jest testMatch pattern '<rootDir>/src/**/*.spec.(ts|js|mjs)' is valid in this repo and used across multiple packages (e.g., packages/tools, ee/packages/omnichannel-services). Do not flag it as invalid in future reviews.
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
🔇 Additional comments (3)
apps/meteor/app/livechat/imports/server/rest/inquiries.ts (2)
72-72: Good fix:optionsis now propagated totakeInquiry.This change aligns with the reported regression and enables
clientAction-driven error behavior to reach the take-inquiry logic.
65-72: Request-schema and handler signature are properly aligned foroptions.clientAction.The validator
isPOSTLivechatInquiriesTakeParamsexplicitly definesoptions.clientActionas a boolean field (packages/rest-typings/src/v1/omnichannel.ts:3697-3699), and thetakeInquiryfunction signature matches exactly with the same type structure. The end-to-end flow from REST endpoint to handler is correct.apps/meteor/tests/end-to-end/api/livechat/07-queue.ts (1)
1075-1481: Strong regression coverage for manual-selection limit handling.The new suite exercises the
clientAction: truefailure path and multiple agent/department/global limit transitions in a way that matches the bug objective.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #39250 +/- ##
===========================================
- Coverage 70.71% 70.69% -0.02%
===========================================
Files 3195 3195
Lines 113108 113108
Branches 20526 20489 -37
===========================================
- Hits 79979 79957 -22
- Misses 31082 31096 +14
- Partials 2047 2055 +8
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts (1)
1167-1171: Strengthen 400-case assertions to validate UI-consumable error payloads.Right now these checks assert only HTTP 400. Add assertions for
success: falseplus a stable error field (error/errorType) so the regression coverage also guarantees actionable failure semantics.Proposed pattern
- await request - .post(api('livechat/inquiries.take')) - .set(manualUser.credentials) - .send({ userId: manualUser.user._id, inquiryId: inquiry._id, options: { clientAction: true } }) - .expect(400); + const res = await request + .post(api('livechat/inquiries.take')) + .set(manualUser.credentials) + .send({ userId: manualUser.user._id, inquiryId: inquiry._id, options: { clientAction: true } }) + .expect(400); + + expect(res.body).to.have.property('success', false); + expect(res.body.error || res.body.errorType).to.exist;Also applies to: 1210-1214, 1279-1283, 1297-1301, 1363-1367, 1403-1407, 1453-1457
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/meteor/tests/end-to-end/api/livechat/07-queue.ts` around lines 1167 - 1171, Replace bare HTTP 400 assertions with checks that the response body contains UI-consumable error fields: after calling request.post(api('livechat/inquiries.take')) (and the other similar calls at the listed ranges), assert response.status === 400 and response.body.success === false and that response.body.error or response.body.errorType is present (non-empty string). Locate the test calls using request.post(api('livechat/inquiries.take')) / request.get(api(...)) in this file and update the chain to capture the response (e.g., assign to a variable or use .expect and a function) and add explicit assertions for success:false and a stable error field for each of the occurrences mentioned (1167-1171, 1210-1214, 1279-1283, 1297-1301, 1363-1367, 1403-1407, 1453-1457).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@apps/meteor/tests/end-to-end/api/livechat/07-queue.ts`:
- Around line 1167-1171: Replace bare HTTP 400 assertions with checks that the
response body contains UI-consumable error fields: after calling
request.post(api('livechat/inquiries.take')) (and the other similar calls at the
listed ranges), assert response.status === 400 and response.body.success ===
false and that response.body.error or response.body.errorType is present
(non-empty string). Locate the test calls using
request.post(api('livechat/inquiries.take')) / request.get(api(...)) in this
file and update the chain to capture the response (e.g., assign to a variable or
use .expect and a function) and add explicit assertions for success:false and a
stable error field for each of the occurrences mentioned (1167-1171, 1210-1214,
1279-1283, 1297-1301, 1363-1367, 1403-1407, 1453-1457).
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.changeset/tame-dolphins-draw.mdapps/meteor/app/livechat/imports/server/rest/inquiries.tsapps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: 📦 Build Packages
- GitHub Check: CodeQL-Build
- GitHub Check: CodeQL-Build
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}
📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation
Files:
apps/meteor/app/livechat/imports/server/rest/inquiries.tsapps/meteor/tests/end-to-end/api/livechat/07-queue.ts
🧠 Learnings (18)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.
Applied to files:
apps/meteor/app/livechat/imports/server/rest/inquiries.tsapps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.
Applied to files:
apps/meteor/app/livechat/imports/server/rest/inquiries.tsapps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2026-03-02T16:31:30.612Z
Learnt from: KevLehman
Repo: RocketChat/Rocket.Chat PR: 39250
File: apps/meteor/tests/end-to-end/api/livechat/07-queue.ts:1084-1094
Timestamp: 2026-03-02T16:31:30.612Z
Learning: In E2E API tests at apps/meteor/tests/end-to-end/api/livechat/, using sleep(1000) after updateSetting() or updateEESetting() calls in test setup hooks is acceptable and intentional to allow omnichannel settings to propagate their side effects.
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Ensure tests run reliably in parallel without shared state conflicts
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/page-objects/**/*.ts : Utilize existing page objects pattern from `apps/meteor/tests/e2e/page-objects/`
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2026-02-04T12:09:05.769Z
Learnt from: d-gubert
Repo: RocketChat/Rocket.Chat PR: 38374
File: apps/meteor/tests/end-to-end/apps/app-logs-nested-requests.ts:26-37
Timestamp: 2026-02-04T12:09:05.769Z
Learning: In E2E tests at apps/meteor/tests/end-to-end/apps/, prefer sleeping for a fixed duration (e.g., 1 second) over implementing polling/retry logic when waiting for asynchronous operations to complete. Tests should fail deterministically if the expected result isn't available after the sleep.
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Implement proper wait strategies for dynamic content in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Use `page.waitFor()` with specific conditions instead of hardcoded timeouts in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Utilize Playwright fixtures (`test`, `page`, `expect`) for consistency in test files
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Avoid using `page.locator()` in Playwright tests - always prefer semantic locators such as `page.getByRole()`, `page.getByLabel()`, `page.getByText()`, or `page.getByTitle()`
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Use `test.beforeAll()` and `test.afterAll()` for setup/teardown in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Prefer web-first assertions (`toBeVisible`, `toHaveText`, etc.) in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Ensure clean state for each test execution in Playwright tests
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-12-10T21:00:54.909Z
Learnt from: KevLehman
Repo: RocketChat/Rocket.Chat PR: 37091
File: ee/packages/abac/jest.config.ts:4-7
Timestamp: 2025-12-10T21:00:54.909Z
Learning: Rocket.Chat monorepo: Jest testMatch pattern '<rootDir>/src/**/*.spec.(ts|js|mjs)' is valid in this repo and used across multiple packages (e.g., packages/tools, ee/packages/omnichannel-services). Do not flag it as invalid in future reviews.
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-10T19:06:20.146Z
Learnt from: MartinSchoeler
Repo: RocketChat/Rocket.Chat PR: 37408
File: apps/meteor/client/views/admin/ABAC/useRoomAttributeOptions.tsx:53-69
Timestamp: 2025-11-10T19:06:20.146Z
Learning: In the Rocket.Chat repository, do not provide suggestions or recommendations about code sections marked with TODO comments. The maintainers have already identified these as future work and external reviewers lack the full context about implementation plans and timing.
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2025-11-19T12:32:29.696Z
Learnt from: d-gubert
Repo: RocketChat/Rocket.Chat PR: 37547
File: packages/i18n/src/locales/en.i18n.json:634-634
Timestamp: 2025-11-19T12:32:29.696Z
Learning: Repo: RocketChat/Rocket.Chat
Context: i18n workflow
Learning: In this repository, new translation keys should be added to packages/i18n/src/locales/en.i18n.json only; other locale files are populated via the external translation pipeline and/or fall back to English. Do not request adding the same key to all locale files in future reviews.
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2026-02-23T17:53:18.785Z
Learnt from: ggazzo
Repo: RocketChat/Rocket.Chat PR: 35995
File: apps/meteor/app/api/server/v1/rooms.ts:1107-1112
Timestamp: 2026-02-23T17:53:18.785Z
Learning: In Rocket.Chat PR reviews, maintain strict scope boundaries—when a PR is focused on a specific endpoint (e.g., rooms.favorite), avoid reviewing or suggesting changes to other endpoints that were incidentally refactored (e.g., rooms.invite) unless explicitly requested by maintainers.
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts
📚 Learning: 2026-02-24T19:09:09.561Z
Learnt from: ahmed-n-abdeltwab
Repo: RocketChat/Rocket.Chat PR: 38974
File: apps/meteor/app/api/server/v1/im.ts:220-221
Timestamp: 2026-02-24T19:09:09.561Z
Learning: In RocketChat/Rocket.Chat OpenAPI migration PRs for apps/meteor/app/api/server/v1 endpoints, maintainers prefer to avoid any logic changes; style-only cleanups (like removing inline comments) may be deferred to follow-ups to keep scope tight.
Applied to files:
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts.changeset/tame-dolphins-draw.md
🧬 Code graph analysis (1)
apps/meteor/tests/end-to-end/api/livechat/07-queue.ts (2)
apps/meteor/tests/data/livechat/rooms.ts (2)
fetchInquiry(157-170)getLivechatRoomInfo(327-339)apps/meteor/app/livechat/server/lib/RoutingManager.ts (1)
takeInquiry(230-332)
🔇 Additional comments (3)
.changeset/tame-dolphins-draw.md (1)
1-5: Changeset entry matches the bugfix intent.Line 5 accurately documents the patch behavior change for
inquiries.take.apps/meteor/app/livechat/imports/server/rest/inquiries.ts (1)
72-72:clientActionpropagation fix is correctly wired.Line 72 now forwards request options into
takeInquiry, which is the needed path forclientAction: truefailures to surface properly.apps/meteor/tests/end-to-end/api/livechat/07-queue.ts (1)
23-24: Manual-selection limit coverage is strong and directly aligned with CORE-1706.The new suite validates the expected blocked/allowed transitions across agent, department, and global limits, including
clientAction:truerejection paths.Also applies to: 1075-1481
Proposed changes (including videos or screenshots)
Issue(s)
https://rocketchat.atlassian.net/browse/CORE-1706
Steps to test or reproduce
Further comments
Summary by CodeRabbit