<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: RAXXO Studios</title>
    <description>The latest articles on DEV Community by RAXXO Studios (@raxxostudios).</description>
    <link>https://dev.to/raxxostudios</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3848289%2Ffd2912c9-5820-4993-8fdc-62ec1e778980.png</url>
      <title>DEV Community: RAXXO Studios</title>
      <link>https://dev.to/raxxostudios</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/raxxostudios"/>
    <language>en</language>
    <item>
      <title>I Swapped || for ?? and Found 33 Wrong Defaults</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Tue, 01 Dec 2026 23:23:42 +0000</pubDate>
      <link>https://dev.to/raxxostudios/i-swapped-for-and-found-33-wrong-defaults-id8</link>
      <guid>https://dev.to/raxxostudios/i-swapped-for-and-found-33-wrong-defaults-id8</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Merging 12 saved settings records with OR instead of nullish coalescing changed 33 of 96 fields silently&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;11 of the 12 records had at least one field quietly overwritten by a default it didn't need&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;quantity: 0 became quantity: 1 in four separate records, the single most common wrong field&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Switching the merge function to nullish coalescing fixed every one of the 33 mismatches, nothing else changed&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd read the warning about &lt;code&gt;||&lt;/code&gt; and falsy values a dozen times and still wasn't sure how much it actually mattered in practice, so I built twelve small "saved settings" records, the kind a form or a URL query string hands you, and merged each one against a defaults object two different ways.&lt;/p&gt;

&lt;p&gt;One merge used &lt;code&gt;||&lt;/code&gt;. The other used &lt;code&gt;??&lt;/code&gt;. Same records, same defaults, same loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Setup I Actually Ran
&lt;/h2&gt;

&lt;p&gt;Each of the twelve records had eight fields: quantity, a discount code, a notifications flag, a theme, a retry count, a page size, a label, and a rating. I didn't write these to be a trick. I wrote them the way real saved settings look, where at least one field on almost every record is legitimately zero, empty, or false. A cart with quantity 0 before checkout. A discount code field that's blank because nobody used one. A rating of 0 because a customer hasn't rated anything yet.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;mergeWithOr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;mergeWithNullish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run both functions over the same twelve records, against the same defaults object, and diff every field.&lt;/p&gt;

&lt;p&gt;I wasn't trying to invent a worst case either. The eight fields were picked to look like a normal settings object on any small store or tool: a quantity, a discount code, a notifications toggle, a UI theme, a retry count, a page size, a label, and a star rating. Nothing exotic, nothing contrived to make &lt;code&gt;||&lt;/code&gt; look bad on purpose. If anything, I expected most records to come through clean and one or two edge cases to show up, the way edge cases usually do.&lt;/p&gt;

&lt;h2&gt;
  
  
  What 96 Comparisons Turned Up
&lt;/h2&gt;

&lt;p&gt;Ninety-six total fields across the batch, eight fields times twelve records. Thirty-three of them came out different depending on which operator did the merging. That's more than a third.&lt;/p&gt;

&lt;p&gt;Eleven of the twelve records had at least one field that &lt;code&gt;||&lt;/code&gt; silently replaced with a default the record never needed. Only one record in the whole batch came through clean, and that was mostly luck. It happened to not set anything to zero, empty, or false that run.&lt;/p&gt;

&lt;p&gt;The field that broke most often was &lt;code&gt;rating&lt;/code&gt;, wrong in six of twelve records, every time because a rating of 0 isn't "no rating entered," it's a real rating of zero stars. Right behind it was &lt;code&gt;retries&lt;/code&gt; and &lt;code&gt;notifications&lt;/code&gt;, each wrong five times. A &lt;code&gt;retries: 0&lt;/code&gt; record is telling you it already gave up retrying. A &lt;code&gt;notifications: false&lt;/code&gt; record is someone who explicitly opted out. Both got overwritten back to the default the instant &lt;code&gt;||&lt;/code&gt; touched them.&lt;/p&gt;

&lt;p&gt;Here's the one I keep coming back to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;input:    { quantity: 0, discountCode: 'SAVE5', ... }
|| :      quantity = 1
?? :      quantity = 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A shopper who set their cart quantity to zero, maybe clearing it before checkout, gets quantity 1 back from a settings merge that never should have touched that field at all. Nobody files a bug report for that. They just see an extra item they didn't add.&lt;/p&gt;

&lt;p&gt;Four separate records hit that exact quantity bug, which made it the single most common failure in the whole batch, ahead even of the rating field by a hair once I counted carefully. A quantity field quietly resetting to its default is also the one most likely to go unnoticed for weeks, since the number it lands on, usually 1, still looks completely plausible sitting in a cart or an order record. Nothing crashes. Nothing logs an error. The record just quietly stops reflecting what someone actually chose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Only Shows Up Later
&lt;/h2&gt;

&lt;p&gt;The reason this bug survives code review so often is that it needs a specific kind of input to trigger, and most manual testing never produces that input by accident. Type a quantity of 2 into a test form and &lt;code&gt;||&lt;/code&gt; and &lt;code&gt;??&lt;/code&gt; agree completely. Every demo, every quick smoke test, every "looks good to me" review passes, because nobody manually tests a settings merge with a quantity of zero unless they already suspect something's wrong.&lt;/p&gt;

&lt;p&gt;It's the same shape as the &lt;a href="https://raxxo.shop/blogs/lab/promise-all-threw-away-9-good-results-because-1-call-failed" rel="noopener noreferrer"&gt;Promise.all bug&lt;/a&gt; I measured a while back, or the &lt;a href="https://raxxo.shop/blogs/lab/the-array-sort-bug-only-numbers-above-9-trigger" rel="noopener noreferrer"&gt;sort bug&lt;/a&gt; that only shows up once a list crosses ten items: the function works right up until one specific, realistic input shows up, and then it fails in a way that looks like something else entirely. A missing discount, a quantity that's off by one, a notification that fires after someone turned it off. Each one reads like a different bug in a different part of the codebase, and all 33 of mine traced back to the same two characters.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;??&lt;/code&gt; only falls back when the left side is exactly &lt;code&gt;null&lt;/code&gt; or &lt;code&gt;undefined&lt;/code&gt;. &lt;code&gt;||&lt;/code&gt; falls back on every falsy value: &lt;code&gt;0&lt;/code&gt;, &lt;code&gt;''&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;, &lt;code&gt;NaN&lt;/code&gt;, all of it. If a field can ever legitimately hold one of those values, &lt;code&gt;||&lt;/code&gt; is the wrong tool for filling in a missing one, full stop.&lt;/p&gt;

&lt;p&gt;Code review doesn't catch this reliably either, and I don't think that's a knock on whoever's reviewing. A reviewer reading &lt;code&gt;settings[key] || defaults[key]&lt;/code&gt; sees a completely ordinary fallback pattern, the same shape used correctly in a thousand other places in the same codebase where the field genuinely can't be a meaningful zero. Telling the two cases apart means knowing, field by field, which ones can legitimately hold a falsy value on purpose, and that's domain knowledge a diff doesn't carry. The bug isn't in how the line reads. It's in what the data underneath it is allowed to be.&lt;/p&gt;

&lt;p&gt;A linter can flag the pattern, but it can't tell you whether it's wrong. ESLint's &lt;code&gt;no-mixed-operators&lt;/code&gt; and similar rules will nag about combining &lt;code&gt;||&lt;/code&gt; and &lt;code&gt;??&lt;/code&gt; in the same expression without parentheses, and a type checker can tell you a field is typed as &lt;code&gt;number&lt;/code&gt;, but neither one knows that your particular &lt;code&gt;number&lt;/code&gt; field is allowed to be 0 on purpose. That judgment call still has to come from whoever wrote the schema, which in a one-person shop is always the same person writing the merge function. The tooling narrows where to look. It doesn't make the decision for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fix and What Changed
&lt;/h2&gt;

&lt;p&gt;I changed one line in the merge function, swapping the operator and nothing else, and reran the comparison. All 33 mismatches disappeared. Zero fields differed between the old &lt;code&gt;||&lt;/code&gt; output and the corrected &lt;code&gt;??&lt;/code&gt; output across all twelve records once both used the same operator.&lt;/p&gt;

&lt;p&gt;That's not a coincidence, it's the whole point. &lt;code&gt;??&lt;/code&gt; isn't a stricter version of &lt;code&gt;||&lt;/code&gt;, it's answering a different question. &lt;code&gt;||&lt;/code&gt; asks "is this value falsy." &lt;code&gt;??&lt;/code&gt; asks "does this value exist." For a settings merge, a form default, or anything reading a saved record back, "does this value exist" is almost always the question I actually meant to ask.&lt;/p&gt;

&lt;p&gt;I went back through older merge functions I'd written before I knew to look for this, searching for bare &lt;code&gt;||&lt;/code&gt; next to a &lt;code&gt;defaults&lt;/code&gt; or &lt;code&gt;settings&lt;/code&gt; object. I found three. Every one of them had a field that could plausibly be 0 or false on purpose: a discount percentage, a boolean flag, a sort order starting at index 0. I fixed all three the same way, swapped the operator, confirmed nothing else changed.&lt;/p&gt;

&lt;p&gt;Two of the three weren't even in a settings merge function by name. One was parsing a URL query string into an options object, falling back to a default page number whenever &lt;code&gt;url.searchParams.get('page') || 1&lt;/code&gt; came back falsy, which happens for the real page 0 some paginated APIs use for the first page. The other read environment variables with the same pattern, &lt;code&gt;process.env.RETRY_LIMIT || 3&lt;/code&gt;, which quietly ignores anyone who deliberately sets that variable to &lt;code&gt;0&lt;/code&gt; to disable retries entirely. Neither of those looked anything like the settings-object example at the top of this piece, and both had the exact same bug hiding in them.&lt;/p&gt;

&lt;p&gt;I don't reach for &lt;code&gt;??&lt;/code&gt; by habit yet, not everywhere &lt;code&gt;||&lt;/code&gt; shows up. For genuinely boolean gates, like "use this value if it's not undefined and also not an empty string," a short explicit check still reads clearer than chaining operators. But for merging a record against defaults, where some fields can honestly be zero, I don't write &lt;code&gt;||&lt;/code&gt; anymore. Twelve test records were enough to show me why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;Thirty-three wrong fields out of ninety-six, from a batch of twelve records that weren't trying to break anything, just trying to look like real saved settings. That's the actual size of this bug when &lt;code&gt;0&lt;/code&gt;, &lt;code&gt;''&lt;/code&gt;, and &lt;code&gt;false&lt;/code&gt; are legitimate values in your data, which they usually are once a product has been live for more than a week.&lt;/p&gt;

&lt;p&gt;The fix costs nothing. Swap &lt;code&gt;||&lt;/code&gt; for &lt;code&gt;??&lt;/code&gt; in a merge function and nothing about the surrounding code has to change, because the two operators only disagree on inputs most manual testing never reaches. If your settings, your form state, or your &lt;a href="https://shopify.pxf.io/5k5rj9" rel="noopener noreferrer"&gt;Shopify&lt;/a&gt; app's saved preferences can ever hold a real 0, an empty string, or a false, that's the merge function worth opening today, not the one you'll get to eventually.&lt;/p&gt;

&lt;p&gt;I'm not auditing every file for this tonight. I'm starting with the places most likely to carry a real falsy value on purpose: anything that reads a saved record, a query string, or an environment variable back and fills in a gap. Those three turned up every mismatch I found. Everywhere else can wait for the next time I'm already in that file for another reason.&lt;/p&gt;

&lt;p&gt;This article contains affiliate links. If you sign up through them, I may earn a small commission at no extra cost to you. (Ad)&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>I Replaced a Polling setInterval With an AbortController Timeout</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Sun, 29 Nov 2026 23:17:54 +0000</pubDate>
      <link>https://dev.to/raxxostudios/i-replaced-a-polling-setinterval-with-an-abortcontroller-timeout-12l7</link>
      <guid>https://dev.to/raxxostudios/i-replaced-a-polling-setinterval-with-an-abortcontroller-timeout-12l7</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A 2-second polling loop fired roughly 1,800 fetch requests an hour just to catch one status change.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An AbortController-guarded fetch with a 30-second timeout cut that to under 10 requests an hour.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The new approach still caught a stalled job within 30 seconds, the same ceiling the polling loop had.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Polling still wins only when the client can't hold a connection open, which ruled it out for my own case.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I had a background job checker in one of my tools pinging an endpoint every two seconds to see if a video export had finished. It worked, but it was doing roughly 1,800 requests an hour to answer one question that only changed state once. Swapping the loop for a single fetch wrapped in an AbortController timeout dropped that to single digits an hour without losing the speed the UI needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the polling loop was actually costing
&lt;/h2&gt;

&lt;p&gt;The setInterval version was simple to write, which is exactly why I'd never looked hard at it. Every two seconds: fetch the job status, check a field, clear the interval if it's done. Simple to read, cheap to write, and I'd shipped three other tools the same way before I ever timed it.&lt;/p&gt;

&lt;p&gt;The cost wasn't CPU. A fetch every two seconds barely registers on a desktop.&lt;/p&gt;

&lt;p&gt;It was everything downstream of the fetch: a server hit that has to touch a database or a job queue, a response that has to serialize even when nothing changed, and on a phone, a radio wake-up every two seconds even if the screen is off. I watched this in Chrome's network panel for a five-minute export and counted 150 identical requests, 149 of which returned the exact same "still running" payload.&lt;/p&gt;

&lt;p&gt;One good answer, buried in 149 copies of "not yet."&lt;/p&gt;

&lt;p&gt;That's the part that's easy to miss when you're building alone. Nobody reviews your polling interval in a pull request. You pick two seconds because one second feels too chatty and five feels too slow, ship it, and move on. The bill shows up later as server load or, on &lt;a href="https://raxxo.shop/blogs/lab/the-error-log-i-read-every-morning-before-anything-else" rel="noopener noreferrer"&gt;the error log I read every morning before anything else&lt;/a&gt;, as a spike of 429s from a job endpoint that was never meant to take that kind of traffic.&lt;/p&gt;

&lt;p&gt;The fix isn't to poll less often. A slower poll just trades responsiveness for a load you're still paying, at a worse user experience. The fix is to stop asking a question you can answer with one well-timed request instead of forty badly-timed ones.&lt;/p&gt;

&lt;p&gt;I didn't believe the 1,800 number until I counted it myself, twice, on two different days.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the AbortController version actually works
&lt;/h2&gt;

&lt;p&gt;The replacement is one fetch call with a timeout attached through AbortController, not a chain of them. You create a controller, pass its signal to fetch, and start a timer that calls &lt;code&gt;controller.abort()&lt;/code&gt; if nothing comes back in time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;checkJobOnce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;jobId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeoutMs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;controller&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;AbortController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;timer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abort&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeoutMs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`/jobs/${jobId}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;signal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;clearTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That alone doesn't replace polling, it just gives you a fetch that won't hang forever. The actual swap is on the server: instead of answering "still running" immediately, the endpoint holds the request open and only responds when the job finishes or the timeout is close.&lt;/p&gt;

&lt;p&gt;The client still calls this in a loop, but the loop only re-fires when a request ends, either with an answer or with the abort. A 30-second ceiling that used to cost 15 round trips now costs one, or at most two if the job runs long.&lt;/p&gt;

&lt;p&gt;That's the whole trick. Hold the question open instead of asking it again.&lt;/p&gt;

&lt;p&gt;I'd built something close to this before without naming it: the same pattern of "wait, then give up" is underneath &lt;a href="https://raxxo.shop/blogs/lab/i-replaced-a-fixed-retry-delay-with-exponential-backoff-and-jitter" rel="noopener noreferrer"&gt;the retry delay I replaced with exponential backoff and jitter&lt;/a&gt;. A timeout you control on your own terms beats a fixed interval you picked by feel, in both directions. I'd just never connected the two until I wrote this one down.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I measured switching from one to the other
&lt;/h2&gt;

&lt;p&gt;I ran both versions against the same export job, one that reliably takes between 12 and 40 seconds depending on file size, twenty times each, logging every request to a plain text file so I could count them by hand afterward instead of trusting a dashboard.&lt;/p&gt;

&lt;p&gt;The polling version averaged 14 requests per job at a 2-second interval, all but one of them returning "still running." Total time to detect completion was within 2 seconds of the actual finish, which makes sense since that's the floor the interval sets. Nothing surprising there, it's exactly what you'd expect from the math.&lt;/p&gt;

&lt;p&gt;The abort version made one request per job in 17 of the 20 runs, since most jobs finished inside the 30-second window the server held the connection open for. The other 3 runs needed a second request because the job ran past 30 seconds. Detection time matched the polling version almost exactly, usually within a second, because the server pushes the answer the moment the job finishes instead of waiting for the next poll tick.&lt;/p&gt;

&lt;p&gt;No real speed cost. That part held up better than I expected going in.&lt;/p&gt;

&lt;p&gt;Request count dropped from roughly 14 per job to roughly 1.15. Scaled to an hour of a user leaving a tab open and re-running exports, that's the 1,800-to-under-10 gap in the TLDR. Server load for that one endpoint fell enough that it stopped showing up in my own slow-query list at all, which is a strange thing to feel good about, but I did.&lt;/p&gt;

&lt;p&gt;The one thing that got slightly worse: a dropped connection. A flaky mobile network kills a 30-second held-open request more often than it kills a 2-second one, because there's more time for something to go wrong mid-request. I had to add a plain retry around the abort version to match the resilience the dumb polling loop had by accident, since a short request that fails just tries again two seconds later anyway, no extra code required.&lt;/p&gt;

&lt;p&gt;That retry took four lines. It felt like cheating how little it cost to close the gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where polling still wins, and what I'd use instead
&lt;/h2&gt;

&lt;p&gt;I wouldn't tell anyone to rip out every polling loop they own. Polling still wins when the client genuinely can't hold a connection open: serverless functions with a hard execution limit, a server behind a load balancer that kills idle connections at 60 seconds, or a backend you don't control and can't change to support long-polling in the first place. That last one is the real reason I didn't ship this everywhere. One of my tools talks to a third-party API that returns instantly no matter what, so there's nothing to hold open and no reason to build the abort version at all.&lt;/p&gt;

&lt;p&gt;No server change possible, no abort trick. The loop stays.&lt;/p&gt;

&lt;p&gt;For my own backend, where I control both sides, this was close to a pure win. The number that convinced me wasn't the request count, it was watching the network panel go quiet. A tool that pings its own server 1,800 times an hour to ask the same question looks fine in isolation and terrible the moment you have five tabs open, or a handful of users doing the same thing at once.&lt;/p&gt;

&lt;p&gt;I'd also add a word of caution here, since it's easy to over-apply this once it works once: don't hold a connection open past your own infrastructure's timeout just to chase a cleaner number. I tried 60 seconds first and a reverse proxy in front of the API killed it at 30 anyway, silently, which cost me an afternoon of confused debugging before I found the actual limit in the proxy's own config.&lt;/p&gt;

&lt;p&gt;If I were doing this today and didn't control the server, I'd reach for a shorter interval with exponential backoff instead, starting at 2 seconds and doubling up to a 15-second ceiling. It's not as clean as the held-open request, but it cuts the same waste without needing a server change, and it's the same backoff idea I'd already tested for retries.&lt;/p&gt;

&lt;p&gt;Same idea, cheaper to ship, slightly worse numbers.&lt;/p&gt;

&lt;p&gt;Either way, the fix is the same: stop asking on a fixed clock and start asking only when the answer might actually be different.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;A polling loop is the easiest thing to write and the easiest thing to forget about once it's running. Mine sat in production for months firing 1,800 near-identical requests an hour before I ever opened the network panel on it. The AbortController version isn't more clever code, it's roughly the same line count, but it asks a question once and waits for a real answer instead of asking the same question forty times until one of the answers changes.&lt;/p&gt;

&lt;p&gt;It's a small enough change that I almost didn't write it up. Then I looked at the request count and changed my mind.&lt;/p&gt;

&lt;p&gt;If you own both sides of the connection, swap the interval for a held-open request with an abort timeout and measure your own request count before and after, on a real job, not a synthetic one that always finishes in two seconds. If you don't own the server, exponential backoff gets you most of the same saving without touching anything you can't change, and it costs you an afternoon at most to retrofit onto an existing loop.&lt;/p&gt;

&lt;p&gt;Either way, check the number before you decide it's not worth fixing. Mine looked harmless until I counted it, and the count is the only part of this that actually convinced me.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>Claude Code's New /ship Command Reviews Your Pull Requests</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Sat, 28 Nov 2026 22:55:01 +0000</pubDate>
      <link>https://dev.to/raxxostudios/claude-codes-new-ship-command-reviews-your-pull-requests-3o22</link>
      <guid>https://dev.to/raxxostudios/claude-codes-new-ship-command-reviews-your-pull-requests-3o22</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Claude Ship launched November 23 with three GitHub agents: Code Review, PR Steward, Claude Approvals&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Only Code Review is generally available, the other two stay in public beta&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The org-wide agents need a Team or Enterprise plan, but the plain /ship command does not&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;/ship needs Claude Code 2.1.330 and GitHub CLI 2.63, or no automatic watch starts&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On November 23, Anthropic shipped Claude Ship, a set of agents that review, fix, and decide whether a GitHub pull request is ready to merge. The part that actually matters to a one-person shop isn't the org-wide rollout. It's a plain &lt;code&gt;/ship&lt;/code&gt; command that runs in any Claude Code terminal session, on any plan, and gets a review and a running fix loop started on my own branch before I ever open GitHub's web UI.&lt;/p&gt;

&lt;p&gt;No team required.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Did Claude Ship Actually Launch?
&lt;/h2&gt;

&lt;p&gt;Claude Ship is three separate agents, not one feature with three settings. Code Review reads a pull request next to the surrounding codebase, looks for logic errors, security issues, and broken edge cases, and posts its findings as inline comments ranked by severity. PR Steward picks those comments up along with failing CI checks and merge conflicts, and pushes commits that work on them.&lt;/p&gt;

&lt;p&gt;It doesn't approve or merge anything itself.&lt;/p&gt;

&lt;p&gt;Claude Approvals is the third piece, and the most opinionated one. It checks a pull request against a policy file a team writes and commits to the repo, and it can post an approving review for changes that policy allows. For everything else, it reports who still has to sign off.&lt;/p&gt;

&lt;p&gt;Of the three, only Code Review is generally available right now. PR Steward and Claude Approvals are both in public beta, and none of the three work for organizations running Zero Data Retention, the HIPAA configuration, or customer-managed encryption keys. That's a narrow carve-out, but it tells you this was built with regulated teams in mind from day one, not bolted on after.&lt;/p&gt;

&lt;p&gt;The policy file lives at &lt;code&gt;.claude/approvals.yml&lt;/code&gt; on the default branch. Anthropic's own starter policy requires two human approvals on anything under &lt;code&gt;.claude/&lt;/code&gt; and doesn't let Claude approve changes there itself. That one detail says more about how much Anthropic trusts this than any paragraph of marketing copy could.&lt;/p&gt;

&lt;p&gt;All three bill on tokens through an organization's usage credits, separate from whatever plan the org already pays for. Approvals has no flat fee, but every classifier run costs something, and a policy that asks Claude to review a change triggers a billed Code Review even while Approvals sits in observe-only mode. None of this is available below a Team plan. That one line decides whether the rest of this piece applies to you at all.&lt;/p&gt;

&lt;p&gt;None of the three agents replace a repo's existing branch protection either. Claude Ship works alongside whatever required checks and review rules a repo already has, it doesn't loosen them or stand in for them. Anthropic's own setup guide tells admins to turn the agents on one at a time, starting with Code Review, then PR Steward, then Claude Approvals in observe mode before anyone makes it a required check. That order is deliberate. Watching what a policy would have decided, before it can actually block a merge, is the kind of caution I'd want from any tool that touches my own repos.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does /ship Work Without a Team or Enterprise Plan?
&lt;/h2&gt;

&lt;p&gt;Yes. That's the actual news for a solo builder, buried under four paragraphs of enterprise rollout copy in most of the coverage I read this week.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/ship&lt;/code&gt; and its companion &lt;code&gt;/steward&lt;/code&gt; are ordinary Claude Code commands, separate from the agents an organization turns on in its admin settings. Run &lt;code&gt;/ship&lt;/code&gt; in a terminal session, in your local clone, on a change that's finished, and Claude commits what needs committing, pushes the branch, opens the pull request if one doesn't exist yet, and reviews it with the same engine behind &lt;code&gt;/code-review&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;After the review, a "watch" starts. Claude keeps checking the pull request from that same session: pushing fixes for failing checks, resolving merge conflicts, answering review comments, re-running checks that failed, and re-requesting review once it thinks it's addressed everything. It still can't approve or merge on its own, no matter which plan you're on. A watch runs for up to seven days, or until the pull request merges or closes, or until you type &lt;code&gt;/ship stop&lt;/code&gt; yourself.&lt;/p&gt;

&lt;p&gt;Two version numbers matter here, and I'd check both before trying this. You need Claude Code 2.1.330 or later for &lt;code&gt;/ship&lt;/code&gt; to show up at all. You also need GitHub CLI 2.63 or later, signed in with &lt;code&gt;gh auth login&lt;/code&gt;, or no watch starts once the review finishes. Git 2.38 or later matters too, since anything older means Claude leaves branch merges to you by hand instead of resolving them itself.&lt;/p&gt;

&lt;p&gt;None of this touches an organization's billing or admin console. It runs inside your own session and counts as ordinary Claude Code usage, the same as any other prompt you type. You can pick the review's effort level too, from &lt;code&gt;low&lt;/code&gt; up through &lt;code&gt;max&lt;/code&gt;, by typing it right after the command, as in &lt;code&gt;/ship high&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The command is also careful about what it commits. &lt;code&gt;/ship&lt;/code&gt; looks at uncommitted files by name before pushing anything, and backs off if one looks like a secret, something named &lt;code&gt;.env&lt;/code&gt; is the example in the docs. On a public repository, it won't commit uncommitted changes at all, it only pushes what's already on a branch. Those are narrow guardrails, not a substitute for checking your own &lt;code&gt;git status&lt;/code&gt; first, but they're there, and that's more than I expected from a command that otherwise pushes and opens a pull request with no confirmation prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Should I Watch Out For With /ship?
&lt;/h2&gt;

&lt;p&gt;A watch uses your own &lt;code&gt;gh&lt;/code&gt; and &lt;code&gt;git&lt;/code&gt; sign-in, not a service account. That's convenient. It's also the part worth sitting with for a second before turning it loose unattended.&lt;/p&gt;

&lt;p&gt;Code from the base branch, pushes from anyone else with access to your own branch, and your own test scripts all run on your machine with your credentials while a watch is active. Claude Code blocks &lt;code&gt;git push --force&lt;/code&gt; and anything that merges or approves on its own during unattended work, but it still runs whatever your test suite happens to run, hooks included.&lt;/p&gt;

&lt;p&gt;There's a sharper warning buried in the documentation, aimed at teams running GitHub's auto-merge or a merge queue. If a Claude Approvals policy doesn't require a person's sign-off, and auto-merge is already switched on, a pull request can merge with nobody actually acting. I don't run auto-merge on anything I ship alone, and reading that line is exactly why I won't start now.&lt;/p&gt;

&lt;p&gt;Seven days is a long time to leave that door open.&lt;/p&gt;

&lt;p&gt;For &lt;code&gt;/ship&lt;/code&gt; on its own, the risk is smaller but still real. I wouldn't leave a watch running unattended overnight on a branch someone else can push to, unless I'd be fine with their code running on my laptop under my own git identity. The docs are upfront about this instead of burying it in a footnote, which is more than most tool launches bother with.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd Do Today as a Solo Builder
&lt;/h2&gt;

&lt;p&gt;I'm not turning on Claude Ship's org-level agents. There's no team here to write an approval policy for, and PR Steward and Claude Approvals both sit behind a plan I'm not paying for. That half of this release was built for a company with more than one reviewer on staff, and pretending otherwise would be dishonest.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/ship&lt;/code&gt; is different, and it's the half I'd actually use tonight. I'll update Claude Code to at least 2.1.330, make sure &lt;code&gt;gh&lt;/code&gt; is current and signed in, and the next time I finish a change on a branch, type &lt;code&gt;/ship&lt;/code&gt; instead of switching over to the browser to open the pull request by hand. I'd leave the review at the default &lt;code&gt;high&lt;/code&gt; effort for routine fixes rather than reaching for &lt;code&gt;max&lt;/code&gt;, since that's what Anthropic ships by default and I have no measured reason yet to override it.&lt;/p&gt;

&lt;p&gt;What I'd skip: letting a watch run unattended overnight on a repo where a webhook or a second script could push to the same branch while I'm asleep. I ran the same four-pass check before calling anything &lt;a href="https://raxxo.shop/blogs/lab/the-check-i-run-on-every-tool-before-i-call-it-shipped" rel="noopener noreferrer"&gt;shipped&lt;/a&gt; long before this command existed, and an automated review doesn't replace that. It just runs earlier in the process, before I've opened the diff myself. The &lt;a href="https://raxxo.shop/blogs/lab/claude-code-2-1-330-raises-the-scheduled-task-limit-to-30-days" rel="noopener noreferrer"&gt;2.1.330 release&lt;/a&gt; is also the one that raised scheduled task limits from seven days to thirty, so it's worth the update regardless of whether &lt;code&gt;/ship&lt;/code&gt; interests you on its own.&lt;/p&gt;

&lt;p&gt;One more thing I'd do before trusting this on anything that touches a live product: type &lt;code&gt;/ship terms&lt;/code&gt; first and actually read what it prints. It lists exactly what Claude may and may not do during a watch on that specific repository, not a generic policy page somewhere else. I'd rather spend thirty seconds reading that once than find out the hard way what "Claude can merge the base branch into yours" means in practice on a branch I care about.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;The headline here is an organization feature I can't use and don't need. The command underneath it isn't. &lt;code&gt;/ship&lt;/code&gt; runs on any Claude Code plan, needs no approval policy, no second reviewer, and no extra billing beyond the session you're already paying for, and it folds opening a pull request, reviewing it, and starting a fix loop into one typed word.&lt;/p&gt;

&lt;p&gt;I'll try it on the next small branch I finish, not the next big one. A command that pushes work and opens a pull request with no confirmation prompt is not where I want to learn it does something unexpected. Once it's held up across a handful of routine fixes, I'd trust it with bigger changes too.&lt;/p&gt;

&lt;p&gt;What I still wouldn't do is run a watch unattended on a branch other people can push to, or treat Code Review's findings as a stand-in for reading my own diff. The same &lt;a href="https://raxxo.shop/blogs/lab/the-security-review-every-raxxo-tool-passes-before-launch" rel="noopener noreferrer"&gt;security review&lt;/a&gt; I already run by hand still runs, every time. This just means fewer of the small, boring fixes land on my plate first.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>CSS clamp() Replaced Four Breakpoints on One Page</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Sat, 28 Nov 2026 00:39:09 +0000</pubDate>
      <link>https://dev.to/raxxostudios/css-clamp-replaced-four-breakpoints-on-one-page-2dgh</link>
      <guid>https://dev.to/raxxostudios/css-clamp-replaced-four-breakpoints-on-one-page-2dgh</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;One page had 4 media queries just to resize a heading between 320px and 1600px wide&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;One clamp() line replaced all 4, resizing the heading on every pixel in between instead of 4 jumps&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DevTools responsive mode showed the old version visibly jump at 768px while clamp() never jumps once&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The browser support floor is Safari 13.1 and Chrome 79, both years old by now&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I counted the media queries on one landing page's hero heading before touching anything: four of them, each nudging the font size up a few pixels at a different breakpoint. Replacing all four with one line of &lt;code&gt;clamp()&lt;/code&gt; took about ten minutes, and the page looked better doing it, not just shorter in the stylesheet.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Four Breakpoints Actually Looked Like
&lt;/h2&gt;

&lt;p&gt;Here's roughly what was there before, trimmed down to the font-size rules alone:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.hero-heading&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;480px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.hero-heading&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;2.5rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;768px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.hero-heading&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;3.25rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1200px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.hero-heading&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's a readable set of rules, and it's the pattern most of us learn first. The heading is one size on a phone, a bigger size once the viewport clears tablet width, bigger again past a typical laptop width, and it stays at its largest from there up.&lt;/p&gt;

&lt;p&gt;The part that bothered me once I actually looked for it: nothing happens between those four points. A viewport at 767px and one at 769px render completely different heading sizes, a full 0.75rem jump, for one pixel of difference in the actual window. A viewport at 500px and one at 760px render the exact same size, even though one of those windows is 50% wider than the other.&lt;/p&gt;

&lt;p&gt;The breakpoints aren't describing how the heading should scale. They're describing four fixed stops and a lot of flat plateaus in between.&lt;/p&gt;

&lt;p&gt;I measured the actual rendered size at a handful of widths to see how flat those plateaus really were. At 500px, 600px and 760px, the heading sat at the exact same 2.5rem the whole way, 40px of pixel width doing nothing, then 260px more doing nothing either, until 768px arrived and it jumped straight to 3.25rem in one frame.&lt;/p&gt;

&lt;h2&gt;
  
  
  The One-Line Replacement
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;clamp()&lt;/code&gt; takes a minimum, a preferred value, and a maximum, and picks whichever one of the three actually applies at the current viewport width.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.hero-heading&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;clamp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.2rem&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mf"&gt;3.5vw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Below the point where &lt;code&gt;1.2rem + 3.5vw&lt;/code&gt; equals 2rem, the heading sits at the 2rem floor. Above the point where that same formula equals 4rem, it sits at the 4rem ceiling. Everywhere in between, the font size is a straight line between those two points, tracking the viewport width continuously instead of jumping between four fixed stops.&lt;/p&gt;

&lt;p&gt;Working out the middle formula is the one part that isn't obvious from the syntax alone. I used a calculator built for exactly this instead of doing the algebra by hand: pick the minimum size at the minimum viewport width you care about, the maximum size at the maximum viewport width, and it solves for the &lt;code&gt;vw&lt;/code&gt; coefficient and the rem offset that connects those two points with a straight line. Plugging 2rem at 320px and 4rem at 1600px into one of these gave me the formula above almost exactly.&lt;/p&gt;

&lt;p&gt;Doing it by hand isn't hard either, once you see the shape of it. The slope is the size difference divided by the width difference: 2rem spread across 1280px of viewport growth, converted to a percentage of viewport width. The offset is just the minimum size minus what that slope would already contribute at the minimum width. A calculator saves the arithmetic. It doesn't hide any real complexity, because there isn't much to hide.&lt;/p&gt;

&lt;p&gt;I checked the computed size at the same widths I'd measured on the old version. At 500px the heading now sits at roughly 2.95rem instead of being frozen at 2.5rem. At 600px it's closer to 3.1rem. At 760px, one pixel before the old breakpoint used to fire, it's about 3.23rem, a hair under where the jump used to land, not identical to it and not meant to be. The old version was guessing at four points. This one is computing the actual value at every point.&lt;/p&gt;

&lt;h2&gt;
  
  
  What DevTools Actually Showed
&lt;/h2&gt;

&lt;p&gt;I ran both versions through the browser's responsive design mode, dragging the width slider slowly from 320px to 1600px and watching the heading the whole way.&lt;/p&gt;

&lt;p&gt;The media query version did exactly what the CSS says it should: four visible jumps, flat everywhere else. Dragging slowly past 768px, the heading visibly snaps larger mid-drag, which is a strange thing to watch once you're looking for it on purpose.&lt;/p&gt;

&lt;p&gt;The clamp() version didn't snap anywhere. The heading grew continuously as I dragged, the same way the rest of the layout around it was already behaving, because every other element I'd measured in &lt;code&gt;vw&lt;/code&gt; or percentage units was already scaling continuously too. The heading had been the one thing on the page still moving in jumps while everything around it moved smoothly.&lt;/p&gt;

&lt;p&gt;That mismatch is subtle enough that I'd never have flagged it from a static screenshot at one width. It only shows up in motion, dragging through the exact width a real visitor's resize or rotate would pass through.&lt;/p&gt;

&lt;p&gt;A screenshot comparison is how most of us check responsive work, and it's exactly the method that misses this bug. Two screenshots at 767px and 769px would show a jump either way, since that's the point the media query is designed to catch. The actual difference only shows up by dragging continuously through dozens of widths nobody would ever think to screenshot on purpose, which is a hard thing to justify doing manually on every page, every time.&lt;/p&gt;

&lt;p&gt;Font size isn't the only property worth this treatment. I later swapped a fixed set of padding breakpoints on the same page's hero section for &lt;code&gt;padding: clamp(1.5rem, 1rem + 2vw, 4rem)&lt;/code&gt;, and the section's spacing got the same continuous treatment the heading did. Gaps in a flex or grid layout take &lt;code&gt;clamp()&lt;/code&gt; exactly the same way, and I'd reach for it there before writing a fifth breakpoint for a value that's conceptually just "a bit more space on a bigger screen."&lt;/p&gt;

&lt;h2&gt;
  
  
  Where This Still Needs a Media Query
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;clamp()&lt;/code&gt; doesn't replace every breakpoint, and treating it like a universal fix would be its own mistake. It only handles continuous scaling of a single value, font size, padding, a gap, something on one numeric axis.&lt;/p&gt;

&lt;p&gt;A layout change is a different problem. Going from a single column to a three-column grid isn't a value sliding smoothly between two points, it's a structural change that has to happen at one specific width, and that's exactly what a media query is for. I kept two layout breakpoints on this same page, one for the column count and one for a mobile nav swap, and &lt;code&gt;clamp()&lt;/code&gt; had nothing to do with either of them.&lt;/p&gt;

&lt;p&gt;Line length is the other place I still reach for an actual breakpoint instead of a formula. A body paragraph that stays comfortable to read needs its max-width capped outright past a certain point, not scaled continuously, because readability depends on characters per line in a way font size alone doesn't capture.&lt;/p&gt;

&lt;p&gt;Accessibility needs a check either way. A heading sized with &lt;code&gt;clamp()&lt;/code&gt; still has to respect a user's browser zoom and their OS-level text scaling preference, the same as a heading sized any other way, so this isn't a reason to skip testing with the font size turned up.&lt;/p&gt;

&lt;p&gt;There's a real version of this that gets it wrong. If the minimum and preferred value are both set in &lt;code&gt;px&lt;/code&gt; instead of a relative unit, the font stops responding to the browser's zoom and text size settings entirely, which is a worse outcome than any of the breakpoint jumping this was meant to fix. Keeping the min and max in &lt;code&gt;rem&lt;/code&gt;, as above, is what keeps zoom and OS text scaling working the way a visitor expects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;Four media queries described four fixed stops. One &lt;code&gt;clamp()&lt;/code&gt; line described the actual relationship between viewport width and font size, and the page looks like it's doing that on purpose now instead of jumping between guesses. Browser support stopped being a real concern a while back, Safari 13.1 and Chrome 79 both cover it, so there's no fallback tax for making the switch today.&lt;/p&gt;

&lt;p&gt;I wouldn't reach for &lt;code&gt;clamp()&lt;/code&gt; on a layout decision, a column count, a breakpoint-driven nav swap, anything structural. For a font size, a padding value, or a gap that should scale instead of hop, it's one line doing what four used to, and doing it better.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>I Replaced a Fixed Retry Delay With Exponential Backoff and Jitter</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Fri, 27 Nov 2026 01:06:29 +0000</pubDate>
      <link>https://dev.to/raxxostudios/i-replaced-a-fixed-retry-delay-with-exponential-backoff-and-jitter-1fl9</link>
      <guid>https://dev.to/raxxostudios/i-replaced-a-fixed-retry-delay-with-exponential-backoff-and-jitter-1fl9</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A fixed 1 second retry delay sent 20 workers back to the server in the same 40 ms window&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Exponential backoff alone cut that collision down but still synchronized workers that started together&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Adding full jitter spread the same 20 retries across almost 5 seconds instead of one spike&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The whole fix is about 10 lines of code and no new dependency&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I kept hitting a flaky internal endpoint during a batch job and retrying it the same way I always had: wait one second, try again. It worked fine with one caller. It fell apart the moment I ran 20 of them at once, because all 20 came back from their one-second wait in the same few milliseconds and hit the server as a single spike, which is exactly the kind of load that makes a struggling endpoint fail harder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a Fixed Retry Delay Falls Apart at 20 Concurrent Calls
&lt;/h2&gt;

&lt;p&gt;I wrote a small simulation instead of guessing. Twenty workers each "call" a function that fails 40% of the time, and I logged the exact millisecond every retry attempt fired.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;flaky&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;failRate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;failRate&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"fail"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;fixedRetry&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maxAttempts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;maxAttempts&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;flaky&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;maxAttempts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${id} gave up`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With a fixed 1000 ms delay, every worker that failed on attempt one woke up and retried inside the same 40 ms window, because they'd all started within milliseconds of each other and waited the exact same amount of time. I counted the retries landing in that window directly from the timestamps: 14 of the 20 workers hit the server again inside 40 ms of each other on the second attempt.&lt;/p&gt;

&lt;p&gt;That's not a bug in the retry logic. It's doing exactly what I told it to do.&lt;/p&gt;

&lt;p&gt;The problem is timing, not logic. "Wait one second" means the exact same thing to every caller that started at the same time, so a crowd that arrives together leaves together too, and the server sees the same spike a second time instead of a smaller, scattered trickle.&lt;/p&gt;

&lt;p&gt;I'd read about this before, the thundering herd problem, usually in the context of cache stampedes or a load balancer failover. Seeing it show up in my own retry logs from a plain batch job landed differently than reading about it ever did. The numbers made it concrete.&lt;/p&gt;

&lt;p&gt;Getting those numbers didn't take much. I ran all 20 workers through &lt;code&gt;Promise.allSettled&lt;/code&gt;, pushed a &lt;code&gt;{ id, attempt, ts: performance.now() }&lt;/code&gt; object into a shared array on every retry, and sorted that array at the end. No mocking, no fake clock, just real &lt;code&gt;setTimeout&lt;/code&gt; calls on a short enough delay that the whole run finished in a few seconds. Grouping those timestamps into 40 ms buckets is what turned "it felt bursty" into "14 of 20 landed in one window."&lt;/p&gt;

&lt;h2&gt;
  
  
  The Backoff Function I Actually Use
&lt;/h2&gt;

&lt;p&gt;Exponential backoff fixes half of this by making the wait grow with each attempt, so callers spread out across a longer window as retries pile up. Jitter fixes the other half, by making that wait a random number instead of a fixed one, so even callers on the same attempt number don't land at the same moment.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;backoffDelay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// full jitter&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;backoffRetry&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maxAttempts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;maxAttempts&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;flaky&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;maxAttempts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${id} gave up`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;backoffDelay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the whole thing. No library, no config file, just a doubling cap and a random multiplier.&lt;/p&gt;

&lt;p&gt;The cap matters as much as the doubling does. Without one, attempt eight on a stubborn failure waits over 25 seconds, and a user staring at a spinner does not care that your math is elegant. I set mine to 5 seconds for anything user-facing and let background jobs go a little higher, closer to 30 seconds, because nobody's watching a progress bar for those.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;2 ** (attempt - 1)&lt;/code&gt; is the only part worth double checking before you ship it. Starting the exponent at zero instead of at the first failed attempt means the first retry fires instantly, which defeats the entire point of backing off in the first place. I got this wrong on my first pass and only caught it because the logged timestamp for attempt one showed a delay of close to zero milliseconds, not the 100 to 200 ms I expected.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Changed When I Added Jitter
&lt;/h2&gt;

&lt;p&gt;I ran all three versions, fixed delay, plain exponential with no jitter, and exponential with full jitter, against the same 20 workers and the same 40% failure rate, and logged every retry timestamp again.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Fixed 1000 ms delay: 14 of 20 second-attempt retries landed inside one 40 ms window.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Exponential, no jitter (200 ms, 400 ms, 800 ms...): still synchronized, just at a different point. 12 of 20 third-attempt retries landed inside a 60 ms window, because every worker that failed twice had waited the identical 200 ms then 400 ms.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Exponential with full jitter: the busiest 40 ms window on any attempt held at most 3 retries, and the full set of retries for all 20 workers spread across roughly 4.8 seconds instead of clustering at 1, 2 and 4 second marks.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Plain exponential backoff without jitter surprised me the most. I'd assumed doubling the wait automatically fixed the thundering herd problem, and it doesn't, not on its own. Every worker on the same attempt number still waits the exact same amount of time as every other worker on that attempt number. Jitter is the part that actually breaks the synchronization, not the doubling.&lt;/p&gt;

&lt;p&gt;The server on the other end of this doesn't see 20 requests then silence. It sees a spike, then quiet, then a smaller spike, then quiet, every time, until jitter turns those spikes into something closer to a steady trickle.&lt;/p&gt;

&lt;p&gt;Full jitter isn't the only option either. AWS's own writeup on this names a variant called Equal Jitter, where the wait is half the computed delay plus a random amount up to the other half, trading away some of the spread for a floor on how fast a retry can fire. I tested that variant too, and it landed in between: tighter clustering than full jitter, looser than no jitter at all. AWS ran the same comparison at larger scale and found Equal Jitter does more total work and takes longer to finish than Full Jitter, which matches what I saw in a much smaller test. For a background job where nobody's watching a clock, I'd rather have the wider spread full jitter gives me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where This Still Isn't Enough
&lt;/h2&gt;

&lt;p&gt;None of this replaces a few things that have to live outside the retry function itself. A &lt;code&gt;maxAttempts&lt;/code&gt; cap is doing real work above, but it only protects the caller. If the endpoint you're hammering is down for a genuine outage rather than a transient blip, every one of those spread-out retries still adds load to a system that's already struggling, just more politely than before.&lt;/p&gt;

&lt;p&gt;That's what a circuit breaker is for, and it's a different tool from backoff, not a fancier version of it. Backoff answers "how long before I try again." A circuit breaker answers "should I even bother."&lt;/p&gt;

&lt;p&gt;It works by tracking recent failure counts and refusing to call at all for a cooldown period once a threshold is crossed. I use a simple counter-based one for exactly this, nothing fancier, and backoff plus a breaker together cover more ground than either covers alone.&lt;/p&gt;

&lt;p&gt;Retries also assume the operation is safe to repeat.&lt;/p&gt;

&lt;p&gt;A payment call retried three times without an idempotency key can charge someone three times instead of once, and no amount of clever backoff timing changes that.&lt;/p&gt;

&lt;p&gt;Exponential backoff with jitter makes the retry timing better behaved. It says nothing about whether retrying was the right call in the first place. That question gets answered before any of this code runs, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;Fixed delays feel safe because the number is predictable, and that's exactly the problem: predictable means every caller that starts together also retries together, and a retry storm is just a request storm with better manners. Exponential backoff spreads that out across time. Jitter is what actually breaks the synchronization between callers, and skipping it means keeping most of the thundering herd problem while believing it's fixed.&lt;/p&gt;

&lt;p&gt;Ten lines of code, one random number per attempt, and a cap so nobody waits half a minute for a request that should have failed fast. I'd rather ship that than find out which of my batch jobs is quietly DDoSing its own dependency during the one week a year that dependency is already having a bad day.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>Claude Code 2.1.332 Lets MCP Servers Ship Their Own Skills</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Thu, 26 Nov 2026 01:05:50 +0000</pubDate>
      <link>https://dev.to/raxxostudios/claude-code-21332-lets-mcp-servers-ship-their-own-skills-26gg</link>
      <guid>https://dev.to/raxxostudios/claude-code-21332-lets-mcp-servers-ship-their-own-skills-26gg</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Claude Code 2.1.332 (Nov 25) lets MCP servers ship skills, shown as server:skill in the / menu.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Bedrock, Google's Agent Platform and Foundry sessions on Sonnet 5 or 5.5 now default to auto mode unless disabled.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The sonnet alias on Google's Agent Platform and Microsoft Foundry now points to Sonnet 5.5, not 4.5.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tap-mode voice dictation now waits 60 seconds of silence or 10 minutes, up from 15 seconds and 2 minutes.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Claude Code 2.1.332 shipped on November 25, 2026, and the headline addition is skills that come bundled with an MCP server instead of living in your own &lt;code&gt;~/.claude/skills&lt;/code&gt; folder. The rest of the release is mostly default changes on the enterprise cloud routes, plus a voice dictation tweak that affects anyone using tap-mode.&lt;/p&gt;

&lt;p&gt;I checked &lt;a href="https://code.claude.com/docs/en/changelog" rel="noopener noreferrer"&gt;the official Claude Code changelog&lt;/a&gt; for every detail in this piece. It's a dense release: 19 improvements and 93 bug fixes on top of the additions and changes, most of them too small to name individually.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Changed in Claude Code 2.1.332?
&lt;/h2&gt;

&lt;p&gt;The big new thing, still in beta, is skills loading straight from an MCP server. Up to now, a skill was a file you wrote or installed, something that lived on your machine under a name you chose. Now an MCP server can carry its own skills and hand them to Claude Code when you connect to it. They show up in the &lt;code&gt;/&lt;/code&gt; menu labeled &lt;code&gt;server:skill&lt;/code&gt;, so you can tell at a glance which ones came from a server rather than your own folder.&lt;/p&gt;

&lt;p&gt;Alongside that, there's a new &lt;code&gt;PreSkillShellCommand&lt;/code&gt; hook event that can block a skill or slash command's inline shell commands before they run. If you're on 2.1.331 or older and a settings file already names that hook, you'll get a dialog at startup instead of it silently doing nothing.&lt;/p&gt;

&lt;p&gt;Then there's a cluster of changes to defaults on the enterprise cloud platforms.&lt;/p&gt;

&lt;p&gt;Terminal and VS Code sessions on Bedrock Mantle, Google's Agent Platform and Microsoft Foundry now start in auto mode by default when they're running Sonnet 5 or 5.5, unless a session already has a mode set. Setting &lt;code&gt;disableAutoMode&lt;/code&gt; to &lt;code&gt;"disable"&lt;/code&gt; turns that off. The &lt;code&gt;sonnet&lt;/code&gt; alias on Google's Agent Platform and Microsoft Foundry now points to Sonnet 5.5 instead of 4.5, and Foundry's &lt;code&gt;opus&lt;/code&gt; alias moves to Opus 5.5. Bedrock's &lt;code&gt;sonnet&lt;/code&gt; alias stays on 4.5 for now. Foundry's own default model also moves to Sonnet 5.5.&lt;/p&gt;

&lt;p&gt;A smaller but genuinely useful fix: &lt;code&gt;--model default&lt;/code&gt; and picking Default from the model menu used to fail outright if that model wasn't available. Now it steps down to an older model instead of stopping with an error. In auto mode it only steps down to a model auto mode itself accepts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Do MCP Server Skills Actually Do?
&lt;/h2&gt;

&lt;p&gt;They turn an MCP server into something closer to a plugin than a plain tool provider.&lt;/p&gt;

&lt;p&gt;Before this release, connecting to an MCP server got you its tools: functions Claude could call, nothing more. A skill is a different kind of thing. It's instructions, examples, sometimes a whole workflow, the sort of content you'd normally write yourself and drop into a skills folder so Claude knows how to use a tool well, not just that the tool exists. Letting a server ship that alongside its tools means the people who built the server get to teach Claude how to use it properly, instead of leaving every user to figure that out and write their own skill from scratch.&lt;/p&gt;

&lt;p&gt;I use a handful of MCP servers day to day, mostly for things like GitHub and design tools, and the gap between "the tool is connected" and "Claude actually knows the right way to use it" is real. A server-shipped skill is the maintainer closing that gap once, for everyone who connects, instead of every user solving the same problem on their own.&lt;/p&gt;

&lt;p&gt;It's still beta, and the changelog doesn't say how a server author actually packages a skill or whether there's a review step before one shows up in your menu. I'd want that answered before I trusted a skill from a server I didn't build myself. A skill isn't just data, it can contain instructions Claude follows, so a server-shipped one deserves the same scrutiny you'd give a skill you installed from any other third party. The &lt;code&gt;server:skill&lt;/code&gt; label in the menu at least tells you where it came from, which is more than you get from a tool call alone.&lt;/p&gt;

&lt;p&gt;Think about what this actually removes from a user's plate. Say a server wraps a design tool with a dozen endpoints. Before 2.1.332, you'd connect, get the tool list, and either read the server's own docs or trial-and-error your way to knowing which endpoint to call for which job. A bundled skill can carry that knowledge instead: when to use which tool, what order to call them in, what a reasonable default looks like for the server's own domain. That's the part that used to live in a README nobody reads until something breaks.&lt;/p&gt;

&lt;p&gt;The flip side is that you're now trusting more than a function signature. A tool call does one narrow thing and you can read exactly what it does from the schema. A skill is closer to a set of instructions, and instructions are a wider surface. I don't think that makes the feature a bad idea, MCP servers you already trust for their tools are a reasonable place to extend that trust to their skills too, but it's a different kind of trust than "this function returns what it says it returns."&lt;/p&gt;

&lt;p&gt;I wrote about MCP task backgrounding and deny settings back when &lt;a href="https://raxxo.shop/blogs/lab/claude-code-2-1-319-adds-mcp-task-backgrounding-and-a-deny-setting" rel="noopener noreferrer"&gt;Claude Code 2.1.319 added them&lt;/a&gt;, and the pattern here is similar: MCP keeps picking up capability that used to be exclusive to things you built locally. First background tasks, now skills. The protocol is slowly becoming the place where more of the actual behavior lives, not just the tool definitions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should You Worry About the Sonnet 5.5 Alias Swap?
&lt;/h2&gt;

&lt;p&gt;Only if you're running Claude Code through Bedrock, Google's Agent Platform or Microsoft Foundry rather than a personal account or the direct API.&lt;/p&gt;

&lt;p&gt;If that's you, two things move at once in this release. Sessions on Sonnet 5 or 5.5 start in auto mode now unless you've already set a mode, which changes how Claude Code decides when to ask you versus act on its own. And the &lt;code&gt;sonnet&lt;/code&gt; alias you might have pinned in a config somewhere now resolves to a newer model than it did yesterday, on two of the three platforms.&lt;/p&gt;

&lt;p&gt;Deploy by alias instead of an exact model ID, and your next session can behave differently than your last one without you touching a line of config.&lt;/p&gt;

&lt;p&gt;That's worth a two-minute check today if you manage a Claude Code setup for a team on one of those platforms. Look at whatever config sets the model, and decide whether you want the alias to keep floating forward or whether you'd rather pin an exact version. Neither is wrong. Floating aliases mean you get improvements without lifting a finger. Pinned versions mean nothing changes until you decide it should. The problem is only when you think you've pinned something and you actually haven't.&lt;/p&gt;

&lt;p&gt;The cost angle is the one people miss. A newer model under the same alias name doesn't always cost the same as the old one, and a team that budgeted for Sonnet 4.5 usage can end up running Sonnet 5.5 at a different rate without anyone approving that change on purpose. If your Claude Code spend is tracked against a monthly number, this is the kind of release where it's worth pulling that number in a week and comparing it to what you expected, not assuming the alias behaves like a fixed line item.&lt;/p&gt;

&lt;p&gt;For a solo builder on claude.ai or the direct API, none of this touches you. These are enterprise cloud routes, and the alias and auto mode changes are scoped to sessions running through them. I don't use any of the three, and I covered &lt;a href="https://raxxo.shop/blogs/lab/claude-code-2-1-328-brings-auto-mode-to-bedrock-and-foundry" rel="noopener noreferrer"&gt;the earlier wave of auto mode defaults landing on Bedrock and Foundry&lt;/a&gt; when it first shipped. This release is the same pattern one step further: more of the enterprise surface catching up to defaults that have been normal on the direct API for a while.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Else Should a Solo Builder Know?
&lt;/h2&gt;

&lt;p&gt;Tap-mode voice dictation got more patient. It used to stop listening after 15 seconds of silence or a 2-minute cap, whichever came first. Now it's 60 seconds and 10 minutes. If you talk in short bursts with pauses to think, the old timeout probably cut you off more than once before you were done. The text stays unsent when it stops on its own, so the next tap adds to what you already said instead of starting over, and sending the prompt yourself stops it cleanly either way.&lt;/p&gt;

&lt;p&gt;A couple of small interface changes are worth knowing even if they sound trivial. PgUp and Home now answer No on destructive confirmation questions, like the one &lt;code&gt;/clear&lt;/code&gt; shows from inside an agent's view, so a stray key press is less likely to confirm something you didn't mean to confirm. And &lt;code&gt;/schedule&lt;/code&gt;, permission prompts and &lt;code&gt;/loop&lt;/code&gt;'s cloud offer now say "cloud scheduled task" instead of "routine" or "cloud schedule." &lt;code&gt;/routines&lt;/code&gt; still works as a command, so nothing breaks, it's just consistent wording going forward.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;PreSkillShellCommand&lt;/code&gt; hook is worth a look if you've written your own skills with inline shell commands, which is common for anything that shells out to a build tool or a linter. You can now refuse those commands at load time instead of only catching problems once they run.&lt;/p&gt;

&lt;p&gt;None of the 93 bug fixes in this release get called out by name in the changelog, which is normal for a release this size. I'd read that as 93 small things getting quietly better rather than any of them being the kind of fix you'd specifically wait for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;Claude Code 2.1.332 is really two releases stacked on top of each other: a genuinely new capability in MCP server skills, still beta and still thin on detail about how server authors package them, and a batch of default changes aimed almost entirely at Bedrock, Google's Agent Platform and Microsoft Foundry.&lt;/p&gt;

&lt;p&gt;If you're on one of those three, check your model aliases and your auto mode setting this week. Both moved in this release without asking first.&lt;/p&gt;

&lt;p&gt;For everyone else, the thing worth trying is the MCP skills beta, carefully. Connect to a server you already trust and see what it hands you before connecting to one you don't. I'd want clarity on how these skills are vetted before I'd treat a server-shipped one the same as a skill I wrote myself, and until that's answered I'm testing this on servers I already use, not adding new ones just to see what skills they ship.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>The CSV Export Bug a Comma in One Title Exposed</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Wed, 25 Nov 2026 01:30:32 +0000</pubDate>
      <link>https://dev.to/raxxostudios/the-csv-export-bug-a-comma-in-one-title-exposed-2fgj</link>
      <guid>https://dev.to/raxxostudios/the-csv-export-bug-a-comma-in-one-title-exposed-2fgj</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A naive CSV export split one product title into two columns the moment the title had a comma&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A real CSV parser read 4 columns for that row instead of the 3 every other row had&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Python's own csv.writer fixed it with zero extra code, just swapping a join for a library call&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The bug only shows up once, when someone names a product with a comma or a quote in it&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I found this one by accident, testing an export script with a product title that happened to have a comma in it. The naive version, the one built with a plain string join because it's three lines shorter, silently shifted every column after the title one slot to the right. The proper version, built with Python's &lt;code&gt;csv&lt;/code&gt; module instead of a join, didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Export That Looked Fine Until One Row Didn't
&lt;/h2&gt;

&lt;p&gt;Most CSV exports start the same lazy way. You've got a list of rows, each one a dictionary or an object, and instead of reaching for a library you just join the fields with commas, because it's one line and it works on your test data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKU-104"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Starter Hoodie"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"18.00"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKU-212"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Studio Tee, Black Edition"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"24.00"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKU-331"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'The "Night Shift" Hoodie'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"42.00"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;lines&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku,title,price"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;'{p["sku"]},{p["title"]},{p["price"]}'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;naive_csv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That function ran clean on the first row. It ran clean on hundreds of rows, if your test data never happened to include a comma. The second product in my list breaks it, because "Studio Tee, Black Edition" has a comma sitting right inside the field the join function has no idea is supposed to stay together.&lt;/p&gt;

&lt;p&gt;I fed the naive output back through a real CSV parser to see exactly what a downstream tool, a spreadsheet import, an analytics pipeline, anything that actually reads CSV instead of eyeballing it, would see:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;io&lt;/span&gt;

&lt;span class="n"&gt;reader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;io&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;StringIO&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;naive_csv&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;reader&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first row parsed as 3 columns, exactly as intended. The second row parsed as 4 columns. "Studio Tee" landed in the title column, "Black Edition" landed in a column that doesn't exist in the header, and the price that was supposed to be in column 3 was still there, just reported under the wrong header once a tool tried to line it up against &lt;code&gt;sku,title,price&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Kind of Bug Hides So Well
&lt;/h2&gt;

&lt;p&gt;Here's the part that makes this bug worse than a normal one: it doesn't fail loudly, and it doesn't fail on every row. It fails on exactly the rows where a title happens to contain the one character the export forgot to escape. Everything else looks completely fine, including in a quick manual check, because you're not going to open a 500-row export and eyeball every line for stray commas.&lt;/p&gt;

&lt;p&gt;I tested a second case that's even sneakier: a title with a literal quote character in it, &lt;code&gt;The "Night Shift" Hoodie&lt;/code&gt;. A naive join doesn't touch quote characters at all, so it writes the field as-is, with bare double quotes sitting inside an unquoted CSV field. Some parsers tolerate that. Others choke entirely, or silently drop the quote marks, which turns &lt;code&gt;"Night Shift"&lt;/code&gt; into &lt;code&gt;Night Shift&lt;/code&gt; with no indication anything changed.&lt;/p&gt;

&lt;p&gt;This is the same class of bug as a SQL injection that only triggers on an apostrophe in someone's last name, or a template that breaks on an email address with a plus sign in it. The code path works for every piece of test data you thought to write, and then a real piece of user-generated text shows up with a character your test data never had, and the bug ships quietly until someone downstream notices a price in the wrong column.&lt;/p&gt;

&lt;p&gt;There's a worse version of the same bug. I tested a title with a literal newline in it, something a copy-paste from another document can easily introduce without anyone noticing. The naive join doesn't just misplace a column this time, it splits one product into two entire rows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKU-104"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Starter Hoodie"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"18.00"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKU-450"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Weekend Tee\nSecond Line Variant"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"20.00"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reading that naive output back, I got 4 rows out of 2 products plus a header, which should have been 3 rows total. Row 3 was &lt;code&gt;['SKU-450', 'Weekend Tee']&lt;/code&gt;, cut off mid-title with no price at all. Row 4 was &lt;code&gt;['Second Line Variant', '20.00']&lt;/code&gt;, a two-column row that looks like a completely separate, broken product with no SKU. A comma shifts columns. A newline manufactures a phantom row out of thin air, one that any downstream count-the-rows check would silently accept as real data.&lt;/p&gt;

&lt;p&gt;For a store export specifically, this shows up most often in &lt;a href="https://shopify.pxf.io/5k5rj9" rel="noopener noreferrer"&gt;Shopify&lt;/a&gt;'s own product CSV exports, where a title with a comma is genuinely common ("Tee, Black" is a completely normal product name), so any custom export script layered on top of &lt;a href="https://shopify.pxf.io/5k5rj9" rel="noopener noreferrer"&gt;Shopify&lt;/a&gt;'s own data needs to assume commas and quotes will appear in real titles, not treat them as an edge case.&lt;/p&gt;

&lt;h2&gt;
  
  
  The One-Line Fix That Isn't Actually a Hack
&lt;/h2&gt;

&lt;p&gt;The fix isn't a regex. It isn't manually checking every field for a comma before deciding whether to wrap it in quotes, either.&lt;/p&gt;

&lt;p&gt;That path has its own edge cases, like a field that already contains a quote character, which needs to be escaped as two quote characters, not one. The fix is to stop writing CSV by hand and let a library that already solved this do it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;io&lt;/span&gt;

&lt;span class="n"&gt;buf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;io&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;StringIO&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;writer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;writer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writerow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;writer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writerow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;proper_csv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getvalue&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running the same read-back test against this output, every row parsed as exactly 3 columns. The comma in "Studio Tee, Black Edition" came back whole, because &lt;code&gt;csv.writer&lt;/code&gt; automatically wrapped that field in quotes: &lt;code&gt;"Studio Tee, Black Edition"&lt;/code&gt;. The quote character in "Night Shift" came back correctly too, doubled up as &lt;code&gt;""Night Shift""&lt;/code&gt; inside the wrapping quotes, which is the actual CSV spec's answer to "how do you put a quote inside a quoted field."&lt;/p&gt;

&lt;p&gt;The newline case fixed itself too, the same way. "Weekend Tee" and "Second Line Variant" came back as one field, &lt;code&gt;Weekend Tee\nSecond Line Variant&lt;/code&gt;, inside a single properly quoted row. No phantom fourth row, no SKU-less second entry. The writer wrapped the whole field in quotes the moment it saw the embedded newline, which is exactly what the format expects and exactly what I'd never have written by hand without looking it up first.&lt;/p&gt;

&lt;p&gt;I didn't write any of that quoting logic myself. That's the point. &lt;code&gt;csv.writer&lt;/code&gt; decided, field by field, whether a value needed quoting, and it got every row right including the two that broke the naive version. The same module has a &lt;code&gt;DictWriter&lt;/code&gt; that skips the manual &lt;code&gt;writerow&lt;/code&gt; calls entirely if your data is already a list of dictionaries, which is the shape most exports start in anyway.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"export.csv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;newline&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;writer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;csv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DictWriter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fieldnames&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;writer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeheader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;writer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writerows&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;JavaScript doesn't ship a CSV writer in the standard library the way Python does, but the fix is the same shape: reach for a small, well-tested library like &lt;code&gt;csv-stringify&lt;/code&gt; or &lt;code&gt;papaparse&lt;/code&gt; instead of a template string with commas in it. The specific tool matters less than refusing to hand-roll the quoting rules yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Actually Changed After Finding This
&lt;/h2&gt;

&lt;p&gt;I went back through every export script I'd written by hand, the quick ones meant to dump a report or a product list into a spreadsheet, and found three that used a plain join instead of a real CSV writer. None of them had broken yet, because none of them had been fed a title with a comma in it during the time I'd been using them.&lt;/p&gt;

&lt;p&gt;That's not the same as them being correct. It's a bug that hasn't found its trigger yet.&lt;/p&gt;

&lt;p&gt;All three got rewritten with &lt;code&gt;csv.DictWriter&lt;/code&gt; the same afternoon. It took less time than writing this post did.&lt;/p&gt;

&lt;p&gt;I'm also treating "does this handle a comma and a quote in the data" as a standing test case any time I write something that touches CSV, the same reflex as checking what happens when a form field is empty or a number is negative. &lt;a href="https://raxxo.shop/blogs/lab/the-404-page-i-almost-shipped-without-testing" rel="noopener noreferrer"&gt;The same instinct applies to catching bugs before a file ever reaches a real audience&lt;/a&gt;, where the actual failure only shows up once you test the input you didn't expect instead of the one you planned for.&lt;/p&gt;

&lt;p&gt;The deeper habit this reinforced: any time I'm building a text format by joining strings with a delimiter, whether that's CSV, a pipe-separated log line, or a custom config format, I ask whether the delimiter character can ever appear inside one of the values. If the answer is yes, and it almost always is once real data shows up, hand-rolling the format is building the exact bug this post is about, just with a different delimiter character.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;A plain string join works right up until one value contains the character you're joining on, and CSV's delimiter is a comma, which shows up in real product titles constantly. The fix cost zero extra lines of logic, just swapping &lt;code&gt;",".join(...)&lt;/code&gt; for a library call that already knows the quoting rules. Test every export with one deliberately annoying value, a comma, a quote, a newline inside a field, before you trust it with real data.&lt;/p&gt;

&lt;p&gt;What's the one character your own export script has never actually been tested against?&lt;/p&gt;

&lt;p&gt;This article contains affiliate links. If you sign up through them, I may earn a small commission at no extra cost to you. (Ad)&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>Claude's Computer Use Beta Lands on Team and Enterprise Plans</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Tue, 24 Nov 2026 03:26:33 +0000</pubDate>
      <link>https://dev.to/raxxostudios/claudes-computer-use-beta-lands-on-team-and-enterprise-plans-ajp</link>
      <guid>https://dev.to/raxxostudios/claudes-computer-use-beta-lands-on-team-and-enterprise-plans-ajp</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Computer use reached Team and Enterprise plans on November 20, after being Pro and Max only&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It needs Claude Desktop 5.1231.0 or later plus the Chat and Cowork unified setting on&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;There's no sandbox between Claude and your apps, so on-screen text can steer its clicks&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Setting changes can take about an hour to reach every user once an Owner flips it on&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On November 20, Anthropic rolled out a beta of computer use to Claude's Team and Enterprise plans, the two tiers that had no access to it until now. The feature lets Claude look at a user's screen and operate whichever desktop apps that user allows, clicking and typing the way a person would. Pro and Max accounts have had a version of this for a while.&lt;/p&gt;

&lt;p&gt;This release is about catching the paid-seat plans up. It's also about what Anthropic had to bolt on to make the feature safe enough for a shared company account, not just one person's laptop.&lt;/p&gt;

&lt;p&gt;Beta, though. Not a quiet default-on switch.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Actually Changed on November 20?
&lt;/h2&gt;

&lt;p&gt;Claude can now see a connected desktop and act inside the apps a user picks, and that's live in beta for Team and Enterprise today. It works in Claude Desktop on macOS 14 or later and on Windows. It also works from Claude on the web or Claude Mobile, as long as the organization's "Computer access" setting is on and a desktop running Claude Desktop is connected to that account.&lt;/p&gt;

&lt;p&gt;There's a real gate here, not just a toggle. The feature needs the "Chat and Cowork unified" capability turned on first, the same unification Anthropic &lt;a href="https://raxxo.shop/blogs/lab/anthropic-merges-cowork-into-chat-and-launches-docs-and-slides" rel="noopener noreferrer"&gt;merged chat and Cowork into one surface&lt;/a&gt; to build. Without that switched on, the computer use option in Organization settings doesn't even appear.&lt;/p&gt;

&lt;p&gt;It doesn't work inside a separate Cowork task, and it doesn't work in Claude Code at all. So if you're used to Claude &lt;a href="https://raxxo.shop/blogs/lab/claude-cowork-now-opens-its-own-browser-for-web-tasks" rel="noopener noreferrer"&gt;opening its own browser inside Cowork&lt;/a&gt; to run a web task, this is a different lane entirely, aimed at your desktop apps, not a sandboxed browser tab.&lt;/p&gt;

&lt;p&gt;On macOS, Claude needs the Accessibility permission and the Screen &amp;amp; System Audio Recording permission before it can do anything at all. An admin can pre-approve both through a PPPC profile pushed by MDM.&lt;/p&gt;

&lt;p&gt;That detail alone tells you who this is really built for. IT teams rolling a policy out to a whole org, not one person clicking "allow" on a personal machine.&lt;/p&gt;

&lt;p&gt;App access is controlled with a block list or an allow list, and the user still has to approve each app themselves even after an admin sets the list. App IDs are the identifiers you'd expect, bundle IDs on Mac such as &lt;code&gt;com.microsoft.Excel&lt;/code&gt;, and file names or AUMIDs on Windows. If you've scoped an MDM policy before, this will feel familiar. If you haven't, it's a lot of plumbing for a feature still labeled beta.&lt;/p&gt;

&lt;p&gt;None of that scoping is optional either. A block list stops Claude from touching named apps while leaving everything else open, and an allow list flips that to only the apps named. Pick the allow list if you actually want to know what you're exposing, because a block list means you have to predict every app you'd rather Claude not see, and nobody's list of "apps with sensitive data" is ever complete on the first try.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Did Team and Enterprise Take Longer Than Pro and Max?
&lt;/h2&gt;

&lt;p&gt;An individual account only ever needed one person's consent. A shared Team or Enterprise account needs an admin decision, a staged rollout, and a way to pull the feature back fast if something goes wrong. That machinery takes longer to build than a personal toggle, which is the simplest explanation for the gap between when Pro and Max got this and when Team and Enterprise finally did.&lt;/p&gt;

&lt;p&gt;An Owner or Primary Owner has to turn it on under Organization settings, inside Capabilities, and only after confirming "Chat and Cowork unified" is already active. Enterprise admins can exclude specific custom roles from getting it at all. Team plans don't have custom roles, so on Team the setting is on or off for every seat at once. No middle ground.&lt;/p&gt;

&lt;p&gt;Anthropic also carved out exceptions that say exactly who this still isn't for. Organizations running a HIPAA-ready configuration, Zero Data Retention for Claude Code, customer-managed encryption keys, or FERPA and K-12 settings don't get computer use right now. Full stop.&lt;/p&gt;

&lt;p&gt;Those are the orgs with the strictest data-handling promises already locked in writing, and letting an AI take live screenshots of someone's screen doesn't fit cleanly into any of those promises yet.&lt;/p&gt;

&lt;p&gt;Even after an Owner enables it, the feature doesn't show up everywhere instantly. Anthropic's own note says setting changes can take about an hour to reach every user, and device policies need Claude Desktop 5.1231.0 or later to take effect at all. If you manage a team and expect the toggle to reach everyone in the next five minutes, it won't, and that's worth telling your team before they ask why their coworker has it and they don't.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Are the Real Risks Here?
&lt;/h2&gt;

&lt;p&gt;Anthropic's own documentation says there's no sandbox between Claude and the applications on your screen. Read that twice.&lt;/p&gt;

&lt;p&gt;No sandbox. Not a weaker one, none.&lt;/p&gt;

&lt;p&gt;Whatever's visible on screen can influence what Claude decides to click next. A stray instruction buried in a document, an email, or a popup window is exactly the kind of thing that could steer a session nobody's watching closely, the same prompt-injection shape that shows up anywhere a model reads untrusted content and then takes an action from it.&lt;/p&gt;

&lt;p&gt;Screenshots get saved with your chat history. If your screen has a client's invoice open, a password manager unlocked, or a tab full of personal messages, that's now part of a saved record too, not just a frame that disappears when the task ends.&lt;/p&gt;

&lt;p&gt;The allow and block lists only cover computer use itself. They don't reach Claude in Chrome, Claude Code, browser extensions, remote desktop sessions, VM windows, or anything captured through a Record a skill recording. Scoping an allow list to "just Excel and Notes" doesn't mean Claude's reach actually stops there if one of those other surfaces happens to be open on the same machine at the same time.&lt;/p&gt;

&lt;p&gt;This is the same caution I'd apply to any permission model that promises boundaries but admits it can't enforce all of them. Claude Code went through its own version of this tightening when it &lt;a href="https://raxxo.shop/blogs/lab/claude-code-2-1-325-turns-off-auto-allow-for-sandboxed-bash" rel="noopener noreferrer"&gt;turned off auto-allow for sandboxed Bash&lt;/a&gt;, because a sandbox that looks safe on paper still needs a human checking what actually ran. Computer use doesn't even have that sandbox yet, so the checking has to happen before the click, not after.&lt;/p&gt;

&lt;p&gt;I'd treat this the way I treat any tool that can act on my behalf without a confirmation step on every single click: start narrow, on a machine with nothing sensitive open, and watch the whole session the first several times through. An allow list of one or two apps costs nothing to set up and tells you a lot before you ever hand it a real task.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Would I Actually Do With This at a One-Person Studio?
&lt;/h2&gt;

&lt;p&gt;I don't run a Team or Enterprise account, so this specific rollout doesn't touch me directly.&lt;/p&gt;

&lt;p&gt;But I've had computer use available through Pro for a while, and the honest answer is I barely use it.&lt;/p&gt;

&lt;p&gt;Most of what I automate goes through an API or a script I can read line by line before it runs, not a model watching my screen and guessing at my next click. That's not a knock on computer use. A desktop automation feature earns trust slower than a scripted one, because you can't diff a screenshot the way you can diff a pull request.&lt;/p&gt;

&lt;p&gt;Where I'd actually reach for it: a one-off task in an app that has no API at all, something I'd otherwise do by hand for twenty minutes. Exporting a report from a legacy desktop tool. Renaming a folder of files to match a pattern, in an app that never shipped a command line. Scope the allow list to that one app, run the task once with the session visible end to end, and turn it back off right after.&lt;/p&gt;

&lt;p&gt;Where I wouldn't: anything near billing, anything with a logged-in email client open, anything where one wrong click costs more time than the task saved in the first place. The whole pitch of running a studio alone is knowing exactly what touched what, every time. A feature with no sandbox between the model and your open windows works against that instinct, not for it, at least until it's had more time to prove itself outside beta.&lt;/p&gt;

&lt;p&gt;A one-person setup doesn't have a second admin to catch a bad session before it does damage, which is exactly why the org-side gating in this release doesn't carry over for solo accounts. Team and Enterprise get a human in the loop by design. Pro and Max get the same feature with that human being me, which is a reason to be more careful, not less.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;If you're already on Pro or Max, nothing here changes for you. You've had computer use for a while, and this release is Team and Enterprise finally getting the same door everyone else already walked through.&lt;/p&gt;

&lt;p&gt;If you run a Team or Enterprise org and you've been waiting on this specifically, it's here now, but budget real setup time: the MDM profile, the role exclusions, the Claude Desktop version check, and the hour-long propagation delay, rather than expecting a flip-a-switch rollout that lands on every seat at once.&lt;/p&gt;

&lt;p&gt;The feature itself is genuinely useful for the one category of problem browser automation and API scripts can't touch: apps with no API and no web version at all. It's just not a feature I'd hand broad access on day one, on any plan, with or without an admin backing it. Start with an allow list of a single app, watch the first few sessions end to end, and decide from what you actually see happen on your own screen, not from what the beta label implies Anthropic has already made safe for you.&lt;/p&gt;

&lt;p&gt;What's the one app on your machine you'd actually trust it to click around in first?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>Does Deleting Object Keys Still Kill Performance? I Tested It</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Sun, 22 Nov 2026 22:41:42 +0000</pubDate>
      <link>https://dev.to/raxxostudios/does-deleting-object-keys-still-kill-performance-i-tested-it-52n</link>
      <guid>https://dev.to/raxxostudios/does-deleting-object-keys-still-kill-performance-i-tested-it-52n</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I tested the old advice that deleting object keys wrecks lookup speed, on Node 22, with 100,000 entries&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A plain object stayed faster than a Map before, during and after five delete-and-rebuild cycles&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Map lookups ran 30 to 50 percent slower than object lookups across all three test phases&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The dictionary-mode slowdown the old advice warns about never showed up in any test phase&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Years of JavaScript advice says deleting keys from a plain object kicks it into a slow "dictionary mode" and you should reach for a Map instead if you're adding and removing keys a lot. I tested that advice directly on Node 22 instead of repeating it, and it didn't hold up.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Old Advice, and Why I Tested It
&lt;/h2&gt;

&lt;p&gt;The claim goes back to how V8 stores objects internally. A plain object starts in a fast mode backed by a hidden class, where property access compiles down to something close to a fixed offset lookup. Delete enough keys, the old advice says, and V8 gives up on the hidden class and falls back to a slower dictionary representation, permanently, even after you stop deleting.&lt;/p&gt;

&lt;p&gt;That claim was true at some point in V8's history, which is exactly why it keeps getting repeated. The problem with advice like this is that it rarely comes with a Node version attached, and engines change. A performance characteristic that was true in 2015 isn't automatically true nine years and dozens of V8 releases later, and nobody updates a Stack Overflow answer from 2015 when the engine behavior underneath it changes.&lt;/p&gt;

&lt;p&gt;V8 has shipped major rewrites of its property storage system more than once since that advice first circulated, each one aimed at closing exactly the kind of gap this folklore describes. Treating a nine-year-old claim about an internal implementation detail as still accurate today assumes the team that owns that implementation spent nine years not improving it, which isn't how engine development actually works.&lt;/p&gt;

&lt;p&gt;I've been burned by this exact kind of stale advice before. I went looking for a similar gap between folklore and current engine behavior when I measured &lt;a href="https://raxxo.shop/blogs/lab/binary-search-vs-array-includes-on-a-50000-row-catalog" rel="noopener noreferrer"&gt;Binary Search vs Array.includes on a 50,000-Row Catalog&lt;/a&gt;, and the lesson there was the same shape: the textbook answer and the measured answer on current hardware don't always agree.&lt;/p&gt;

&lt;p&gt;So I built a key-value cache scenario on purpose, the kind of thing people reach for a Map over an object to handle: a lookup table of 100,000 SKU-style keys, each mapped to a small object, with keys getting deleted and re-added the way a cache with evictions actually behaves.&lt;/p&gt;

&lt;p&gt;No synthetic micro-example here. A cache that evicts and refills is a pattern I've actually built, not a toy case invented to make a benchmark look dramatic.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Actually Ran
&lt;/h2&gt;

&lt;p&gt;Three phases, same 100,000 keys and 200,000 random lookups each time, timed with &lt;code&gt;process.hrtime.bigint()&lt;/code&gt; and a warmup pass before recording anything.&lt;/p&gt;

&lt;p&gt;Phase one: a fresh object and a fresh Map, both fully populated, no deletions yet. This is the baseline, what the "advice says use Map" crowd would call the fair fight before any damage happens.&lt;/p&gt;

&lt;p&gt;Phase two: delete exactly half the keys, 50,000 of them, from both structures, then run the same 200,000 lookups against whatever's left.&lt;/p&gt;

&lt;p&gt;Phase three is the one that actually tests the dictionary-mode claim: five full cycles of delete the same 50,000 keys, then add them back with new values, repeated five times before the final lookup pass. That's the churn pattern the old advice specifically warns about, a cache that keeps evicting and refilling the same slots over and over.&lt;/p&gt;

&lt;p&gt;Five cycles isn't an arbitrary number. A cache that only churns once hasn't really been tested, and a cache that churns fifty times is testing something closer to a stress test than a realistic workload. Five felt like the point where, if a slowdown was going to show up at all, it would have shown up by then.&lt;/p&gt;

&lt;p&gt;I ran lookups against both structures using the exact same randomized key list each phase, so neither one got an easier set of keys to search than the other.&lt;/p&gt;

&lt;p&gt;Same keys, same order, same count. That's the part that matters for a fair comparison.&lt;/p&gt;

&lt;p&gt;I also ran a warmup pass before every timed section, five iterations that don't get counted, so neither method was paying a one-time JIT compilation cost that the other didn't also pay. Skipping warmup is one of the easiest ways to get a misleading benchmark number, and it's the first thing I check when someone else's numbers look too dramatic to be true.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers Didn't Move the Way the Advice Predicts
&lt;/h2&gt;

&lt;p&gt;Phase one, no deletions: object lookups averaged about 10.8 milliseconds per full 200,000-lookup pass, Map lookups about 16.2 milliseconds. The object was already faster before a single key got touched.&lt;/p&gt;

&lt;p&gt;Phase two, after deleting half the keys: object lookups dropped slightly to about 10.3 milliseconds, Map lookups to about 13.4. Both got a little faster, probably because there was less to search through, and the object stayed ahead the whole time.&lt;/p&gt;

&lt;p&gt;Phase three is where the old advice predicts a cliff. Five delete-and-rebuild cycles should be enough churn to tip a plain object into permanent dictionary mode, according to the thing everyone repeats. What I measured instead: object lookups at about 8.4 milliseconds, actually the fastest of the three phases, and Map lookups at about 15.8 milliseconds. No cliff. No degradation. If anything, the object got faster after churn, not slower.&lt;/p&gt;

&lt;p&gt;I don't have a clean mechanistic explanation for why the churned object came in fastest of the three runs, and I'm not going to invent one. It could be a memory layout effect, it could be something specific to this exact key pattern, and either way a number I can't explain isn't a number I'm going to dress up with a confident-sounding theory.&lt;/p&gt;

&lt;p&gt;No invented theory here. Just the number, and an honest "I don't know why" next to it.&lt;/p&gt;

&lt;p&gt;The Map numbers moved less dramatically across the three phases: 16.2, then 13.4, then 15.8 milliseconds. All three sit within a fairly tight band, which on its own is a point in Map's favor. If predictable, consistent performance across a changing workload matters more to you than raw speed at any one point, that consistency is worth something the headline number doesn't capture.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Doesn't Prove
&lt;/h2&gt;

&lt;p&gt;One benchmark on one Node version with one key pattern doesn't prove plain objects never hit dictionary mode. V8 engineers didn't invent that behavior for no reason, and there are almost certainly key patterns, object shapes or V8 versions where it still shows up. What this test does prove is narrower and still useful: the specific, commonly repeated claim that deleting roughly half your keys a few times over wrecks a plain object's lookup speed did not reproduce on Node v22.22.0, for a realistic cache-eviction pattern.&lt;/p&gt;

&lt;p&gt;I'd expect the picture to look different with mixed-type keys, with an object that also gets new properties added that were never there originally, or with a far larger key count than 100,000. None of those are what I tested, and I'd rather say so plainly than let the headline numbers imply a broader claim than the data supports. A benchmark proves what it tested and nothing more.&lt;/p&gt;

&lt;p&gt;That's a meaningfully different claim than "deleting keys from objects is always fine." It's "stop repeating a performance rule you haven't checked against the Node version you're actually running," which is a smaller claim but a more honest one.&lt;/p&gt;

&lt;p&gt;Map still earns its place for reasons that have nothing to do with this benchmark. Non-string keys, a reliable &lt;code&gt;size&lt;/code&gt; property, iteration order guarantees, and no risk of colliding with inherited &lt;code&gt;Object.prototype&lt;/code&gt; properties like &lt;code&gt;toString&lt;/code&gt; or &lt;code&gt;constructor&lt;/code&gt;. None of that shows up in a raw lookup-speed number, and all of it is a real reason to pick Map over an object regardless of what the timing says.&lt;/p&gt;

&lt;p&gt;I ran into that &lt;code&gt;Object.prototype&lt;/code&gt; collision risk once myself, debugging a cache where a key happened to be the literal string &lt;code&gt;constructor&lt;/code&gt; and broke a check that assumed every key would return &lt;code&gt;undefined&lt;/code&gt; if missing. A Map doesn't have that failure mode at all, because it has no prototype chain for your keys to accidentally shadow. That bug cost me more debugging time than this entire benchmark did, which is its own argument for Map that no timing number will ever capture. I wrote more generally about chasing down a silent, hard-to-reproduce failure in &lt;a href="https://raxxo.shop/blogs/lab/i-found-the-exact-recursion-depth-that-crashes-node" rel="noopener noreferrer"&gt;I Found the Exact Recursion Depth That Crashes Node&lt;/a&gt;, and the same rule applied there: a bug that doesn't throw costs more than one that does.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;Test the folklore before you build around it. "Deleting keys kills object performance" is the kind of rule that gets copied from post to post without a version number attached, and on current Node it simply didn't show up in a scenario built specifically to trigger it. The object beat the Map in every single phase I measured, including after five rounds of the exact churn the old advice warns about.&lt;/p&gt;

&lt;p&gt;Use Map when you need its actual guarantees: non-string keys, safe iteration, no prototype collisions. Don't use it because of a performance claim from an old blog post that nobody has rerun on the engine you're actually shipping. Five minutes with a benchmark script settles it either way, and five minutes is cheaper than carrying around advice that stopped being true three Node majors ago.&lt;/p&gt;

&lt;p&gt;I keep coming back to the same habit across every craft piece I write here, this one, the catalog search comparison, the recursion depth crash: run the thing, time the thing, read the actual number before repeating someone else's rule of thumb. The rule of thumb is usually a shortcut for a measurement nobody shows you. Do the measurement yourself and you don't have to trust the shortcut at all.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>structuredClone vs JSON.stringify: I Timed Both on Node 22</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Sat, 21 Nov 2026 22:17:25 +0000</pubDate>
      <link>https://dev.to/raxxostudios/structuredclone-vs-jsonstringify-i-timed-both-on-node-22-mkj</link>
      <guid>https://dev.to/raxxostudios/structuredclone-vs-jsonstringify-i-timed-both-on-node-22-mkj</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;On Node 22, JSON.parse(JSON.stringify()) cloned objects 1.6 to 1.75 times faster than structuredClone across three sizes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;structuredClone handles Dates, Maps and circular references that the JSON method silently breaks or drops&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I benchmarked 20000, 2000 and 200 clone operations at three object depths, same count each run&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The JSON method still loses functions and undefined, so the speed win comes with real trade-offs&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I benchmarked structuredClone against the old JSON.parse(JSON.stringify()) trick for deep cloning on Node 22, expecting the newer built-in to win. It didn't. The JSON round trip came out 1.6 to 1.75 times faster every time I ran it, across three different object sizes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Actually Measured
&lt;/h2&gt;

&lt;p&gt;I wrote a small benchmark script rather than trust a blog comment or a Stack Overflow answer from three Node versions ago. Three object shapes: small, around 550 bytes of JSON, medium at roughly 1,500 bytes, and large at about 3,000 bytes, each built from a nested structure with arrays, numbers and strings at two to six levels of depth. Nothing exotic, the kind of object you'd actually clone in a real app: a product record with a &lt;code&gt;price&lt;/code&gt; field, a &lt;code&gt;tags&lt;/code&gt; array and a nested &lt;code&gt;child&lt;/code&gt; object.&lt;/p&gt;

&lt;p&gt;For each size I ran a warmup pass first, then timed 20,000 clones at the small size, 2,000 at the medium size and 200 at the large size, using &lt;code&gt;process.hrtime.bigint()&lt;/code&gt; for the actual timing so garbage collection pauses inside one run didn't get averaged away by &lt;code&gt;Date.now()&lt;/code&gt;'s lower resolution. I ran the whole script twice to check the numbers held up, not just once and called it done.&lt;/p&gt;

&lt;p&gt;Node version matters here, so I'll say it plainly: this ran on v22.22.0. Both &lt;code&gt;structuredClone&lt;/code&gt; and the JSON trick are implemented in native code under the hood, and native implementations get rewritten between major versions. If you're on Node 18 or 20, run this yourself before trusting my numbers, because the gap I found could close or widen depending on what the engine team touched.&lt;/p&gt;

&lt;p&gt;I also kept the benchmark honest in a way a lot of blog post benchmarks skip: a sanity check that both methods produced the same shape of output before I trusted the timing at all. It's easy to time two functions and never notice one of them is doing less work because it's silently dropping a field. I diffed a sample clone from each method against the original object on every size before recording a single number.&lt;/p&gt;

&lt;p&gt;The script itself is nothing clever. Two loops, one &lt;code&gt;structuredClone&lt;/code&gt; call and one &lt;code&gt;JSON.parse(JSON.stringify())&lt;/code&gt; call per iteration, timed separately so neither call's JIT warmup contaminates the other's numbers. I'm not claiming this is a rigorous benchmark suite with statistical confidence intervals. It's a script anyone can write in ten minutes and run on their own machine, which is the whole point: check the claim yourself rather than take a blog's word for it, mine included.&lt;/p&gt;

&lt;p&gt;I didn't benchmark browser &lt;code&gt;structuredClone&lt;/code&gt; at all. The browser's implementation is a different codebase from Node's, V8 handles the same algorithm differently depending on the host, and claiming browser numbers from a server-side test would be exactly the kind of unverified claim I'm trying to avoid here.&lt;/p&gt;

&lt;p&gt;Worth saying plainly: these are microbenchmark numbers. A single clone operation at either speed is nowhere near slow enough to notice in a request handler that also hits a database or an external API. The gap only matters once cloning happens in a loop, thousands of times, inside something latency-sensitive. I measured a similar kind of gap, where a technique only matters at volume, when I timed &lt;a href="https://raxxo.shop/blogs/lab/debounce-vs-throttle-i-counted-every-call" rel="noopener noreferrer"&gt;Debounce vs Throttle: I Counted Every Call&lt;/a&gt;. Same lesson both times: pick the right tool for the shape of the problem, not for the one-off case.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers, Three Times Over
&lt;/h2&gt;

&lt;p&gt;At the small size, &lt;code&gt;structuredClone&lt;/code&gt; took about 0.0086 to 0.0093 milliseconds per clone. The JSON method landed at 0.0054 to 0.0055 milliseconds. That's the JSON method running in roughly 60% of the time.&lt;/p&gt;

&lt;p&gt;Same pattern at the medium size: &lt;code&gt;structuredClone&lt;/code&gt; around 0.024 to 0.027 milliseconds per operation, JSON around 0.015 to 0.0155. And at the large size, &lt;code&gt;structuredClone&lt;/code&gt; sat near 0.048 milliseconds against the JSON method's 0.028 to 0.029.&lt;/p&gt;

&lt;p&gt;Run it twice, get the same ratio twice. That consistency is what actually convinced me this isn't noise.&lt;/p&gt;

&lt;p&gt;A one-off number from a single run could be a GC pause or a CPU throttle hiccup. The same 1.6 to 1.75 times gap showing up at three unrelated object sizes, across two separate runs, means the gap is real and not an artifact of how I happened to run the script that one time.&lt;/p&gt;

&lt;p&gt;The build cost tells a similar story to the clone cost, for what it's worth, though I didn't chase that number down to the same precision. Creating the object in the first place, before any cloning happens, takes roughly the same order of magnitude of time either way. The real split only shows up once you're cloning the same shape repeatedly, which is the actual use case that would ever push someone to benchmark this in the first place. Nobody optimizes a clone they run once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why structuredClone Loses This One
&lt;/h2&gt;

&lt;p&gt;The intuition most people have, myself included before I ran this, is that the newer built-in should be faster because it's native and purpose-built for cloning. That intuition is backwards here, and the reason is what each method actually has to check while it walks the object.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;structuredClone&lt;/code&gt; implements the HTML structured clone algorithm, which has to handle Dates, Maps, Sets, RegExps, ArrayBuffers, typed arrays and circular references correctly, on every single value it touches, even when none of those types are present in your object. That generality costs something on every node it visits, because the engine can't assume "this is just a plain object" the way a narrower tool could.&lt;/p&gt;

&lt;p&gt;It also has to track every object it has already visited, in case one of them points back to an earlier one, so it can return the same cycle instead of recursing forever. A plain data object never has a cycle, so that bookkeeping is pure overhead for the common case, paid on every clone regardless of whether the input ever needed it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;JSON.stringify&lt;/code&gt; and &lt;code&gt;JSON.parse&lt;/code&gt; do one much narrower job: turn plain data into text and back. V8's JSON parser and serializer have had a decade of targeted optimization work specifically because JSON parsing shows up everywhere, from HTTP bodies to config files, and that narrow focus is exactly where the speed comes from.&lt;/p&gt;

&lt;p&gt;A tool that does less, correctly, beats a tool that does more, generally, when your input only needs the smaller tool's feature set. That's not a JavaScript-specific lesson. I ran into the same shape of trade-off comparing a general search against a purpose-built one in &lt;a href="https://raxxo.shop/blogs/lab/binary-search-vs-array-includes-on-a-50000-row-catalog" rel="noopener noreferrer"&gt;Binary Search vs Array.includes on a 50,000-Row Catalog&lt;/a&gt;: the fancier algorithm wins in theory, the one that matches your actual data shape wins in practice.&lt;/p&gt;

&lt;p&gt;Think about what &lt;code&gt;structuredClone&lt;/code&gt; has to check on every array it walks: is this a typed array, does this object have a custom &lt;code&gt;Symbol.toStringTag&lt;/code&gt;, is this reference already in the seen-set for a cycle check. &lt;code&gt;JSON.stringify&lt;/code&gt; checks none of that. It assumes plain data and walks straight through.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Each Method Actually Breaks
&lt;/h2&gt;

&lt;p&gt;Speed isn't the whole story, and I'd be writing a worse article if I stopped at the benchmark. &lt;code&gt;JSON.parse(JSON.stringify(x))&lt;/code&gt; silently drops any function on the object, turns &lt;code&gt;undefined&lt;/code&gt; values into missing keys entirely, converts a &lt;code&gt;Date&lt;/code&gt; into a plain string instead of a &lt;code&gt;Date&lt;/code&gt; instance, and throws on a circular reference rather than cloning it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;structuredClone&lt;/code&gt; gets every one of those right. Dates stay Dates. Maps and Sets clone as Maps and Sets. Circular references clone correctly instead of crashing.&lt;/p&gt;

&lt;p&gt;No silent failures.&lt;/p&gt;

&lt;p&gt;That correctness is the entire reason the API exists, not a side benefit, and it's why reaching for it by default isn't a bad instinct even though it loses this particular race.&lt;/p&gt;

&lt;p&gt;The products I actually clone day to day are closer to plain data than rich object graphs. A product record, a cart snapshot, a settings object pulled from an API response.&lt;/p&gt;

&lt;p&gt;For that shape of data, the JSON method's blind spots never trigger, because there's no Date, no Map, no circular reference anywhere in the structure to begin with. The risk isn't theoretical for long, though. Add one &lt;code&gt;createdAt: new Date()&lt;/code&gt; field to a config object six months from now, and the JSON method starts silently turning it into a string on every clone, with no error and no warning, until something downstream calls a Date method on what it thinks is still a Date. I went looking for that exact kind of silent failure once before, in &lt;a href="https://raxxo.shop/blogs/lab/i-found-the-exact-recursion-depth-that-crashes-node" rel="noopener noreferrer"&gt;I Found the Exact Recursion Depth That Crashes Node&lt;/a&gt;, and the pattern repeats: the bug that costs the most time to find is the one that doesn't throw.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;Don't default to the newest API just because it's newer. &lt;code&gt;structuredClone&lt;/code&gt; is the more correct tool and the right first choice whenever you're not sure what's inside the object you're cloning, or when you know it holds Dates, Maps, Sets or anything with a cycle in it. For a tight loop cloning plain JSON-shaped data at volume, the old JSON trick, native in JavaScript since 2009, still wins by a real margin, not a rounding error.&lt;/p&gt;

&lt;p&gt;My rule going forward: reach for &lt;code&gt;structuredClone&lt;/code&gt; by default, and only drop to the JSON method once I've confirmed the object is plain data and the clone happens often enough that the 1.6 to 1.75 times gap actually shows up in a profile. If it doesn't show up in a profile, the correctness guarantee is worth more than the speed, every time.&lt;/p&gt;

&lt;p&gt;Guessing which one is faster costs nothing. Measuring it on the Node version you actually ship takes five minutes and ends the guessing for good. I'd rather have a number from my own machine than a rule of thumb from a post I can't verify, and that's as true for this benchmark as it is for the next one I write.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>Promise.all Threw Away 9 Good Results Because 1 Call Failed</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Fri, 20 Nov 2026 23:16:19 +0000</pubDate>
      <link>https://dev.to/raxxostudios/promiseall-threw-away-9-good-results-because-1-call-failed-578f</link>
      <guid>https://dev.to/raxxostudios/promiseall-threw-away-9-good-results-because-1-call-failed-578f</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Promise.all on 10 calls with 1 failure returned 0 results, not the 9 that actually succeeded&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Promise.all rejected at 19.6ms, abandoning three calls still running at the 300ms mark&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Promise.allSettled kept all 9 good results and waited the full 300ms for the slow ones&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I now default to allSettled for any fan-out and reserve Promise.all for one true all-or-nothing step&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I kept hearing that &lt;code&gt;Promise.all&lt;/code&gt; throws away every good result the moment one call in the batch fails, even the ones that already succeeded, and I didn't quite believe it until I wrote ten calls in Node, failed one of them on purpose, and watched the other nine disappear.&lt;/p&gt;

&lt;p&gt;Here's the run that proved it, the timing nobody mentions when they explain the difference, and the one line that fixed the batch job.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Run That Lost 9 Good Results
&lt;/h2&gt;

&lt;p&gt;I built ten fake calls, each resolving after a short random delay, and made call number 7 reject instead. Then I ran the batch two ways.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;calls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;fakeCall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calls&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'succeeded:'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Promise.all threw:'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output was &lt;code&gt;Promise.all threw: call 7 failed: upstream timeout&lt;/code&gt;. No results array, no partial list, nothing. The other nine calls had already resolved successfully by the time the catch block ran, and their answers were simply gone, because &lt;code&gt;Promise.all&lt;/code&gt; only ever gives you one thing: every result if all of them succeed, or the first rejection if any of them doesn't. There's no middle setting.&lt;/p&gt;

&lt;p&gt;Swap in &lt;code&gt;Promise.allSettled&lt;/code&gt; with the identical ten calls:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;allSettled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calls&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fulfilled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'fulfilled'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rejected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'rejected'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${fulfilled.length} fulfilled, ${rejected.length} rejected`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: &lt;code&gt;9 fulfilled, 1 rejected&lt;/code&gt;, with the rejected entry carrying the exact reason, &lt;code&gt;call 7 failed: upstream timeout&lt;/code&gt;. Same ten calls, same one failure, completely different outcome, because &lt;code&gt;allSettled&lt;/code&gt; never short-circuits. It waits for every promise to finish one way or the other and hands back a full report instead of a single verdict.&lt;/p&gt;

&lt;p&gt;I'd read the one-line description of both functions a dozen times before this, "all rejects if any rejects, allSettled never rejects." I'd nodded along without registering what "rejects" actually throws away. It's not just an error. It's every successful result that happened to be sitting next to the failure.&lt;/p&gt;

&lt;p&gt;Both functions take the same input, an array of promises, and that's part of why it's easy to swap one for the other without noticing the contract changed underneath the call site. The function signature doesn't warn you. Only the shape of what comes back does, an array of plain values from &lt;code&gt;all&lt;/code&gt;, or an array of &lt;code&gt;{status, value}&lt;/code&gt; or &lt;code&gt;{status, reason}&lt;/code&gt; objects from &lt;code&gt;allSettled&lt;/code&gt;. Any code written against &lt;code&gt;all&lt;/code&gt;'s shape breaks silently if you swap in &lt;code&gt;allSettled&lt;/code&gt; without updating how the results get read, because &lt;code&gt;results[3].someField&lt;/code&gt; on a settled array reads a status wrapper, not the value it used to.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Timing Nobody Mentions
&lt;/h2&gt;

&lt;p&gt;The result difference gets most of the attention, but the timing difference is the one that bit my batch job harder. I ran a second test: four calls, three of them take 300ms, one of them fails fast at 20ms.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hrtime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;makeCalls&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ms&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hrtime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;1e6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`rejected after ${ms.toFixed(1)}ms`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Promise.all&lt;/code&gt; rejected after 19.6ms, the moment the fast failure landed. The three 300ms calls were still in flight when the catch block ran. They weren't cancelled, since nothing in the language cancels a promise once it's created, so they kept running to completion somewhere in the background with no code left waiting on them. Their results, and any side effect they were supposed to trigger on completion, just happened in a function that had already moved on.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Promise.allSettled&lt;/code&gt; on the same four calls took 300.7ms, because it has to wait for the slowest one no matter how fast the others resolve or reject. That's the tradeoff in one sentence: &lt;code&gt;all&lt;/code&gt; fails fast and silently abandons whatever was still running, &lt;code&gt;allSettled&lt;/code&gt; always waits for the stragglers but never abandons anything.&lt;/p&gt;

&lt;p&gt;Translate that into a real fan-out job: nine rows hitting a slow downstream API and one row failing validation before it even reaches the network. With &lt;code&gt;Promise.all&lt;/code&gt;, that one fast, cheap failure throws away nine successful, expensive API calls, because the rejection lands long before the others finish. Nobody writing that code intends that outcome. It's just what &lt;code&gt;all&lt;/code&gt; does by construction, and the behavior stays invisible in testing for as long as your test data happens to all succeed or all fail together, which is an easy thing to not notice until a single bad row shows up for real.&lt;/p&gt;

&lt;h2&gt;
  
  
  What allSettled Costs You
&lt;/h2&gt;

&lt;p&gt;Switching isn't free, and the cost is exactly why &lt;code&gt;Promise.all&lt;/code&gt; still exists as the default most people reach for first. &lt;code&gt;allSettled&lt;/code&gt; never rejects on its own, so every call site has to check each result's &lt;code&gt;status&lt;/code&gt; itself instead of relying on a single &lt;code&gt;try/catch&lt;/code&gt; around the whole batch. Skip that check and a silently failed item looks identical to one that never ran, since both just aren't in your "success" list unless you went looking.&lt;/p&gt;

&lt;p&gt;A rewrite that handles the fan-out job above without throwing away the good results looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;allSettled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;processRow&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;failures&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'rejected'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;failures&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;failures&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'row failed'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;succeeded&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'fulfilled'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's maybe six more lines than the &lt;code&gt;try/catch&lt;/code&gt; version, and all six are there because the job now has to decide what "partial success" means instead of getting that decision made for it. For a batch of independent rows, a few bad ones shouldn't sink the rest. For a bank transfer split across three ledger writes, one failure should absolutely stop the whole thing, which is exactly the case where &lt;code&gt;Promise.all&lt;/code&gt;'s fail-fast behavior is the correct one, not a gotcha to route around.&lt;/p&gt;

&lt;p&gt;There's a middle case worth naming too: a batch that should keep running, but only up to a point. If a hundred rows go through &lt;code&gt;allSettled&lt;/code&gt; and ninety of them fail, that's not nine good results slipping past a bad one anymore, that's a downstream dependency that's actually down, and silently reporting "10 succeeded" without raising an alarm is its own kind of bug. The fix is one more check on top of the result-filtering code above: once the failure count passes some fraction of the batch, log it as an error instead of a warning, so a real outage still gets noticed instead of hiding inside a success count that technically isn't zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where This Pattern Hides in Real Code
&lt;/h2&gt;

&lt;p&gt;Once I knew what to look for, I found the same shape in places I wasn't expecting. A page that loads a user's profile, their recent orders and their notification settings with three parallel calls is a fan-out, and if the notification settings endpoint has a bad day, &lt;code&gt;Promise.all&lt;/code&gt; throws away the profile and orders that already loaded fine, even though the page could have rendered both of those sections and shown an error only where it belongs. A function that sends the same email to twenty recipients through &lt;code&gt;Promise.all&lt;/code&gt; fails the entire send the moment one address bounces, so nineteen people who should have gotten the email don't, because of the twentieth.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Promise.any&lt;/code&gt; and &lt;code&gt;Promise.race&lt;/code&gt; are worth knowing about here too, mostly so you don't reach for them by accident. &lt;code&gt;Promise.any&lt;/code&gt; resolves as soon as the first promise succeeds and only rejects if every single one fails, which is the right tool for "ask three mirrors for the same file, take whichever answers first." &lt;code&gt;Promise.race&lt;/code&gt; settles on whichever promise finishes first, success or failure, which is what you want for a timeout wrapper: race the real call against a timer promise that rejects after some number of milliseconds, and whichever one lands first wins. Neither one is a drop-in replacement for &lt;code&gt;all&lt;/code&gt; or &lt;code&gt;allSettled&lt;/code&gt;, because neither is answering "how did my batch of independent work go." They're answering "which one finished first," which is a different question that happens to use the same &lt;code&gt;Promise&lt;/code&gt; namespace.&lt;/p&gt;

&lt;p&gt;The common thread across all four is that each one encodes a specific answer to "what do I do when more than one promise is in flight at once," and picking the wrong one doesn't throw an error that points at the mistake. It just quietly does the wrong thing with results you'll only notice are missing when someone asks where they went. I check this now whenever I see more than one &lt;code&gt;await&lt;/code&gt; worth doing in parallel: what should happen to the good results if one call in the batch fails, and does the function I'm about to call actually implement that, or just the one I assumed it did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;Promise.all&lt;/code&gt; is right when every call in the batch has to succeed for the result to mean anything, like three writes that form one transaction. &lt;code&gt;Promise.allSettled&lt;/code&gt; is right the moment the calls are independent, which in my experience is most fan-out work: hitting the same API for ten different IDs, sending ten emails, fetching ten unrelated resources to render one page.&lt;/p&gt;

&lt;p&gt;I default to &lt;code&gt;allSettled&lt;/code&gt; now and only reach for &lt;code&gt;all&lt;/code&gt; when I can say out loud why a single failure should void everything else. The nine results I lost weren't a bug in the function. &lt;code&gt;Promise.all&lt;/code&gt; did exactly what its contract says. The bug was mine, for using an all-or-nothing tool on a job where nine failures out of ten mattering independently was always the real shape of the problem.&lt;/p&gt;

&lt;p&gt;I ran a similar before-and-after comparison, real numbers instead of the usual hand-wave, in &lt;a href="https://raxxo.shop/blogs/lab/debounce-vs-throttle-i-counted-every-call" rel="noopener noreferrer"&gt;debounce vs throttle, where I counted every call&lt;/a&gt;, and the stale-response bug in that one shows up for the same reason this one does: async code doesn't wait around for you to reason about it correctly.&lt;/p&gt;

&lt;p&gt;How many of your own Promise.all calls are sitting on a batch where one failure shouldn't cost you the other nine?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
    <item>
      <title>Claude Code 2.1.328 Brings Auto Mode to Bedrock and Foundry</title>
      <dc:creator>RAXXO Studios</dc:creator>
      <pubDate>Thu, 19 Nov 2026 23:42:29 +0000</pubDate>
      <link>https://dev.to/raxxostudios/claude-code-21328-brings-auto-mode-to-bedrock-and-foundry-341m</link>
      <guid>https://dev.to/raxxostudios/claude-code-21328-brings-auto-mode-to-bedrock-and-foundry-341m</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Claude Code 2.1.328 (November 19) adds auto mode on Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Interactive sessions on those three with no permission mode set now start in auto mode, not manual prompts&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Plan mode and Bash prompts on third-party providers now offer auto mode too, one setting turns both off&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;/code-review on most models now flags only bugs and CLAUDE.md violations, cleanup moved to /simplify&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On November 19, 2026, Anthropic shipped Claude Code 2.1.328, and the change worth stopping for is auto mode leaving its home turf. Auto mode, the permission mode that took over as the default for Pro, Max and Team plans back in August, now runs the same way when Claude Code is routed through Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry. Until this release, a session on any of those three kept prompting for almost everything, the behavior this blog covered when the default flipped on the consumer plans.&lt;/p&gt;

&lt;p&gt;Three providers, one version number. That's the whole shape of the change.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed in Claude Code 2.1.328?
&lt;/h2&gt;

&lt;p&gt;The release note is specific: auto mode is added for Claude Opus 4.6 and Sonnet 4.6 on Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and the Claude apps gateway, and interactive sessions with no permission mode set now start in it. That second clause is the one to read twice. It is not an opt-in you discover in settings. If you have never touched your permission mode on one of those providers, your next session opens already running the classifier that decides what gets through without a prompt.&lt;/p&gt;

&lt;p&gt;There is a second, related change tucked into the same release. Plan mode and Bash prompts for Opus 4.6 and Sonnet 4.6 on third-party providers now use and offer auto mode the same way newer models already do elsewhere. One setting, &lt;code&gt;disableAutoMode&lt;/code&gt;, turns both of those off if you want the old prompting back. That's the whole opt-out. No migration wizard, no per-action toggle, just a single flag.&lt;/p&gt;

&lt;p&gt;I read this against the August rollout rather than taking the changelog line alone, because the two releases are clearly the same project shipped in stages. Back then, auto mode covered the CLI, IDE extensions, the desktop app and claude.ai/code, and it required Opus 4.6, Sonnet 4.6 or Fable 5. The model requirement hasn't moved. What moved is the list of places that requirement actually gets you auto mode. Bedrock, Google Cloud's Agent Platform and Microsoft Foundry were the gap, and 2.1.328 closes it.&lt;/p&gt;

&lt;p&gt;A second, smaller fix in the same release matters if you already tried auto mode on one of these providers and it misbehaved. A bug made auto mode fail every turn outside Claude Desktop, when &lt;code&gt;CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS&lt;/code&gt; was set behind a gateway that rejects beta flags. That's fixed in 2.1.328. If that was you in the last few weeks, it's worth trying again now rather than assuming it's still broken.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does auto mode behave differently on a third-party provider?
&lt;/h2&gt;

&lt;p&gt;Not in the part that decides what runs. The classifier is the same one I wrote about in August: it looks at a shell command, a file write outside your working directory, or a network call, and either lets it through or blocks it, instead of a prompt firing for almost everything the way manual mode does. The three-strikes fallback is also unchanged. Three blocked actions in a row, or twenty in one session, drops you back to manual prompting until you approve something again.&lt;/p&gt;

&lt;p&gt;What differs is who decided your default. On Pro, Max and Team, Anthropic flips the switch and gives you a one-time prompt you can decline. That prompt doesn't exist on the other side.&lt;/p&gt;

&lt;p&gt;On Bedrock, Google Cloud's Agent Platform and Microsoft Foundry, the account usually belongs to whoever set up the cloud project, not to you personally, and &lt;code&gt;disableAutoMode&lt;/code&gt; is the lever that account controls. If you're a solo builder working inside someone else's AWS or Azure tenant, a client's or an employer's, you don't get the same one-time opt-out prompt. The session just starts in auto mode the next time you run it, unless that setting was already flipped.&lt;/p&gt;

&lt;p&gt;Nobody asks you first.&lt;/p&gt;

&lt;p&gt;Token billing is the other place this matters. The August piece on this blog noted that the classifier's extra round trip isn't billed on Pro, Max or Team, only on Enterprise and on API, Bedrock-style routes. Nothing in 2.1.328 changes that line. If you're paying per token on one of these three providers, the safety layer is now running there by default, and so is its token cost. That's a real number on an invoice, not an abstraction.&lt;/p&gt;

&lt;h2&gt;
  
  
  What else shipped in 2.1.328 that's worth knowing?
&lt;/h2&gt;

&lt;p&gt;Two smaller changes affect daily use regardless of which platform you're on. &lt;code&gt;/code-review&lt;/code&gt; on most models now reports only bugs and violations of your project's CLAUDE.md file. Reuse, simplification and efficiency suggestions, the stuff &lt;code&gt;/code-review&lt;/code&gt; used to mix in, moved to a separate &lt;code&gt;/simplify&lt;/code&gt; command. If you ran &lt;code&gt;/code-review&lt;/code&gt; as a catch-all before pushing, you now need both commands to get what one used to give you.&lt;/p&gt;

&lt;p&gt;Each finding from &lt;code&gt;/code-review&lt;/code&gt; is also marked Important, Pre-existing or Nit now, and a clean review says so in plain words instead of an empty list you have to interpret yourself. Small, but it saves a second of guessing every time.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/bug&lt;/code&gt; asks a plain yes or no before it sends a report now, so holding Enter through a stack of prompts doesn't fire one off by accident anymore.&lt;/p&gt;

&lt;p&gt;I've done exactly that, more than once, clearing dialogs on autopilot and sending a half-written bug report I never meant to send.&lt;/p&gt;

&lt;p&gt;One more worth flagging: &lt;code&gt;mcp_tool&lt;/code&gt; hooks now support &lt;code&gt;"onFailure": "block"&lt;/code&gt;, matching the option command and HTTP hooks already had. If a hook call fails, the action it was guarding gets blocked instead of waving through on a technicality.&lt;/p&gt;

&lt;p&gt;There's also a new warning for anyone running auto or bypass-permissions mode: a message from a session that skips permission prompts can now be held and dropped by a cloud session, and 2.1.328 tells you when that happens instead of letting it vanish silently. If you've ever wondered why a background agent seemed to go quiet mid-task, this is the kind of gap it's meant to close.&lt;/p&gt;

&lt;p&gt;The self-hosted runner side of this release is heavier, new flags for labeling sessions and naming repository folders, but that's orchestration plumbing most solo setups never touch. Anthropic lists 91 bug fixes in this release altogether, most of them terminal rendering, paste handling and Code Mode edge cases nobody outside a specific setup will ever hit. The provider rollout and the two command changes above are the ones that'll actually show up in a normal session today.&lt;/p&gt;

&lt;h2&gt;
  
  
  What would I actually check today?
&lt;/h2&gt;

&lt;p&gt;If I ran Claude Code against Bedrock, Google Cloud's Agent Platform or Microsoft Foundry for any client or employer work, the first thing I'd do is run &lt;code&gt;/status&lt;/code&gt; and look at the permission mode line. Don't assume it still says what it said last week.&lt;/p&gt;

&lt;p&gt;The changelog is blunt about this: no permission mode set means auto mode now, on three providers where that wasn't true a version ago.&lt;/p&gt;

&lt;p&gt;Ten seconds with &lt;code&gt;/status&lt;/code&gt; tells you which side of that line you're on.&lt;/p&gt;

&lt;p&gt;What I wouldn't do is panic and set &lt;code&gt;disableAutoMode&lt;/code&gt; everywhere out of habit. The classifier's block list, force pushes, credential leaks, unreviewed merges, production deploys, hasn't changed shape since August, and it's a reasonable one. I'd rather read what it actually blocks for ten minutes than switch it off because it's new to me.&lt;/p&gt;

&lt;p&gt;I'd also go split the old &lt;code&gt;/code-review&lt;/code&gt; habit into two commands now, today, rather than wait until a cleanup suggestion I actually needed quietly stopped showing up. Running &lt;code&gt;/code-review&lt;/code&gt; out of muscle memory and assuming it still catches everything it used to is exactly the kind of small drift that's easy to miss for weeks.&lt;/p&gt;

&lt;p&gt;For my own setup, raxxo.shop runs through the Anthropic API directly, not Bedrock or Foundry, so this particular change doesn't touch my permission mode at all. It would if I ever took on client work routed through someone else's cloud account, and that's exactly the scenario where I'd want to know the default changed before I found out the hard way, mid-session, watching something run that I expected to approve first.&lt;/p&gt;

&lt;p&gt;The number that actually matters here isn't a percentage or a benchmark. It's three. Three cloud providers added auto mode in one release, on top of the two platforms it already covered since August. That's the whole scope of today's change, not a wider AI safety story, just a permission default catching up to where it already applied everywhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom Line
&lt;/h2&gt;

&lt;p&gt;2.1.328 doesn't introduce a new idea, it closes a gap in one Anthropic already shipped. Auto mode was always going to reach Bedrock, Google Cloud's Agent Platform and Microsoft Foundry eventually, since leaving three major ways to run Claude Code on the older prompting model was never going to last. The thing to act on isn't the feature, it's the default. If you run sessions through any of those three and haven't set a permission mode on purpose, one is now set for you.&lt;/p&gt;

&lt;p&gt;Check &lt;code&gt;/status&lt;/code&gt;, decide if auto mode fits the work you do there, and use &lt;code&gt;disableAutoMode&lt;/code&gt; if it doesn't. I wrote about &lt;a href="https://raxxo.shop/blogs/lab/claude-code-auto-mode-becomes-default-on-august-14" rel="noopener noreferrer"&gt;why the default flipped in the first place&lt;/a&gt; back in August, and about &lt;a href="https://raxxo.shop/blogs/lab/claude-code-2-1-321-lets-mods-skip-the-permission-prompt" rel="noopener noreferrer"&gt;the permission-prompt changes in 2.1.321&lt;/a&gt; if you want the fuller history. Two releases ago, &lt;a href="https://raxxo.shop/blogs/lab/claude-code-2-1-327-fixes-a-bug-that-deleted-env-files-in-worktrees" rel="noopener noreferrer"&gt;2.1.327 fixed a worktree bug&lt;/a&gt; that had nothing to do with permissions at all, which is the usual pace here: one real change buried in a release full of smaller fixes. This one just happens to be the kind worth reading before your next session starts.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claudecode</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
