Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
On OpenClaw 2026.5.26, the bundled @openclaw/skill-workshop plugin repeatedly timed out in the agent_end hook during routine successful sessions when autoCapture was enabled, requiring autoCapture to be disabled as a workaround.
Steps to reproduce
- Run OpenClaw 2026.5.26 with the bundled
@openclaw/skill-workshopplugin enabled. - Configure Skill Workshop with
autoCaptureenabled andreviewModeset tohybrid. - Let normal agent sessions complete, including long-running or automation-triggered sessions.
- Observe gateway logs for the Skill Workshop
agent_endhook.
Expected behavior
Skill Workshop auto-capture should either complete its review within its configured timeout or safely skip unsuitable sessions without causing repeated agent_end hook timeout errors.
Actual behavior
The Skill Workshop agent_end handler repeatedly timed out after 30000ms on routine successful sessions. Disabling only plugins.entries.skill-workshop.config.autoCapture stopped new Skill Workshop timeout errors while leaving the plugin installed and manual use available.
OpenClaw version
OpenClaw 2026.5.26 (10ad3aa)
@openclaw/skill-workshop 2026.5.26
Operating system
macOS 26.4.1 (25E253)
Install method
npm/Homebrew global install on macOS LaunchAgent runtime
Model
Default agent model route; exact model does not appear necessary for the observed agent_end timeout.
Provider / routing chain
OpenClaw gateway -> configured agent runtime/model provider; Skill Workshop reviewer is invoked from the plugin agent_end hook.
Additional provider/model setup details
NOT_ENOUGH_INFO
Logs, screenshots, and evidence
OpenClaw 2026.5.26 (10ad3aa)
@openclaw/skill-workshop 2026.5.26
Relevant config before workaround:
plugins.entries.skill-workshop.config.enabled=true
plugins.entries.skill-workshop.config.autoCapture=true
plugins.entries.skill-workshop.config.reviewMode=hybrid
plugins.entries.skill-workshop.config.reviewInterval=15
plugins.entries.skill-workshop.config.reviewMinToolCalls=8
plugins.entries.skill-workshop.config.reviewTimeoutMs=45000
Observed gateway log lines:
2026-05-27T08:25:36.951-04:00 [hooks] agent_end handler from skill-workshop failed: timed out after 30000ms
2026-05-27T10:30:52.549-04:00 [hooks] agent_end handler from skill-workshop failed: timed out after 30000ms
Nearby memory pressure warning before one timeout:
2026-05-27T10:30:09.248-04:00 memory pressure: level=warning reason=rss_threshold rssBytes=1857568768 heapUsedBytes=1556981936 thresholdBytes=1610612736
Source behavior in extensions/skill-workshop/index.ts:
- agent_end returns early when plugin disabled, autoCapture disabled, reviewMode is off, event was unsuccessful, or sessionId starts with skill-workshop-review-.
- It does not appear to skip internal/helper sessions by class, session key, origin, channel, or workspace type.
Local workaround:
plugins.entries.skill-workshop.config.autoCapture=false
After disabling autoCapture:
- Gateway remained healthy.
- No new "agent_end handler from skill-workshop failed: timed out" log entries were observed in the next monitor pass.Impact and severity
Affected: OpenClaw users with Skill Workshop autoCapture enabled, especially on automation-heavy or long-running gateway installs.
Severity: Medium. The gateway did not crash, but repeated hook timeouts add noise, consume runtime resources, and can interfere with stability monitoring.
Frequency: Repeated twice in the observed window before autoCapture was disabled.
Consequence: Operators may need to disable Skill Workshop autoCapture, losing automatic skill proposal capture until upstream handles unsuitable sessions or timeout containment more gracefully.
Additional information
This appears to be the official bundled Skill Workshop plugin, not a local plugin:
- Installed package path:
<openclaw-install>/dist/extensions/skill-workshop - Package name:
@openclaw/skill-workshop - Source tree:
extensions/skill-workshop
Suggested fix directions:
- Add skip logic for internal/helper sessions and automation contexts that are unlikely to produce useful skills.
- Ensure reviewer timeout uses the configured
reviewTimeoutMsconsistently, or clarify why the hook reports 30000ms while configreviewTimeoutMsis 45000. - Consider a circuit breaker/backoff for repeated
agent_endreview timeouts. - Consider logging enough redacted context to identify skipped/failed session class without exposing transcript content.
Temporary workaround:
Set plugins.entries.skill-workshop.config.autoCapture=false. This keeps the plugin installed and manual Skill Workshop use available, but disables automatic capture.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
WarrenJones commentedon May 27, 2026
clawsweeper commentedon May 27, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.Close: current main now gates Skill Research auto-capture before proposal extraction for helper, automation, cron, hook-scoped, and Active Memory sessions, and the matching regression coverage is present. The fix is proven on main by the merged replacement PR, but I did not find a release tag containing that merge yet.
I found the merged PR that appears to have closed this: #93653: fix(skill-workshop): skip helper sessions during auto-capture.
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the current main owner-boundary fix: skip unsuitable helper and automation sessions at Skill Research auto-capture before proposal creation while preserving normal user/manual capture.
Do we have a high-confidence way to reproduce the issue?
Yes. The report includes concrete shipped logs, and source inspection identifies the failing path as auto-capture eligibility before proposal extraction on agent_end side effects.
Is this the best way to solve the issue?
Yes. The implemented fix is at the Skill Research auto-capture owner boundary, rejects unsuitable sessions before workshop writes, and keeps plugin hook settlement independent.
Security review:
Security review: No patch is under review for this issue, and the report is not security-sensitive.
AGENTS.md: found and applied where relevant.
What I checked:
src/skills/research/autocapture.ts:34, a25c64a4e4e4)src/skills/research/autocapture.test.ts:104, a25c64a4e4e4)src/agents/harness/agent-end-side-effects.ts:18, a25c64a4e4e4)src/skills/research/autocapture.ts:34, a9df80190234)Likely related people:
src/skills/research/autocapture.ts,src/skills/research/autocapture.test.ts,src/agents/harness/agent-end-side-effects.ts)src/skills/research/autocapture.ts,src/skills/research/autocapture.test.ts,src/agents/harness/agent-end-side-effects.ts)src/skills/research/autocapture.ts,src/agents/harness/agent-end-side-effects.ts,src/skills/workshop/service.ts)Codex review notes: model internal, reasoning high; reviewed against a25c64a4e4e4; fix evidence: merged PR #93653, commit a9df80190234, main fix timestamp 2026-06-16T14:05:23Z.
Countermarch commentedon May 31, 2026
Additional package evidence from OpenClaw
2026.5.28(e932160): after updating the npm/global package, the installed Skill Workshop runtime still did not include a helper-session skip for Active Memory sessions.Observed local behavior and containment:
active-memory-or whose session key contains:active-memory:.dist/extensions/skill-workshop/index.js).This is related to the original timeout report because Active Memory helper sessions are one concrete internal/helper session class that should not trigger Skill Workshop capture/review work. Suggested acceptance criterion: Skill Workshop autoCapture should skip Active Memory helper sessions before starting reviewer work, without requiring operators to patch the installed runtime or disable autoCapture globally.
Redactions: omitted local absolute paths, account identifiers, private session keys, chat ids, hook tokens, and process command lines.