mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
Retire queued continuation echoes when transcript rows represent the sends. Preserve literal backslashes, occurrence boundaries, and image barriers on mobile and desktop. Closes #15288. Adapted from #15283. Co-authored-by: grboy6770 <2000grboy@gmail.com>
7 lines
336 B
TypeScript
7 lines
336 B
TypeScript
import { normalizeNativeChatUserText } from './native-chat-image-transcript-markers'
|
|
|
|
// Agent TUIs may consume the final backslash and join the next send into this turn.
|
|
export function nativeChatContinuationSendText(text: string): string | null {
|
|
return text.endsWith('\\') ? normalizeNativeChatUserText(text.slice(0, -1)) : null
|
|
}
|