I’m building a multi-turn conversation workflow driven by an Executa. The app page submits jobs and retrieves results. The Executa creates a session, sends messages, saves the model’s replies, and starts the next turn when the first one finishes. In anna-app dev, session creation succeeds and agent/session.run acknowledges the request. The reply to the Executa contains only stream_id and run_id, leaving the backend unable to read the model’s reply or determine when the turn has finished.
Test environment
- First reproduced on November 19, 2026, on macOS with Node.js
24.19.0. - CLI:
anna-app 0.1.64, with the default local runtimeanna-app-runtime-local 0.2.0a33. - The reproduction that captured raw messages used a bundled stdio Executa. Its
initializeresponse declaredprotocolVersion: "2.0"and thesamplingcapability.
Reproduce with the official example
The anna-app-llm-demo example from anna-executa-examples produces the same empty result using its bundled UI, Python Executa, and Python SDK. Official LLM Demo
- Sign in to
anna-app, open a terminal in the example directory, and runanna-app dev --no-watch. This test used a live model through a signed-in account on CLI version0.1.64. Local development documentation - In 2. Agent session (all methods), set Transport to Reverse RPC. Click create and confirm that the result contains an
app_session_uuid. - Enter a short prompt such as “Remember the code name Qingyou. Reply only with ‘Got it.’” Click run (streamed) and check the result panel and the RPC Log in the harness.
The following excerpt is from a single run in the demo. It retains the original Chinese prompt and reply, shows only the relevant fields, and uses a placeholder for the session ID.
03:44:08.080 → req tools.invoke {"method":"agent_session","args":{"op":"run","app_session_uuid":"aps_demo_session","prompt":"请记住代号青柚,只回复已记住"}}
03:44:08.109 ← res ok tools.invoke {"op":"run","app_session_uuid":"aps_demo_session","text":"","frames":[],"elapsed_ms":15}
03:44:09.436 ← event rpc.stream {"stream_id":"dev-1","seq":1,"payload":{"event":"started"},"done":false}
03:44:09.440 ← event rpc.stream {"stream_id":"dev-1","seq":2,"payload":{"event":"run_meta","app_session_uuid":"aps_demo_session"},"done":false}
03:44:12.039 ← event rpc.stream {"stream_id":"dev-1","seq":5,"payload":{"choices":[{"delta":{"content":"已记住"},"index":0}],"event":"sse"},"done":false}
03:44:12.241 ← event rpc.stream {"stream_id":"dev-1","seq":6,"payload":{"choices":[{"delta":{"task_complete":{"status":"completed"}},"index":0}],"event":"sse"},"done":false}
03:44:12.242 ← event rpc.stream {"stream_id":"dev-1","seq":9,"payload":{"event":"end"},"done":true}
The ok on tools.invoke means the demo’s Python tool successfully returned a result. It returned empty text and zero frames about 1.3 seconds before the page received its first rpc.stream event. Frame 2 carries the same app_session_uuid as the request. Frame 5 contains the model’s reply, “Got it,” before the page receives the completion and end events. This is the harness’s page-side RPC log. The raw stdio messages below come from a separate reproduction.
Capture the Executa reverse-RPC messages
-
Set up an Anna App with a bundled stdio Executa and set
ui.host_api.agent.session.autototruein the app manifest. After signing in, start the local host withanna-app dev --no-watchusing the same live model setup as above. -
Invoke an Executa tool from the app page. While the tool is running, send the following reverse JSON-RPC request from the Executa’s stdout and read the response from stdin. Each stdio message occupies one line on the wire. The messages below are formatted for readability and use illustrative IDs and prompts.
{ "jsonrpc": "2.0", "id": "session-create-1", "method": "agent/session.create", "params": { "kind": "agent", "agent_submode": "auto", "label": "Local session reproduction", "quota_caps": { "allowed_tools": [], "inherit_host_tools": false } } } -
Use the returned
app_session_uuidto start a text-only turn. Capture the raw response the Executa receives on stdin.{ "jsonrpc": "2.0", "id": "session-run-1", "method": "agent/session.run", "params": { "app_session_uuid": "aps_example_session", "run_id": "run_1234567890abcdef", "content": "Remember the code name Qingyou. Reply only with 'Got it.'", "allowed_tools": [], "recursion_limit": 2 } } -
To reproduce the history result as well, send a separate request for the same session.
{ "jsonrpc": "2.0", "id": "session-history-1", "method": "agent/session.history", "params": { "app_session_uuid": "aps_example_session", "limit": 20 } }
Raw responses received by the Executa
agent/session.create successfully returned a session ID.
{
"jsonrpc": "2.0",
"id": "session-create-1",
"result": {
"app_session_uuid": "aps_example_session",
"expires_in": 600,
"submode": "auto",
"fixed_client_id": null,
"granted_tools": []
}
}
Both agent/session.run calls on the same session returned only the two IDs. I captured the first response below before parsing it in the application code.
{
"jsonrpc": "2.0",
"id": "session-run-1",
"result": {
"stream_id": "dev-1",
"run_id": "run_1234567890abcdef"
}
}
The responses had no result.frames, and the Executa logs contained no model text or end events for either run. The acknowledgment confirms that the host accepted the request. From the backend, I could not tell whether the model had finished, what it had returned, or whether the second turn had used the first turn’s context.
After both run calls returned, I called agent/session.history and received this error.
{
"jsonrpc": "2.0",
"id": "session-history-1",
"error": {
"code": -32603,
"message": "agent.session.history is not exposed over HTTP; available only via in-process store",
"data": {
"errorCode": "not_supported",
"details": {
"errorCode": "not_supported"
}
}
}
}
These results come from the local harness. Cloud behavior for an installed app is still unverified.
Expected behavior
The Executa reverse-RPC documentation says the host buffers upstream events and returns them in order in result.frames, in the same JSON-RPC response to agent/session.run once the turn finishes. The official Python SDK’s AgentSession.run() waits for that response and then yields the frames to the caller’s async for loop. Returning result.frames as documented would let the Executa read the reply and the final run state. Under that contract, the Executa still has to wait until the turn finishes to receive the first frame. Executa Agent Sessions reference
The iframe Host API’s agent.session.run returns stream_id and run_id immediately and sends each subsequent event to the page via rpc.stream. The Executa response captured above has the same shape as that initial acknowledgment. Agent Host API reference
Local runtime observations
- In
0.2.0a33,_REVERSE_RPC_ROUTEinsession.pyroutes the Executa’sagent/session.runtoagent.session.run. Instore.py,agent_session_rundelegates to the Node-sideLlmBridgeand returns the acknowledgment directly to the Executa. The method’s comment says the Node side sends subsequent events to the iframe viarpc.stream, which matches the observed behavior. Local runtime package 0.2.0a33 - The iframe Host API also documents
agent.session.run.statusandagent.session.framesfor checking the status of a run and reading archived frames. The corresponding Executa methods are absent from theSERVER_REQUEST_METHODSreverse-RPC table in this version’sexecuta.py. Agent Host API reference
Questions for the Anna team
- Should an Executa calling
agent/session.runinanna-app devreceiveresult.framesin the same response? If the local harness is designed to return IDs first, which Executa API should I use to get the reply and final state for that same run? - The Executa reference lists reverse RPC
v2.1+, and the plugin in this test declared2.0. Does frame delivery require a specific protocol version or capability declaration? Which CLI and runtime versions and which configuration should I use? - If retrieving frames or calling
agent/session.historyis currently unsupported in the local harness, could the local development docs describe those limits and give a supported way to test multi-turn Executa sessions?
Feature request for real-time streaming in Executa
Could Executa receive frames in real time, as the iframe Host API does? I’d like the backend to receive text deltas, tool calls, and tool results in order during generation, followed by a clear end or error event. That would let the Executa save frames as they arrive, keep processing the same run after the page closes, and start the next step when the end event arrives. Could you provide a direct subscription API and a minimal SDK example showing how to correlate each frame with its run_id or stream_id?