Skip to content

Pasted long text gets interleaved with existing prompt in the final agent input #321

@thedavidweng

Description

@thedavidweng

Expected Behavior

After entering a short prompt in the dialog box, paste a long text. When pressing Enter to send, the complete prompt actually sent to the Agent should be:

  1. Top: Short prompt that has been in the input box
  2. Back: Paste the complete long text content

The two are only spliced in the "order before and after", and the content should not be crossed or inserted repeatedly.

Actual Behavior

  1. I first entered a short prompt in the dialog box.
  2. Then paste a large paragraph of long text (the UI will be displayed as a pasted text block).
  3. After clicking Enter to send, the actual prompt content sent to the Agent is:
    ▫ At the top is the prompt I entered at the beginning.
    ▫ There is a whole piece of long text in the middle.
    ▫ However, inside this long text, the short prompt that was originally in the input box will be "interspersed / repeated" many times.

Example

Prompt in the dialog box:

歌词发音功能在这首歌失效,点击不启用,请你检查出现问题的歌曲的歌词找到原因并修复这个问题:"Pasted Text"

Prompt send to the agent:

`歌词发音功能在这首歌失效,点击不启用,请你检查出现问题的歌曲的歌词找到原因并修复这个问题:“[00:24.28] 指切りげんまん ホラでも吹いたら            
  [00:27.43] 針でもなんでも 飲ませていただき Monday                                                                                                
  [00:32.26] It doesn't matter if it's Sunday                                                                                                      
  [00:36.41] 鏡よ鏡よ この世で1番                                                                                                                  
  [00:39.67] 変わることのない 愛をくれるのはだれ                                                                                                   
  [00:44.38] No need to ask 'cause it's my darling                                                                                                 
  [00:48.61] わたしの最後はあなたがいい                                                                                                            
  [00:51.77] あなたとこのままおサラバするより                                                                                                      
  [00:54.70] 死ぬのがいいわ                                                                                                                        
  [00:57.65] 死ぬのがいいわ                                                                                                                        
  [01:00.84] 三度の飯よりあんたがいいのよ                                                                                                          
  [01:03.85] あんたとこのままおサラバするよか                                                                                                      
  [01:06.98] 死ぬのがいいわ                                                                                                                        
  [01:09.87] 死ぬのがいいわ                                                                                                                        
  [01:12.84] それでも時々 浮つく my heart                                                                                                          
  [01:16.08] 死んでも治らな治してみせます baby                                                                                                     
  [01:20.87] Yeah, I ain't nothin' but your baby                                                                                                   
  [01:25.18] 失って初めて気がつくなんて                                                                                                            
  [01:28.23] そんなダサいこと もうしたないのよ Goodbye                                                                                             
  [01:33.13] Oh don't you ever say bye-bye                                                                                                         
  [01:35.98] Yeah                                                                                                                                  
  [01:37”歌词发音功能在这首歌失效,点击不启用,请你检查出现问题的歌曲的歌词找到原因并修复这个问题:“”.36] わたしの最後はあなたがいい               
  [01:40.42] あなたとこのままおサラバするより                                                                                                      
  [01:43.47] 死ぬのがいいわ(死ぬのがいいわ)                                                                                                      
  [01:46.32] 死ぬのがいいわ(死ぬのがいいわ)                                                                                                      
  [01:49.36] 三度の飯よりあんたがいいのよ                                                                                                          
  [01:52.40] あんたとこのままおサラバするよか                                                                                                      
  [01:55.47] 死ぬのがいいわ(死ぬのがいいわ)                                                                                                      
  [01:58.43] 死ぬのがいいわ(死ぬのがいいわ)                                                                                                      
  [02:02.54]                                                                                                                                       
  [02:25.96] わたしの最後はあなたがいい                                                                                                            
  [02:29.06] あなたとこのままおサラバするより                                                                                                      
  [02:31.91] 死ぬのがいいわ(死ぬのがいいわ)                                                                                                      
  [02:34.99] 死ぬのがいいわ(死ぬのがいいわ)                                                                                                      
  [02:37.94] 三度の飯よりあんたがいいのよ                                                                                                          
  [02:41.12] あんたとこのままおサラバするよか                                                                                                      
  [02:44.27] 死ぬのがいいわ(死ぬのがいいわ)                                                                                                      
  [02:47.22] 死ぬのがいいわ(死ぬのがいいわ)                                                                                                      
  [02:50.23] それでも時々浮つく my heart                                                                                                           
  [02:53.24] そんなダサいのは 歌词发音功能在这首歌失效,点击不启用,请你检查出现问题的歌曲的歌词找到原因并修复这个问题:“”もう要らないのよ bye-bye 
  [02:57.93] I'll always stick with you, my baby                                                                                                   
  [03:00.29]                                                                      

Command Code Version

0.25.1

Operating System

macOS

Terminal/IDE

WarpTerminal

Shell

zsh

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions