Skip to content

fix: paste blocks appear after user text, not before#586

Merged
ShaerWare merged 1 commit intomainfrom
fix/paste-text-before-blocks
Mar 16, 2026
Merged

fix: paste blocks appear after user text, not before#586
ShaerWare merged 1 commit intomainfrom
fix/paste-text-before-blocks

Conversation

@ShaerWare
Copy link
Owner

Summary

  • Reorder buildMessageContent() so user's typed text comes first, then pasted code blocks
  • Affects both admin and mobile pasteDetect.ts
  • Before: code blocks → text. After: text → code blocks

NEWS

🔧 Вставленный код теперь идёт после текста

Исправлен порядок: сначала ваш вопрос, потом вставленный код —
как и ожидается при обычном общении с ассистентом.

Test plan

  • Type "explain this code", paste a snippet → message shows text first, then code block
  • Paste only (no text) → code block sent as-is

🤖 Generated with Claude Code

Reorder buildMessageContent() so the user's typed text comes first,
followed by pasted code blocks. This makes the message read naturally
as a question with attached code.

## NEWS

🔧 **Вставленный код теперь идёт после текста**

Исправлен порядок: сначала ваш вопрос, потом вставленный код —
как и ожидается при обычном общении с ассистентом.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ShaerWare ShaerWare merged commit f617178 into main Mar 16, 2026
3 checks passed
@ShaerWare ShaerWare deleted the fix/paste-text-before-blocks branch March 16, 2026 14:01
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