Skip to content

Batch high-confidence repo-assist improvements - #170

Merged
shanselman merged 2 commits into
masterfrom
shanselman-triage-repo-assist-batch
Aug 8, 2026
Merged

shanselman merged 2 commits into
masterfrom
shanselman-triage-repo-assist-batch

Conversation

@shanselman

Copy link
Copy Markdown
Owner

What this consolidates

Reliability and correctness

  • writes settings.json through a temporary file and atomically replaces the old file, preventing partial/corrupt settings after interruption
  • preserves the app's actual brightness and colour temperature when Settings closes instead of overwriting hotkey changes with stale slider values
  • clamps monitor indexes whenever the display list refreshes, preventing crashes when a monitor is unplugged
  • positions Settings using the owner monitor's work area instead of always using the primary monitor

Performance and visual consistency

  • reuses hole-punch geometries in the global mouse-move hot path instead of allocating two WPF geometry objects per event
  • initializes additional-monitor gradients from the current colour temperature
  • keeps the drop-shadow glow colour synchronized with the gradient on every monitor

Tests and automation

  • adds focused tests for AppSettings defaults, round trips, replacement, corrupt JSON recovery, comments/trailing commas, directory creation, and formatted output
  • adds Windows PR CI that restores, builds, and runs tests with cancellation for superseded runs
  • adds NuGet caching to CI and release builds
  • upgrades softprops/action-gh-release from v1/Node 16 to v2

Documentation and merged-feature hardening

  • corrects stale README claims about multi-monitor behavior, Settings, and capture exclusion
  • fixes the newly merged draggable toolbar so a plain click does not disable auto-positioning
  • makes explicit monitor switches bring a manually moved toolbar to the selected monitor
  • adds an always-reachable tray command to reset the toolbar position

Validation

  • dotnet build WindowsEdgeLight.sln --configuration Release --no-restore
  • dotnet test WindowsEdgeLight.Tests\WindowsEdgeLight.Tests.csproj --configuration Release --no-build — 8 passed
  • independent adversarial review by Claude Opus and GPT Codex; no blocking code defects found

Manual checks before release

  • unplug/replug a monitor while running and switch between monitors
  • open Settings on a secondary mixed-DPI monitor and near screen edges
  • compare default/warm/cool glow and shadow on primary and additional monitors
  • click the drag handle without moving, perform a real drag, switch monitors after dragging, and use tray reset

Closes #169
Closes #164
Closes #162
Closes #160
Closes #158
Closes #138
Closes #137
Closes #134
Closes #131
Closes #127
Closes #126

shanselman and others added 2 commits August 7, 2026 22:25
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 83256e33-0073-41df-8635-10e4fba2ec65
Replace the raw CRLF working-tree upload with Git-normalized blobs so the PR contains only intentional changes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 83256e33-0073-41df-8635-10e4fba2ec65
@shanselman
shanselman merged commit d9c3d56 into master Aug 8, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request Aug 8, 2026
29 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment