Skip to content

Extract string limiting logic from CodeQuoter into LimiterQuoter#12

Merged
henriquemoody merged 1 commit intomainfrom
limiter
May 10, 2026
Merged

Extract string limiting logic from CodeQuoter into LimiterQuoter#12
henriquemoody merged 1 commit intomainfrom
limiter

Conversation

@henriquemoody
Copy link
Copy Markdown
Member

CodeQuoter was handling two distinct responsibilities: limiting string length (including truncation and context-aware placeholder selection) and wrapping content in backtick quotes. Separating these concerns gives each class a single, clear job — LimiterQuoter handles the length cap and truncation strategy, while CodeQuoter focuses on depth-checking and backtick formatting. This also makes each concern independently testable.

Assisted-by: Claude Code (claude-sonnet-4-6)

CodeQuoter was handling two distinct responsibilities: limiting string
length (including truncation and context-aware placeholder selection)
and wrapping content in backtick quotes. Separating these concerns gives
each class a single, clear job — LimiterQuoter handles the length cap
and truncation strategy, while CodeQuoter focuses on depth-checking and
backtick formatting. This also makes each concern independently testable.

Assisted-by: Claude Code (claude-sonnet-4-6)
@henriquemoody henriquemoody merged commit e82cd44 into main May 10, 2026
11 checks passed
@henriquemoody henriquemoody deleted the limiter branch May 10, 2026 19:17
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.

1 participant