an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
<!doctype html>
<html lang="en">
<head>
<!-- Google tag (gtag.js), Google Ads AW-18388216863. Loaded only when Do Not Track is
off, so it follows the same rule as the PostHog block on this site. -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
if (navigator.doNotTrack !== '1') {
var gtagScript = document.createElement('script');
gtagScript.async = true;
gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id=AW-18388216863';
document.head.appendChild(gtagScript);
gtag('js', new Date());
gtag('config', 'AW-18388216863');
}
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace — Munder Difflin Blog</title>
<meta name="description" content="Munder Difflin shipped auto-update in v0.3.4 and it silently never worked in a single packaged build. The cause was one destructuring assignment across the CommonJS/ESM boundary — and a catch block that threw the evidence away. Here's how we found it, and what v0.3.7 changes." />
<link rel="canonical" href="https://munderdiffl.in/blog/why-our-auto-update-never-ran/" />
<link rel="icon" type="image/png" href="https://munderdiffl.in/logo.png" />
<link rel="apple-touch-icon" href="https://munderdiffl.in/logo.png" />
<meta name="theme-color" content="#F5F2E8" />
<!-- Open Graph -->
<meta property="og:site_name" content="Munder Difflin Blog" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace — Munder Difflin Blog" />
<meta property="og:description" content="Munder Difflin shipped auto-update in v0.3.4 and it silently never worked in a single packaged build. The cause was one destructuring assignment across the CommonJS/ESM boundary — and a catch block that threw the evidence away. Here's how we found it, and what v0.3.7 changes." />
<meta property="og:url" content="https://munderdiffl.in/blog/why-our-auto-update-never-ran/" />
<meta property="og:image" content="https://munderdiffl.in/blog/assets/media/why-our-auto-update-never-ran/hero.png" />
<meta property="og:image:width" content="1600" />
<meta property="og:image:height" content="900" />
<meta property="og:image:alt" content="Illustration: Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace" />
<meta property="og:locale" content="en_US" />
<meta property="article:published_time" content="2026-08-08T00:00:00.000Z" />
<meta property="article:author" content="Chaitanya Giri" />
<meta property="article:tag" content="Internals" />
<meta property="article:tag" content="Electron" />
<meta property="article:tag" content="Debugging" />
<meta property="article:tag" content="Release" />
<meta property="article:tag" content="Open Source" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace — Munder Difflin Blog" />
<meta name="twitter:description" content="Munder Difflin shipped auto-update in v0.3.4 and it silently never worked in a single packaged build. The cause was one destructuring assignment across the CommonJS/ESM boundary — and a catch block that threw the evidence away. Here's how we found it, and what v0.3.7 changes." />
<meta name="twitter:image" content="https://munderdiffl.in/blog/assets/media/why-our-auto-update-never-ran/hero.png" />
<meta name="twitter:image:alt" content="Illustration: Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace" />
<link rel="alternate" type="application/atom+xml" title="Munder Difflin Blog" href="https://munderdiffl.in/blog/feed.xml" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],500;9..144,600;9..144,700;9..144,900&family=Source+Serif+4:opsz,[email protected],400;8..60,600;8..60,700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="/blog/assets/blog-press.css" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace",
"description": "Munder Difflin shipped auto-update in v0.3.4 and it silently never worked in a single packaged build. The cause was one destructuring assignment across the CommonJS/ESM boundary — and a catch block that threw the evidence away. Here's how we found it, and what v0.3.7 changes.",
"image": ["https://munderdiffl.in/blog/assets/media/why-our-auto-update-never-ran/hero.png"],
"datePublished": "2026-08-08T00:00:00.000Z",
"dateModified": "2026-08-08T00:00:00.000Z",
"author": { "@type": "Person", "name": "Chaitanya Giri" },
"publisher": {
"@type": "Organization",
"name": "Munder Difflin",
"logo": { "@type": "ImageObject", "url": "https://munderdiffl.in/logo.png" }
},
"mainEntityOfPage": { "@type": "WebPage", "@id": "https://munderdiffl.in/blog/why-our-auto-update-never-ran/" },
"keywords": "electron-updater not working, electron auto update not working, cjs-module-lexer named export undefined, await import commonjs electron, electron-updater autoUpdater undefined, electron app.isPackaged debugging",
"articleSection": "Internals",
"inLanguage": "en-US",
"url": "https://munderdiffl.in/blog/why-our-auto-update-never-ran/"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://munderdiffl.in/" },
{ "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://munderdiffl.in/blog/" },
{ "@type": "ListItem", "position": 3, "name": "Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace", "item": "https://munderdiffl.in/blog/why-our-auto-update-never-ran/" }
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{ "@type": "Question", "name": "Why was electron-updater's autoUpdater undefined?", "acceptedAnswer": { "@type": "Answer", "text": "electron-updater is a CommonJS package that attaches autoUpdater to its exports through a lazy Object.defineProperty getter. Node's cjs-module-lexer detects named exports by static analysis, and it cannot see through a getter defined at runtime. So the ESM namespace produced by `await import('electron-updater')` has no autoUpdater key at all — it only exists on the namespace's `.default`. Destructuring `const { autoUpdater } = await import('electron-updater')` therefore yields undefined. Use `ns.autoUpdater ?? ns.default?.autoUpdater`, or plain `require()`, instead." } },
{ "@type": "Question", "name": "Why didn't this show up in development?", "acceptedAnswer": { "@type": "Answer", "text": "The whole updater setup block was behind an `app.isPackaged` check, which is false in dev. Development runs never executed the line that threw, so the bug could only ever appear in a shipped build — and shipped builds have no visible console. It survived three releases that way." } },
{ "@type": "Question", "name": "How do you debug an Electron app that only misbehaves when packaged?", "acceptedAnswer": { "@type": "Answer", "text": "Launch the installed binary directly from a terminal with an isolated data directory: `/Applications/YourApp.app/Contents/MacOS/YourApp --user-data-dir=/tmp/probe`. Electron's single-instance lock is keyed to the user-data directory, so this runs alongside the copy the user already has open, and every console.log and stack trace lands in your terminal instead of disappearing." } },
{ "@type": "Question", "name": "Do I need to reinstall Munder Difflin to get v0.3.7?", "acceptedAnswer": { "@type": "Answer", "text": "Yes, once. Every build from v0.3.4 through v0.3.6 carries the broken updater, so it cannot fetch this fix by itself. Download v0.3.7 manually from munderdiffl.in or the GitHub releases page. From v0.3.7 onward, updates download in the background and wait for your restart." } },
{ "@type": "Question", "name": "How do you stop a bug like this from hiding again?", "acceptedAnswer": { "@type": "Answer", "text": "Three changes. Errors are never swallowed — every updater failure is emitted to the UI and appended to a log file on disk. The notify-only fallback is per-check rather than a permanent latch, so one blip doesn't disable updates for the session. And the state model moved into a plain electron-free module with unit tests, so the rules can be verified without booting the app." } }
]
}
</script>
<script>
// Anonymous blog analytics (PostHog) — same posture as the main site and the
// app's TELEMETRY.md: public write-only token ('' = inert), anonymous-only
// (person_profiles 'never'), no autocapture/recording, DNT respected.
(function () {
var PH_KEY = 'phc_qJzsokwcbtTGHemnvywR3nSqivNNgMjHeNVEWkZNydFB';
if (!PH_KEY || navigator.doNotTrack === '1') return;
var s = document.createElement('script');
s.async = true;
s.src = 'https://us-assets.i.posthog.com/static/array.js';
s.onload = function () {
if (!window.posthog) return;
window.posthog.init(PH_KEY, {
api_host: 'https://us.i.posthog.com',
person_profiles: 'never',
autocapture: false,
before_send: function (event) {
// PostHog fills $ip from the connection unless the event carries one.
// Null it here and disable the GeoIP lookup so no IP, city, postal
// code or lat/long is ever derived or stored for this page view.
if (event && event.properties) {
event.properties.$ip = null;
event.properties.$geoip_disable = true;
}
return event;
},
disable_session_recording: true,
respect_dnt: true
});
};
document.head.appendChild(s);
})();
</script>
</head>
<body class="theme-press">
<a class="skip-link" href="#main">Skip to content</a>
<nav id="nav">
<a class="brand" href="https://munderdiffl.in" aria-label="Munder Difflin home">
<img class="brand-logo" src="https://munderdiffl.in/logo.png" width="1318" height="840" alt="Munder Difflin, Inc. — Multi-Agent Harness" />
</a>
<span class="spacer"></span>
<div class="links">
<a href="/blog/">Latest</a>
<a href="/blog/topics/">Topics</a>
<a href="/blog/about/">About</a>
<a href="https://munderdiffl.in">↗ Product</a>
</div>
<div class="nav-actions">
<a class="btn sm" href="https://munderdiffl.in/blog/feed.xml" aria-label="RSS feed">⤵ RSS</a>
<a class="btn sm primary" href="https://munderdiffl.in/#install">⤓ Download</a>
</div>
</nav>
<main id="main">
<article class="t-internals">
<header class="post-head wrap">
<nav class="crumbs" aria-label="Breadcrumb">
<a href="/blog/">Blog</a>
<span>/</span>
<a href="/blog/topics/internals/">Internals</a>
</nav>
<h1>Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace</h1>
<p class="dek">Munder Difflin shipped auto-update in v0.3.4 and it silently never worked in a single packaged build. The cause was one destructuring assignment across the CommonJS/ESM boundary — and a catch block that threw the evidence away. Here's how we found it, and what v0.3.7 changes.</p>
<div class="byline">
<span class="av" aria-hidden="true">CG</span>
<strong>Chaitanya Giri</strong>
<span class="dot" aria-hidden="true">·</span>
<time datetime="2026-08-08">Aug 8, 2026</time>
<span class="dot" aria-hidden="true">·</span>
<span>5 min read</span>
<span class="tag kind">Internals</span>
</div>
</header>
<div class="hero-wrap wrap"><figure class="fig fig-hero"><img src="/blog/assets/media/why-our-auto-update-never-ran/hero.png" alt="Illustration: Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace" loading="lazy" decoding="async" /></figure></div>
<div class="post-wrap wrap">
<div class="prose">
<div class="callout tldr"><span class="ic">TL;DR</span><p>Munder Difflin shipped auto-update in <strong>v0.3.4</strong>. It never ran — not once, in any packaged build, through three releases. The cause was a single destructuring assignment across the CommonJS/ESM boundary that produced <code>undefined</code>, and a <code>catch</code> block that threw away the error message. <strong>v0.3.7</strong> fixes it, turns the toolbar version into the update button, and makes sure the next failure can't hide.</p></div>
<p>A user restarted the app after v0.3.6 went live and reported that auto-update hadn’t
triggered. What they got instead was a toast offering to open the releases page in a
browser — the fallback path, meant for installs that genuinely can’t update themselves.</p>
<p>That’s a good bug report, because the fallback existing at all means the app <em>knew</em> there
was a new version. It found the release. It just refused to install it.</p>
<h2 id="ruling-things-out-expensively" tabindex="-1">Ruling things out, expensively <a class="anchor" href="#ruling-things-out-expensively" aria-hidden="true">#</a></h2>
<p>The obvious suspect on macOS is notarization. An update that isn’t properly signed and
stapled gets refused by Gatekeeper, and the failure is quiet. So the published asset went
under a microscope first:</p>
<pre class="language-bash"><code class="language-bash">shasum <span class="token parameter variable">-a</span> <span class="token number">512</span> Munder-Difflin-0.3.6-mac-universal.zip <span class="token comment"># matches latest-mac.yml exactly</span>
codesign <span class="token parameter variable">--verify</span> <span class="token parameter variable">--deep</span> <span class="token parameter variable">--strict</span> <span class="token parameter variable">--verbose</span><span class="token operator">=</span><span class="token number">2</span> <span class="token string">"Munder Difflin.app"</span>
xcrun stapler validate <span class="token string">"Munder Difflin.app"</span>
spctl <span class="token parameter variable">--assess</span> <span class="token parameter variable">-vv</span> <span class="token string">"Munder Difflin.app"</span></code></pre>
<p>All clean. Developer ID signature, notarization ticket stapled, <code>spctl</code> accepted, and the
SHA-512 matching the update feed byte for byte. The release was fine.</p>
<p>Next suspect: the feed. Running <code>electron-updater</code> directly against the live GitHub release
resolved 0.3.5 → 0.3.6 correctly, downloaded all 232 MB, verified the hash, and emitted
<code>update-downloaded</code>. The updater library was fine too.</p>
<p>So the release worked, the library worked, and the app still wouldn’t update. The problem
had to be in our own code — and our own code was refusing to say what was wrong.</p>
<h2 id="getting-a-packaged-app-to-talk" tabindex="-1">Getting a packaged app to talk <a class="anchor" href="#getting-a-packaged-app-to-talk" aria-hidden="true">#</a></h2>
<p>Everything interesting here lives behind <code>app.isPackaged</code>, which is false in development.
The bug could only exist in a build with no visible console.</p>
<p>The trick that cracked it: <strong>Electron’s single-instance lock is keyed to the user-data
directory.</strong> Point a second launch at a different one and it runs happily alongside the
copy already open, with stdout wired to your terminal.</p>
<pre class="language-bash"><code class="language-bash"><span class="token string">"/Applications/Munder Difflin.app/Contents/MacOS/Munder Difflin"</span> <span class="token punctuation">\</span>
--user-data-dir<span class="token operator">=</span>/tmp/updater-probe</code></pre>
<p>Thirty seconds later, the first check fired and printed the thing the app had been
swallowing for three releases:</p>
<pre><code>[updater] electron-updater unavailable; notify-only mode:
TypeError: Cannot set properties of undefined (setting 'autoDownload')
</code></pre>
<figure class="fig fig-inline"><img src="/blog/assets/media/why-our-auto-update-never-ran/note-1.png" alt="Hand-drawn sketch from “Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace”" loading="lazy" decoding="async" /></figure>
<h2 id="one-line-three-releases" tabindex="-1">One line, three releases <a class="anchor" href="#one-line-three-releases" aria-hidden="true">#</a></h2>
<p>Here is the code that shipped in v0.3.4:</p>
<pre class="language-js"><code class="language-js"><span class="token keyword">const</span> <span class="token punctuation">{</span> autoUpdater <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">import</span><span class="token punctuation">(</span><span class="token string">'electron-updater'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
autoUpdater<span class="token punctuation">.</span>autoDownload <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span> <span class="token comment">// ← TypeError, every single time</span></code></pre>
<p><code>electron-updater</code> is a CommonJS package, and it attaches <code>autoUpdater</code> to its exports
through a lazy <code>Object.defineProperty</code> getter. Node’s ESM loader detects named exports from
CommonJS with <code>cjs-module-lexer</code>, which works by <strong>static analysis</strong> — and a property
defined at runtime by a getter is invisible to it.</p>
<p>The result, confirmed by probing the namespace directly:</p>
<pre class="language-js"><code class="language-js"><span class="token keyword">const</span> ns <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">import</span><span class="token punctuation">(</span><span class="token string">'electron-updater'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
Object<span class="token punctuation">.</span><span class="token function">keys</span><span class="token punctuation">(</span>ns<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// AppUpdater, MacUpdater, NsisUpdater, … default</span>
ns<span class="token punctuation">.</span>autoUpdater<span class="token punctuation">;</span> <span class="token comment">// undefined ← what we destructured</span>
ns<span class="token punctuation">.</span>default<span class="token punctuation">.</span>autoUpdater<span class="token punctuation">;</span> <span class="token comment">// object ← where it actually lives</span>
<span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'electron-updater'</span><span class="token punctuation">)</span><span class="token punctuation">.</span>autoUpdater<span class="token punctuation">;</span> <span class="token comment">// object</span></code></pre>
<p>So the destructuring produced <code>undefined</code>, and the very next line — setting a property on
it — threw. That exception landed in a <code>catch</code> that set a <code>fallbackActive</code> flag and moved
on. From then on, every check in that session took the notify-only path. Which is exactly
what the user saw: an app that finds new releases and can only offer you a link.</p>
<p>The fix is unglamorous:</p>
<pre class="language-js"><code class="language-js"><span class="token keyword">const</span> ns <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">import</span><span class="token punctuation">(</span><span class="token string">'electron-updater'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">const</span> autoUpdater <span class="token operator">=</span> ns<span class="token punctuation">.</span>autoUpdater <span class="token operator">??</span> ns<span class="token punctuation">.</span>default<span class="token operator">?.</span>autoUpdater<span class="token punctuation">;</span>
<span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>autoUpdater<span class="token punctuation">)</span> <span class="token keyword">throw</span> <span class="token keyword">new</span> <span class="token class-name">Error</span><span class="token punctuation">(</span><span class="token string">'electron-updater exposes no `autoUpdater` export'</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre>
<p><strong>The general rule: never destructure a named export off <code>await import()</code> of a CommonJS
package.</strong> If the package builds its exports at runtime — getters, <code>Object.assign</code>,
conditional wiring — the lexer won’t see them, and you get <code>undefined</code> instead of an error
telling you why.</p>
<h2 id="the-real-bug-was-the-catch-block" tabindex="-1">The real bug was the catch block <a class="anchor" href="#the-real-bug-was-the-catch-block" aria-hidden="true">#</a></h2>
<p>A one-character-class fix that survives three releases isn’t really a story about interop.
It’s a story about a <code>catch</code> that discarded its argument.</p>
<p>The error existed. It was specific, it named the exact property, and it pointed at the exact
line. It was thrown away, and replaced with a degraded mode that looked deliberate. Anyone
watching the app saw a working feature: it noticed new versions and offered a download link.
Nothing looked broken enough to investigate.</p>
<p>So v0.3.7 changes three things beyond the interop fix:</p>
<ul>
<li><strong>Errors are never swallowed.</strong> Every updater failure is emitted to the renderer <em>and</em>
appended to an <code>updater.log</code> in the app’s data folder. The tooltip on the toolbar badge
shows the actual message.</li>
<li><strong>The fallback is per-check, not a latch.</strong> A transient network error used to cost the
session its ability to self-update until the next restart. Now the next tick tries the
native path again.</li>
<li><strong>The state rules are testable.</strong> How updater events map to what the UI shows moved into a
plain module with no Electron imports, with unit tests covering the rule that bit us — a
re-check must never wipe out an update you already have staged.</li>
</ul>
<figure class="fig fig-inline"><img src="/blog/assets/media/why-our-auto-update-never-ran/note-2.png" alt="Hand-drawn sketch from “Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace”" loading="lazy" decoding="async" /></figure>
<h2 id="the-version-number-is-now-a-button" tabindex="-1">The version number is now a button <a class="anchor" href="#the-version-number-is-now-a-button" aria-hidden="true">#</a></h2>
<p>The other half of the report was that nothing in the app told the user what was happening.
There was a toast for “downloaded”, and nothing for anything else — so a multi-minute
232 MB download looked exactly like an app doing nothing.</p>
<p>The version text next to the logo is now the control. It shows <code>checking…</code>, then
<code>v0.3.8 ready to install</code> (click to download), then live progress, then <strong>restart to
update</strong> (click to apply). With nothing pending, clicking it checks on demand — previously
the only checks were 30 seconds after launch and every six hours after that, with no way to
ask.</p>
<h2 id="if-youre-on-v035-or-v036" tabindex="-1">If you’re on v0.3.5 or v0.3.6 <a class="anchor" href="#if-youre-on-v035-or-v036" aria-hidden="true">#</a></h2>
<p>You’ll need to install v0.3.7 by hand, once. Your current build carries the broken updater,
so it can’t fetch the fix that repairs it — the one bootstrap problem a self-updating app
can’t solve for itself. Grab it from <a href="https://munderdiffl.in/">munderdiffl.in</a> or the
<a href="https://github.com/chaitanyagiri/munder-difflin/releases/latest">releases page</a>.</p>
<p>After that, it updates itself. For real this time — and if it ever doesn’t, it’ll tell you
why.</p>
<section class="faq" aria-label="Frequently asked questions">
<h2 id="faq">FAQ</h2>
<div class="qa">
<p class="q">Why was electron-updater's autoUpdater undefined?</p>
<p class="a">electron-updater is a CommonJS package that attaches autoUpdater to its exports through a lazy Object.defineProperty getter. Node's cjs-module-lexer detects named exports by static analysis, and it cannot see through a getter defined at runtime. So the ESM namespace produced by `await import('electron-updater')` has no autoUpdater key at all — it only exists on the namespace's `.default`. Destructuring `const { autoUpdater } = await import('electron-updater')` therefore yields undefined. Use `ns.autoUpdater ?? ns.default?.autoUpdater`, or plain `require()`, instead.</p>
</div>
<div class="qa">
<p class="q">Why didn't this show up in development?</p>
<p class="a">The whole updater setup block was behind an `app.isPackaged` check, which is false in dev. Development runs never executed the line that threw, so the bug could only ever appear in a shipped build — and shipped builds have no visible console. It survived three releases that way.</p>
</div>
<div class="qa">
<p class="q">How do you debug an Electron app that only misbehaves when packaged?</p>
<p class="a">Launch the installed binary directly from a terminal with an isolated data directory: `/Applications/YourApp.app/Contents/MacOS/YourApp --user-data-dir=/tmp/probe`. Electron's single-instance lock is keyed to the user-data directory, so this runs alongside the copy the user already has open, and every console.log and stack trace lands in your terminal instead of disappearing.</p>
</div>
<div class="qa">
<p class="q">Do I need to reinstall Munder Difflin to get v0.3.7?</p>
<p class="a">Yes, once. Every build from v0.3.4 through v0.3.6 carries the broken updater, so it cannot fetch this fix by itself. Download v0.3.7 manually from munderdiffl.in or the GitHub releases page. From v0.3.7 onward, updates download in the background and wait for your restart.</p>
</div>
<div class="qa">
<p class="q">How do you stop a bug like this from hiding again?</p>
<p class="a">Three changes. Errors are never swallowed — every updater failure is emitted to the UI and appended to a log file on disk. The notify-only fallback is per-check rather than a permanent latch, so one blip doesn't disable updates for the session. And the state model moved into a plain electron-free module with unit tests, so the rules can be verified without booting the app.</p>
</div>
</section>
<hr />
<div class="share">
<span class="lbl">Tags</span>
<a class="tag" href="/blog/tags/internals/">Internals</a><a class="tag" href="/blog/tags/electron/">Electron</a><a class="tag" href="/blog/tags/debugging/">Debugging</a><a class="tag" href="/blog/tags/release/">Release</a><a class="tag" href="/blog/tags/open-source/">Open Source</a>
</div>
</div>
<aside class="toc-rail" aria-label="Table of contents">
<div class="tt">On this page</div>
<ol>
<li class="lvl-2"><a href="#ruling-things-out-expensively">Ruling things out, expensively</a></li><li class="lvl-2"><a href="#getting-a-packaged-app-to-talk">Getting a packaged app to talk</a></li><li class="lvl-2"><a href="#one-line-three-releases">One line, three releases</a></li><li class="lvl-2"><a href="#the-real-bug-was-the-catch-block">The real bug was the catch block</a></li><li class="lvl-2"><a href="#the-version-number-is-now-a-button">The version number is now a button</a></li><li class="lvl-2"><a href="#if-youre-on-v035-or-v036">If you’re on v0.3.5 or v0.3.6</a></li>
</ol>
</aside>
</div>
<footer class="post-foot wrap"><div class="prevnext">
<a class="pn prev" href="/blog/launching-munder-difflin-v0-3-5/"><span class="k">← Older</span><span class="t">Launching Munder Difflin v0.3.5: A Michael Who Knows the Floor, a Git Time-Machine, and an App That Updates Itself</span></a>
<a class="pn next" href="/blog/whats-up-with-munder-difflin/"><span class="k">Newer →</span><span class="t">What's Up With Munder Difflin: Six Weeks, Four Releases, and the Part of the Stack You Actually Own</span></a>
</div>
<section class="related">
<h2>Related in Internals</h2>
<div class="post-grid">
<article class="card t-internals">
<a class="thumb t-internals" href="/blog/the-spend-counter-that-went-back-to-zero/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/the-spend-counter-that-went-back-to-zero/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-08-22">Aug 22, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>10 min</span>
</div>
<h3><a href="/blog/the-spend-counter-that-went-back-to-zero/">The Spend Counter That Went Back to Zero</a></h3>
<p class="dek">Our own floor was under reporting what it cost by 59 percent. The counter was cumulative since process start, the app restarts, and the session id stayed the same. Here is how a monotonic invariant let us recover the real number from an append-only log.</p>
<div class="foot">
<span class="tag kind">Internals</span>
<a class="more" href="/blog/the-spend-counter-that-went-back-to-zero/" aria-label="Read: The Spend Counter That Went Back to Zero">Read →</a>
</div>
</div>
</article>
<article class="card t-internals">
<a class="thumb t-internals" href="/blog/the-newline-that-silenced-windows-agents/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/the-newline-that-silenced-windows-agents/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-08-19">Aug 19, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>4 min</span>
</div>
<h3><a href="/blog/the-newline-that-silenced-windows-agents/">The Newline That Silenced Every Windows Agent</a></h3>
<p class="dek">A cmd.exe parsing rule from the 1980s meant Windows agents received exactly one line of their multi-line startup protocol — and nothing errored. The anatomy of our worst silent failure, and the fix.</p>
<div class="foot">
<span class="tag kind">Internals</span>
<a class="more" href="/blog/the-newline-that-silenced-windows-agents/" aria-label="Read: The Newline That Silenced Every Windows Agent">Read →</a>
</div>
</div>
</article>
<article class="card t-internals">
<a class="thumb t-internals" href="/blog/hire-manifest-untrusted-input/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/hire-manifest-untrusted-input/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-06-15">Jun 15, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>12 min</span>
</div>
<h3><a href="/blog/hire-manifest-untrusted-input/">Treating a Hire Manifest as Untrusted Input</a></h3>
<p class="dek">A shareable agent-config manifest is attacker input. How Munder Difflin's import pipeline stays inert: no auto-spawn, default-deny flags, and an SSRF-safe bounded fetch.</p>
<div class="foot">
<span class="tag kind">Internals</span>
<a class="more" href="/blog/hire-manifest-untrusted-input/" aria-label="Read: Treating a Hire Manifest as Untrusted Input">Read →</a>
</div>
</div>
</article>
</div>
</section>
</footer>
</article>
</main>
<footer class="site-foot">
<div class="wrap">
<div class="foot-top">
<a class="foot-brand brand" href="https://munderdiffl.in" aria-label="Munder Difflin home">
<img class="brand-logo" src="https://munderdiffl.in/logo.png" width="1318" height="840" alt="Munder Difflin, Inc. — Multi-Agent Harness" />
</a>
<div class="foot-links">
<a href="/blog/">Latest</a>
<a href="/blog/topics/">Topics</a>
<a href="/blog/about/">About</a>
<a href="https://munderdiffl.in/blog/feed.xml">RSS</a>
<a href="https://github.com/chaitanyagiri/munder-difflin">GitHub</a>
<a href="https://munderdiffl.in">munderdiffl.in ↗</a>
</div>
</div>
<div class="foot-meta">
© 2026 Munder Difflin · Local-first · MIT-licensed ·
Built on <a href="https://munderdiffl.in">Electron, React, Pixi.js, xterm.js & node-pty</a>.
Run an office of agents while you sleep.
</div>
</div>
</footer>
<script>
// sticky-nav border on scroll
(function () {
var nav = document.getElementById('nav');
if (!nav) return;
var onScroll = function () { nav.classList.toggle('scrolled', window.scrollY > 8); };
onScroll(); window.addEventListener('scroll', onScroll, { passive: true });
})();
// YouTube click-to-load: thumbnail button → youtube-nocookie iframe
(function () {
document.addEventListener('click', function (e) {
var btn = e.target.closest('.yt-load');
if (!btn) return;
var box = btn.closest('.yt');
var id = box && box.getAttribute('data-yt');
// Only an 11 character YouTube video id may reach the iframe URL.
if (!id || !/^[A-Za-z0-9_-]{11}$/.test(id)) return;
var frame = document.createElement('iframe');
frame.src = 'https://www.youtube-nocookie.com/embed/' + encodeURIComponent(id) + '?autoplay=1';
frame.title = box.getAttribute('data-title') || 'YouTube video';
frame.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share';
frame.setAttribute('allowfullscreen', '');
box.replaceChildren(frame);
});
})();
</script>
</body>
</html>