You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(wake): a wake turn is cut off from the chat that delegated — the person never sees its reply and the agent loses the plan #4537
A wake turn is cut off from the conversation that caused it. The person sees nothing, and the agent does not know why it was woken beyond the wake frame.
The reply never reaches the person. When a person asks an agent in chat to "ask X and tell me what it said once it's done", the agent delegates asynchronously and replies "I'll be woken when it ends and can then report what it said". The wake turn runs and answers correctly, but its reply exists only on the execution row (Tasks tab). Nothing posts it to the chat the person asked in. The same holds for a wake on an answered ask, unless the person opened the ask's Discuss chat.
The agent has lost the plan. The wake turn is a fresh session that carries only the wake frame. A plan made in the delegating chat turn ("when the answer arrives I'll append it to numbers.txt and ask for the next one") is not available to it. In testing, the wake turn reported the number and stopped. It never ran the next step.
Found in v1.0.5 release testing, row A5 (delegation autonomy), build v1.0.5-rc2 (af465288a).
Evidence
Agent chat history: 12 messages, all person turns and their inline replies. 5 wake turns (3 caller_wake, 1 operator_response, 1 operator_ending) wrote zero rows to chat_messages, and none to Workspace messages.
Code: no add_chat_message writer exists on the wake path. caller_wake_service dispatches through dispatch_and_await_terminal with no destination. operator_resume_service._workspace_destination attaches one only for an ask's Workspace Discuss chat.
Plan loss: the delegating chat turn said it would continue on wake. The caller_wake turn's response was "its only output was "47" … I can't tell you what it refers to".
Compounded by ent#1216: inside the wake turn, get_execution_result returns 404 and list_recent_executions is empty, so the agent cannot read more than the frame's summary.
Expected
The wake is the last step of a delegation the person started. The person should see the agent's next message where they asked, and the woken agent should have the delegating turn's context (or at least the person's request) to continue from.
Fix-vs-note: release note for v1.0.5 ("a delegated result appears in the agent's Tasks, not in chat; standing instructions, not a chat promise, drive autonomous loops"). Fix after the release.
One more caller for this: a scheduled run that needs a delegated answer
The issue describes a person's chat turn. On a client instance (v1.0.5) most delegating turns are scheduled report runs. For them the wake cannot be the continuation, with or without the chat link.
The case. One scheduled run pulls data, asks a knowledge agent a question, writes a report and delivers it. The schedule pins the model and sets the time limit. Retries and the delivery check are built on "one run = one report".
If that run ended at the receipt, as the delegation contract says:
The run would be recorded success before the report exists. The schedule's retry and validation would judge an unfinished run.
The wake has no session and no skill state of the scheduled run. It starts from the wake message.
A wake that fails has no retry. We saw one fail at capacity ("Agent at capacity (3/3 parallel tasks running)").
So these runs keep waiting for the answer inside the turn, and each of them now also gets a wake turn for work that is already done (#4538).
PR #4606. By its description it gives the wake message the request and the reply of the delegating turn, and it posts the wake's reply into the agent chat thread when a person's chat turn delegated. That helps point 3 for a scheduled run whose callee row has the link. Points 1, 2 and 4 stay. A callee row with no link, for example a REST call without the turn header, keeps the old message.
Questions
For a scheduled run that needs a delegated answer, what is the recommended pattern on v1.0.5: a sync call that holds the turn open (bounded by the callee's execution_timeout_seconds), or an async call with a poll in the turn?
Product ruling (2026-11-23) on question 1 in my comment above. For a scheduled run that needs a delegated answer, the supported pattern for now is to wait in the turn, with the per-call wake opt-out from #4538. This is an interim answer only. PR #4606 lands as planned.
Activity
dolho commentedon Nov 16, 2026
/claim
github-actions commentedon Nov 16, 2026
Claimed by @dolho. Label
status-in-progressadded.Next steps:
feature/4537-<short-slug>Fixes #4537fix(wake): scrub staged secrets when posting a wake reply to chat (#4537
webmixgamer commentedon Nov 23, 2026
One more caller for this: a scheduled run that needs a delegated answer
The issue describes a person's chat turn. On a client instance (v1.0.5) most delegating turns are scheduled report runs. For them the wake cannot be the continuation, with or without the chat link.
The case. One scheduled run pulls data, asks a knowledge agent a question, writes a report and delivers it. The schedule pins the model and sets the time limit. Retries and the delivery check are built on "one run = one report".
If that run ended at the receipt, as the delegation contract says:
successbefore the report exists. The schedule's retry and validation would judge an unfinished run.tests/unit/test_4442_wake_model.py::test_wake_producers_pass_no_model.So these runs keep waiting for the answer inside the turn, and each of them now also gets a wake turn for work that is already done (#4538).
PR #4606. By its description it gives the wake message the request and the reply of the delegating turn, and it posts the wake's reply into the agent chat thread when a person's chat turn delegated. That helps point 3 for a scheduled run whose callee row has the link. Points 1, 2 and 4 stay. A callee row with no link, for example a REST call without the turn header, keeps the old message.
Questions
execution_timeout_seconds), or an async call with a poll in the turn?webmixgamer commentedon Nov 23, 2026
Product ruling (2026-11-23) on question 1 in my comment above. For a scheduled run that needs a delegated answer, the supported pattern for now is to wait in the turn, with the per-call wake opt-out from #4538. This is an interim answer only. PR #4606 lands as planned.
fix(chat): a wake reply reaches the open Chat tab mid-turn and after …
fix(wake): the wake's new database calls run off the event loop (#4537)
fix(wake): a wake turn knows the conversation that delegated and repl…