Skip to content

Reset heartbeat at startup completion to avoid false watchdog restart#400

Merged
CJKmkp merged 1 commit intobetafrom
codex/investigate-main-thread-unresponsive-issue
Mar 9, 2026
Merged

Reset heartbeat at startup completion to avoid false watchdog restart#400
CJKmkp merged 1 commit intobetafrom
codex/investigate-main-thread-unresponsive-issue

Conversation

@CJKmkp
Copy link
Member

@CJKmkp CJKmkp commented Mar 9, 2026

Motivation

  • Logs showed the watchdog could detect the main thread as unresponsive immediately after startup because the lastHeartbeat timestamp could be stale at the moment isStartupComplete becomes true, causing a false positive restart.

Description

  • In Ink Canvas/App.xaml.cs set lastHeartbeat = startupCompleteHeartbeat inside the mainWindow.Loaded handler right after isStartupComplete = true to align the watchdog baseline with the actual startup-complete moment.

Testing

  • Applied the patch and verified the modification appears via repository checks using git diff and git status, confirming the new lastHeartbeat assignment is present (no unit tests were run).

Codex Task

@CJKmkp CJKmkp merged commit 13b9b59 into beta Mar 9, 2026
1 check passed
@CJKmkp CJKmkp deleted the codex/investigate-main-thread-unresponsive-issue branch March 9, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant