Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
80 posts
·5 min read

DailyBrief · Story
The app blamed the claude CLI, but my migration had swallowed an ENOENT
A fresh DailyBrief 1.7.0 account reported 'claude CLI wrote no log'. The CLI was fine: a migration copied into a folder that did not exist and a catch hid the error.
In short
- 1.7.0 moved user data into a per-user data folder, but the migration copied into a directory that did not exist yet. ENOENT was thrown and then swallowed by a catch.
- Every run on a fresh or migrated account then died inside Get-Content on a missing file, before it could open a log, so the app blamed the claude CLI.
- The fix creates the destination first, seeds the files the scripts read unconditionally, and makes the scripts treat a missing board as an empty one.
#electron#powershell#error-handling#migration#debugging
·5 min read

Zig images for Pterodactyl: four compiler versions, two tarball names
One Dockerfile builds four Zig releases for amd64 and arm64, and a start script that checks build.zig before passing flags and explains every failure in a sentence.
In short
- One Dockerfile takes ZIGVERSION as a build argument, tries the new tarball name first and falls back to the pre-0.14.1 name.
- The start script only passes -Doptimize when build.zig declares it, and refuses to guess when a build produces zero or several executables.
- CI builds four versions for amd64 and arm64 and rebuilds monthly, so base-image security updates arrive without a code change.
#docker#zig#pterodactyl#github-actions#bash
·5 min read

TaskPad setup quits the running copy over its own named pipe, not with Kill
The installer used to leave the old TaskPad running, so updates waited for a restart. Setup now sends a quit message through the single-instance pipe, so tabs and unsaved text survive.
In short
- Setup now asks the running TaskPad to quit over the named pipe the app already uses for single-instance handoff, then falls back to closing windows and, only if allowed, killing the process.
- A quit request saves the session and closes windows without prompts, so tabs and unsaved text survive the reinstall.
- The interactive installer asks before forcing; the silent installer forces after 15 seconds, because nobody is there to answer.
#csharp#wpf#named-pipes#installer#windows
·5 min read

DailyBrief · Story
Four kanban cards shared one repo, so every one got the same evidence
Four tasks in one folder received the same 187 changed files and 8 commits, so the AI check either said nothing or closed a card off a neighbour's commit. The fix moved the decision into the script.
In short
- Tasks that share one folder all received the folder's whole diff, so no card could be told apart from its neighbours.
- Evidence is now attributed per task by matching the names in its title and checklist against changed files and each new commit's file list; closing a task requires a hit.
- Fixing it exposed a baseline that was consumed too early, a noise filter that matched nothing on Windows paths, and a few smaller bugs.
#powershell#git#ai-agents#debugging#windows
·4 min read

DiskDesk · Story
The DiskDesk uninstaller asked a question that no silent update can answer
The in-app updater runs installers silently, yet the uninstaller still offered to delete settings in a dialog. One Inno Setup condition makes it keep the data instead.
In short
- The Inno Setup uninstaller asks whether to delete settings, and the in-app updater drives installers silently, so any question on that path is a risk.
- The prompt is now skipped when the uninstall is silent, using Inno's own UninstallSilent, and the settings are left in place.
- Keeping data is the safe default for a path no human watches, because a deleted settings folder cannot be restored.
#inno-setup#installer#updater#windows
·6 min read

TaskPad · Story
TaskPad's session restore could register a window it never showed
Restore created each window first and checked its tabs later, so a failure could leave a hidden window in the workspace. I rewrote it to validate before creating.
In short
- Session restore built each saved window up front and cleaned up empty ones afterwards, so a failure midway could leave a hidden window registered in the workspace.
- I split restore into parse, validate, create: a window is only made when at least one of its tabs can really be restored, and anything that fails is logged and rolled back.
- The save side and the single-instance handler now ignore invisible windows too, so a hidden one cannot be saved, or receive a file you double-clicked.
#wpf#csharp#session-restore#debugging
·6 min read

Parallel AI checks kept overwriting my kanban board, so I added a lock and a merge
Several AI runs and the page saved the same kanban.json, and the last writer won. A shared lock file was not enough, so saves became a three-way merge.
In short
- Parallel AI checks and the user's own board saves all did read-modify-write on the same kanban.json, so the last writer dropped everyone else's changes.
- I added one lock file that both Node and PowerShell take, and a three-way merge so a page save is merged with what the scripts wrote meanwhile instead of overwriting it.
- If the lock cannot be taken, nothing is written and the user sees an error, because an unlocked write is exactly the bug being fixed.
#electron#concurrency#file-locking#powershell
·7 min read

Chiti · Story
A courier who stood still stopped receiving offers
A courier waiting for work stopped seeing fresh offers. It took four causes to explain it: a 250 m distance gate, a location provider that never answered, a false status and a stale cache.
In short
- The server ranks a courier's offers around their last stored position, so a position that stops updating quietly freezes the feed.
- Four stacked causes: a 250 m distance gate, a location accuracy setting that some devices never answer, a screen that claimed to track when nothing was running, and a persisted cache shown off shift.
- Each fix is small. The work was following the symptom through app state, OS settings and server ranking.
#react-native#expo-location#tanstack-query#debugging