Repository navigation
fix(qoder): clarify rewakeSummary length warning and warn on rewake fields without asyncRewake - #3667
Merged
Merged
Conversation
…ields without asyncRewake - Say "after collapsing whitespace" in the length warning when the cap is measured on the normalized value, and document the measurement in the Qoder hooks note. - Document how maxLength and collapseWhitespaceForLength interact, and that the \s class matches Qoder CLI's own normalization of rewakeSummary. - Warn on generate when rewakeMessage or rewakeSummary is set on a hook without asyncRewake: true, since Qoder reads them only on asyncRewake hooks. The values are still emitted. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
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
Follow-up polish to #3657 for Qoder's
rewakeSummarylength warning, plus a new warning forrewakeMessage/rewakeSummaryset on a hook withoutasyncRewake.Changes
docs/reference/file-formats.mdnow says the 300-character cap is measured after collapsing whitespace and trimming (docs-content regenerated).collapseWhitespaceForLength, the warning now reads... is N characters long after collapsing whitespace; .... The raw-length message is unchanged. Tests assert both forms.\s. The published Qoder CLI bundle (@qoder-ai/[email protected],bundle/qodercli.js) normalizes the summary withA.replace(/\s+/g," ").trim().slice(0,300)(the constant isRku=300). That is JavaScript's\s, Unicode whitespace included, so narrowing to ASCII would be wrong. The flag's JSDoc now says so, and a test covers NBSP / U+3000.maxLengthnow says it measures the raw length by default and the normalized length whencollapseWhitespaceForLengthis set.hook-configskill in the same package (bundle/builtin/hook-config/SKILL.md) marks both fields "Only withasyncRewake". The public docs (https://docs.qoder.com/en/cli/hooks) describe both as "WithasyncRewake, ...". In the bundle, the rewake text is only built on theasyncRewakebackground path. A newonlyWithFlagoption on string passthrough fields makes generate warn when either field is set withoutasyncRewake: true. The value is still emitted. Tests cover a missing flag,falseandtrue.Skipped
None.
Test plan
pnpm cicheckpassesCloses #3662
Refs #3652 (item 15 only)
🤖 Generated with Claude Code
https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth