coder / code-server

VS Code in the browser
https://coder.com
MIT License
66.51k stars 5.45k forks source link

Coder resets settings after some time #6750

Closed pr4x77 closed 2 months ago

pr4x77 commented 2 months ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

Didnt found a way to reproduce. Feels like its time or session based.

Expected

Keep Settings

Actual

Loses all settings like theme, default formatter, layout, git ...

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

Notes

No response

code-asher commented 2 months ago

Are you persisting ~/.local/share/code-server? Settings like the theme should be stored in there, so if you are not persisting that and Docker restarts, everything will be wiped.

pr4x77 commented 2 months ago

I persist "/home/coder/.config", "/home/coder/.local/" and "/home/coder/project".

The path and settings metioned above are in "/home/coder/.local".

benz0li commented 2 months ago

Is /home/coder/.local/share/code-server/User/settings.json reset?

@pr4x77 Please be aware, that some settings are stored in browser storage. 👉 If you delete the browser's cache, those settings are lost.

(Use a browser window in private mode to see what settings are affected)

pr4x77 commented 2 months ago

I rebuild the container with same settings. Since then my problems are gone. I hope that fixed it even though I dont know what caused the container to misbehave like that.

@benz0li and @code-asher ty for your suggestions and help :)