Skip to content

fix(qoder): measure summary warnings after whitespace normalization - #3657

Merged
dyoshikawa merged 1 commit into
dyoshikawa:mainfrom
521Peter:fix/qoder-message-length-oct26
Oct 27, 2026
Merged

dyoshikawa merged 1 commit into
dyoshikawa:mainfrom
521Peter:fix/qoder-message-length-oct26

Conversation

@521Peter

@521Peter 521Peter commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Refs #3652, items 13–14 only.

Qoder collapses whitespace and trims rewakeSummary before its 300-character cap. Rulesync measured the raw string, so a summary with long runs of spaces or tabs could warn that Qoder would shorten it even when its normalized length was within the cap.

This adds an opt-in whitespace-normalized length check for Qoder's summary field. Other passthrough fields keep raw-length checks by default, and the original value is still emitted unchanged. The warning reports the measured length. The generic converter tests also cover over-cap output preservation and ensure dropped or invalid fields do not receive a length warning.

Validation:

  • Three new Qoder boundary cases (normalized lengths 299, 300 and 301) fail on the old implementation, then pass with the fix.
  • Qoder and converter unit tests: 116 passed.
  • Full pnpm cicheck: 16,201 tests passed, 4 skipped; formatting, oxlint, type checking, embedded-doc regeneration, generated tables/gitignore, spelling and secretlint passed.
  • pnpm build passed, with existing TypeScript experimental-API and mixed static/dynamic-import warnings.
  • Qoder project/global generation E2E: 2 passed.
  • Documentation and embedded docs updated. No dependency, workflow, hook execution, or generated-value changes.

AI assistance was used for implementation, tests and this description. The repository-required independent code and security reviews are complete, with no findings.

@521Peter
521Peter marked this pull request as ready for review October 26, 2026 23:41
@dyoshikawa
dyoshikawa merged commit 0e9fd34 into dyoshikawa:main Oct 27, 2026
6 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner

@521Peter Thank you!

@521Peter

Copy link
Copy Markdown
Contributor Author

Thanks for merging! Glad the Qoder warnings now use the normalized summary length while preserving the original output.

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.

2 participants