Skip to content

fix(gateway): reload edited hook transforms - #107875

Merged
vincentkoc merged 2 commits into
openclaw:mainfrom
sunlit-deng:sunlit/fix/hook-transform-reload
Jul 29, 2026
Merged

vincentkoc merged 2 commits into
openclaw:mainfrom
sunlit-deng:sunlit/fix/hook-transform-reload

Conversation

@sunlit-deng

@sunlit-deng sunlit-deng commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where editing a configured hook transform could leave the gateway running the old transform function after hooks hot reload rebuilt the mapping config.

Why This Change Was Made

Hook mapping resolution now drops the process-local transform function cache when hooks config is resolved, and transform cache misses import with one cache-bust token for the current reload generation so Node does not reuse the previous module instance.

User Impact

Operators can update hook transform files and have subsequent matching webhook deliveries use the edited transform without restarting the gateway.

Evidence

Exact head: fade61a1a9a7fb5d3a8378fa0ddc82a72140c2ee

  • Production module boundary: pnpm exec tsx proof-live.ts
$ pnpm exec tsx proof-live.ts
first-transform: before
after-reload: after
  • node scripts/run-vitest.mjs src/gateway/hooks-mapping.test.ts src/gateway/server-reload-handlers.test.ts: 137 passed
  • Fresh post-rebase autoreview: clean, no actionable findings (0.87 confidence)
proof-live.ts
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { pathToFileURL } from "node:url";

const configDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-hook-transform-proof-"));
const transformsRoot = path.join(configDir, "hooks", "transforms");
fs.mkdirSync(transformsRoot, { recursive: true });
const transformPath = path.join(transformsRoot, "reloadable.mjs");

type HooksMappingModule = typeof import("./src/gateway/hooks-mapping.js");
let hooksMapping: HooksMappingModule;

function writeTransform(text: string) {
  fs.writeFileSync(
    transformPath,
    `export default () => ({ kind: "wake", text: ${JSON.stringify(text)} });\n`,
  );
}

function resolveCurrentMappings() {
  return hooksMapping.resolveHookMappings(
    {
      mappings: [
        {
          match: { path: "reloadable" },
          action: "agent",
          messageTemplate: "unused",
          transform: { module: "reloadable.mjs" },
        },
      ],
    },
    { configDir },
  );
}

async function runHook() {
  const result = await hooksMapping.applyHookMappings(resolveCurrentMappings(), {
    payload: {},
    headers: {},
    url: new URL("http://127.0.0.1:18789/hooks/reloadable"),
    path: "reloadable",
  });
  if (!result?.ok || result.action?.kind !== "wake") {
    throw new Error(`unexpected hook result: ${JSON.stringify(result)}`);
  }
  return result.action.text;
}

async function main() {
  hooksMapping = await import(pathToFileURL(path.resolve("src/gateway/hooks-mapping.ts")).href);
  try {
    writeTransform("before");
    console.log(`first-transform: ${await runHook()}`);
    writeTransform("after");
    console.log(`after-reload: ${await runHook()}`);
  } finally {
    fs.rmSync(configDir, { recursive: true, force: true });
  }
}

void main();

AI-assisted: built with Codex

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S labels Jul 15, 2026
@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch 2 times, most recently from 89417d3 to 17f6c6b Compare July 16, 2026 03:01
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Jul 16, 2026
@clawsweeper

clawsweeper Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 27, 2026, 9:27 PM ET / July 28, 2026, 01:27 UTC.

ClawSweeper review

What this changes

The branch clears cached gateway hook-transform functions after an accepted hooks reload and cache-busts the next module import so edited transform files affect later webhook deliveries without a gateway restart.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for normal maintainer review. The branch contains a focused fix with real filesystem-based proof and targeted coverage, but it remains behind main; the exact-head reload ordering and deliberate cache-reset semantics should be rechecked after rebase before merge.

Priority: P2
Reviewed head: 076fff21d522f8a546bdb375302b308505b5735a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-covered gateway fix with direct terminal proof; rebase and exact-head confirmation remain the material merge-readiness step.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body provides a real filesystem-backed terminal proof that an edited transform changes from before to after after mapping resolution, with focused regression tests covering accepted and rejected reload behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides a real filesystem-backed terminal proof that an edited transform changes from before to after after mapping resolution, with focused regression tests covering accepted and rejected reload behavior.
Evidence reviewed 6 items Focused reload implementation: The proposed mapping cache reset is exposed as commitHookTransformMappingReload; transform imports use the committed generation and avoid caching a result that began under an older generation.
Accepted-reload boundary: The hot-reload handler resolves hooks first, publishes the new state, then commits the transform cache generation at the final synchronous commit edge; rejected hook preparation does not take this path.
Startup path: Initial gateway runtime configuration commits the transform generation only when hooks configuration was resolved, keeping startup and accepted reload behavior aligned.
Findings None None.
Security None None.

How this fits together

Gateway webhook handling resolves configured hook mappings, then invokes optional transform modules before producing an agent action. This change sits between accepted configuration reloads and later webhook deliveries, where it determines whether a transform module is reused or freshly loaded.

flowchart LR
  Config[Edited hook configuration or transform file] --> Reload[Gateway reload preparation]
  Reload --> Validate[Resolve and validate hook mappings]
  Validate --> Commit[Accept new gateway state]
  Commit --> Cache[Advance transform cache generation]
  Webhook[Incoming webhook] --> Mapping[Match hook mapping]
  Mapping --> Import[Load transform for current generation]
  Import --> Action[Create agent action]
Loading

Before merge

  • Resolve merge risk (P1) - An accepted hook-config reload now deliberately replaces process-local transform module instances; transforms that implicitly depend on retained module-level state will reset at the next accepted reload.
  • Resolve merge risk (P1) - The PR is behind main, so the final gateway reload ordering and focused proof should be refreshed against the rebased head before merge.
Agent review details

Security

None.

PR surface

Source +27, Tests +332. Total +359 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 4 31 4 +27
Tests 2 334 2 +332
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 365 6 +359

Review metrics

None.

Stored data model

Persistent data-model change detected: persistent cache schema: src/gateway/hooks-mapping.ts, persistent cache schema: src/gateway/server-reload-handlers.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Rebase and refresh reload proof (recommended)
    Rebase the branch onto current main and rerun the focused gateway reload tests and live edit-to-delivery proof so the final cache-generation ordering is verified on the merge candidate.
  2. Accept the transform reset semantic
    Merge only if maintainers accept that every accepted hooks reload intentionally gives transforms a fresh module instance, including transforms with module-level state.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Rebase onto current main, rerun the focused gateway reload tests and the redacted live transform-edit proof on the exact head, then refresh the PR evidence.

Technical review

Best possible solution:

Rebase onto current main, retain the accepted-reload-only cache-generation boundary, and rerun the focused reload tests plus the redacted live file-edit proof against the exact merge candidate.

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

No high-confidence independent current-main reproduction was run in this read-only review. The PR supplies a concrete filesystem edit-and-reload path and targeted tests, so the affected behavior is source-reproducible with medium confidence.

Is this the best way to solve the issue?

Yes, conditionally. Clearing the cache only after a hooks configuration has been accepted, coupled with generation-scoped imports and stale-load protection, is a narrow solution that avoids invalidating the active configuration on a rejected reload.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5ae4a8fb8e24.

Labels

Label justifications:

  • P2: This corrects a bounded gateway webhook behavior problem without evidence of an active broad outage.
  • merge-risk: 🚨 compatibility: Accepted hook reloads now reset module-level transform state instead of retaining the prior cached module instance.
  • merge-risk: 🚨 message-delivery: The changed transform result directly determines the action generated for later matching webhook deliveries.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides a real filesystem-backed terminal proof that an edited transform changes from before to after after mapping resolution, with focused regression tests covering accepted and rejected reload behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides a real filesystem-backed terminal proof that an edited transform changes from before to after after mapping resolution, with focused regression tests covering accepted and rejected reload behavior.

Evidence

What I checked:

  • Focused reload implementation: The proposed mapping cache reset is exposed as commitHookTransformMappingReload; transform imports use the committed generation and avoid caching a result that began under an older generation. (src/gateway/hooks-mapping.ts:93, 076fff21d522)
  • Accepted-reload boundary: The hot-reload handler resolves hooks first, publishes the new state, then commits the transform cache generation at the final synchronous commit edge; rejected hook preparation does not take this path. (src/gateway/server-reload-hot.ts:99, 076fff21d522)
  • Startup path: Initial gateway runtime configuration commits the transform generation only when hooks configuration was resolved, keeping startup and accepted reload behavior aligned. (src/gateway/server-runtime-config.ts:184, 076fff21d522)
  • Regression coverage: The branch adds mapping-generation and rejected-reload coverage, including an integration-level assertion that a rejected hooks configuration preserves the active transform cache. (src/gateway/server-reload-handlers.test.ts:1754, 076fff21d522)
  • Real behavior evidence: The PR body includes a filesystem-backed terminal run that writes a transform returning before, rewrites it to return after, and reports after-reload: after; it also reports the focused hooks-mapping test passing. (src/gateway/hooks-mapping.test.ts:659, 076fff21d522)
  • Review continuity: The prior ClawSweeper cycle recorded no remaining line-level findings and asked only for an exact-head recheck after the branch was refreshed; the latest head is newer than that reviewed SHA. (d7e3a6341b22)

Likely related people:

  • sunlit-deng: Authored both commits on the reviewed branch and iterated through the prior reload-order review cycles; current-main feature-history ownership could not be independently established from the supplied read-only context. (role: current patch contributor; confidence: low; commits: 71ad6d9c09c9, 076fff21d522; files: src/gateway/hooks-mapping.ts, src/gateway/server-reload-hot.ts, src/gateway/hooks.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase onto current main and refresh the focused test and live terminal proof against that exact head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-17T06:53:36.991Z sha 837d9ea4523c83a0a6f46d9ee3c9148476427de4 :: needs changes before merge. :: [P1] Invalidate transforms only after accepting the reload
  • reviewed 2026-07-17T07:20:45.439Z sha c71d7724bfa26c1d12c874d52650c9949e3942dd :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T08:02:17.121Z sha c71d7724bfa26c1d12c874d52650c9949e3942dd :: needs changes before merge. :: [P1] Commit the transform generation only after hooks resolve
  • reviewed 2026-07-17T08:25:09.867Z sha 6fa15d5116f7f302cf19ffae11cb0e133066c93a :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T09:06:31.012Z sha 6fa15d5116f7f302cf19ffae11cb0e133066c93a :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T14:42:03.994Z sha bb6e5f5f157d41f13a89914f0bf5f88435e7d53f :: needs maintainer review before merge. :: none
  • reviewed 2026-07-19T01:42:12.451Z sha 601c81a177e130e9eefa15c59860bc70d36e9f4e :: needs maintainer review before merge. :: none
  • reviewed 2026-07-25T13:11:27.763Z sha d7e3a6341b228d829aa31a4f67e0e3f8b1b46e51 :: needs maintainer review before merge. :: none

@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch from 17f6c6b to 26c0861 Compare July 16, 2026 15:31
@sunlit-deng

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 16, 2026
@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch from 26c0861 to 42d95cd Compare July 16, 2026 23:40
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. label Jul 17, 2026
@sunlit-deng

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch from 42d95cd to 837d9ea Compare July 17, 2026 06:42
@sunlit-deng

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 17, 2026
@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch from 837d9ea to c71d772 Compare July 17, 2026 07:15
@sunlit-deng

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 17, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 17, 2026
@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch from 6fa15d5 to bb6e5f5 Compare July 17, 2026 14:36
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 17, 2026
@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch from bb6e5f5 to 601c81a Compare July 19, 2026 01:38
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Jul 19, 2026
@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch 2 times, most recently from 7d48e7c to 0d842ee Compare July 24, 2026 03:08
@sunlit-deng
sunlit-deng force-pushed the sunlit/fix/hook-transform-reload branch 5 times, most recently from d7e3a63 to 076fff2 Compare July 28, 2026 01:23
@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the sunlit/fix/hook-transform-reload branch 3 times, most recently from a710bfd to 4f4fd60 Compare July 29, 2026 07:36
@vincentkoc
vincentkoc force-pushed the sunlit/fix/hook-transform-reload branch from 4f4fd60 to fade61a Compare July 29, 2026 08:05
@vincentkoc
vincentkoc merged commit d78c1a5 into openclaw:main Jul 29, 2026
194 of 199 checks passed
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
* origin/main:
  fix(zalo): stop provider startup after gateway shutdown (#115763)
  fix(agents): bound completed background process retention (#115760)
  fix(plugins): bound hook execution and retire stale registrations (#115695)
  fix(ui): collapse custodian startup error gap (#115720)
  fix(gateway): reload edited hook transforms (#107875)
  refactor: centralize channel streaming config hints (#115739)
  fix(msteams): finalize sent replies after dispatch (#82354)
  fix(cron): deliver explicitly configured failure alerts (#115762)
  fix(hooks): resolve inbound claim conversation once (#115491)
  refactor: retire legacy provider and secret paths (#115655)
  fix(memory): reject malformed QMD result entries (#115705)
  fix(diagnostics): keep internal thinking out of telemetry [AI] (#115261)
  fix(ui): localize remaining control surfaces (#115730)
  fix(gateway): prevent model owner mismatch after plugin activation (#115747)
  fix(agents): run reply hooks for restart recovery (#115711)
  fix(cron): initialize detached hook run sessions (#115765)
  fix(ios): keep stop available for staged voice notes (#115744)
  fix(doctor): preserve config includes during cleanup (#115723)
  fix(memory): keep dreaming consolidation within project scope (#115721)
  fix(discord): keep tool rows under verbose progress (#111947)

# Conflicts:
#	ui/src/pages/custodian/custodian-surface.ts
#	ui/src/styles/custodian.css
vincentkoc added a commit that referenced this pull request Jul 29, 2026
…ft-ingestion

* origin/main:
  fix(feishu): reject unsupported initial document content (#115697)
  feat(media): probe duration and dimensions for playback metadata (#115728)
  fix(sandbox): scope runtimes by workspace (#115766)
  fix(ui): guide users through missing or broken AI setup (#115716)
  fix(sessions): return direct-agent replies to their active session (#115756)
  fix(zalo): stop provider startup after gateway shutdown (#115763)
  fix(agents): bound completed background process retention (#115760)
  fix(plugins): bound hook execution and retire stale registrations (#115695)
  fix(ui): collapse custodian startup error gap (#115720)
  fix(gateway): reload edited hook transforms (#107875)
  refactor: centralize channel streaming config hints (#115739)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* fix(gateway): reload edited hook transforms

* test(gateway): use auto cleanup temp dirs for hook reload tests
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
…ft-ingestion

* origin/main:
  fix(feishu): reject unsupported initial document content (openclaw#115697)
  feat(media): probe duration and dimensions for playback metadata (openclaw#115728)
  fix(sandbox): scope runtimes by workspace (openclaw#115766)
  fix(ui): guide users through missing or broken AI setup (openclaw#115716)
  fix(sessions): return direct-agent replies to their active session (openclaw#115756)
  fix(zalo): stop provider startup after gateway shutdown (openclaw#115763)
  fix(agents): bound completed background process retention (openclaw#115760)
  fix(plugins): bound hook execution and retire stale registrations (openclaw#115695)
  fix(ui): collapse custodian startup error gap (openclaw#115720)
  fix(gateway): reload edited hook transforms (openclaw#107875)
  refactor: centralize channel streaming config hints (openclaw#115739)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants