Day 10 of posting my build
I am actually done with Nora and she is definitely running as a prototype for my project. I would be sharing her on the last day of this contest to honor it.
Today was about the presence Nora already had turning out to be broken, and about turning that same scrutiny back on the status display until it stopped lying too.
Started with something that should have been simple. Her voice was doubling, actual overlapping audio, and it stopped and started at odd intervals like two different people were half a beat out of sync trying to say the same sentence. First instinct was to blame the audio pipeline itself, buffering, queueing, something in how sentences get chunked before they hit the speaker. Wrong layer entirely. The real cause was a session object with a docstring that already said, in plain words, one browser tab. Nothing enforced that. Two tabs sharing the same cookie were both reading off the same single consumer event queue, and every delta chunk was landing in whichever tab happened to poll first. Each tab was speaking a different, incomplete slice of the same reply at the same time. Fixed it with a generation counter, every new stream claims the session, the older one gets told it has been superseded and goes quiet immediately instead of finishing whatever it already had queued.
Once that was solid I noticed the orb on screen had never actually been listening to her. It moved on a timer built off word count, a guess at how long speech should take, not the speech itself. Wired it to the real audio element instead, one real gesture to unlock the audio context, then the orb genuinely reacts to her actual voice, loud syllables, quiet gaps, all of it real signal now instead of an estimate.
The heavier piece was Gmail again, but this time the bug was in how the app talked to itself about its own state. The connection status kept reporting disconnected even seconds after a completely valid reconnect. Spent real time chasing this as a network problem before realizing it was a logic problem wearing a network problem's clothes. The code had defined connected as whether a completely separate, nonessential lookup succeeded, not whether the actual token worked. A valid, working login was being reported as dead because an unrelated address lookup happened to fail at the same moment. The fix was to make connected mean what it should have meant from the start, does send actually have something usable, and only ask for the address afterward as a nice to have that is allowed to fail on its own.
Nine commits today. The one that mattered most was not the voice fix, it was catching the status page telling the operator something false about a connection that was, the whole time, real.
The prompt I used
Tech stack
- Claude
- Cursor
- Codex
Prompt
The status page is reporting disconnected right after a reconnect that
clearly worked. Do not just add another retry. Find out what "connected"
is actually being defined as in the code, and check whether that
definition still matches what the word means to the person reading it.
If the answer to "can this send" and the answer to "does the status page
say connected" are coming from two different checks, that is the bug,
even if both checks are individually correct. Fix the definition, not
just the symptom, and make sure the fix is provable, not just plausible.
9 likes · 2 comments · 11 views
Comments (2)
You're doing well khaleed,.
One step at a time, you're almost done.