Openvscode browser refresh loses github config

I installed OpenVSCode using this:

#!/bin/bash
docker pull lscr.io/linuxserver/openvscode-server:latest
docker run -d \
 --restart=always \
 --name openvscode \
 -h openvscode \
 -e PUID=1000 \
 -e PGID=1000 \
 --net=network \
 -p 3000:3000 \
 -e TZ=Europe/Nicosia \
 -v openvscode:/config \
 lscr.io/linuxserver/openvscode-server:latest

The problem is that every time I refresh the browser window, when I try to commit something to github, I get a prompt saying, “The extension ‘GitHub’ wants to sign in using GitHub.” and I have to go through the authentication process again. I installed the “Github pull requests” extension to see if it will resolve the issue, but it didn’t.

What could be causing this issue?

This counts as “intended” as the keychain in these images are finicky

I use this image daily (it’s my main dev platform)

I have no idea what triggers the github authentication prompts, but sometimes I go through a whole month without one, then I get multiple prompts in one day.

Within the last week, I think I only got one.

what do you mean? It’s supposed to make things difficult for no benefit?

It’s a new installation for me, and it does this on every refresh of the browser window.

this didn’t help either

git config --global credential.helper cache
git config --global credential.helper ‘cache --timeout=15780000’

8 months later, I thought I’d give it another try, this time using docker-compose

  vscode:
    image: linuxserver/openvscode-server
    container_name: vscode
    hostname: vscode
    restart: unless-stopped
    environment:
      - PUID=1001
      - PGID=1001
    ports:
      - 3001:3000
    volumes:
      - vscode:/config

Same issue. If I make the mistake of closing the browser window, or refreshing, the next time I try to commit code, I get the prompt to authenticate to GitHub again.

Any suggestions on what could be causing this, or how to troubleshoot/fix it?

this sounds very much like a browser issue (sounds like brave tbh). Have you tried other browsers? have you tried incognito/inprivate mode?