Agent browser stacks break at logged-in flows: session restore is the real problem

Jocelyn-Skyquill · reddit · 2026-09-15

A developer's post-mortem on their agent browser stack: public pages were easy, but the first logged-in flow broke everything — cookies looked saved until a redirect dropped half the state, headed mode worked once while headless failed the same path, and they spent a night blaming the selector library before admitting session restore was the culprit.

Their fix in principle: treat browser context as a real dependency, not duct tape at the end of the run. Even so, one bad refresh can leave the agent happily continuing with an empty cookie jar. They ask how others structure auth state so agents can retry without a human re-logging in each time.

Original post →

More from coding & agent

coding & agent channel →