Back to JobWhisper

Shipping a desktop app

Auto-updating releases of the JobWhisper desktop app, and the audio bugs that only showed up on real machines.

The JobWhisper desktop app on a Mac. A person in a live interview must be able to trust this window, so most of this case study is about what it does when nobody is looking.

What it is

JobWhisper's desktop app is the interview copilot for Mac, Windows and Linux. It sits next to a live call, hears the interviewer through the computer's audio, and shows the candidate an answer.

A release pipeline and an update path already existed when I took it over, and a teammate had added the Linux build. From there the app went through 21 releases, from the first tag in early September to the last one in early November, and I ran the release process. I also closed the gaps in the pipeline, and I fixed the bugs that only appeared on someone else's machine.

The problem

A web app is one copy, and you can fix it any time. A desktop app is copies on other people's laptops, and some of those copies are in the middle of an interview.

So an update must not interrupt a call, and the audio must keep working on machines I do not own. Real testers tested both in the first weeks.

How I tracked the audio bugs down

The audio bugs worked on my machine and failed on testers' machines, with no error on screen. I looked for the cause before changing the app, and on Windows I built a small test setup to reproduce the failure.

On the Mac, testers saw "Screen Recording is off" with the switch plainly on, and they heard nothing. I read how macOS handles this audio. The old capture method needs a second permission that is listed on its own, and macOS never asks for it. If it is denied, the capture still starts and just streams silence. So the app was working and hearing nothing, and our screen sent people to a switch that was already on.

On Windows, system audio failed in every release from 1.0.9, and the Mac never showed it. I built a bare Electron test app that copied the real app's bridge line for line. With the app's permission rules it failed. With one rule changed it worked.

The hard part

The Mac and Windows failures needed separate investigations. The two platforms capture system audio in two different ways, so a fix and a test on the Mac said nothing about Windows.

App asks to share the screenThis is how Windows system audio starts
Electron asks the permission ruleThe request says it wants no media types
Rule said noIt was written for the microphone only
Audio never startsError: permission denied, in every release from 1.0.9
The Windows bug. The request reached our rule before anything that could say yes, and the rule only knew about microphones.

Decisions and tradeoffs

Never update during a call

The app checks for updates 10 seconds after the window opens, and downloads in the background. It never installs on its own, and it only asks the person to restart. I added the rule that it does not even check or download while a call is live, because the download competes with the audio going out. I kept every decision in one small file with plain tests, so the rule is checked without starting Electron.

What it cost An app that stays open all day can miss a release. It was checking every 6 hours at first, and a tester reported that auto-update did not work, because an app opened just before a release finished uploading found nothing and then did not ask again. I moved it to every hour, plus a check when the window comes back into focus, at most once every 15 minutes.

One tag is the whole release

Each release tag builds all three platforms and publishes their files into one draft release. A last step checks that all three update files arrived before the draft goes public. If one platform fails, the draft stays unpublished and I can rebuild only that one.

Other people fixed parts of the signing with me. Only the Mac build is signed and notarized, with an App Store Connect key, and a release tag refuses to publish an unsigned Mac build.

Use the permission people already give

The second Mac permission is one macOS never asks for, so we could not guide people through it. I replaced the capture method instead. I ported a small Swift helper, already in use in sister products, that captures system audio through Screen Recording, a permission people already turn on for the coding copilot. It runs as a separate program next to the app, one build for each kind of Mac chip. When the permission is refused, it says so instead of streaming silence.

Make audio fix itself

During a tester's real interview, a network glitch left both system audio and the microphone dead. The app told them to restart the session, for devices it could have simply started again.

Now the helper retries after 2, 5, 15 and 30 seconds. The ladder resets only after a calm minute, so a helper that keeps failing backs off and does not start in a loop. The microphone comes back when the system says a device changed, like AirPods dropping or a USB mic being pulled.

What it cost Two things stay final. If the user has refused a permission, we do not retry, because that would pound on a switch that is off. And we never show the permission prompt again mid-call, because a prompt loop over a live interview is worse than a short silence.

See the meeting, not the app

Meeting detection only looked at running programs. So Google Meet in Chrome was invisible, and Zoom counted as a meeting whenever it was merely open. Now it reads the titles of open windows and matches real meeting windows, with the old program list as a backup. It uses the Screen Recording permission the app already has, so it asks for nothing new. It nudges once per meeting.

Result

The Windows system audio fix went out in release 1.0.13. The audio had been broken for four releases in a row, 1.0.9 to 1.0.12. In my test app, the request went from refused to one audio track and one video track with frames flowing.

On the Mac, the helper replaced the old capture and works with the one permission people already give. Meeting detection was tested on a real Mac, and a browser meeting opened the meeting setup. The app no longer checks for or downloads an update during a call.

What was still wrong

I could not run the Windows fix on a Windows machine when I merged it, so the test app was the evidence and the first real check was the install itself. The Mac helper had the same gap. I tested it on my own Mac, but a tester's live session needed the release build. And the 2-second recovery is how the ladder is built. I wrote tests for it, but it needed a real Mac with Wi-Fi turned off to prove it.

What I took from it

The Windows fix needed its own test app, because a passing test on the Mac could not tell me whether Windows audio worked. The bare app showed the real cause in one run.