René's URL Explorer Experiment


Title: feat: keep Copilot BYOK agent turns alive in server Agent Host by khanhkit · Pull Request #8047 · coder/code-server · GitHub

Open Graph Title: feat: keep Copilot BYOK agent turns alive in server Agent Host by khanhkit · Pull Request #8047 · coder/code-server

X Title: feat: keep Copilot BYOK agent turns alive in server Agent Host by khanhkit · Pull Request #8047 · coder/code-server

Description: Fixes #8046 Motivation code-server is a remote IDE, so long-running agent work should be owned by a server-side lifecycle rather than by a browser tab. For direct-capable Copilot Chat BYOK providers, this change lets the remote Agent Host own model execution so an active turn is not tied to renderer/tab lifetime. Design Direct-capable BYOK providers are synchronized to Agent Host as bounded, ephemeral descriptors and registered directly with the server-side Copilot SDK. Provider configurations that cannot be represented faithfully stay on the existing renderer bridge rather than being silently normalized. Credential-bearing syncEphemeralByokModels data stays process-memory-only and is centrally redacted before AHP JSONL serialization. Model capability metadata (vision, tool calling, reasoning effort) is preserved. Agent Host Changes-pill defaults follow isolation when there is no provider override: folder -> Session Changes, worktree -> Branch Changes. Native Copilot authentication semantics are not bypassed; this change is for the direct BYOK path. Files changed patches/copilot-background-byok.diff patches/copilot-agenthost-session-changes.diff patches/series Current VS Code 1.141 verification Current PR head: 73f71d62f4b26c04dd50b595a3837231a1b5b6aa Pinned VS Code gitlink: 2a59476c9bfcb90b3ddc372c36762471b7dfad1c (VS Code 1.141) Executed on the 1.141 port: full code-server patch series clean apply: 31/31; regenerated feature patches reproduce 22/22 target files byte-for-byte from the validated scratch tree; copilotSessionLauncher.test: 109/109 pass; byokLmBridgeRegistry.test: 11/11 pass; protocolServerHandler.test: 175/175 pass; ahpJsonlLogger.test: 14/14 pass, including the credential-redaction sentinel; browser AgentHostByokLmHandler: 22/22 pass; browser AgentHostSessionInputPills: 22/22 pass, including folder -> Session Changes. Exact-head isolated ARM64 release verification is now GREEN for 73f71d62f4b26c04dd50b595a3837231a1b5b6aa: full build:vscode completed (including core-ci desktop/server/server-web bundles), code-server build completed, release materialized successfully, and a fresh out-of-container checksum verification passed 5897/5897 files. The built runtime reports 73f71d62f4b26c04dd50b595a3837231a1b5b6aa with Code 1.141.0. GitHub Actions status Upstream Build run 37796020383 was created for exact head 73f71d62f4b26c04dd50b595a3837231a1b5b6aa, but GitHub currently reports action_required with zero jobs created. The workflow is waiting for the repository's fork-workflow approval; no CI test has executed or failed yet. Historical note The earlier VS Code 1.140 candidate 95c0eb85d4265925751949f729851901e8e9db0d passed its isolated build, fork CI, and live background/detach acceptance. Those results are historical evidence only and are not presented as exact-head verification for this 1.141 port. Upstream coordination A code-server maintainer suggested upstreaming this behavior directly to VS Code rather than maintaining the server-ownership change as a code-server patch. VS Code already tracks the exact remote-BYOK ownership/continuity problem in microsoft/vscode#340335, under the broader BYOK plan in microsoft/vscode#340086. The VS Code direction is Agent Host-owned model-provider plugins rather than a direct port of chatLanguageModels.json. The validated implementation and evidence from this PR have been posted to that issue for reference: microsoft/vscode#340335 (comment). This PR remains open as the exact tested reference. I am not opening a competing VS Code implementation until the owner confirms which pieces should be adapted to the plugin-provider direction.

Open Graph Description: Fixes #8046 Motivation code-server is a remote IDE, so long-running agent work should be owned by a server-side lifecycle rather than by a browser tab. For direct-capable Copilot Chat BYOK provider...

X Description: Fixes #8046 Motivation code-server is a remote IDE, so long-running agent work should be owned by a server-side lifecycle rather than by a browser tab. For direct-capable Copilot Chat BYOK provider...

Opengraph URL: https://github.com/coder/code-server/pull/8047

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ca79b76d-f708-f8ca-c29a-fdb8e3415ba8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD614:BEE9A:B8C656:10327A9:6B04372A
html-safe-nonce31e91280649a1d3aaede6aefe2adf9bb549b6a5b4a161182dd0c8e52f8c3e4e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjE0OkJFRTlBOkI4QzY1NjoxMDMyN0E5OjZCMDQzNzJBIiwidmlzaXRvcl9pZCI6IjcwMTgzMzg2NTQ5NzIyOTQ5NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca6b31671605052e461868e2162a1ddb428e6eaee1eca961930ca2a9f6abcd0aa
hovercard-subject-tagpull_request:4784885467
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/code-server/pull/8047/files
twitter:imagehttps://avatars.githubusercontent.com/u/43664443?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/43664443?s=400&v=4
og:image:altFixes #8046 Motivation code-server is a remote IDE, so long-running agent work should be owned by a server-side lifecycle rather than by a browser tab. For direct-capable Copilot Chat BYOK provider...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/coder/code-server/pull/8047/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fpull%2F8047%2Ffiles
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%2Fpull%2F8047%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/pull/8047/files
Reloadhttps://github.com/coder/code-server/pull/8047/files
Reloadhttps://github.com/coder/code-server/pull/8047/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcode-server%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcode-server%2Fissues%2Fnew%2Fchoose
khanhkithttps://github.com/khanhkit
coder:mainhttps://github.com/coder/code-server/tree/main
khanhkit:fix/copilot-byok-backgroundhttps://github.com/khanhkit/code-server/tree/fix/copilot-byok-background
Conversation 5 https://github.com/coder/code-server/pull/8047
Commits 1 https://github.com/coder/code-server/pull/8047/commits
Checks 0 https://github.com/coder/code-server/pull/8047/checks
Files changed https://github.com/coder/code-server/pull/8047/files
Please reload this pagehttps://github.com/coder/code-server/pull/8047/files
feat: keep Copilot BYOK agent turns alive in server Agent Host https://github.com/coder/code-server/pull/8047/files#top
Show all changes 1 commit https://github.com/coder/code-server/pull/8047/files
73f71d6 fix(copilot): port background BYOK patches to VS Code 1.141 khanhkit Oct 8, 2026 https://github.com/coder/code-server/pull/8047/commits/73f71d62f4b26c04dd50b595a3837231a1b5b6aa
Clear filters https://github.com/coder/code-server/pull/8047/files
Please reload this pagehttps://github.com/coder/code-server/pull/8047/files
Please reload this pagehttps://github.com/coder/code-server/pull/8047/files
copilot-agenthost-session-changes.diff https://github.com/coder/code-server/pull/8047/files#diff-04dd28327f7cc3e17ede8dbeab213beb7b1edf7ecbe79114a1742e6fd7668436
copilot-background-byok.diff https://github.com/coder/code-server/pull/8047/files#diff-153da69f78a7a0762fa826dbcbf11ab6d6adfae9c81d1f6072e81c7ef5c3a5d3
series https://github.com/coder/code-server/pull/8047/files#diff-d6f19469bd3dd1daec926b99bf179ec128fff3631356f24af05320c1827f1e46
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
patches/copilot-agenthost-session-changes.diffhttps://github.com/coder/code-server/pull/8047/files#diff-04dd28327f7cc3e17ede8dbeab213beb7b1edf7ecbe79114a1742e6fd7668436
View file https://github.com/coder/code-server/blob/73f71d62f4b26c04dd50b595a3837231a1b5b6aa/patches/copilot-agenthost-session-changes.diff
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/8047/{{ revealButtonHref }}
Please reload this pagehttps://github.com/coder/code-server/pull/8047/files
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.