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

DiskDesk · Story
Two things my DiskDesk release workflow got wrong in its first hour
gh release create fails when the release already exists, and $env:ProgramFiles(x86) does not mean what it looks like in PowerShell. Two small CI fixes, 14 seconds apart.
In short
- The workflow ended with gh release create, which assumes the release does not exist yet; a tag pushed by hand or a rerun breaks that assumption.
- The Inno Setup path used $env:ProgramFiles(x86) in PowerShell, whose parentheses are not part of the variable name, so it needed braces.
- The fix is two small edits, but the version guard and the workflowdispatch split around them are what keep a release honest.
#github-actions#powershell#ci#windows
·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

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

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
·5 min read

DailyBrief · Story
Every AI run died in 2 seconds, and nothing said why
A one-kilobyte stub where the claude binary should be made every DailyBrief run end silently. The fix was checking file size, and a second silent failure taught me the same lesson.
In short
- After a global npm install, claude.cmd was present but bin\claude.exe was a tiny text stub that Windows refused to run.
- Test-Path says yes to a stub, so the fix checks the binary's size, in one shared file instead of four hardcoded paths.
- Five days later a swallowed ENOENT made the app blame the CLI for a problem it did not have (c452d06).
#powershell#windows#claude-cli#debugging
·5 min read

DiskDesk · Story
My right-click menu came up empty: pywin32 has no IContextMenu3
To show Explorer's real context menu from Python, I had to call IContextMenu2 and 3, which pywin32 does not expose. Raw vtable slots and a hidden window filled the empty submenus.
In short
- pywin32 exposes IContextMenu but not IContextMenu2 or IContextMenu3, and without those the shell leaves its dynamic submenus empty.
- shellmenu.py calls the COM methods through raw vtable slots with ctypes.
- A hidden window owns the popup and forwards menu messages to IContextMenu3, falling back to IContextMenu2.
#python#com#ctypes#windows