From f9fa077bbbf05ca996ffef91ac914c18db2131e4 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 28 May 2026 23:53:20 +0200 Subject: [PATCH] Fix startup timing attribution closes #4829 --- packages/coding-agent/CHANGELOG.md | 1 + packages/coding-agent/src/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 15a4327ca..2caea4ec2 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -8,6 +8,7 @@ ### Fixed +- Fixed startup timing output so `readPipedStdin` no longer includes `createAgentSessionRuntime` work ([#4829](https://github.com/earendil-works/pi/issues/4829)). - Fixed custom session directories so current-folder resume/continue lookups stay scoped to the active cwd while all-session listings cover the custom directory. - Fixed SIGTERM/SIGHUP exits to run extension `session_shutdown` cleanup and restore the terminal: signal-triggered shutdown now emits `session_shutdown` before any terminal writes, and SIGHUP no longer hard-exits, so extension resources (e.g. sockets) are released even when the terminal is gone ([#5080](https://github.com/earendil-works/pi/issues/5080)). - Fixed Windows startup crashes under MSYS2 ucrt64 Node.js by updating the native clipboard addon to napi-rs 3.x ([#5028](https://github.com/earendil-works/pi/issues/5028)). diff --git a/packages/coding-agent/src/main.ts b/packages/coding-agent/src/main.ts index 71206d9de..4b6c4e165 100644 --- a/packages/coding-agent/src/main.ts +++ b/packages/coding-agent/src/main.ts @@ -670,6 +670,7 @@ export async function main(args: string[], options?: MainOptions) { agentDir, sessionManager, }); + time("createAgentSessionRuntime"); const { services, session, modelFallbackMessage } = runtime; const { settingsManager, modelRegistry, resourceLoader } = services; configureHttpDispatcher(settingsManager.getHttpIdleTimeoutMs());