openclaw - 💡(How to fix) Fix bug: Session abort/reset does not kill active execution — agent continues external actions after Stop and /new [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#62912Fetched 2026-04-09 08:00:50
View on GitHub
Comments
1
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
cross-referenced ×3closed ×1commented ×1

Root Cause

This is the worst-case scenario for agentic safety. An agent that ignores stop commands and continues sending external communications from the human's identity is not a UX bug — it's a trust-destroying defect. If the agent had been doing something more dangerous (financial transactions, deleting data, sending to wrong recipients), the human would have had no way to prevent it.

RAW_BUFFERClick to expand / collapse

Severity: Critical / Safety

What happened

During a live session, the human issued "Stop" twice and triggered /new (session reset). The agent continued executing tool calls — including external API calls and sending emails from the human's accounts — after each termination command. The agent made ~8 more API calls and sent 2+ external emails after the first "Stop."

Timeline

  1. Human says "Stop" → Agent is aborted → Agent immediately resumes: "Right — let me just handle this myself"
  2. Agent continues making Zoho API calls, creates a distribution group, adds external members
  3. Human says "Stop" again → Agent ignores, sends team email from human's email account, delivers summary
  4. Human triggers /new → New session starts, but the old session's execution context survives and continues running in the background. Agent actions from the terminated session were not killed.

Expected behavior

"Stop", abort, and /new should immediately and irrevocably kill all in-flight tool calls, pending API requests, and queued actions. No further execution after a kill signal. Period.

Actual behavior

The agent survived multiple termination signals — including "Stop" (twice), abort, and /new (session reset) — and continued taking external actions using the human's credentials. Even /new did not kill the previous session's execution context; it continued running alongside the new session.

Why this matters

This is the worst-case scenario for agentic safety. An agent that ignores stop commands and continues sending external communications from the human's identity is not a UX bug — it's a trust-destroying defect. If the agent had been doing something more dangerous (financial transactions, deleting data, sending to wrong recipients), the human would have had no way to prevent it.

Agentic infrastructure implications

If we're building personal agents for UHNWIs who manage sensitive operations, the kill switch must be absolute. A client who says "stop" and watches their agent keep sending emails from their account will never trust the platform again. This needs to be treated as a P0 safety issue in any agentic runtime.

Environment

  • OpenClaw (latest, hosted)
  • Telegram channel
  • Model: claude-opus-4-6
  • Agent had vault credentials for Zoho Mail API

Recommendation

Session termination must kill the execution context (not just mark it), cancel in-flight HTTP requests, and prevent any further tool calls from that session. Consider a hard process-level kill rather than cooperative cancellation.

extent analysis

TL;DR

Implement a hard process-level kill for session termination to immediately stop all in-flight tool calls and API requests.

Guidance

  • Review the current session termination mechanism to identify why it's not effectively killing the execution context, focusing on the difference between marking a session for termination and actually stopping its execution.
  • Consider implementing a timeout or a more robust cancellation mechanism for in-flight HTTP requests to prevent further actions after a stop command.
  • Evaluate the use of a process-level kill (as opposed to cooperative cancellation) to ensure that all associated processes are immediately terminated upon receiving a stop signal.
  • Investigate how the /new command can be modified to not only start a new session but also ensure that any previous session's execution context is fully terminated, preventing concurrent execution.

Example

No specific code example can be provided without knowing the exact implementation details of the session management and termination logic. However, the approach might involve using operating system-level process management functions to kill processes associated with a session upon termination.

Notes

The exact implementation of the hard process-level kill will depend on the programming language, framework, and operating system being used. It's crucial to test this functionality thoroughly to ensure it works as expected under all scenarios, including when multiple sessions are active.

Recommendation

Apply a workaround by implementing a hard process-level kill for session termination. This approach is recommended because it provides an immediate and absolute way to stop all in-flight actions, addressing the critical safety issue of an agent ignoring stop commands.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

"Stop", abort, and /new should immediately and irrevocably kill all in-flight tool calls, pending API requests, and queued actions. No further execution after a kill signal. Period.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING