Skip to content
Smol AI
← All engineering notes

Engineering · Nov 29, 2026 · 5 min read

We cut the wait to read a Forge PR by 29% with agents

One slow pull request turned into a loading-state sweep across web, Mac, and iPhone. We measured time to usable, watched what moved, and kept the replays.

A launcher that says “No matches” while the search is still running has given you the wrong answer. A chat that jumps when an image loads has moved what you were reading. Loading states are part of software quality. They’re also surprisingly easy for a coding agent to work on once you tell it what to record and what to hold still.

We started with one request: count the loading states when opening a pull request in Forge, our code hosting app. On a narrow viewport, the page showed four screens before the description became readable at 5.29 seconds. The first fix cut that to one loading layout and 3.76 seconds, a 28.9% shorter wait in the matched replay.

Live narrow recordings. The signed-in details are covered, and the description is represented by a marker at the original paint time.

One stable shell cut the Forge wait by 28–29%

The old page showed public navigation, a full-screen “Heating the forge” message, another full-screen loader, and finally a signed-in skeleton. Most of that movement was the page changing its mind about what to render. We kept one shell in place and let the authorized PR description render while reviews, diff panels, and controls loaded independently. Those later sections kept their space.

One follow-up prompt was “keep public PRs indexable without slowing the shell.” The browser can render an indexable public PR without making the shell wait for a separate metadata request. The route still marks a private, unlisted, or unavailable PR as noindex when the existing API response identifies it. Access checks remain on the server.

Once the shell held still, it was easier to see where the remaining wait came from. The next rounds removed redundant repository reads, shared authorization work within the request, and batched rate-limit checks. Each release got its own before/after pair.

Four Forge release comparisons at desktop and narrow widths. The first cut time to readable by 28.3% on desktop and 28.9% at narrow width. The last pair shows reductions of 6.0% and 16.7%.

Calendar waited 74% less and web startup up to 48% less

We looked for the same problem wherever one piece of useful UI was waiting for something else. On web startup, we dropped redundant reads. A workspace open went from six requests on a cold desktop run and eight on a warm run to two in each. The largest startup time reduction was 47.6%, from 796 to 417 ms on warm desktop web. On the installed Mac app, cold startup improved 6.1% and warm startup was effectively flat.

The file reader was waiting for folder metadata before showing the file. The two-account Calendar was making one healthy account wait for the other. And on the iPhone, Find required a second tap to open the result. The useful content in each case could reach the screen earlier.

Time to usable for web and Mac startup, file previews at two widths, two-account Calendar, and one paired iPhone Find run. The annotated differences range from an effectively flat Mac warm open to a 74.3% cut for two-account Calendar.

Compare all 18 measurements

Each pair has its own baseline and definition of usable. Percent reduction is the time saved divided by the before time.

ReplayBefore → after (ms)Time saved (ms)Reduction
Physical Duo Find6,080 → 4,0402,04033.6%
Two-account Calendar2,658 → 6831,97574.3%
Forge stable shell · desktop5,764 → 4,1321,63228.3%
Forge stable shell · narrow5,292 → 3,7641,52828.9%
Web file preview · desktop1,706 → 6251,08163.4%
Web file preview · narrow1,623 → 71990455.7%
Forge cheaper access checks · desktop2,724 → 1,90482030.1%
Forge cheaper access checks · narrow2,484 → 1,90458023.3%
Web startup · desktop cold842 → 45438846.1%
Web startup · desktop warm796 → 41737947.6%
Forge batched rate limiting · narrow2,239 → 1,86437516.7%
Forge fewer detail reads · desktop3,516 → 3,1803369.6%
Web startup · narrow warm704 → 39830643.5%
Web startup · narrow cold696 → 40828841.4%
Forge batched rate limiting · desktop1,862 → 1,7501126.0%
Installed Mac startup · cold1,124 → 1,055696.1%
Forge fewer detail reads · narrow3,308 → 3,272361.1%
Installed Mac startup · warm684 → 68220.3%

The 2 ms (0.3%) change for the installed Mac warm open was effectively flat.

Find took one tap and 34% less time on the physical Duo

“Try the physical Duo again” was enough to redirect the agent from a simulator to the phone. We reran a matched pair on the same physical device with signed build 187 variants. From the result tap to usable chat, including XCTest settling, we recorded 6.08 → 4.04 s (33.6% less time). The extra “Open” tap was gone.

Same iPhone, one matched pair. Private workspace contents are covered.

The narrow file preview loaded 56% sooner

We held back folder metadata and then injected a 503 on a later refresh. The narrow preview went from 1,623 to 719 ms (55.7% less time). When the refresh failed, the preview stayed readable. This is the kind of bug you miss if measuring only the happy path.

BeforeAfter
Controlled narrow Chromium replay. Watch the readable preview stay open after the 503.

Two-account Calendar waited 74% less for a usable event

Two synthetic Google accounts drove this Chromium replay. One responded slowly and failed. The usable event from the healthy account appeared in 683 ms instead of 2,658 ms (74.3% less time), and it stayed visible through the other account’s failure and retry.

BeforeAfter
Controlled Chromium replay with two synthetic Google accounts.

Cold startup on the installed Mac took 6% less time

We used the installed QA app and a synthetic workspace. Across three runs per condition, the median moved from 1,124 to 1,055 ms (6.1% less time).

The installed app opens a synthetic workspace.

A failed poll stopped taking the agent run offscreen

We failed one status poll while the run was underway. The baseline cleared the partially generated answer and the Stop control. With the fix, both stayed visible and the next poll could recover.

BeforeAfter
Controlled narrow Chromium replay. The partial answer and Stop action stay visible.

The launcher stopped reporting false empty results

In the Mac renderer, we held a saved Quicklink response for the same interval in both replays. The fix shows that the lookup is still running and keeps the selected row steady when a result arrives. A quicker-looking empty state was the bug here.

BeforeAfter
The Mac renderer in WebKit with a simulated Tauri bridge.

Short prompts and a long verification loop

The prompts were mostly small decisions about scope or where to test. “Keep public PRs indexable without slowing the shell.” “Want it faster too.” “Try the physical Duo again.” There were 22 direct user messages in the sweep and release check, with a median of 21 words. Logged turns took about 15 hours and 35 minutes across 44 hours on the clock, including builds, CI waits, and replays.

A November 27–28 timeline shows brief steering messages and longer agent turns. In the final 96-minute turn, the first matched captures were reported after eight minutes, followed by sidebar and scroll fixes.

We used signed-in Chrome for live Forge, Chromium fixtures for the web failures, WebKit with a simulated Tauri bridge for the launcher, and real installed builds for Mac startup and Duo Find. In the final turn, the first matched captures came back after about eight minutes. The rest of the run found a delayed 53 px sidebar resize, integrated changes from main, and caught a separate 21 px unread-message jump. A follow-up held the unread row within 1 px in three local replays.

Give the agent a visible assertion

Record one interaction. Delay one response. Pick the thing the reader needs to stay in place: the selected row, the partial answer, the composer, or the unread marker. Change a dependency, repeat the recording, and keep the assertion in a test. “This feels slow” is a useful starting point. A target you can point to on the screen is what makes the fix repeatable.

More from the workbenchFollow via RSS ↗

Opening your workspace…