Skip to content

Add startup guards and UI diagnostic logging#393

Merged
rygel merged 1 commit intodevelopfrom
codex/fix-card-rendering
Mar 21, 2026
Merged

Add startup guards and UI diagnostic logging#393
rygel merged 1 commit intodevelopfrom
codex/fix-card-rendering

Conversation

@rygel
Copy link
Copy Markdown
Owner

@rygel rygel commented Mar 21, 2026

Summary

  • add a cross-process monitor launch mutex in MonitorLauncher to prevent duplicate monitor starts and wait for existing startup
  • add a per-user Slim UI single-instance mutex in App.xaml.cs with clean acquire/release logging
  • add persistent UI diagnostic log writer to %LOCALAPPDATA%\\AIUsageTracker\\logs with 14-day retention pruning
  • route MainWindow diagnostic events to both structured logger and file diagnostics
  • add runtime reliability TODO items for multi-instance and monitor duplicate-start hardening

Testing

  • dotnet test AIUsageTracker.Tests/AIUsageTracker.Tests.csproj --filter "FullyQualifiedName~MonitorStartupPathTests|FullyQualifiedName~MonitorResilienceTests"
  • dotnet test AIUsageTracker.Tests/AIUsageTracker.Tests.csproj --filter "FullyQualifiedName~AppStartupTests|FullyQualifiedName~MainWindow"

@github-actions
Copy link
Copy Markdown
Contributor

Build Performance Report

⏱️ Build Time: 12 minutes

📊 Comparison with main branch:

  • Baseline (avg): 10 minutes
  • Current: 12 minutes
  • Change: 📈 20%

✅ Within acceptable range


This is an automated performance check

@rygel rygel merged commit bed007c into develop Mar 21, 2026
21 checks passed
@rygel rygel deleted the codex/fix-card-rendering branch March 21, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants