Skip to content

AI review/assistant: strip ASSA override blocks, send actor/style as context (#13927) - #14018

Merged
niksedk merged 1 commit into
mainfrom
claude/13927-ai-review-assa-tags
Aug 23, 2026
Merged

AI review/assistant: strip ASSA override blocks, send actor/style as context (#13927)#14018
niksedk merged 1 commit into
mainfrom
claude/13927-ai-review-assa-tags

Conversation

@niksedk

@niksedk niksedk commented Aug 23, 2026

Copy link
Copy Markdown
Member

Implements the core of #13927 for AI review and the AI assistant.

  • Leading/trailing {\...} blocks are cut off before a line is sent and glued back verbatim around the model's answer — no more token waste, and no more corrections silently dropped because a small model "normalized" \1c&HFDF9AA&.
  • Lines that are pure drawings ({\p1}m 0 0 l ...) or tags are skipped entirely (they used to be sent as text to proofread).
  • ASSA actor and style are sent as read-only context on each line; the protocol text tells the model to use them only as context.
  • Default prompt no longer mentions {\an8} (nothing to keep any more).
  • AI assistant: same stripping for the current line (restored on Apply) and all override blocks removed from context lines.
  • Inline mid-text blocks are left in place and still guarded by the tag check.

Auto-translate (libuilogic Formatting) already strips leading blocks; trailing blocks + actor/style there would be a separate PR.

Tests: AssaTagStripperTests (round-trips, whitespace, inline, drawing, non-tag braces, actor/style JSON).

🤖 Generated with Claude Code

…end actor/style as context (#13927)

Leading and trailing {\...} blocks are stripped before a line is sent and
restored verbatim around the model's answer, so tag-heavy ASSA lines no
longer waste tokens or get their corrections dropped by the tag guard.
Pure drawing/tag lines are skipped. The ASSA actor and style name go along
as read-only context. Same stripping for the AI assistant's current line
and its context lines.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@niksedk
niksedk merged commit ca4b1c9 into main Aug 23, 2026
1 check passed
@niksedk
niksedk deleted the claude/13927-ai-review-assa-tags branch August 23, 2026 06:19
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