Copilot login persistence acros devcontainer instances
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
- Copilot Chat Extension Version: 0.63.0
- VS Code Version: 1.135.0 (08d4889f9ec4a1685d257b9b95de036c8e1ce1e5)
- OS Version: 22631.7517
- Feature (e.g. agent/edit/ask mode): authentication/login
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): n/a
- Logs:
Logs from instance where I 'closed' the login window
```
2026-08-27 07:04:59.499 [info] [GitExtensionServiceImpl] Initializing Git extension service.
2026-08-27 07:04:59.499 [info] FetcherService: Experimentation service not available yet, using default fetcher configuration.
2026-08-27 07:04:59.499 [info] Can't use the Electron fetcher in this environment.
2026-08-27 07:04:59.499 [info] Using the Node fetch fetcher.
2026-08-27 07:04:59.499 [info] [GitExtensionServiceImpl] Successfully activated the vscode.git extension.
2026-08-27 07:04:59.499 [info] [GitExtensionServiceImpl] Enablement state of the vscode.git extension: true.
2026-08-27 07:04:59.499 [info] [GitExtensionServiceImpl] Successfully registered Git commit message provider.
2026-08-27 07:04:59.784 [info] ConversationFeature: Waiting for copilot token or BYOK model to activate conversation feature
2026-08-27 07:04:59.785 [warning] [LanguageModelAccess] LanguageModel/Embeddings are not available without a Copilot token source
2026-08-27 07:04:59.785 [info] [CopilotCLIModels] Skipping model fetch since there is no Copilot token source
2026-08-27 07:04:59.786 [info] BYOK: registered 9 provider(s): ollama, anthropic, gemini, xai, openai, openrouter, azure, customoai, customendpoint
2026-08-27 07:04:59.786 [info] BYOK: fetching known models list
2026-08-27 07:04:59.786 [info] activationBlocker from 'languageModelAccess' took for 117ms
2026-08-27 07:05:00.067 [info] [CopilotCLI] OpenTelemetry enabled: exporter=file, source=github.copilot
2026-08-27 07:05:00.191 [info] [CopilotCLIChatSessionContentProvider] listSessions took 172.69009500000175ms
2026-08-27 07:05:00.343 [info] [CopilotCLI] MCP server started. Lock file: /root/.copilot/ide/88e43677-219e-4d77-bd77-ed60f0855c91.lock
2026-08-27 07:05:00.343 [info] [CopilotCLI] Server URI: unix:/tmp/mcp-ec1b5e/mcp.sock#%2Fmcp
2026-08-27 07:05:00.410 [info] Logged in as daantimmer
2026-08-27 07:05:00.704 [info] BYOK: Copilot Chat known models list fetched successfully.
2026-08-27 07:05:01.238 [info] Got Copilot token for daantimmer
2026-08-27 07:05:01.238 [info] Copilot Chat: 0.63.0, VS Code: 1.135.0
2026-08-27 07:05:01.398 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:05:01.398 [info] ConversationFeature: Activating contributions
2026-08-27 07:05:01.413 [info] Registering default platform agent...
2026-08-27 07:05:01.424 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:05:01.424 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:05:01.424 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:05:01.426 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:05:01.428 [info] activationBlocker from 'conversationFeature' took for 1782ms
2026-08-27 07:05:01.428 [info] [context keys] Setting context key: github.copilot-chat.activated
2026-08-27 07:05:01.440 [info] AuthenticationService: firing onDidAuthenticationChange from handleAuthChangeEvent identity change. Has token: true
2026-08-27 07:05:01.440 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:05:01.509 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:05:01.510 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:05:01.510 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:05:01.510 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:05:01.512 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:05:01.513 [info] GithubAvailableEmbeddingTypesManager: Got embeddings. Primary: metis-1024-I16-Binary. Deprecated:
2026-08-27 07:05:01.515 [info] WorkspaceChunkSearchService: using embedding type metis-1024-I16-Binary
2026-08-27 07:05:01.623 [info] [CopilotCLIChatSessionContentProvider] listSessions took 3.703566000000137ms
2026-08-27 07:05:02.087 [info] [CopilotCLIChatSessionContentProvider] listSessions took 5.498574000001099ms
2026-08-27 07:05:02.394 [info] Fetched model metadata in 2696ms 73ef513d-5d2d-40b1-a106-08df56cbdf2d
2026-08-27 07:05:02.867 [info] Latest entry: ccreq:latest.copilotmd
2026-08-27 07:05:02.869 [info] ccreq:94659796.copilotmd | markdown
2026-08-27 07:05:02.955 [info] ConversationFeature: BYOK models available
2026-08-27 07:05:02.955 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:05:03.740 [info] Fetched content exclusion rules for 2 repo(s) in 2157ms
2026-08-27 07:05:03.740 [info] ccreq:30654623.copilotmd | markdown
2026-08-27 07:05:03.917 [info] Successfully activated the GitHub.vscode-pull-request-github extension.
2026-08-27 07:05:03.917 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2026-08-27 07:05:03.917 [info] Successfully registered GitHub PR title and description provider.
2026-08-27 07:05:03.917 [info] Successfully registered GitHub PR reviewer comments provider.
2026-08-27 07:05:24.218 [info] [CopilotCLIChatSessionContentProvider] listSessions took 2.5547979999973904ms
```
Logs from instance where I logged in using github authentication:
```
2026-08-27 07:04:40.201 [info] [GitExtensionServiceImpl] Initializing Git extension service.
2026-08-27 07:04:40.201 [info] FetcherService: Experimentation service not available yet, using default fetcher configuration.
2026-08-27 07:04:40.201 [info] Can't use the Electron fetcher in this environment.
2026-08-27 07:04:40.201 [info] Using the Node fetch fetcher.
2026-08-27 07:04:40.201 [info] [GitExtensionServiceImpl] Successfully activated the vscode.git extension.
2026-08-27 07:04:40.201 [info] [GitExtensionServiceImpl] Enablement state of the vscode.git extension: true.
2026-08-27 07:04:40.201 [info] [GitExtensionServiceImpl] Successfully registered Git commit message provider.
2026-08-27 07:04:40.612 [info] ConversationFeature: Waiting for copilot token or BYOK model to activate conversation feature
2026-08-27 07:04:41.052 [info] [CopilotCLI] OpenTelemetry enabled: exporter=file, source=github.copilot
2026-08-27 07:04:41.074 [info] [CopilotCLIChatSessionContentProvider] listSessions took 29.07980099999986ms
2026-08-27 07:04:41.142 [info] [CopilotCLI] MCP server started. Lock file: /root/.copilot/ide/29e4823f-62c4-4178-aef9-632636195623.lock
2026-08-27 07:04:41.142 [info] [CopilotCLI] Server URI: unix:/tmp/mcp-pzQkoN/mcp.sock#%2Fmcp
2026-08-27 07:04:41.204 [info] Logged in as daantimmer
2026-08-27 07:04:42.173 [info] Got Copilot token for daantimmer
2026-08-27 07:04:42.173 [info] Copilot Chat: 0.63.0, VS Code: 1.135.0
2026-08-27 07:04:42.277 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:04:42.277 [info] ConversationFeature: Activating contributions
2026-08-27 07:04:42.291 [info] Registering default platform agent...
2026-08-27 07:04:42.302 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:04:42.303 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:04:42.303 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:04:42.303 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:04:42.304 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:04:42.304 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:04:42.324 [info] activationBlocker from 'conversationFeature' took for 1822ms
2026-08-27 07:04:42.325 [info] [context keys] Setting context key: github.copilot-chat.activated
2026-08-27 07:04:42.339 [info] AuthenticationService: firing onDidAuthenticationChange from handleAuthChangeEvent identity change. Has token: true
2026-08-27 07:04:42.339 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:04:42.349 [info] BYOK: registered 9 provider(s): ollama, anthropic, gemini, xai, openai, openrouter, azure, customoai, customendpoint
2026-08-27 07:04:42.349 [info] BYOK: fetching known models list
2026-08-27 07:04:42.349 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:04:42.349 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:04:42.349 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:04:42.349 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:04:42.349 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:04:42.349 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:04:42.349 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:04:42.353 [info] GithubAvailableEmbeddingTypesManager: Got embeddings. Primary: metis-1024-I16-Binary. Deprecated:
2026-08-27 07:04:42.359 [info] WorkspaceChunkSearchService: using embedding type metis-1024-I16-Binary
2026-08-27 07:04:42.360 [info] activationBlocker from 'languageModelAccess' took for 1851ms
2026-08-27 07:04:42.719 [info] [CopilotCLIChatSessionContentProvider] listSessions took 238.36956499999906ms
2026-08-27 07:04:42.922 [info] [CopilotCLIChatSessionContentProvider] listSessions took 6.412086000000272ms
2026-08-27 07:04:43.140 [info] BYOK: Copilot Chat known models list fetched successfully.
2026-08-27 07:04:43.604 [info] Fetched model metadata in 3071ms 3255ae8a-9b78-46fc-83c6-c3fa22c0c2ab
2026-08-27 07:04:43.612 [info] Latest entry: ccreq:latest.copilotmd
2026-08-27 07:04:43.613 [info] ccreq:93d4eede.copilotmd | markdown
2026-08-27 07:04:44.220 [info] Fetched content exclusion rules for 2 repo(s) in 1765ms
2026-08-27 07:04:44.220 [info] ccreq:e2ef935d.copilotmd | markdown
2026-08-27 07:04:44.300 [info] Successfully activated the GitHub.vscode-pull-request-github extension.
2026-08-27 07:04:44.300 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2026-08-27 07:04:44.300 [info] Successfully registered GitHub PR title and description provider.
2026-08-27 07:04:44.300 [info] Successfully registered GitHub PR reviewer comments provider.
2026-08-27 07:04:48.100 [info] ConversationFeature: BYOK models available
2026-08-27 07:04:48.100 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:06:12.835 [info] Logged in as daantimmer
2026-08-27 07:06:13.376 [info] Got Copilot token for daantimmer
2026-08-27 07:06:13.377 [info] Copilot Chat: 0.63.0, VS Code: 1.135.0
2026-08-27 07:06:13.413 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:06:13.415 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:06:13.417 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:06:13.418 [info] AuthenticationService: firing onDidAuthenticationChange from handleAuthChangeEvent identity change. Has token: true
2026-08-27 07:06:13.418 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:06:13.433 [info] AuthenticationService: firing onDidAuthenticationChange from handleAuthChangeEvent identity change. Has token: true
2026-08-27 07:06:13.433 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:06:13.438 [info] AuthenticationService: firing onDidAuthenticationChange from handleAuthChangeEvent identity change. Has token: true
2026-08-27 07:06:13.438 [info] copilot token sku: copilot_for_business_seat_quota
2026-08-27 07:06:13.443 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:06:13.454 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:06:13.455 [warning] Copilot preview features are disabled by organizational policy. Learn more: https://aka.ms/github-copilot-org-enable-features
2026-08-27 07:06:13.568 [info] Fetched model metadata in 164ms c6ceafee-0c20-46ba-9fee-1ba38514b426
2026-08-27 07:06:13.577 [info] ccreq:983176fb.copilotmd | markdown
```
Steps to Reproduce:
1. Open new vscode instance with a devcontainer
2. Get presented with a login window
Description:
Since monday the 24th of August I am faced with this same issue. Every new vscode instance* I start I get presented with the following window:
*) not _every_ vscode instance. Only those with a devcontainer. When I close and re-open the window I am presented with this login. Opening a new devcontainer or old doesn't matter. Multiple instances with multiple containers always show the login window. Closing the window without logging in does not prevent me from using Copilot
Contributor guide
Assessment
This issue has not been assessed yet.