feat(hooks): wire task-reminder hook into session tier and event chain#4502
Open
Hungdoan565 wants to merge 2 commits into
Open
feat(hooks): wire task-reminder hook into session tier and event chain#4502Hungdoan565 wants to merge 2 commits into
Hungdoan565 wants to merge 2 commits into
Conversation
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
The task-reminder hook was fully implemented with tests but never registered in the hook composition system. This commit: - Adds 'task-reminder' to HookNameSchema for disabled_hooks support - Exports createTaskReminderHook from hooks barrel - Registers in create-session-hooks.ts with isHookEnabled gate - Wires tool.execute.after handler in tool-execute-after.ts - Wires event handler in event.ts for session.deleted cleanup
a2df436 to
5a46849
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The ask-reminder hook was fully implemented (with tests) but never registered in the hook composition system. This PR wires it in.
Changes
What the hook does
After 10 consecutive non-task tool calls in a session, appends a gentle reminder to use task tools for progress tracking. Resets counter when any task tool is used or after the reminder fires. Cleans up session state on session.deleted.
Testing
bun run typecheck- cleanbun test src/hooks/task-reminder/- 6 pass, 0 failSummary by cubic
Wires the
task-reminderhook into the session hooks and event chain. Users get a gentle reminder after 10 consecutive non-task tool calls, with state cleanup on session deletion.New Features
task-remindertoHookNameSchemafordisabled_hooks.isHookEnabled+safeHook; exported from hooks barrel.tool.execute.afterandsession.deletedfor reminders and cleanup.Dependencies
bun.locktooh-my-opencode-*4.5.1platform binaries.Written for commit d4d2013. Summary will update on new commits. Review in cubic