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

Desktop Grid · Story
Why a Desktop Grid zone looked right while dragging and re-inflated after the drop
Deleted icons stayed in a pinned zone's kept list forever, and the icon-hugging border kept stretching toward their old spots. A 5-tick grace period fixed it.
In short
- A pinned zone keeps a list of icon positions, and a deleted or renamed icon stayed in that list forever.
- The border draws itself around every kept position, so a ghost icon far from the zone re-inflated the border after each drop.
- Entries missing for 5 consecutive enforcement ticks, about 10 seconds, are now forgotten, and auto-fit zones re-fit when that happens.
#python#pyside6#windows#debugging
·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
·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
·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
·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
·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