From ae8ecebbdef6ab6e7998eddd190e479b6fa36dfb Mon Sep 17 00:00:00 2001 From: Ehab Younes Date: Mon, 26 Oct 2026 15:02:51 +0000 Subject: [PATCH 1/2] feat(logging): prefix output lines with the full client_session_id --- CHANGELOG.md | 3 +++ src/container.ts | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd7a3a2c37..d0e6cc51fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ ### Changed +- Prefix Coder output channel lines with the full session ID as + `[client_session_id=]`, the same key the `coder` CLI, the agent and + JetBrains Toolbox log, so a search for the ID finds the session everywhere. - API requests no longer read the `npm_config_proxy`, `npm_config_http_proxy`, `npm_config_https_proxy` and `npm_config_no_proxy` environment variables. Set `http.proxy`, `http.noProxy` or the standard `HTTP_PROXY`, `HTTPS_PROXY` and diff --git a/src/container.ts b/src/container.ts index 6c115db2f0..a1163c318b 100644 --- a/src/container.ts +++ b/src/container.ts @@ -5,7 +5,6 @@ import { CliManager } from "./cli/cliManager"; import { watchConfigurationChanges } from "./configWatcher"; import { AuthTelemetry } from "./instrumentation/auth"; import { FlightRecorder } from "./logging/flightRecorder"; -import { shortId } from "./logging/ids"; import { prefixLogger } from "./logging/prefixLogger"; import { LoginCoordinator } from "./login/loginCoordinator"; import { OAuthCallback } from "./oauth/oauthCallback"; @@ -60,7 +59,7 @@ export class ServiceContainer implements vscode.Disposable { const readSize = () => readConnectionLogBufferSize(vscode.workspace.getConfiguration()); this.logger = new FlightRecorder( - prefixLogger(this.outputChannel, `[session ${shortId(sessionId)}]`), + prefixLogger(this.outputChannel, `[client_session_id=${sessionId}]`), this.outputChannel, readSize(), ); From 5b6856bdcb78712f1b12568a2bd7f431ce892f0e Mon Sep 17 00:00:00 2001 From: Ehab Younes Date: Tue, 27 Oct 2026 15:37:12 +0300 Subject: [PATCH 2/2] docs(changelog): describe the full session ID without naming the key --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0e6cc51fe..35340a49eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,9 @@ ### Changed -- Prefix Coder output channel lines with the full session ID as - `[client_session_id=]`, the same key the `coder` CLI, the agent and - JetBrains Toolbox log, so a search for the ID finds the session everywhere. +- Prefix Coder output channel lines with the full session ID instead of a + shortened one, so it matches the ID the `coder` CLI, the agent and JetBrains + Toolbox log and a search for it finds the session everywhere. - API requests no longer read the `npm_config_proxy`, `npm_config_http_proxy`, `npm_config_https_proxy` and `npm_config_no_proxy` environment variables. Set `http.proxy`, `http.noProxy` or the standard `HTTP_PROXY`, `HTTPS_PROXY` and