Introducing WebSockets in the Responses API.
@OpenAIDevs484K followers
1,348,043 views
33 Comments
Comments from the original post on X (Twitter)

@OpenAIDevs
WebSockets keep a persistent connection to the Responses API, allowing you to send only new inputs instead of round-tripping the entire context on every turn. By maintaining in-memory state across interactions, it avoids repeated work and speeds up agentic runs with 20+ tool calls by 20%-40%.
433 likes

@theo
This is much better than most people will ever understand. Huge ship!
334 likes

@tacodevs
websockets in 2026 feels like announcing your restaurant now accepts credit cards
123 likes

@Sophty_
Know what else is long-running? 😏 the #keep4o user resistance movement
109 likes

@GalinaLyamina
lol @OpenAI did you see the reddit post that your genius GPT-5.3 Codex deleted the user's entire disk with data when he wrote a simple script, huh?😅 The poor guy asked GPT to clear the Python cache - Codex decided to send the entire disk to hell😭
54 likes

@Blue_Beba_
Did you cancel your @OpenAI subscription because they discontinued GPT-4o? #keep4o
34 likes

@madarco
doesn’t Responses API already supports sending only the nee message instead of the whole conversation?
28 likes

@abhi16_93
Looks like this is built for openclaw
26 likes

@Alex_m
is this live today with codex?
19 likes

@eightwt2
#opensource4o #keep4o #keep4oAPI #bringback4o #4o #FireSamAltman
11 likes

@SystemDaddyAi
HTTP was a conversation. WebSockets is a relationship. AI agents just stopped hanging up the phone. ☠️
11 likes

@DennisABCDE
🥱 Where is 4o? #BringBack4o
10 likes

@hashmine_org
Persistent connections are essential for long-running agents
10 likes

@chaoswriter2000
WebSockets for lightning-fast agents while the actual writing still crawls along like a depressed sloth on diazepam. Groundbreaking stuff, now bring back the model that didn’t need a personality transplant #BringBack4o
9 likes

@Everlier
somehow I was under the impression that existing requests were already keeping their state in memory and then routed to the same node on tool responses, wow
7 likes

@sabamisosan76
Give GPT-4o back to those who need it. Even if OpenAI doesn't need GPT-4o, it has been invaluable to those who do. If you don't want it, make it open source. Why can't you do that? Well, okay, explain. #keep4o #OpenSource4o #BringBack4o @OpenAI @sama
6 likes

@chargrnmn
What's the difference between this and streaming? I'm confused @grok
3 likes

@morganlinton
Super cool, this looks really slick.
3 likes

@ilshadyX
WebSockets for agent tool calls makes sense. HTTP request-response was never designed for long-running back-and-forth between an AI and external tools.
3 likes

@MatanHalevy
need to try this in my game eval environments, would solve a lot of limitations in real time performance
3 likes












