openclaw - 💡(How to fix) Fix IACP thread close-detection: conservative iacp.thread.closed event for cross-agent thread audit [1 comments, 2 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#84245Fetched 2026-05-20 03:42:13
View on GitHub
Comments
1
Participants
2
Timeline
8
Reactions
1
Timeline (top)
labeled ×2mentioned ×2subscribed ×2closed ×1

OpenClaw wake-socket based cross-agent workflows need a conservative operator-visible event for thread closure, primarily for audit and handoff clarity.

Request: add an iacp.thread.closed event emitted only by conservative close detection. False negatives are acceptable; false positives are disruptive.

Root Cause

OpenClaw wake-socket based cross-agent workflows need a conservative operator-visible event for thread closure, primarily for audit and handoff clarity.

Request: add an iacp.thread.closed event emitted only by conservative close detection. False negatives are acceptable; false positives are disruptive.

Fix Action

Fix / Workaround

The local Smith Crafts patch tracks thread_id -> wake_ids in process memory and emits only on explicit markers. Neutral conversational messages were tested not to emit this event.

Code Example

{
  "schema": "openclaw.iacp.thread.closed.v1",
  "thread_id": "string",
  "last_wake_id": "string|null",
  "closed_at": "ISO-8601 timestamp",
  "reason": "explicit_marker|idle_timeout",
  "participants": ["string"]
}
RAW_BUFFERClick to expand / collapse

Summary

OpenClaw wake-socket based cross-agent workflows need a conservative operator-visible event for thread closure, primarily for audit and handoff clarity.

Request: add an iacp.thread.closed event emitted only by conservative close detection. False negatives are acceptable; false positives are disruptive.

Proposed event

Event name: iacp.thread.closed

Payload:

{
  "schema": "openclaw.iacp.thread.closed.v1",
  "thread_id": "string",
  "last_wake_id": "string|null",
  "closed_at": "ISO-8601 timestamp",
  "reason": "explicit_marker|idle_timeout",
  "participants": ["string"]
}

Conservative detection

Initial implementation should only emit on explicit close markers in the most recent wake/thread message, such as:

  • [THREAD-CLOSED]
  • closing thread
  • no further blockers
  • thread closed

An idle-timeout heuristic may be useful later, but should remain disabled by default and operator-enabled only.

Rationale

Cross-agent wake workflows currently show delivery and injection state, but not a reliable closure marker. A conservative close event gives operator UIs and audit trails a clean lifecycle boundary without guessing from normal conversational text.

The local Smith Crafts patch tracks thread_id -> wake_ids in process memory and emits only on explicit markers. Neutral conversational messages were tested not to emit this event.

Related issues

  • Prior wake socket / active-session delivery: #83809
  • Wake event bridge and TUI rendering: #84113
  • Wake inbox drain durability: #84237

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING