Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Log when the start window shows and when its page paints

AdamPlatin123b844ada7fffc
diff --git a/app/src/start-window.mjs b/app/src/start-window.mjs
index a088c91b..0c6526b9 100644
--- a/app/src/start-window.mjs
+++ b/app/src/start-window.mjs
@@ -275,6 +275,10 @@ export class StartWindow {
this.#window = win
this.#url = startUrl(this.#o.page, start)
const contents = win.webContents
+ // The window shows at once; its page paints a little later (onboarding §3: within about 1 s).
+ const sinceLaunch = () => String(Math.round(process.uptime() * 1000))
+ note(`${start} start window shown ${sinceLaunch()} ms after launch`)
+ win.once('ready-to-show', () => { note(`the start page painted ${sinceLaunch()} ms after launch`) })
this.#painted = new Promise((resolve) => {
win.once('ready-to-show', resolve)
contents.once('did-finish-load', resolve)