Running opencode twice causes Copilot session of one to invalidate other #6784

Closed
opened 2026-02-16 18:05:16 -05:00 by yindo · 2 comments
Owner

Originally created by @leighmcculloch on GitHub (Jan 19, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Similar to https://github.com/anomalyco/opencode/issues/2647, I'm having an issue where I run Opencode twice and one Copilot session seems to invalidate the other Copilot session and vice versa.

Plugins

None

OpenCode version

1.1.20

Steps to reproduce

  1. Run opencode locally and connect to GitHub Copilot
  2. Run opencode inside a docker image with ~/.local/share/opencode mounted in the container.
  3. Watch as container opencode says there is a problem with the refresh token.
  4. Reconnect opencode in the container with Copilot.
  5. Close opencode locally and reopen it.
  6. Watch as local opencode says there is a problem with the refresh token.

Screenshot and/or share link

No response

Operating System

macos 26, and ubuntu 24.04

Terminal

Ghostty

Originally created by @leighmcculloch on GitHub (Jan 19, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Similar to https://github.com/anomalyco/opencode/issues/2647, I'm having an issue where I run Opencode twice and one Copilot session seems to invalidate the other Copilot session and vice versa. ### Plugins None ### OpenCode version 1.1.20 ### Steps to reproduce 1. Run opencode locally and connect to GitHub Copilot 2. Run opencode inside a docker image with `~/.local/share/opencode` mounted in the container. 3. Watch as container opencode says there is a problem with the refresh token. 4. Reconnect opencode in the container with Copilot. 5. Close opencode locally and reopen it. 6. Watch as local opencode says there is a problem with the refresh token. ### Screenshot and/or share link _No response_ ### Operating System macos 26, and ubuntu 24.04 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:05:16 -05:00
yindo closed this issue 2026-02-16 18:05:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 19, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #2647: copilot.lua autocomplete and opencode auth Github Copilot invalidate eachothers' auth tokens

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 19, 2026): This issue might be a duplicate of existing issues. Please check: - #2647: copilot.lua autocomplete and opencode auth Github Copilot invalidate eachothers' auth tokens Feel free to ignore if none of these address your specific case.
Author
Owner

@leighmcculloch commented on GitHub (Jan 19, 2026):

I discovered I was running two different versions because on local I had installed with Homebrew and on the container I had installed another way and it seems the contents of auth.json changed. The local install with Homebrew was behind 5 versions because apparently it releases so frequently it's limited to every N releases.

Once I had the same version installed on both it worked fine.

@leighmcculloch commented on GitHub (Jan 19, 2026): I discovered I was running two different versions because on local I had installed with Homebrew and on the container I had installed another way and it seems the contents of auth.json changed. The local install with Homebrew was behind 5 versions because apparently it releases so frequently it's limited to every N releases. Once I had the same version installed on both it worked fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6784