Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(tests): add subagent session compatibility fixtures

Steven Enamakel243c1d4ea22a
diff --git a/tests/fixtures/session_compat/subagent_checkpoint.json b/tests/fixtures/session_compat/subagent_checkpoint.json
new file mode 100644
index 0000000000..b3360fb04b
--- /dev/null
+++ b/tests/fixtures/session_compat/subagent_checkpoint.json
@@ -0,0 +1,26 @@
+{
+ "task_key": null,
+ "task_id": "task-compat-1",
+ "agent_id": "researcher",
+ "worker_thread_id": "worker-compat",
+ "history": [
+ {"role": "system", "content": "You are the researcher."},
+ {"role": "user", "content": "find the answer [IMAGE:data:image/png;base64,iVBORw0KGgo=]"},
+ {"role": "assistant", "content": "{\"content\":\"looking\",\"tool_calls\":[{\"id\":\"call_q\",\"name\":\"ask_user_clarification\",\"arguments\":\"{\\\"question\\\":\\\"which year?\\\"}\"}]}"},
+ {"role": "tool", "content": "{\"tool_call_id\":\"call_q\",\"content\":\"awaiting user\"}"},
+ {"role": "assistant", "content": "plain prose turn"}
+ ],
+ "question": "which year?",
+ "options": ["2024", "2025"],
+ "toolkit_override": "legacy-key-ignored-on-load",
+ "skill_filter_override": null,
+ "model_override": "hint:fast",
+ "created_at": "2026-09-01T00:00:00Z",
+ "resume_checkpoint": null,
+ "resume_metadata": {"k": "v"},
+ "output": "",
+ "iterations": 2,
+ "usage": {"input_tokens": 10, "output_tokens": 5, "cached_input_tokens": 1, "charged_amount_usd": 0.5},
+ "artifact_paths": [],
+ "elapsed_ms": 1200
+}
diff --git a/tests/fixtures/session_compat/subagent_sessions.json b/tests/fixtures/session_compat/subagent_sessions.json
new file mode 100644
index 0000000000..df58a96598
--- /dev/null
+++ b/tests/fixtures/session_compat/subagent_sessions.json
@@ -0,0 +1,44 @@
+[
+ {
+ "subagentSessionId": "subsess-compat-1",
+ "parentSession": "parent-compat",
+ "parentThreadId": "thread-compat",
+ "workerThreadId": "worker-compat",
+ "agentId": "researcher",
+ "displayName": "Researcher",
+ "model": null,
+ "sandboxMode": "none",
+ "actionRoot": null,
+ "taskKey": "key-1",
+ "taskTitle": "Find it",
+ "currentTaskId": "task-compat-1",
+ "status": "idle",
+ "reusable": true,
+ "latestHistory": [
+ {
+ "role": "system",
+ "content": "You are the researcher."
+ },
+ {
+ "role": "user",
+ "content": "find the answer"
+ },
+ {
+ "role": "assistant",
+ "content": "{\"content\":\"\",\"tool_calls\":[{\"id\":\"call_s\",\"name\":\"search\",\"arguments\":\"{}\"}]}"
+ },
+ {
+ "role": "tool",
+ "content": "{\"tool_call_id\":\"call_s\",\"content\":\"found\"}"
+ },
+ {
+ "role": "assistant",
+ "content": "answer"
+ }
+ ],
+ "latestError": null,
+ "createdAt": "2026-09-01T00:00:00Z",
+ "updatedAt": "2026-09-01T00:05:00Z",
+ "lastUsedAt": "2026-09-01T00:05:00Z"
+ }
+]