From c71795c13ffeb82dae947f7b5407e4c11d68cb99 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Fri, 27 Feb 2026 00:12:29 -0500 Subject: [PATCH] feat(watcher): add configurable IdleTimeoutMs setting (default 5 min) Co-Authored-By: Claude Opus 4.6 --- WindowWatcher/WindowWatcherOptions.cs | 1 + WindowWatcher/appsettings.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/WindowWatcher/WindowWatcherOptions.cs b/WindowWatcher/WindowWatcherOptions.cs index a0fa8e3..4ed59f5 100644 --- a/WindowWatcher/WindowWatcherOptions.cs +++ b/WindowWatcher/WindowWatcherOptions.cs @@ -7,4 +7,5 @@ public class WindowWatcherOptions public string ApiBaseUrl { get; set; } = "http://localhost:5200"; public int PollIntervalMs { get; set; } = 2000; public int DebounceMs { get; set; } = 3000; + public int IdleTimeoutMs { get; set; } = 300_000; } diff --git a/WindowWatcher/appsettings.json b/WindowWatcher/appsettings.json index caa3a46..e8bfbca 100644 --- a/WindowWatcher/appsettings.json +++ b/WindowWatcher/appsettings.json @@ -8,6 +8,7 @@ "WindowWatcher": { "ApiBaseUrl": "http://localhost:5200", "PollIntervalMs": 2000, - "DebounceMs": 3000 + "DebounceMs": 3000, + "IdleTimeoutMs": 300000 } }