Skip to content

[Bug]: Skill Workshop agent-tool apply times out because approval wait exceeds tool watchdog #91266

Closed

Description

@EmpireCreator

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

skill_workshop(action="apply") times out after 90 seconds under the default Skill Workshop lifecycle approval policy, while the equivalent openclaw skills workshop apply CLI command succeeds quickly on the same clean proposal.

Steps to reproduce

  1. Use OpenClaw 2026.6.1 with default Skill Workshop lifecycle approval behavior, or with skills.workshop.approvalPolicy unset / pending.
  2. Create a small clean Skill Workshop proposal for a disposable workspace skill.
  3. From an agent session, call the dynamic tool with skill_workshop(action="apply", proposal_id="<proposal-id>").
  4. Observe the dynamic tool call time out after 90 seconds.
  5. Check that the proposal remains pending and the target workspace SKILL.md was not created.
  6. Run openclaw skills workshop apply <proposal-id> --json against an equivalent clean proposal.
  7. Observe that the CLI apply succeeds quickly.

Expected behavior

The agent-tool apply path should either complete successfully after the user approves the lifecycle action, or return a clear approval-related error before the dynamic tool watchdog expires. It should not appear as a generic hung/timed-out skill_workshop execution.

Actual behavior

The agent-tool call returned:

OpenClaw dynamic tool call timed out after 90000ms while running tool skill_workshop.

After the timeout, the proposal was still pending and the target workspace skill file had not been created. The equivalent CLI apply path succeeded quickly on clean proposals.

OpenClaw version

OpenClaw 2026.6.1 (2e08f0f)

Operating system

macOS 26.5 (25F71)

Install method

npm global under a Homebrew Node prefix

Model

openai/gpt-5.5

Provider / routing chain

OpenClaw -> local Gateway dynamic tool runtime -> skill_workshop -> Skill Workshop approval gate

Additional provider/model setup details

This does not appear to be model/provider-specific. The failure occurs in the OpenClaw dynamic tool / Skill Workshop lifecycle approval path before the proposal reaches the normal apply implementation.

Logs, screenshots, and evidence

Observed dynamic tool timeout:


OpenClaw dynamic tool call timed out after 90000ms while running tool skill_workshop.


Local code inspection found the Skill Workshop default config uses pending lifecycle approval:


const DEFAULT_CONFIG = {
  autonomous: { enabled: false },
  approvalPolicy: "pending",
  maxPending: 50,
  maxSkillBytes: 4e4
};


The agent-tool pre-call hook requires approval for Skill Workshop lifecycle actions unless `skills.workshop.approvalPolicy` is set to `auto`:


const SKILL_WORKSHOP_LIFECYCLE_ACTIONS = new Set([
  "apply",
  "reject",
  "quarantine"
]);

function resolveSkillWorkshopToolApproval(params) {
  if (params.toolName !== "skill_workshop") return;
  const action = readLifecycleAction(params.toolParams);
  if (!action) return;
  if (resolveSkillWorkshopConfig(params.config).approvalPolicy === "auto") return;
  return { requireApproval: {
    ...lifecycleApprovalText(action),
    allowedDecisions: ["allow-once", "deny"]
  } };
}


A local workaround was verified by setting:


{
  "skills": {
    "workshop": {
      "approvalPolicy": "auto"
    }
  }
}


After restarting Gateway with that config, agent-tool apply succeeded on a disposable clean proposal. CLI apply continued to succeed. Skill Workshop list/inspect/create/revise paths also continued to work.

Impact and severity

Affected users/systems/channels: OpenClaw agent sessions using the skill_workshop dynamic tool to apply Skill Workshop proposals with the default pending lifecycle approval policy.

Severity: High for Skill Workshop usage through agents. It blocks applying proposals via the agent tool and presents as a generic timeout rather than an actionable approval-state message.

Frequency: Repeatedly observed before workaround when using the agent-tool apply path; CLI apply succeeded on the same class of clean proposals.

Consequence: Users may believe Skill Workshop apply is broken or that proposal content is invalid, even though the underlying CLI/service path works. The practical workaround, approvalPolicy: "auto", disables the secondary lifecycle approval gate for apply, reject, and quarantine, which may be too broad for some environments.

Additional information

The suspected mismatch is:

  • Skill Workshop lifecycle approval waits longer than the dynamic tool watchdog.
  • The dynamic tool watchdog expires first, returning a generic 90-second timeout.
  • The underlying apply function is not reached in the agent-tool path.
  • CLI apply succeeds because it bypasses the agent-tool lifecycle approval gate.

Suggested fixes:

  1. Ensure the Skill Workshop lifecycle approval wait cannot exceed the dynamic tool watchdog.
  2. Return a clear error such as waiting for Skill Workshop lifecycle approval timed out instead of a generic tool timeout.
  3. Consider making lifecycle approval policy configurable per action or workspace, so users can allow apply in trusted admin workspaces without also broadening reject and quarantine.
  4. Document skills.workshop.approvalPolicy and the security tradeoff of setting it to auto.

Workaround

Set skills.workshop.approvalPolicy to auto in the trusted workspace config and restart Gateway. This restores agent-tool apply behavior, but it also bypasses the secondary lifecycle approval gate for Skill Workshop lifecycle actions.

Activity

  1. clawsweeper commented on Jun 7, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 3:44 PM ET / 19:44 UTC.

    Summary
    Keep open: current main and latest v2026.6.9 still leave Codex skill_workshop dynamic-tool calls on a 90s watchdog while the default Skill Workshop approval path can wait 120s plus gateway grace; the open closing PR is the right candidate to review rather than closing this issue early.

    Reproducibility: yes. at source level: default pending lifecycle approval can wait 120s plus 10s gateway grace while Codex generic dynamic-tool calls time out at 90s. I did not run a live Gateway plus Codex approval session in this read-only review.

    Root-cause cluster
    Relationship: canonical
    Canonical: #91266
    Summary: This issue is the canonical report for the 90s Codex dynamic-tool watchdog expiring before default Skill Workshop lifecycle approval can finish; the open linked PR is the candidate fix, while related approval issues track broader UX, routing, and policy work.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    Do not queue a duplicate fix branch because the open closing PR already owns the narrow timeout repair.

    Security
    Needs attention: The issue is security-sensitive because it sits on the Skill Workshop lifecycle approval gate; fixes should preserve fail-closed pending approval rather than relying on broad auto-approval.

    Review details

    Best possible solution:

    Land or revise the linked PR so both Codex main-thread and side-thread skill_workshop watchdogs exceed the plugin approval ceiling while preserving the default pending approval gate.

    Do we have a high-confidence way to reproduce the issue?

    Yes at source level: default pending lifecycle approval can wait 120s plus 10s gateway grace while Codex generic dynamic-tool calls time out at 90s. I did not run a live Gateway plus Codex approval session in this read-only review.

    Is this the best way to solve the issue?

    Yes for the narrow reported bug: raising the Codex skill_workshop watchdog on both main-thread and side-thread paths is the smallest maintainable fix that preserves the approval gate. Broader chat approval evidence and popup TTL work should stay in their separate linked items.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The default agent skill_workshop apply path can still surface the generic 90s Codex dynamic-tool timeout until the linked PR or an equivalent fix merges.
    • The documented workaround, skills.workshop.approvalPolicy: "auto", skips the secondary lifecycle approval gate for apply, reject, and quarantine, so the durable fix should preserve fail-closed pending approval.
    • Adjacent approval UX and chat-evidence issues remain separate product/security work and should not be folded into the narrow timeout repair unless maintainers choose that broader direction.

    Codex review notes: model internal, reasoning high; reviewed against 6daf9307e0b9.

    Label changes

    Label justifications:

    • P2: This is a normal-priority behavior bug with a clear source-level cause and limited blast radius around Skill Workshop lifecycle actions through Codex dynamic tools.
    • impact:security: The affected path is the Skill Workshop lifecycle approval gate, and the practical workaround weakens approval for security-sensitive proposal lifecycle actions.
    Evidence reviewed

    Security concerns:

    • [medium] Preserve lifecycle approval safety — src/skills/workshop/policy.ts:64
      The current workaround disables the secondary approval gate for apply, reject, and quarantine; the fix should address the timeout mismatch without weakening the default approval policy.
      Confidence: 0.87

    What I checked:

    Likely related people:

    • steipete: Recent GitHub commit history shows repeated work on the Codex dynamic-tool execution and app-server paths that own the main watchdog. (role: recent Codex dynamic-tool area contributor; confidence: high; commits: a09f6b1b2787, 7139f473332f, 1e82263492cf; files: extensions/codex/src/app-server/dynamic-tool-execution.ts, extensions/codex/src/app-server/side-question.ts)
    • shakkernerd: Feature history shows this person introduced the Skill Workshop runtime approval policy, renamed the tool to skill_workshop, and adjusted final-parameter approval behavior. (role: Skill Workshop lifecycle policy introducer; confidence: high; commits: 3037646d228d, 2383cfd3039d, 3cd368edec85; files: src/skills/workshop/policy.ts, src/skills/workshop/config.ts, src/agents/agent-tools.before-tool-call.ts)
    • joshavant: The async before_tool_call.requireApproval framework used by Skill Workshop lifecycle approval traces to this commit history. (role: approval framework contributor; confidence: high; commits: 6ade9c474cf1; files: src/infra/plugin-approvals.ts, src/agents/agent-tools.before-tool-call.ts)
    • udaymanish6: The side-question path's generic 90s dynamic-tool timeout was established in adjacent Codex timeout work. (role: adjacent Codex timeout contributor; confidence: medium; commits: 0f18d52f16e3; files: extensions/codex/src/app-server/side-question.ts, extensions/codex/src/app-server/side-question.test.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2Normal backlog priority with limited blast radius.
    impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.
    on Jun 7, 2026
  3. 5 remaining items

  4. aeoleader commented on Jun 15, 2026

    @aeoleader

    Still reproduces on 2026.6.5 (and since PR #91325 isn't merged, 2026.6.6 doesn't include the fix either).

    Setup: Feishu direct chat; an agent calls skill_workshop(action="apply") on a clean, freshly-created workspace-skill proposal.

    Symptoms — exact match to this issue:

    • The agent's apply call hung and returned OpenClaw dynamic tool call timed out after 90000ms while running tool skill_workshop. — twice in a row (two retries, ~90s each).
    • After both timeouts the proposal stayed pending and the target SKILL.md was never written.
    • The equivalent openclaw skills workshop apply <id> CLI command applied the same proposal in ~1.8s.

    Extra angle (relates to #93048 / #92080): the user had given explicit in-chat approval ("apply it") in the same Feishu thread before the agent called apply, but it was not consumed as approval evidence — the agent-tool path still waited on a separate approval route and hung to the 90s watchdog instead of returning a clear approval error.

    Workaround that works today: run apply from the CLI (openclaw skills workshop apply <id>), which bypasses the agent-tool approval gate. Caveat: CLI apply does not add the skill to an allowlist-mode agent's agents.list[].skills, so a separate allowlist edit + gateway restart is still needed before the agent can actually see the skill.

  5. added
    clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    and removed
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    on Jun 15, 2026
  6. cgluttrell commented on Jun 24, 2026

    @cgluttrell

    Confirming this still reproduces on OpenClaw 2026.6.10 (ef3802d).

    Environment/context:

    • Surface: Discord channel session through OpenClaw / Codex dynamic tools
    • Proposal: obsidian-reference-note-capture-20260624-77ecfddea7
    • Proposal size: PROPOSAL.md is 3,531 bytes; resulting live SKILL.md is 3,468 bytes, so this was not a large proposal case
    • Skill Workshop proposal state before apply: pending, scan clean
    • Target skill path: /home/chrisluttrell/.openclaw/workspace/skills/obsidian-reference-note-capture/SKILL.md

    Observed behavior:

    1. From the agent session, calling the dynamic tool path:
      openclaw.skill_workshop with action="apply"
    2. Resulted in:
      OpenClaw dynamic tool call timed out after 90000ms while running tool skill_workshop.
    3. After the timeout, the proposal was still pending and the target live SKILL.md did not exist.
    4. Retrying the same dynamic tool path after updating to v2026.6.10 produced the same 90s timeout.

    Workaround that succeeded:

    openclaw skills workshop apply --json obsidian-reference-note-capture-20260624-77ecfddea7

    That CLI command completed successfully in about 4 seconds, marked the proposal applied, and wrote the live skill file.

    So this still appears to be specifically the dynamic-tool approval/apply transport path, not Skill Workshop core apply. The CLI path works; the chat/dynamic-tool path still hits the 90s watchdog on v2026.6.10.

  7. Lrs-GreenBottle commented on Jun 24, 2026

    @Lrs-GreenBottle

    Confirming a related Feishu DM repro on OpenClaw 2026.6.9 (c645ec4).

    Scenario:

    1. In a Feishu DM session, create/revise a clean Skill Workshop proposal.
    2. Call skill_workshop(action="apply").
    3. A plugin approval prompt is surfaced as text-only:
      Plugin approval required
      Reply with: /approve plugin:... allow-once|deny
      
    4. No Feishu interactive approval buttons/card are shown.
    5. If the user does not manually type the exact /approve ... command in time, the tool call returns an approval timeout and the lifecycle action does not complete.

    This overlaps the timeout symptoms here, but the Feishu-specific UX makes it much easier to hit the timeout:

    • Telegram can present one-click approval buttons.
    • Feishu currently falls back to a manual text command for plugin approvals.
    • The approval ID is long and time-limited, so copying/typing the command from mobile/DM is fragile.

    Source-level notes from local inspection:

    • Feishu's config schema does not currently define capabilities.inlineButtons; it only accepts image/audio/video.
    • Native approval prompt support appears implemented for other channels, but not for Feishu's approval card runtime.
    • Feishu registers approval auth, but this does not by itself provide a native approval card delivery/resolution flow for plugin approvals.

    Suggested connection to related work:

    Private details intentionally omitted.

  8. self-assigned this
    on Jul 5, 2026
  9. locked as resolved and limited conversation to collaborators on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Normal backlog priority with limited blast radius.bugSomething isn't workingbug:behaviorIncorrect behavior without a crashclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions