Repository navigation
feat(hooks): pass Qoder rewakeMessage and rewakeSummary through - #3645
Merged
Merged
Conversation
Qoder documents two command-hook strings that go with `asyncRewake`: `rewakeMessage` overrides the prefix of the injected system message and `rewakeSummary` overrides the one-line summary (capped at 300 characters). Both were dropped on generate, so a hand-added value was lost too. Add them as canonical fields, forward them on Qoder command hooks in both directions, and warn on generate when `rewakeSummary` exceeds the cap. Refs #3421 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
Regenerate src/generated/docs-content.ts to resolve the conflict. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
…der-rewake-fields # Conflicts: # src/generated/docs-content.ts
This was referenced Oct 26, 2026
Follow up Qoder upstream updates: output styles and non-permissions settings keys unauthorable
#3421
Closed
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
Qoder's hooks reference documents two command-hook fields that go with
asyncRewake:rewakeMessage: overrides the prefix of the system message injected when the hook exits with code 2.rewakeSummary: overrides the one-line summary, capped at 300 characters.Both are in the command-hook schema of
@qoder-ai/qodercli1.1.78, but rulesync dropped them on generate. Because thehooksblock is rewritten, a hand-added value was lost too.Changes
src/types/hooks.ts: add optionalrewakeMessage/rewakeSummary(safeString) to the canonical hook definition.src/features/hooks/tool-hooks-converter.ts: allow these two as string passthrough fields, and add an optionalmaxLengthto string passthrough specs. A longer value is still emitted, with a warning on generate that the tool will shorten it.src/features/hooks/qoder-hooks.ts: forward both oncommandhooks (dropped with a warning on other handler types), withmaxLength: 300onrewakeSummary. Import round-trips them.docs/reference/file-formats.md(and the regenerateddocs-content.ts).The upstream CLI truncates the summary instead of rejecting it ("Whitespace collapsed, capped at 300 chars" in its bundled hook-config skill), so rulesync warns rather than failing.
Refs #3421
🤖 Generated with Claude Code
https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth