Skip to content

Trim custom persona replies too, without re-sampling their openings - #259

Merged
iamwavecut merged 1 commit into
mainfrom
fix/reply-shape-custom-persona
Oct 14, 2026
Merged

iamwavecut merged 1 commit into
mainfrom
fix/reply-shape-custom-persona

Conversation

@iamwavecut

Copy link
Copy Markdown
Owner

Problem

#258 skipped the reply review for every chat with a custom persona. After the deploy, a private chat with the persona «Ученица и помощник» (1862 chats have a custom persona) kept delivering «Ха-ха, ну ты и …! 😂» openers untouched.

Change

review_reply_shape now reviews custom persona replies as well: the reaction opener, read-back quotes and an unstarted generation promise are cut. Only the repeated-opening re-sample stays off for them, because a persona may keep a fixed opening of its own (for example a role-play «(я чувствую, как…» frame).

Measurement

On 469 production replies with a custom persona: 106 trimmed, 363 kept, 0 re-sampled. A read of 15 random trimmed replies found the meaning intact.

Checks

  • cargo fmt --all
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test -p openplotva-llm (new chat_step_trims_but_never_resamples_a_custom_persona_reply)

A short persona like «Ученица и помощник» kept the whole reaction frame
because custom personas skipped the review. The frame is cut for them as
well; only the repeated-opening re-sample stays off, since a persona may
keep a fixed opening of its own.
@github-actions

Copy link
Copy Markdown
Messages
📖 Danger checked 1 changed file(s).

Generated by 🚫 dangerJS against 42d95e2

@iamwavecut
iamwavecut merged commit e2ec557 into main Oct 14, 2026
12 checks passed
@iamwavecut
iamwavecut deleted the fix/reply-shape-custom-persona branch October 14, 2026 00:15
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