Your deep agent starts an async subagent. The subagent stops and asks the user a question. The parent notices and tells its model. The user answers, the subagent moves on and asks a second question. This time the parent says nothing. Its record still points at the old run, and no notification reaches the model. This guide shows why, reproduces it, and gives a workaround that passed 30 of 30 runs without patching deepagents.
Everything below ran on deepagents 0.7.42 and 0.7.37, langgraph 1.2.24, langchain 1.5.2, langchain-core 1.8.5, langgraph-sdk 0.4.14, langgraph-checkpoint 4.3.2, Python 3.13.5, Linux, Nov 28, 2026. The child ran on a real local Agent Server (langgraph dev, langgraph-cli 0.4.44, langgraph-api 0.21.0.dev2). The parent was a real create_deep_agent graph. Only the chat model was a stub: no LLM and no API key. Each row below is 30 runs, in one pass.
We ran 0.7.42 because it is the latest release, and 0.7.37 because the issue was reported on it. The reporter was on Windows.
Who this hits
You are affected if all of these are true:
- You use async subagents: a subagent spec with
graph_id(andurl), running on an Agent Server. - The child asks the user more than once, for example two
interrupt()calls in a row. - The user answers on the child's own thread, not through the parent.
- The child's next step is fast enough to pause again before the parent's next poll.
The last point is about timing. If the parent happens to poll while the resumed run is still busy, the second question gets through. This is an inference: the harness forces this ordering, and we didn't measure how often it happens naturally; fast child steps make it plausible.
The issue
This is langchain-ai/deepagents#7702, "An async subagent can pause twice but the parent only sees the first question". It was opened Nov 13, 2026 (UTC) and was still open on Nov 28, 2026. Its labels are type:bug, topic:subagents, package:deepagents, org:external, topic:async-subagents and priority:triage. The reporter says it was found "Through source-code inspection or automated scanning, rather than use in a project".
There is one comment, someone asking to work on it. No maintainer has replied. No fix PR is linked. The reporter has a candidate patch with regression tests in their fork. It is a commit, not a pull request.
The latest release, 0.7.42 (Nov 26, 2026 UTC), has the same polling code. Between 0.7.37 and 0.7.42, async_subagents.py only gained streaming options. When we checked main on Nov 28, 2026, _needs_latest_run was byte-identical to 0.7.42.
Why it happens
Three facts combine.
First, a run that stops on interrupt() ends with run status success. Only the thread status, interrupted, shows the pause. Deepagents maps that to the task status waiting.
Second, the parent tracks one run id per task. It only switches to the newest run on the child thread when this check is true (deepagents main, Nov 28, 2026):
def _needs_latest_run(run: Run, thread: Thread | None) -> bool:
"""Whether a newer run exists than the tracked one, e.g. after a resume from another client."""
return run["status"] == "success" and thread is not None and thread.get("status") in {"busy", "error"}
After the user answers, run B starts and pauses on the second question. Run A is still success, and the thread is interrupted again. interrupted is not in {"busy", "error"}, so the parent stays on run A.
Third, _apull decides what to record and what to tell the model:
if status == task["status"] and run["run_id"] == task["run_id"]:
continue
records[task["task_id"]] = _observed(task, status, run["run_id"])
if status != task["status"] and (event := _check_event(task, run, thread, status)):
messages.append(_notification_message(event))
The status is waiting, the same as recorded, and the run id is run A, the same as recorded. So it hits continue: no record update, no notification.
That is why a fix needs two halves:
- Follow the newest run when the thread is interrupted again, so the record moves to run B.
- Notify on waiting to waiting with a new run. Even on run B, the second condition only notifies when the status changes. Waiting to waiting is not a change, so the model would still hear nothing.
Reproduce it
The child is a small graph served by langgraph dev. It asks two questions. Trimmed from server/worker.py:
from langgraph.graph import StateGraph, START, END
from langgraph.types import interrupt
def ask_first(state):
return {"a1": interrupt("Q1: Which report should I check?")}
def ask_second(state, config):
return {"a2": interrupt("Q2: Should I email the findings?")}
g = StateGraph(S)
g.add_node("ask_first", ask_first)
g.add_node("ask_second", ask_second)
g.add_node("finish", finish)
g.add_edge(START, "ask_first")
g.add_edge("ask_first", "ask_second")
g.add_edge("ask_second", "finish")
g.add_edge("finish", END)
graph = g.compile()
The parent is a real deep agent with an async subagent that points at it. StubModel calls start_async_task on its first call and answers "ok" after that:
agent = create_deep_agent(
model=StubModel(),
checkpointer=InMemorySaver(),
subagents=[{"name": "worker", "description": "Check a report", "graph_id": "worker", "url": URL}],
)
Each run does this:
- Parent turn 1 starts the task. Run A pauses on Q1.
- Parent poll 1 (a new
ainvoketurn). The parent gets the Q1 notification. - The user answers Q1 on the child's thread:
client.runs.create(task["thread_id"], "worker", command={"resume": "report-7"}). That is run B, and it pauses on Q2. - Parent poll 2. This is where the Q2 notification should arrive.
- Parent poll 3, to check that the notice is not repeated.
The issue's own script stubs the Agent Protocol client instead of using a server. We ran it as is. Its output:
== v42 as is (deepagents 0.7.42):
Notifications: 0
== v37 as is (deepagents 0.7.37):
Notifications: 0
The script then fails its own assert, as the issue reports.
Results
In every row, the child was paused on Q2 in 30 of 30 runs, and the parent got the Q1 notification in 30 of 30.
| deepagents | Mode | Parent got Q2 notice exactly once | Q2 notice carries run B id | Parent record points at run B | No repeat on next poll |
|---|---|---|---|---|---|
| 0.7.42 | Bug (as is) | 0/30 | 0/30 | 0/30 | n/a (no notice) |
| 0.7.42 | Control: poll while run B busy | 30/30 | 30/30 | 30/30 | 30/30 |
| 0.7.42 | Candidate patch | 30/30 | 30/30 | 30/30 | 30/30 |
| 0.7.42 | Half patch (follow newest run only) | 0/30 | 0/30 | 30/30 | n/a |
| 0.7.42 | App workaround (aupdate_state) | 30/30 | 30/30 | 30/30 | 30/30 |
| 0.7.37 | Bug (as is) | 0/30 | 0/30 | 0/30 | n/a |
| 0.7.37 | Control | 30/30 | 30/30 | 30/30 | 30/30 |
| 0.7.37 | Candidate patch | 30/30 | 30/30 | 30/30 | 30/30 |
| 0.7.37 | Half patch | 0/30 | 0/30 | 30/30 | n/a |
| 0.7.37 | App workaround | 30/30 | 30/30 | 30/30 | 30/30 |
The half patch is a trap. It moves the record to run B in 30 of 30 runs, so the state looks right. But the model never hears the second question: 0 of 30. Waiting to waiting is not a status change, so no notification is sent. Nothing errors.
About the control row. It is not a fix. We forced the timing: in the control mode only, the child's second node slept 2 seconds before asking Q2, and the parent polled 0.4 seconds after the answer, while run B was still busy. With the thread busy, the parent picks up run B, and the Q2 notice arrived normally in 30 of 30. In a real app you don't control when the parent polls relative to the child, so don't count on this.
The fix: write the new run id yourself (no library change)
Your app already sends the user's answer to the child thread. Right after that, update the parent's task record with the new run id and status running:
child_thread = task["thread_id"]
run = await client.runs.create(child_thread, "worker", command={"resume": answer})
task = (await agent.aget_state(cfg)).values["async_tasks"][task_id]
await agent.aupdate_state(cfg, {"async_tasks": {task_id: {**task, "run_id": run["run_id"], "status": "running"}}})
cfg is the parent's config (its thread_id), and task_id is the key of the task in the parent's async_tasks.
Why it works: the parent now tracks run B. On the next poll, run B is success and the thread is interrupted, so the task status is waiting. The record says running. That is a status change, so _apull records it and sends one notification with Q2 and run B's id. On the poll after that, status and run id both match the record, so nothing repeats.
It passed 30 of 30 on deepagents 0.7.42 and 30 of 30 on 0.7.37: the Q2 notice arrived exactly once, carried run B's id, the record pointed at run B, and the next poll did not repeat it.
Our earlier Deep Agents guide tried a similar reset with the issue's stub client: mark waiting tasks as running before the poll. The question came through, but the run id stayed on the old run "first". The difference here is that you write the new run id too, not only the status.
What we did not test for this workaround:
- A parent deployed on an Agent Server. We ran the parent in process. There, the equivalent would be
client.threads.update_stateon the parent's thread. We did not test it. - A parent run in progress while you write the update.
- A Postgres checkpointer. The parent used
InMemorySaver. - JavaScript.
Stuck on an async subagent or resume flow? Send a minimal repro; you pay $79 only when our patch passes it.
Option: the candidate upstream patch
If you would rather patch the library, the reporter's fork commit fixes both halves. We re-expressed it as an in-process patch. The first half lets the parent follow the newest run when the thread is interrupted again:
def _needs_latest_run_fixed(run, thread, task):
status = thread.get("status")
return run["status"] == "success" and (status in {"busy", "error"} or (status == "interrupted" and task["status"] != "cancelled"))
The second half is one line in _apull: notify on any recorded change, not only on a status change.
- if status != task["status"] and (event := _check_event(task, run, thread, status)):
+ if event := _check_event(task, run, thread, status):
With both halves, it passed 30 of 30 on 0.7.42 and 0.7.37. The issue's script then printed:
== v42 patched:
Notifications: 1
== v37 patched:
Notifications: 1
Two cautions. It replaces private functions (_aobserve, _apull) with code from an unmerged fork commit, so any deepagents upgrade can break it silently. Pin deepagents, and keep a test like ours that checks the second question reaches the parent. And apply both halves: the first half alone is the trap in the table above.
What we didn't test
- A real LLM. The parent used a stub chat model with no API key.
- More than one pass. Each row ran 30 times, once.
- A parent deployed on an Agent Server, and the
threads.update_stateversion of the workaround. - A parent run in progress while the workaround writes its update.
- A Postgres checkpointer.
- A production Agent Server. We used
langgraph dev, which uses the in-memory runtime. - The sync path. Sync
before_modeldoes not pull at all. We tested the async path, which is what the Agent Server uses. check_async_task. We did not count it in this suite.- JavaScript.
FAQ
Why doesn't the Deep Agents parent see my async subagent's second question?
Because the child paused again before the parent's next poll. A run that stops on interrupt() ends with status success, and only the thread status shows the pause. The parent only switches to the newest run when the child thread is busy or error, so it keeps the old run id. It also only notifies when the task status changes, and waiting to waiting is no change. In our runs, 0 of 30 delivered the second question, on 0.7.42 and 0.7.37.
Is the async subagent second-question bug fixed in the latest deepagents release?
No. Issue #7702 was still open on Nov 28, 2026, with no fix PR. The latest release, 0.7.42 (Nov 26, 2026 UTC), and main checked on Nov 28, 2026 have the same polling code. The only candidate patch is a commit in the reporter's fork, not a pull request.
How do I work around it without patching deepagents?
Right after your app sends the user's answer to the child thread with runs.create, call aupdate_state on the parent and write the new run_id and status running into that task's async_tasks record. The next poll sees the task go from running to waiting and sends one notification with the second question. It passed 30 of 30 on deepagents 0.7.42 and 0.7.37, with no repeat on the next poll.
Does calling check_async_task show the second question?
According to issue #7702, an explicit check_async_task does return the new question, but the saved task record keeps the old run id. We did not count check_async_task in our 30-run suite, so we have no numbers of our own for it.
Is the reporter's patch enough, and why does half of it fail?
The full candidate patch passed 30 of 30 on both versions and made the issue's script print Notifications: 1. It has two parts: follow the newest run when the thread is interrupted again, and notify on any recorded change. With only the first part, the record moved to the new run in 30 of 30 runs, but the model got the second question in 0 of 30, because waiting to waiting is not a status change. It is an unmerged fork commit, so pin versions and keep a test if you use it.
When does the parent get the second question without any fix?
When it polls while the resumed run is still busy. Then the thread status is busy, and the parent picks up the new run. In our control row the child's second step slept 2 seconds and the parent polled after 0.4 seconds: 30 of 30 got the notice, on both versions. This is an inference: the harness forces this ordering, and we didn't measure how often it happens naturally; fast child steps make it plausible.
Related
- Deep Agents subagent approval: multiple pending interrupts
- LangGraph multiple interrupts: how to resume each one
- LangGraph subgraph interrupt re-runs nodes on resume
- LangGraph interrupt resumes twice? Why nodes re-run
There is no Deep Agents or async subagent template on the site yet. You can browse the templates index. Multiple interrupts in one node is a tested LangGraph starter, not a Deep Agents async subagent setup.
Stuck on an async subagent or resume flow? Send a minimal repro; you pay $79 only when our patch passes it.