Skip to content

Keep short draw requests verbatim as image captions - #286

Merged
iamwavecut merged 2 commits into
mainfrom
fix/verbatim-short-draw-captions
Nov 6, 2026
Merged

iamwavecut merged 2 commits into
mainfrom
fix/verbatim-short-draw-captions

Conversation

@iamwavecut

@iamwavecut iamwavecut commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Short draw requests are shown as the image caption exactly as the user wrote them again.

  • The message router records the text of an explicit draw command (нарисуй X, !draw X, % X) in the message meta as draw_request.
  • When X has at most 10 words and the picture is generated from text only, draw_image and draw_api use X unchanged as the caption. The model-written caption is ignored for these requests, and an empty model caption no longer forces a retry.
  • Longer requests, image edits and generations from source images keep the concise model-written caption.
  • The generation prompt pipeline (the model's technical prompt and the optimizer) is unchanged; only the visible caption changes.
  • draw_request follows the trigger through canonical job params and mid-turn request replacement, in the same way as requested_tool.
  • The dependency gate failed on a new advisory, RUSTSEC-2026-0433 (pulldown-cmark 0.13.5, quadratic wikilink parsing). The workspace now requires pulldown-cmark 0.13.6.

Why

Users write short draw requests as captions and tell stories through them. Since the readable-caption change, the model rewrites even short requests (собаквака → Собака-квака), and users report that the bot changes their requests.

Verification

  • cargo fmt --all
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace (all passed)
  • cargo audit: no vulnerabilities after the update; cargo test -p openplotva-telegram: 237 passed

An explicit draw command (`нарисуй X`, `!draw X`, `% X`) now records X
in the message meta as `draw_request`. When X has at most 10 words and
the picture is generated from text only, draw_image and draw_api show X
unchanged as the caption instead of the model-written caption, and an
empty model caption no longer forces a retry.

Longer requests, image edits and generations from source images keep
the concise model caption. The generation prompt pipeline is unchanged.
@github-actions

github-actions Bot commented Nov 6, 2026 •

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

Generated by 🚫 dangerJS against 40fb1f4

@iamwavecut
iamwavecut merged commit f7ce04c into main Nov 6, 2026
12 checks passed
@iamwavecut
iamwavecut deleted the fix/verbatim-short-draw-captions branch November 6, 2026 19: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