René's URL Explorer Experiment


Title: --reconnection-grace-time does not survive closing the browser tab · Issue #7955 · coder/code-server · GitHub

Open Graph Title: --reconnection-grace-time does not survive closing the browser tab · Issue #7955 · coder/code-server

X Title: --reconnection-grace-time does not survive closing the browser tab · Issue #7955 · coder/code-server

Description: Problem --reconnection-grace-time (added in #7678) is documented as "Override the reconnection grace time in seconds. Clients who disconnect for longer than this duration will need to reload the window." In practice the setting cannot de...

Open Graph Description: Problem --reconnection-grace-time (added in #7678) is documented as "Override the reconnection grace time in seconds. Clients who disconnect for longer than this duration will need to reload the wi...

X Description: Problem --reconnection-grace-time (added in #7678) is documented as "Override the reconnection grace time in seconds. Clients who disconnect for longer than this duration will need to reload t...

Opengraph URL: https://github.com/coder/code-server/issues/7955

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"--reconnection-grace-time does not survive closing the browser tab","articleBody":"## Problem\n\n`--reconnection-grace-time` (added in #7678) is documented as *\"Override the reconnection grace time in seconds. Clients who disconnect for longer than this duration will need to reload the window.\"*\n\nIn practice the setting cannot deliver that, for two independent reasons.\n\n**1. Closing the tab bypasses the grace time entirely.**\n\n`BrowserLifecycleService` listens on `pagehide`/`beforeunload` and runs the workbench shutdown, which disposes the remote connection *gracefully*. On the server, `ManagementConnection` treats a graceful dispose as a finished client:\n\n```\nEvent.once(this.protocol.onDidDispose)(() => {\n    this._log(`The client has disconnected gracefully, so the connection will be disposed.`);\n    this._cleanResources();\n});\n```\n\n`_cleanResources()` runs immediately — the grace time is never consulted. So closing the tab kills the session regardless of the configured value.\n\n**2. A second connection cuts the grace time to 5 minutes.**\n\n`RemoteExtensionHostAgentServer` shortens every disconnected connection on each new connection:\n\n```\nfor (const key in this._managementConnections) {\n    this._managementConnections[key].shortenReconnectionGraceTimeIfNecessary();\n}\n```\n\nwhich schedules `ProtocolConstants.ReconnectionShortGraceTime` (5 min). Opening a second tab is enough to cut a deliberately long grace time back down.\n\n## Impact\n\nThe use case the flag exists for — leave a long-running task (a build, a CLI, an agent session) running and come back to it later — does not work. The session is gone as soon as the browser is closed.\n\n## Expected\n\nWhen an operator raises `--reconnection-grace-time` above the default, a disconnected session should survive for the configured duration, including across a closed browser. Installations that never set the flag should keep Code's stock behaviour.\n\n## Environment\n\nReproduced on code-server 4.128.0 and confirmed present in `main` (4.133.0 / Code 1.133.0).","author":{"url":"https://github.com/hugodeco","@type":"Person","name":"hugodeco"},"datePublished":"2026-08-19T19:04:13Z","url":"https://github.com/coder/code-server/issues/7955"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:71232c33-e110-1bf4-bd62-11dc8b401092
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B80:E4EF6:1558C7:1CAB1A:6B042EE6
html-safe-nonceff5a2b7953a609ddc2ae3b5e6935aa2472a03e73384b15b5d7513ad652b8c494
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjgwOkU0RUY2OjE1NThDNzoxQ0FCMUE6NkIwNDJFRTYiLCJ2aXNpdG9yX2lkIjoiNzQzODQyMDg1MDYxOTE5OTIwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace3fecb3897228687a636549591d9320dbef16acc86952ffc25df07f8a47f4360
hovercard-subject-tagissue:5196188454
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/7955/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7910f3f3e14aaa3e6d0fe533b2324bffe0d568315f84ad59f59ed9c120a65fa2/coder/code-server/issues/7955
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7910f3f3e14aaa3e6d0fe533b2324bffe0d568315f84ad59f59ed9c120a65fa2/coder/code-server/issues/7955
og:image:altProblem --reconnection-grace-time (added in #7678) is documented as "Override the reconnection grace time in seconds. Clients who disconnect for longer than this duration will need to reload the wi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehugodeco
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/coder/code-server git https://github.com/coder/code-server.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id172953845
octolytics-dimension-repository_nwocoder/code-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172953845
octolytics-dimension-repository_network_root_nwocoder/code-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/code-server/issues/7955#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F7955
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F7955
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/issues/7955
Reloadhttps://github.com/coder/code-server/issues/7955
Reloadhttps://github.com/coder/code-server/issues/7955
coderhttps://github.com/coder
code-serverhttps://github.com/coder/code-server
Codehttps://github.com/coder/code-server
Issues147 (147)https://github.com/coder/code-server/issues
Pull requests15 (15)https://github.com/coder/code-server/pulls
Discussionshttps://github.com/coder/code-server/discussions
Actionshttps://github.com/coder/code-server/actions
Projectshttps://github.com/coder/code-server/projects
Security and quality3 (3)https://github.com/coder/code-server/security
Insightshttps://github.com/coder/code-server/insights
https://github.com/coder/code-server
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7955
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7955
#7956https://github.com/coder/code-server/pull/7956
--reconnection-grace-time does not survive closing the browser tabhttps://github.com/coder/code-server/issues/7955#top
#7956https://github.com/coder/code-server/pull/7956
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
needs-investigationThis issue needs to be further investigatedhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22needs-investigation%22
https://github.com/hugodeco
hugodecohttps://github.com/hugodeco
on Aug 19, 2026https://github.com/coder/code-server/issues/7955#issue-5196188454
#7678https://github.com/coder/code-server/pull/7678
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Aug 19, 2026https://github.com/coder/code-server/issues/7955#issuecomment-5346747748
Linear Codehttps://linear.app
DEVEX-803https://linear.app/codercom/issue/DEVEX-803
coder-labelerhttps://github.com/apps/coder-labeler
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
needs-investigationThis issue needs to be further investigatedhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22needs-investigation%22
on Aug 19, 2026https://github.com/coder/code-server/issues/7955#event-29702417245
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/code-server/issues/7955
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7955
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
needs-investigationThis issue needs to be further investigatedhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22needs-investigation%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.