Skip to content

Refactor browser tab presence into a session lifecycle handler - #8236

Merged
cstns merged 46 commits into
mainfrom
browser-tab-presence-lifecycle
Aug 21, 2026
Merged

Refactor browser tab presence into a session lifecycle handler#8236
cstns merged 46 commits into
mainfrom
browser-tab-presence-lifecycle

Conversation

@cstns

@cstns cstns commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Consolidates the browser tab presence handling (heartbeat/context/close messages) into a single BrowserSessionLifecycleHandler, replacing the old BrowserSessionPresenceHandler. Moves session state onto a BrowserSession DB controller, adds last-will disconnect handling, and tidies up teardown for team/tab connections.

This is the base layer for #8192 (third-party MCP server endpoint), which needs the new BrowserSession controller API to target browser tabs for MCP tool calls. That work is stacked on top in #8237.

cstns and others added 15 commits August 21, 2026 15:17
…ecycleHandler', replace 'tab-presence' topic, and implement last-will disconnect handling.
@cstns cstns changed the title browser tab presence lifecycle Refactor browser tab presence into a session lifecycle handler Aug 21, 2026
@cstns cstns self-assigned this Aug 21, 2026
@cstns
cstns requested a review from Steve-Mcl August 21, 2026 12:44
@cstns
cstns marked this pull request as ready for review August 21, 2026 12:44
@cstns cstns linked an issue Aug 21, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.64198% with 134 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.94%. Comparing base (4732870) to head (89ded22).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
forge/comms/aclManager.js 37.98% 80 Missing ⚠️
forge/ee/lib/mcp/tools/platform.js 0.00% 21 Missing ⚠️
forge/comms/commsClient.js 0.00% 15 Missing ⚠️
forge/comms/mcpGateway.js 45.00% 11 Missing ⚠️
forge/ee/routes/mcp/server.js 88.13% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8236      +/-   ##
==========================================
- Coverage   76.20%   75.94%   -0.26%     
==========================================
  Files         443      445       +2     
  Lines       23728    23990     +262     
  Branches     6315     6404      +89     
==========================================
+ Hits        18081    18220     +139     
- Misses       5647     5770     +123     
Flag Coverage Δ
backend 75.94% <58.64%> (-0.26%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@Steve-Mcl Steve-Mcl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

all good (been running this code for over a week now)

(test fails need to be checked)

@cstns
cstns force-pushed the browser-tab-presence-lifecycle branch from f9f3b33 to b662648 Compare August 21, 2026 13:13
@cstns
cstns merged commit d3419bb into main Aug 21, 2026
28 of 29 checks passed
@cstns
cstns deleted the browser-tab-presence-lifecycle branch August 21, 2026 19:43
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.

Backend API surface for agentic platform orchestration

2 participants