Call rebuild

WebRTC · Daily · MongoDB

If your connection drops in a Sessionwire call, you're put back in. In late April 2026, calls could leave someone waiting alone. I fixed how people join calls, then rebuilt how calls work in July. In 8,143 calls from July to October 2026, nobody was left waiting alone.

I've been the lead developer at Sessionwire since 2017.

before

Version three shipped fast alongside version two, with each call's state packed into the call link. The server kept no record of a call. If someone dropped while joining, nothing could rebuild it or tell the other person. They sat there alone.

what changed

Rejoin
Automatic. If your connection drops, the app puts you back in, with up to 5 tries in 45 seconds. Before, you had to ask to join again.
Left alone
I saw in the logs that people could end up alone in a call. Nobody was left waiting alone in 8,143 calls from July to October 2026.
Largest call
216 people joined, 169 of them at once, on 15 July 2026. That was the day after the new system went live.

the decision

I rebuilt it as small releases, so one bad step could be turned off or rolled back without touching the rest.

Every call failure in production so far had the same cause: two parts of the app disagreed about whether someone was still in the call. So now each question has one owner. Before someone's audio and video connect, a deadline decides whether they made it. After that, only Daily, our call provider, knows whether they are still there. The server keeps the record.

That meant deleting code, not adding it. I removed the timers in the browser that could end a live call. I ruled out Daily's event messages as the record, because they can arrive out of order or more than once.

The detail: each call and each person in it is a record in MongoDB, and the call link holds only the call's ID. Sessionwire remote control uses a separate ordered WebRTC data channel during the call.

the releases

3.50.0
The server keeps a record of every call and everyone in it.
3.50.1
Before leaving a call, the app asks the server whether the call really ended.
3.50.2
A short drop in the connection to the server no longer removes someone who is still in the call.
3.51.0
Mostly logging. Every time the app leaves a call, it records why. It also no longer leaves a call when the server's answer is unclear.
3.52.0
The browser timers that could end a live call are gone. One check per call, on the server, decides who has left.
3.55.0
A dropped connection rejoins on its own.
3.56.0
Alerts when a call looks unhealthy, and one path for ending a call.

All seven went out in July 2026, and each one took these steps.

  1. plan34 docs over five months, changed whenever the work did
  2. buildClaude, in small changes
  3. reviewCodex and Grok
  4. readme, every change before release
  5. testunit tests, plus browser tests
  6. releasewith a switch or a rollback ready

what went wrong

The first release dropped people from live calls on its first morning: a server timer removed anyone whose connection blinked. The logs showed the cause, so I fixed the server that night instead of rolling back. In October 2026 I built Triage for read-only production debugging across those same logs and call records.

more

Sessionwire
The product, year by year.
Triage
Read-only tools an agent uses to find why something broke in Sessionwire.
Search
CLAP, MERT and hybrid vector search for people and music, under $30 a month.
Remote control
Controlling someone else's computer in a call, over a WebRTC data channel.
Firelight
The pipeline behind a sleep-story channel.
Voice agent
Three things server logs missed when I tested a voice AI agent from the caller's side.