-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
EmbeddedAttemptSessionTakeoverError can silently terminate a run without user-visible reply #89734
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
A tool-running embedded attempt can terminate with
errorand send no user-visible reply when it hits:This makes the assistant appear silent/dead to the user even though the inbound message was received and the run started.
Observed behavior
In a Telegram group session, a user message was received and the assistant began a tool call (
memory_search). During the tool-running attempt, the run ended with statuserrorand no final assistant reply was delivered.Relevant trace evidence:
Later, the dangling tool call was repaired as:
…but the original user-visible failure was silent.
Root cause / trigger
This appears to be a race condition around embedded prompt session locking:
EmbeddedAttemptSessionTakeoverError.errorwithout a user-visible reply.Expected behavior
A user request should not silently disappear. On this error, runtime should do one of:
Why this matters
The current behavior is confusing in chat surfaces: the user sees that they asked something, but the assistant never replies. It looks like the bot ignored them or died, while internally the run ended with an error.
Suggested fix
Handle
EmbeddedAttemptSessionTakeoverErrorspecially in the runtime: