GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — fix(sessions-list): update live for new rooms and accepted enquiries (#1206) by nikunjdecyb · Pull Request #1320 · OpenResilienceInitiative/ORISO-Frontend Conversation
Collaborator
Closes #1206 Root cause — two independent breaks (both verified in code, not assumed)1. A message from a room the list has never loaded was silently dropped. 2. Not the cause, and checked: the 15 s poll only runs while the Live-Chat chip is selected ( The fixBoth decisions live in pure modules, so the behaviour is tested without mounting the 900-line list component:
Test evidence
On AC3 (E2E) — stated plainlyThe issue asks for an E2E regression test. This repo deliberately keeps Cypress and the Playwright smoke out of CI because the app's bootstrap needs a reachable backend (the note in Reviewer test plan (from the issue)
Scope
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…penResilienceInitiative#1206) Two independent breaks made a hard reload the only way to see a new user or a request that became a chat. 1. A message from a room the list has never loaded was dropped. onNewMessageEvent hands the roomId to touchSessionsByRids, which maps each rid onto an *existing* session and returns null when there is none, and the follow-up handleRIDs call is likewise guarded by "touchesLoadedSession". So for a brand-new enquiry both branches no-op and the list never learns the room exists. It now refetches the tab's list when the room is unknown, throttled so a burst from the same new room causes one refetch. 2. anonymousEnquiryAccepted raised a toast and nothing else, while its siblings (newAnonymousEnquiry, anonymousConversationFinished) set a state flag whose effect emits the refresh flags. The accepted entry therefore stayed in every counsellor's request list and never reached the assignee's conversation list. It now follows the same pattern and emits both flags, keeping the toast. Both decisions live in pure modules so they are tested without mounting the 900-line list: sessionsList/liveListRefresh.ts (isRoomInSessions, createRefreshThrottle) and app/stompListRefresh.ts (resolveStompListRefresh, case-insensitive because the backend sends both camelCase and ALL-CAPS). 11 tests, all failing first. AC3 asks for an E2E: this repo keeps Cypress and the Playwright smoke out of CI because the bootstrap needs a reachable backend, so the two-browser scenario stays in the reviewer test plan rather than as a test CI cannot run. Refs OpenResilienceInitiative#1206 Co-Authored-By: Claude Opus 5 <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
|
There was an error while loading. Please reload this page.
|
Warning Review limit reachedNext included review available in 16 minutes. View limit detailsLimit details: You’ve used the included review currently available. This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (10)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Resolves the .gitignore conflict: both sides appended docs/agent-tasks un-ignore pairs to the same block. Union kept, so dev's entries and this branch's issue-1206 entry all survive. Co-Authored-By: Claude Opus 5 <[email protected]>
There was an error while loading. Please reload this page.
Resolves the .gitignore conflict again after OpenResilienceInitiative#1320 and OpenResilienceInitiative#1340 merged to dev. Both sides append docs/agent-tasks un-ignore pairs to the same block; union kept so dev's issue-1206 entry and this branch's issue-1207 entry both survive. Co-Authored-By: Claude Opus 5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.