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

DailyBrief · Story
The brief warned about a missing guard that the code already had
A model reading only commit subjects concluded a bulk delete had no confirmation. The code had a dialog, a 200-row cap and an audit row. The fix was a rule: absence is not evidence.
In short
- The brief reads one digest of commit subjects, never code, and it warned about a missing guard because no subject mentioned one.
- That is an inference from silence: the guard existed, but nothing in the pipeline could ever have shown it.
- Both prompts that write warnings now require evidence present in the digest, and an unverified concern goes into questions.
#llm#prompt-engineering#debugging#dailybrief
·6 min read

TaskPad · Story
TaskPad icons would not line up: one shared frame, then the checkbox column
AvalonEdit puts inline elements at the top of the line, so badges and checkboxes drifted. Two commits fixed it: a shared vertical frame, then a horizontal column.
In short
- AvalonEdit places inline elements at the top of the text line, and a line's top depends on its tallest element, so icons of different heights drifted vertically.
- Commit 525a0a8 added Align.Host, one shared frame for every inline icon, centred on the middle of the capital letters; commit 270faef then made tag icons share the checkbox's three-cell column.
- To do that the parser's tag token now swallows one trailing space, so the text starts at the fifth cell, like [ ] text.
#wpf#avalonedit#csharp#ui-alignment
·5 min read

DailyBrief · Story
My task check said nothing happened, but git evidence was failing silently
A baseline..HEAD range missed feature branches, broke after an amend, and one stderr line under PowerShell 5.1 threw away a task's whole diff. Here is how I rebuilt the evidence.
In short
- The task check built its git evidence from <baseline sha>..HEAD, which misses feature branches, breaks silently after an amend or rebase, and resets every time a check runs.
- Under PowerShell 5.1 with $ErrorActionPreference = 'Stop', one stderr line from git ("unknown revision") became a terminating error and discarded the whole scan diff.
- The fix keeps two baselines, reads every local branch, bounds the window by time as well as by sha, relinks moved folders by root commit, and ships with a digest-only mode and a fixture script.
#powershell#git#debugging#electron
·4 min read

TaskPad · Story
TaskPad comment editing threw because WPF panels do not allow Children[i] = x
The edit button swapped a TextBlock for a TextBox by assigning into a panel's Children by index. WPF throws on that. RemoveAt then Insert fixed it, and copy plus a right-click menu came along.
In short
- Comment editing replaced a TextBlock with a TextBox by assigning into the panel's Children collection by index, which WPF does not allow.
- The fix removes the old element at its index and inserts the box at the same index, which keeps the position.
- While in there I moved delete into a local function so a toolbar button and a new right-click menu share one code path, and added copy with a short check mark as feedback.
#wpf#csharp#desktop#bugfix#ui
·5 min read

Desktop Grid · Story
My auto-fit zone never grew: enforcement put the icon back first
In Desktop Grid, dragging an icon out of an auto-fit zone made it snap back, so the zone never re-fit. Two correct features cancelled out; a ten-line branch fixed it.
In short
- Pinned zones keep their icons inside via a periodic enforcement loop that puts any escaped icon back at its remembered position.
- Auto-fit zones are meant to grow to wrap their icons, but enforcement returned the icon before the zone ever saw it outside, so the zone never re-fit.
- For auto-fit zones the loop now accepts the new position, updates the remembered one and re-fits the border; the enforcement interval went from 4 s to 2 s.
#python#qt#windows#state#debugging
·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

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