Skip to content

fix(qoder): clarify rewakeSummary length warning and warn on rewake fields without asyncRewake - #3667

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-3662-qoder-rewake-polish
Oct 27, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
resolve-issue-3662-qoder-rewake-polish

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follow-up polish to #3657 for Qoder's rewakeSummary length warning, plus a new warning for rewakeMessage / rewakeSummary set on a hook without asyncRewake.

Changes

  1. Docs — the Qoder hooks note in docs/reference/file-formats.md now says the 300-character cap is measured after collapsing whitespace and trimming (docs-content regenerated).
  2. Warning text — with collapseWhitespaceForLength, the warning now reads ... is N characters long after collapsing whitespace; .... The raw-length message is unchanged. Tests assert both forms.
  3. Whitespace class — kept \s. The published Qoder CLI bundle (@qoder-ai/[email protected], bundle/qodercli.js) normalizes the summary with A.replace(/\s+/g," ").trim().slice(0,300) (the constant is Rku=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.
  4. JSDoc — maxLength now says it measures the raw length by default and the normalized length when collapseWhitespaceForLength is set.
  5. Low-severity follow-ups from the 2026-10-26 batch PR review (#3628, #3641–#3645) #3652 item 15 — the bundled hook-config skill in the same package (bundle/builtin/hook-config/SKILL.md) marks both fields "Only with asyncRewake". The public docs (https://docs.qoder.com/en/cli/hooks) describe both as "With asyncRewake, ...". In the bundle, the rewake text is only built on the asyncRewake background path. A new onlyWithFlag option on string passthrough fields makes generate warn when either field is set without asyncRewake: true. The value is still emitted. Tests cover a missing flag, false and true.

Skipped

None.

Test plan

  • pnpm cicheck passes

Closes #3662
Refs #3652 (item 15 only)

🤖 Generated with Claude Code

https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth

dyoshikawa and others added 2 commits October 27, 2026 17:10
…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
@dyoshikawa
dyoshikawa merged commit dddea13 into main Oct 27, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-3662-qoder-rewake-polish branch October 27, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow up PR #3657: Qoder rewakeSummary normalized-length warning polish

1 participant