When running a PPT App in Anna’s cloud Agent environment, we encountered session.run() calls where no stream events reached the application for an extended period. The application eventually triggered its own 180-second stream-idle timeout and reported that generation was interrupted. We would appreciate help checking request receipt, task scheduling, model routing, and stream-event delivery using the times and Session IDs below.
This was not a case where the model produced part of the output and then stopped. At the application observation layer, every failed attempt had 0 frames, 0 text fragments, and 0 characters. The application received none of started, run_meta, or sse.
Environment and Impact
- Use case: a PPT App inside the Anna platform uses a cloud Agent Session to generate page HTML.
- Failed operation:
generate_page_html. The record shows five pages being processed concurrently. Although the user encountered the issue while editing content, this record belongs to the full presentation generation flow (deck-generation), so it should not be described as a request for only one page. - Model preference sent by the client:
google/gemini-3.8-flash, submitted throughmodelPreferences.hints. The failed interactions did not record the actual model, so we cannot confirm which model the platform ultimately routed to. - Impact: this page-generation round produced no new HTML and did not reach page rendering. The UI reported that generation was interrupted and the preview was temporarily unavailable. Previously generated pages remained available.
How the Application Calls the Session and Determines a Timeout
The client call can be simplified to the following example (session creation, attachments, cancellation, and logging context are omitted):
const rawStream = session.run({
content: prompt,
modelPreferences: {
hints: [{ name: "google/gemini-3.8-flash" }],
},
});
const stream = guardStreamLiveness(rawStream, { idleMs: 180_000 });
for await (const frame of stream) {
// Count every frame that reaches the application, not only text frames.
diagnostics.frame(frame, extractFrameEvents(frame));
// Collect text and process completion events afterward.
}
On each iterator.next() call, the idle guard races the iterator against a 180-second timer. Receiving a frame clears that timer; waiting for the next frame starts a new timer. Therefore:
- A timeout occurs if the first frame takes more than 180 seconds.
- A timeout occurs if the gap between two adjacent frames exceeds 180 seconds.
- This is not a maximum 180-second Session lifetime, and it is not limited to periods with no text. An event frame without text also ends the current wait.
- A single Agent run also has a separate 600-second total timeout. The timeout observed here was the 180-second idle timeout.
Agent stream idle timeout after 180000msis generated by the application asStreamIdleTimeoutError; it is not an error message received from the server.
After an execution failure, the application retries by creating a new Session, up to two additional attempts. The attempt sequence in the client record is initial → fresh_session → fresh_session, and same_session_retry_count remains 0. Each logical request therefore uses three different Sessions, all of which timed out with zero frames.
Stream cleanup calls the iterator’s return() without waiting for it to complete. The session executor then attempts to delete the old Session. The client record shows host_cancel as not_requested, so we cannot conclude that the upstream task stopped. We would also like to know whether old tasks remained active or consumed resources.
Timing and Repetition
All times below are September 24, 2026. Both UTC and China Standard Time (UTC+8) are provided to help locate server-side records. The times come from the interaction’s started_at / ended_at and may differ from the time the server received the request.
| Phase | UTC | China Standard Time (UTC+8) | Observation |
|---|---|---|---|
| Earlier successful interactions | 03:48:07–03:53:07 | 11:48:07–11:53:07 | 13 successful Agent runs across 12 Sessions |
| Failed round 1 | 05:18:32–05:27:40 | 13:18:32–13:27:40 | 5 pages × 3 attempts; all 15 Sessions timed out with zero frames |
| Failed round 2 | 05:29:58–05:39:09 | 13:29:58–13:39:09 | 5 pages × 3 attempts; all 15 Sessions timed out with zero frames |
| Failed round 3 | 05:42:11–05:51:21 | 13:42:11–13:51:21 | 5 pages × 3 attempts; all 15 Sessions timed out with zero frames |
The complete page-interaction record contains 45 failures of this type across 45 distinct Sessions. No successful page Agent run was observed during the three failure windows, and creating new Sessions did not recover the requests. Page generation had completed successfully earlier in the same usage period.
This was therefore not an isolated failure of one Session. It recurred in three rounds during an observation window of about 33 minutes. The available evidence covers only this client diagnostic record, so we cannot determine the rate across users, stable reproduction conditions, the actual start and end of the incident, or whether it later recovered on its own. We also did not run a single-concurrency control experiment, so we cannot determine whether concurrency was a factor.
Other types of AI requests succeeded at 05:18:28–05:18:29 UTC, but they do not use this Session stream and therefore do not establish that the Agent Session path was healthy.
Successful and Failed Observations
The successful records show that the client diagnostics can observe started. For example:
{
"session_app_session_uuid": "aps_za5oeikubffevqn5scbvu",
"counts": {
"frames": 76,
"event": { "started": 1, "other": 3, "sse": 72 }
},
"first_frame": {
"receive_index": 1,
"event": "started",
"elapsed_ms": 230.8
}
}
These are organized client-observation fields. Of the 13 successful Agent runs, 11 recorded started; the other two did not record started, but did receive other frames and completed successfully. We therefore do not treat a missing started event alone as a failure. The relevant distinction here is that all frame counts were zero for the failed attempts.
The following is a key-field excerpt from one failed record:
{
"observation_layer": "session.run.payload",
"identifiers": {
"session_app_session_uuid": "aps_m6e367gt4fnniwc35elovs"
},
"timing": {
"waiting": { "at": "2026-09-24T05:48:20.361Z", "elapsed_ms": 0 },
"terminated": { "at": "2026-09-24T05:51:20.362Z", "elapsed_ms": 180001.8 },
"idle_timeout_ms": 180000,
"run_timeout_ms": 600000
},
"counts": {
"frames": 0,
"content_fragments": 0,
"content_chars": 0,
"event": {},
"event_type": {}
},
"exit_reason": "idle_timeout",
"frames": [],
"recording_errors": 0
}
The corresponding partial text output was empty, with zero received characters. We observed no task_complete, stream_end, or normal iterator completion.
The observation boundary is important: we record event payloads delivered by session.run() to the application, not a packet capture of the underlying RPC. For a transport message shaped like this:
rpc.stream {"stream_id":"dev-20","window_uuid":"sess-1","seq":1,"payload":{"event":"started"},"done":false}
This is only an example of the protocol shape, not a raw message captured in this incident. If its payload reached the application iterator, event: started would be recorded. However, this client record contains no outer seq, window_uuid, or other transport evidence. other is also a diagnostic category for event names outside the allowlist; it may not be the original server event name.
We can conclude that the application received no frames. We cannot conclude that the server generated no frames or that the underlying network carried no data. We need the platform team to check the Host, SDK, and RPC event-forwarding path.
Requested Investigation
- Did the run requests for the Sessions below reach the server? Were tasks created, queued, and sent to a model? If internal run IDs or task IDs exist, could you correlate them for us?
- Did the server emit
started,run_meta,sse, or error events? If so, could they have been lost or left undelivered in the Host, SDK, or RPC stream subscription and forwarding path? - Were there scheduling, quota, concurrency, model-routing, or service issues during these times? Which model was actually used?
- Why did creating new Sessions still result in zero-frame timeouts? Did Session deletion after the client timeout succeed, and could old tasks still have been running or consuming concurrency?
- What are the recommended first-frame timeout, heartbeat, cancellation, and retry patterns for this platform? What client versions, logs, or correlation IDs would help investigate this class of issue?
We are not making a final attribution to a server-side fault. We would first like to use the Session IDs to locate the layer where these requests stopped progressing.
Appendix: Complete Failed Session Index
Every entry below is a zero-frame idle timeout. Times are in UTC on 2026-09-24. Attempt 1 is the initial call; attempts 2 and 3 are retries with newly created Sessions. The listed values are Session IDs recorded by the client; platform run IDs and task IDs were not captured.
Round 1
| Start time UTC | End time UTC | Attempt | Session ID |
|---|---|---|---|
| 05:18:32.151 | 05:21:33.107 | 1 | aps_qp3v4czoqzfuio6lflturb |
| 05:18:32.242 | 05:21:33.349 | 1 | aps_ecqw5lkbuu4tcurevc2bpj |
| 05:18:32.616 | 05:21:33.474 | 1 | aps_ow5ikf6vtty3wdtchihpqm |
| 05:18:32.853 | 05:21:33.863 | 1 | aps_py3mtpyeyo6hs436kpi7dx |
| 05:18:34.133 | 05:21:35.280 | 1 | aps_xeqxeh42bch2m5dkjzll4b |
| 05:21:34.724 | 05:24:35.936 | 2 | aps_pftivcdq3mgnetkiqz7k6t |
| 05:21:34.913 | 05:24:36.047 | 2 | aps_2dwfzpfzck5fgd5ebp4uci |
| 05:21:35.266 | 05:24:36.248 | 2 | aps_p3ygmqfa3jqhindrmx5pcy |
| 05:21:35.278 | 05:24:36.897 | 2 | aps_agegapcvfgurixuetlh6pv |
| 05:21:37.364 | 05:24:38.624 | 2 | aps_6fxbjk7gi3bxjcwmcwmmfb |
| 05:24:37.394 | 05:27:38.395 | 3 | aps_jbhxlp6xawhzevitfkyj7i |
| 05:24:37.644 | 05:27:38.474 | 3 | aps_frgw62isisbnyi7474xjty |
| 05:24:38.044 | 05:27:39.241 | 3 | aps_ssn44n3yefke2ik4d6htre |
| 05:24:38.103 | 05:27:39.226 | 3 | aps_pdj26p6n6kbr6episime26 |
| 05:24:39.701 | 05:27:40.606 | 3 | aps_ennk7l6bnvjc4n7kpon6xa |
Round 2
| Start time UTC | End time UTC | Attempt | Session ID |
|---|---|---|---|
| 05:29:58.510 | 05:32:59.985 | 1 | aps_pzkuduorssq5dfmkzmtbzz |
| 05:29:58.857 | 05:33:00.220 | 1 | aps_ke7kicqnpglpnz7oz2k25l |
| 05:29:59.250 | 05:33:00.798 | 1 | aps_5irwp7fhoukqvg5zypmqt7 |
| 05:29:59.377 | 05:33:01.819 | 1 | aps_skuxqixqqb4ycbns6yv5a2 |
| 05:29:59.742 | 05:33:01.923 | 1 | aps_u3egpvbqzde5yukmkqrib2 |
| 05:33:02.957 | 05:36:04.706 | 2 | aps_awbrzsklhlsy4uwj76q4vc |
| 05:33:03.303 | 05:36:05.356 | 2 | aps_7dztiwqc23cywv3cag23db |
| 05:33:03.640 | 05:36:05.392 | 2 | aps_kqf4xrbuaflrlvbsrvoy2l |
| 05:33:03.936 | 05:36:06.445 | 2 | aps_asfdx5fwlwtgtt6c74xdsr |
| 05:33:04.004 | 05:36:06.548 | 2 | aps_bs3xt4bovfsbx42yib7vo5 |
| 05:36:06.719 | 05:39:08.040 | 3 | aps_t3t3ggoy3jktvqpvccnq6v |
| 05:36:06.946 | 05:39:08.347 | 3 | aps_y44t3dsr3wjbn4eprb3423 |
| 05:36:07.215 | 05:39:08.406 | 3 | aps_bfinp3he2ymfy23cwi6r5g |
| 05:36:08.021 | 05:39:09.324 | 3 | aps_hpaiqa2fmhaf7pl4mqconm |
| 05:36:08.094 | 05:39:09.446 | 3 | aps_crvxhzht2vijzdgtldwp6e |
Round 3
| Start time UTC | End time UTC | Attempt | Session ID |
|---|---|---|---|
| 05:42:11.901 | 05:45:13.257 | 1 | aps_fjvh54jhnq5qal3czs3rpi |
| 05:42:12.572 | 05:45:14.781 | 1 | aps_gebrkqhkxvr3qjmsysnxrk |
| 05:42:12.700 | 05:45:14.246 | 1 | aps_khc57b4sud42os7tvqx6h5 |
| 05:42:13.697 | 05:45:15.245 | 1 | aps_h5k35u4bomuooldbm2gykt |
| 05:42:14.358 | 05:45:15.578 | 1 | aps_itijdynacvv72qb6g7heyc |
| 05:45:15.062 | 05:48:16.144 | 2 | aps_ei5p6ki5xdoyvmjimmt3el |
| 05:45:15.854 | 05:48:16.887 | 2 | aps_ggo6fpgn5dfzty4vyqz3s3 |
| 05:45:16.195 | 05:48:17.403 | 2 | aps_pmdkvxnfm42o2sp7u45x35 |
| 05:45:16.707 | 05:48:17.918 | 2 | aps_ha4k7tg24dptcmaqwjwktg |
| 05:45:16.927 | 05:48:18.171 | 2 | aps_w53vqkaafyih3lo2ypk55e |
| 05:48:17.785 | 05:51:18.772 | 3 | aps_tdt3sdaer4lopmmnt4hc2t |
| 05:48:18.313 | 05:51:19.324 | 3 | aps_34jm5uoqy6f4igu5y5bmib |
| 05:48:18.912 | 05:51:19.912 | 3 | aps_ong6zkkb67ou7hftdsoool |
| 05:48:19.462 | 05:51:21.011 | 3 | aps_m6e367gt4fnniwc35elovs |
| 05:48:19.605 | 05:51:21.098 | 3 | aps_jmx3xmat2wt6kmnqbvclxc |
Successful Comparison Samples
| Session ID | Start time UTC | Frames | Event counts |
|---|---|---|---|
aps_v3knlrrjrp2t7chp2yqnc4 |
03:48:09.303 | 123 | {"other": 3, "run_meta": 1, "sse": 119} |
aps_za5oeikubffevqn5scbvu |
03:48:10.560 | 76 | {"started": 1, "other": 3, "sse": 72} |
aps_4r6gyyog2pfgx3wujwjizq |
03:52:32.318 | 75 | {"started": 1, "run_meta": 1, "other": 2, "sse": 71} |