René's URL Explorer Experiment


Title: Copilot Chat BYOK turns should survive browser disconnects via server Agent Host · Issue #8046 · coder/code-server · GitHub

Open Graph Title: Copilot Chat BYOK turns should survive browser disconnects via server Agent Host · Issue #8046 · coder/code-server

X Title: Copilot Chat BYOK turns should survive browser disconnects via server Agent Host · Issue #8046 · coder/code-server

Description: Problem Copilot Chat BYOK execution in code-server can remain coupled to the browser/renderer lifecycle even when the conversation UI is backed by the server-side Agent Host. In practice, an active BYOK turn may stop when the tab becomes...

Open Graph Description: Problem Copilot Chat BYOK execution in code-server can remain coupled to the browser/renderer lifecycle even when the conversation UI is backed by the server-side Agent Host. In practice, an active...

X Description: Problem Copilot Chat BYOK execution in code-server can remain coupled to the browser/renderer lifecycle even when the conversation UI is backed by the server-side Agent Host. In practice, an active...

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

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":"Copilot Chat BYOK turns should survive browser disconnects via server Agent Host","articleBody":"## Problem\n\nCopilot Chat BYOK execution in code-server can remain coupled to the browser/renderer lifecycle even when the conversation UI is backed by the server-side Agent Host. In practice, an active BYOK turn may stop when the tab becomes inactive, is hard-reloaded, or the browser is closed, and the user must send another message to resume work.\n\nThis is particularly surprising for remote code-server usage: the server is still alive, the Agent Host is still available, and long-running agent work is expected to continue independently of whether a browser happens to be attached.\n\n## Why this matters\n\nRemote development sessions routinely outlive individual browser tabs. Users switch devices, lose mobile/network connectivity, reload the workbench, suspend a laptop, or intentionally close the browser while a long-running agent task is in progress. Tying BYOK model execution to the renderer means those otherwise normal client lifecycle events can terminate useful server-side work.\n\nThe goal is **not** to keep a browser renderer artificially alive. The goal is to move the ownership boundary to the component that already has the correct lifecycle for background work: the remote/server Agent Host.\n\n## Desired behavior\n\nFor BYOK providers whose semantics can be represented safely by the Copilot SDK/server Agent Host:\n\n- an active turn continues while the tab is inactive;\n- an active turn survives hard reload/reconnect;\n- an active turn survives full browser/tab detach and can be observed after reconnect;\n- no replacement user message is required merely to keep the existing turn alive.\n\n## Compatibility requirements\n\nThe server-side path must preserve provider semantics rather than force every BYOK configuration through a lossy abstraction.\n\nThe direct Agent Host path should therefore be used only when the configuration can be represented faithfully. Configurations that need renderer-only semantics should continue to use the existing renderer bridge, including cases such as:\n\n- OpenAI ZDR-specific behavior;\n- OpenRouter Anthropic Messages behavior;\n- custom request headers;\n- query-bearing/custom endpoints whose exact wire semantics matter;\n- thinking/edit-tool or other advanced custom-endpoint overrides not representable safely by the server SDK surface.\n\nUnsupported semantics should fall back to renderer ownership instead of being guessed or silently altered.\n\n## Security requirements\n\nBYOK credential material must remain ephemeral:\n\n- credentials must not be persisted into Agent Host state, replay/history, telemetry, or AHP JSONL logs;\n- the renderer-to-Agent-Host credential-bearing DTO must be strictly validated and bounded;\n- provider identities must not allow credentials/endpoints to cross provider groups;\n- no user BYOK model/provider or credential material should be hard-coded.\n\n## Related Agent Host UI correctness\n\nWhile validating browser-detached Agent Host sessions, folder-isolated sessions also exposed an adjacent scoping bug: the Changes pill could subscribe to branch-wide changes and report unrelated repository changes. Folder isolation should default to **Session Changes**; worktree isolation should retain **Branch Changes**.\n\n## Validation target\n\nThe proposed implementation has been exercised on code-server 4.140.0 / VS Code 1.140 with targeted Agent Host/BYOK tests, browser tests, full build/release verification, repository CI, and live browser-detach acceptance.\n","author":{"url":"https://github.com/khanhkit","@type":"Person","name":"khanhkit"},"datePublished":"2026-10-08T09:46:45Z","url":"https://github.com/coder/code-server/issues/8046"}

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:c6a5a09b-8ca7-d318-75a0-966c12b3ac8d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE92A:313BCB:E2EFE:139A8D:6B042EE6
html-safe-noncea18fb5bb07fe985d163a4968307178ce4e3c5279f2f4983f8585c293fb3a4f08
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTJBOjMxM0JDQjpFMkVGRToxMzlBOEQ6NkIwNDJFRTYiLCJ2aXNpdG9yX2lkIjoiMTQ1NTc5OTcwMTAxMzI3ODQzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8e9d381d1179f0e45a95b10a17e9eef9c5ae2cd3fd17ebd052f2b3a67ba0d341
hovercard-subject-tagissue:5759548021
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/8046/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fabdfbf6959b3562d850aaa2fb6cff1ed6a39116609d63b8aa73c71895ed265f/coder/code-server/issues/8046
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fabdfbf6959b3562d850aaa2fb6cff1ed6a39116609d63b8aa73c71895ed265f/coder/code-server/issues/8046
og:image:altProblem Copilot Chat BYOK execution in code-server can remain coupled to the browser/renderer lifecycle even when the conversation UI is backed by the server-side Agent Host. In practice, an active...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekhanhkit
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/8046#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F8046
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%2F8046
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/8046
Reloadhttps://github.com/coder/code-server/issues/8046
Reloadhttps://github.com/coder/code-server/issues/8046
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/8046
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/8046
#8047https://github.com/coder/code-server/pull/8047
Copilot Chat BYOK turns should survive browser disconnects via server Agent Hosthttps://github.com/coder/code-server/issues/8046#top
#8047https://github.com/coder/code-server/pull/8047
https://github.com/khanhkit
khanhkithttps://github.com/khanhkit
on Oct 8, 2026https://github.com/coder/code-server/issues/8046#issue-5759548021
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 8, 2026https://github.com/coder/code-server/issues/8046#issuecomment-6057180461
Linear Codehttps://linear.app
CODE-76https://linear.app/codercom/issue/CODE-76
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/code-server/issues/8046
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/code-server/issues/8046
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.