WEBVTT

1
00:00:00.700 --> 00:00:04.177
What survives when you close an agent's browser tab?

2
00:00:04.177 --> 00:00:07.655
In this local lab, the browser is a client.

3
00:00:07.655 --> 00:00:12.291
A Node server runs the agent loop, and PostgreSQL saves its events.

4
00:00:12.291 --> 00:00:18.860
This recording uses a deterministic offline fixture, so the behavior is reproducible without calling a hosted model.

5
00:00:20.467 --> 00:00:24.298
Create a session, then ask it to remember codeword equals amber.

6
00:00:24.298 --> 00:00:29.175
The server saves the new turn before returning an HTTP two oh two receipt.

7
00:00:29.175 --> 00:00:31.613
That receipt means the work was accepted.

8
00:00:31.613 --> 00:00:33.355
Completion is a separate event.

9
00:00:33.355 --> 00:00:37.187
The session view follows the saved events to show the result.

10
00:00:38.800 --> 00:00:43.129
Next, run a small JavaScript program that reads the synthetic notes file.

11
00:00:43.129 --> 00:00:48.901
The host runtime dispatches this tool into gVisor, with a read only workspace and no network.

12
00:00:48.901 --> 00:00:50.344
Model credentials stay outside.

13
00:00:50.344 --> 00:00:57.920
Only the JavaScript tool is isolated this way; the agent loop and the separate file reader still run on the host.

14
00:00:59.533 --> 00:01:03.261
Now recall the codeword with zero earlier turns in context.

15
00:01:03.261 --> 00:01:05.871
The fixture reports that it is missing.

16
00:01:05.871 --> 00:01:09.972
The saved history still contains amber, but this request does not.

17
00:01:09.972 --> 00:01:13.327
Repeat with a larger context window, and amber returns.

18
00:01:13.327 --> 00:01:18.173
Open the context view to inspect the exact request that produced each result.

19
00:01:19.800 --> 00:01:23.297
Reload the browser and select the same persisted session.

20
00:01:23.297 --> 00:01:25.240
Its history is still there.

21
00:01:25.240 --> 00:01:33.400
Retry an earlier request with the same idempotency key, and the API returns the original turn instead of executing it again.

22
00:01:33.400 --> 00:01:35.731
This footage shows a client reconnect.

23
00:01:35.731 --> 00:01:38.840
It does not show the API process restarting.

24
00:01:40.467 --> 00:01:43.389
Completed sessions can continue from saved events.

25
00:01:43.389 --> 00:01:50.068
Unfinished execution needs a different decision: inspect it, then explicitly abandon it before starting another turn.

26
00:01:50.068 --> 00:01:55.495
This prototype does not automatically replay interrupted tools or clean up orphaned sandboxes.

27
00:01:55.495 --> 00:02:03.427
The useful distinction is simple: saved history records what happened; model context selects what the next request can see.
