Skip to content

refactor(tasks): rename registry hooks to observers - #59829

Merged
vincentkoc merged 2 commits into
mainfrom
vk/tasks-observer-rename
Apr 2, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
vk/tasks-observer-rename

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • rename internal task/task-flow registry hook types and accessors to observer terminology
  • switch runtime configuration from hooks to observers for these private registry callbacks
  • update task/task-flow registry tests to match the new internal naming

Scope

  • private internal rename only
  • no public plugin hook surface changes
  • no task sqlite or persistence changes

Verification

  • pnpm exec vitest run src/tasks/task-registry.store.test.ts src/tasks/task-flow-registry.test.ts src/tasks/task-flow-registry.store.test.ts --config vitest.unit.config.ts --pool=forks --isolate=false --maxWorkers 1 --reporter=verbose
  • pnpm tsgo

@vincentkoc vincentkoc self-assigned this Apr 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Apr 2, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review April 2, 2026 17:39
@greptile-apps

greptile-apps Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR performs a private, internal rename of task/task-flow registry terminology — replacing hooks with observers across type names (TaskRegistryHooks → TaskRegistryObservers, TaskRegistryHookEvent → TaskRegistryObserverEvent), accessor functions (getTaskRegistryHooks → getTaskRegistryObservers), internal variables, and the runtime configuration parameter key (hooks: → observers:). The corresponding test files are updated to match.

Key observations:

  • The rename is complete and consistent: no stale Hooks/hooks references remain in any of the affected task-registry files.
  • Neither type is exported from a public index, confirming this is a pure internal refactor with no public API surface impact.
  • The updated comment wording ("best-effort only" vs "observational") in the TaskRegistryObservers / TaskFlowRegistryObservers type blocks is a small but accurate clarification of the semantics.
  • Test descriptions, test controllerId strings, and test goal strings have all been updated to reflect the new naming, keeping the test suite self-consistent.

Confidence Score: 5/5

  • Safe to merge — purely internal rename with no functional changes and no remaining stale references.
  • The change is a mechanical, complete rename of private internal symbols. All 6 changed files are consistent, no old hooks references remain anywhere in the task-registry module, and the types are not part of any public export surface. Tests pass by the author's verification, and the diff contains no logic changes.
  • No files require special attention.

Reviews (1): Last reviewed commit: "Merge branch 'main' into vk/tasks-observ..." | Re-trigger Greptile

@vincentkoc
vincentkoc merged commit 7aa2295 into main Apr 2, 2026
59 of 60 checks passed
@vincentkoc
vincentkoc deleted the vk/tasks-observer-rename branch April 2, 2026 17:43
steipete pushed a commit to duncanita/openclaw that referenced this pull request Apr 4, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
Nachx639 pushed a commit to Nachx639/clawdbot that referenced this pull request Jun 17, 2026
vixco pushed a commit to vixco/openclaw that referenced this pull request Aug 16, 2026
globalcaos pushed a commit to globalcaos/tinkerclaw that referenced this pull request Sep 29, 2026
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant