code-server always asks to trust workspace even if it is already trusted

Author: VivaPitagorasCreated Mar 12, 2026Updated Sep 19, 2026
Labelsbugtriage

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Firefox
  • Local OS: windows 11
  • Remote OS: Ubuntu 24.04
  • Remote Architecture: amd64
  • code-server --version: 4.109.5 d58aaa7b346b3262e0d4959e5fd5965e95ce456e with Code 1.109.5
  • deployed via docker

Steps to Reproduce

  1. Open code-server in Firefox
  2. Code-server prompts to trust folder.
  3. Close Firefox.
  4. Code-server prompts again to trust same folder.

Expected

code-server should not prompt for again to trust a trusted folder

Actual

It always request to trust the folder

Logs

docker logs -f code-server [2026-03-06T21:24:02.418Z] info code-server 4.109.5 d58aaa7b346b3262e0d4959e5fd5965e95ce456e [2026-03-06T21:24:02.421Z] info Using user-data-dir /home/coder/.local/share/code-server [2026-03-06T21:24:02.429Z] info Using config file /home/coder/.config/code-server/config.yaml [2026-03-06T21:24:02.429Z] info HTTP server listening on http://0.0.0.0:8080/ [2026-03-06T21:24:02.429Z] info - Authentication is enabled [2026-03-06T21:24:02.429Z] info - Using password from /home/coder/.config/code-server/config.yaml [2026-03-06T21:24:02.429Z] info - Not serving HTTPS [2026-03-06T21:24:02.429Z] info Session server listening on /home/coder/.local/share/code-server/code-server-ipc.sock [21:24:07]

[reconnection-grace-time] No CLI argument provided, using default: 10800000ms (10800s) [21:24:07] Extension host agent started. [21:24:09] [172.18.0.13][b9831f04][ManagementConnection] Unknown reconnection token (never seen). [21:24:09] [172.18.0.13][6ad57e31][ExtensionHostConnection] Unknown reconnection token (never seen). File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js [21:31:54] [172.18.0.13][4a9d1a92][ManagementConnection] New connection established. [21:31:54] [172.18.0.13][f1b5a4e4][ExtensionHostConnection] New connection established. [21:31:54] [172.18.0.13][f1b5a4e4][ExtensionHostConnection] <555> Launched Extension Host Process. [21:31:55] [172.18.0.13][f1b5a4e4][ExtensionHostConnection] <555> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

[21:32:01] [172.18.0.13][4a9d1a92][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js [21:32:04] [172.18.0.13][3fa4c857][ManagementConnection] New connection established. [21:32:04] [172.18.0.13][c6ae5414][ExtensionHostConnection] New connection established. [21:32:04] [172.18.0.13][c6ae5414][ExtensionHostConnection] <1213> Launched Extension Host Process. [21:32:04] [172.18.0.13][c6ae5414][ExtensionHostConnection] <1213> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

[22:01:03] [172.18.0.13][3fa4c857][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm [22:01:06] [172.18.0.13][764e4f98][ManagementConnection] New connection established. [22:01:07] [172.18.0.13][14db854e][ExtensionHostConnection] New connection established. [22:01:07] [172.18.0.13][14db854e][ExtensionHostConnection] <12251> Launched Extension Host Process. [22:01:07] [172.18.0.13][14db854e][ExtensionHostConnection] <12251> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

[22:06:06] [172.18.0.13][f1b5a4e4][ExtensionHostConnection] <555> Extension Host Process exited with code: 0, signal: null. [22:07:04] [172.18.0.13][764e4f98][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [22:07:04] [172.18.0.13][14db854e][ExtensionHostConnection] <12251> Extension Host Process exited with code: 0, signal: null. [01:01:32] [172.18.0.13][c6ae5414][ExtensionHostConnection] <1213> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm [17:58:22] [172.18.0.13][518e8f57][ManagementConnection] New connection established. [17:58:22] [172.18.0.13][b374a097][ExtensionHostConnection] New connection established. [17:58:22] [172.18.0.13][b374a097][ExtensionHostConnection] <47584> Launched Extension Host Process. [17:58:23] [172.18.0.13][b374a097][ExtensionHostConnection] <47584> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

File not found: /usr/lib/code-server/lib/vscode/node_modules/@xterm/addon-ligatures/lib/addon-ligatures.js [18:10:56] Getting Manifest... cweijan.vscode-mysql-client2 [18:10:56] Installing extension: cweijan.vscode-mysql-client2 { isMachineScoped: false, installPreReleaseVersion: false, pinned: false, isApplicationScoped: false, profileLocation: Gr { scheme: 'file', authority: '', path: '/home/coder/.local/share/code-server/extensions/extensions.json', query: '', fragment: '', _formatted: 'file:///home/coder/.local/share/code-server/extensions/extensions.json', _fsPath: '/home/coder/.local/share/code-server/extensions/extensions.json' }, productVersion: { version: '1.109.5', date: '2026-03-02T20:23:03.808Z' } } [18:10:57] Getting Manifest... cweijan.dbclient-jdbc [18:10:57] Installing extension: cweijan.dbclient-jdbc { isMachineScoped: false, installPreReleaseVersion: false, pinned: false, isApplicationScoped: false, profileLocation: Gr { scheme: 'file', authority: '', path: '/home/coder/.local/share/code-server/extensions/extensions.json', query: '', fragment: '', _formatted: 'file:///home/coder/.local/share/code-server/extensions/extensions.json', _fsPath: '/home/coder/.local/share/code-server/extensions/extensions.json' }, productVersion: { version: '1.109.5', date: '2026-03-02T20:23:03.808Z' }, installGivenVersion: false, context: { dependecyOrPackExtensionInstall: true } } [18:10:58] Extracted extension to file:///home/coder/.local/share/code-server/extensions/cweijan.vscode-mysql-client2-8.4.5-universal: cweijan.vscode-mysql-client2 [18:10:58] Renamed to /home/coder/.local/share/code-server/extensions/cweijan.vscode-mysql-client2-8.4.5-universal [18:10:58] Extracted extension to file:///home/coder/.local/share/code-server/extensions/cweijan.dbclient-jdbc-1.4.2-universal: cweijan.dbclient-jdbc [18:10:58] Renamed to /home/coder/.local/share/code-server/extensions/cweijan.dbclient-jdbc-1.4.2-universal [18:10:58] Extension installed successfully: cweijan.vscode-mysql-client2 file:///home/coder/.local/share/code-server/extensions/extensions.json [18:10:58] Extension installed successfully: cweijan.dbclient-jdbc file:///home/coder/.local/share/code-server/extensions/extensions.json [18:15:12] [172.18.0.13][518e8f57][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm [18:15:14] [172.18.0.13][b44d61cf][ManagementConnection] New connection established. [18:15:14] [172.18.0.13][f91989b8][ExtensionHostConnection] New connection established. [18:15:14] [172.18.0.13][f91989b8][ExtensionHostConnection] <64345> Launched Extension Host Process. [18:15:15] [172.18.0.13][f91989b8][ExtensionHostConnection] <64345> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

[18:18:07] [172.18.0.13][b44d61cf][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [18:18:07] [172.18.0.13][f91989b8][ExtensionHostConnection] <64345> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js [18:43:39] [172.18.0.13][4f069f7f][ManagementConnection] New connection established. [18:43:40] [172.18.0.13][f753731d][ExtensionHostConnection] New connection established. [18:43:40] [172.18.0.13][f753731d][ExtensionHostConnection] <71199> Launched Extension Host Process. [18:43:40] [172.18.0.13][f753731d][ExtensionHostConnection] <71199> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

File not found: /usr/lib/code-server/lib/vscode/node_modules/@xterm/addon-ligatures/lib/addon-ligatures.js [18:48:40] [172.18.0.13][b374a097][ExtensionHostConnection] <47584> Extension Host Process exited with code: 0, signal: null. [20:53:56] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [23:41:35] [172.18.0.13][4f069f7f][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [23:41:35] [172.18.0.13][f753731d][ExtensionHostConnection] <71199> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm [15:43:44] [172.18.0.13][68a6aef2][ManagementConnection] New connection established. [15:44:12] [172.18.0.13][09c97f24][ExtensionHostConnection] New connection established. [15:44:12] [172.18.0.13][09c97f24][ExtensionHostConnection] <131724> Launched Extension Host Process. [15:44:12] [172.18.0.13][09c97f24][ExtensionHostConnection] <131724> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

File not found: /usr/lib/code-server/lib/vscode/node_modules/@xterm/addon-ligatures/lib/addon-ligatures.js [22:39:18] [172.18.0.13][68a6aef2][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [22:39:18] [172.18.0.13][09c97f24][ExtensionHostConnection] <131724> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js [12:16:50] [172.18.0.13][965db619][ManagementConnection] New connection established. [12:16:51] [172.18.0.13][7685c4bd][ExtensionHostConnection] New connection established. [12:16:51] [172.18.0.13][7685c4bd][ExtensionHostConnection] <214153> Launched Extension Host Process. [12:16:51] [172.18.0.13][7685c4bd][ExtensionHostConnection] <214153> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

[12:20:47] [172.18.0.13][965db619][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [12:20:47] [172.18.0.13][7685c4bd][ExtensionHostConnection] <214153> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js [12:20:50] [172.18.0.13][52a2b08d][ManagementConnection] New connection established. [12:20:51] [172.18.0.13][ee99eb46][ExtensionHostConnection] New connection established. [12:20:51] [172.18.0.13][ee99eb46][ExtensionHostConnection] <216585> Launched Extension Host Process. [12:20:51] [172.18.0.13][ee99eb46][ExtensionHostConnection] <216585> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

File not found: /usr/lib/code-server/lib/vscode/node_modules/@xterm/addon-ligatures/lib/addon-ligatures.js [14:12:02] [172.18.0.13][52a2b08d][ManagementConnection] The client has disconnected, will wait for reconnection 3h before disposing... [14:47:34] [172.18.0.13][52a2b08d][ManagementConnection] Another client has connected, will shorten the wait for reconnection 5m before disposing... [14:47:34] [172.18.0.13][ee99eb46][ExtensionHostConnection] The client has reconnected. [14:47:35] [172.18.0.13][52a2b08d][ManagementConnection] The client has reconnected. [15:06:42] [172.18.0.13][52a2b08d][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [15:06:42] [172.18.0.13][ee99eb46][ExtensionHostConnection] <216585> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm [15:06:44] [172.18.0.13][10549f9c][ManagementConnection] New connection established. [15:06:45] [172.18.0.13][729e3855][ExtensionHostConnection] New connection established. [15:06:45] [172.18.0.13][729e3855][ExtensionHostConnection] <248735> Launched Extension Host Process. [15:06:45] [172.18.0.13][729e3855][ExtensionHostConnection] <248735> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

[15:07:07] [172.18.0.13][10549f9c][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [15:07:08] [172.18.0.13][729e3855][ExtensionHostConnection] <248735> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js [15:07:26] [172.18.0.13][7e8ca7e1][ManagementConnection] New connection established. [15:07:27] [172.18.0.13][b8445688][ExtensionHostConnection] New connection established. [15:07:27] [172.18.0.13][b8445688][ExtensionHostConnection] <249730> Launched Extension Host Process. [15:07:27] [172.18.0.13][b8445688][ExtensionHostConnection] <249730> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

[15:26:19] [172.18.0.13][7e8ca7e1][ManagementConnection] The client has disconnected, will wait for reconnection 3h before disposing... [16:03:49] [172.18.0.13][7e8ca7e1][ManagementConnection] Another client has connected, will shorten the wait for reconnection 5m before disposing... [16:03:49] [172.18.0.13][b8445688][ExtensionHostConnection] The client has reconnected. [16:03:49] [172.18.0.13][7e8ca7e1][ManagementConnection] The client has reconnected. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js [16:16:20] [172.18.0.13][324d3c9f][ManagementConnection] New connection established. [16:16:22] [172.18.0.13][52df223a][ExtensionHostConnection] New connection established. [16:16:22] [172.18.0.13][52df223a][ExtensionHostConnection] <263929> Launched Extension Host Process. [16:16:22] [172.18.0.13][52df223a][ExtensionHostConnection] <263929> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

[16:21:08] [172.18.0.13][7e8ca7e1][ManagementConnection] The client has disconnected, will wait for reconnection 3h before disposing... [16:31:28] [172.18.0.13][324d3c9f][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [16:31:28] [172.18.0.13][52df223a][ExtensionHostConnection] <263929> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm [16:31:31] [172.18.0.13][7e8ca7e1][ManagementConnection] Another client has connected, will shorten the wait for reconnection 5m before disposing... [16:31:31] [172.18.0.13][4cc437c6][ManagementConnection] New connection established. [16:31:32] [172.18.0.13][9d6ec362][ExtensionHostConnection] New connection established. [16:31:32] [172.18.0.13][9d6ec362][ExtensionHostConnection] <270782> Launched Extension Host Process. [16:31:32] [172.18.0.13][9d6ec362][ExtensionHostConnection] <270782> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

File not found: /usr/lib/code-server/lib/vscode/node_modules/@xterm/addon-ligatures/lib/addon-ligatures.js [16:36:31] [172.18.0.13][b8445688][ExtensionHostConnection] <249730> Extension Host Process exited with code: 0, signal: null. [16:36:31] [172.18.0.13][7e8ca7e1][ManagementConnection] The reconnection short grace time of 5m has expired, so the connection will be disposed. [16:59:16] [172.18.0.13][4cc437c6][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [16:59:16] [172.18.0.13][9d6ec362][ExtensionHostConnection] <270782> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm [16:59:20] [172.18.0.13][df5c6e44][ManagementConnection] New connection established. [16:59:20] [172.18.0.13][b6461c43][ExtensionHostConnection] New connection established. [16:59:21] [172.18.0.13][b6461c43][ExtensionHostConnection] <279200> Launched Extension Host Process. [16:59:21] [172.18.0.13][b6461c43][ExtensionHostConnection] <279200> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)

File not found: /usr/lib/code-server/lib/vscode/node_modules/@xterm/addon-ligatures/lib/addon-ligatures.js [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [17:04:39] [File Watcher (node.js)] Watcher shutdown because watched path got deleted [19:14:16] [172.18.0.13][df5c6e44][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [19:14:17] [172.18.0.13][b6461c43][ExtensionHostConnection] <279200> Extension Host Process exited with code: 0, signal: null. File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js File not found: /usr/lib/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm [23:20:06] [172.18.0.13][6f7d2d03][ManagementConnection] New connection established. [23:20:07] [172.18.0.13][08aa32fe][ExtensionHostConnection] New connection established. [23:20:07] [172.18.0.13][08aa32fe][ExtensionHostConnection] <305321> Launched Extension Host Process. [23:20:07] [172.18.0.13][08aa32fe][ExtensionHostConnection] <305321> [reconnection-grace-time] Extension host: read VSCOD