stackblitz / bolt.new

Prompt, run, edit, and deploy full-stack web applications
https://bolt.new
MIT License
5.15k stars 1k forks source link

the tool frequently truncates the generated code when writing to files #707

Open jps1990 opened 1 day ago

jps1990 commented 1 day ago

Describe the bug

When using the code generation feature on www.bolt.new, the tool frequently truncates the generated code when writing to files. This results in incomplete code files that cause application crashes. Additionally, even after manually removing the truncated sections, the remaining code remains incomplete or broken. This issue disrupts the development workflow and incurs additional costs due to token-based billing for each incomplete generation attempt.

Link to the Bolt URL that caused the error

https://bolt.new/~/sb1-lyz8ng

Steps to reproduce

normal use

Expected behavior

normal use

Screen Recording / Screenshot

No response

Platform

Browser name = Chrome
Full version = 129.0.0.0
Major version = 129
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0
performance.memory = {
  "totalJSHeapSize": 98341207,
  "usedJSHeapSize": 94052591,
  "jsHeapSizeLimit": 4294705152
}
Username = jps1990
Chat ID = 9faaf4ac0607

Additional context

Error:

An error occured while streaming this message.
jps1990 commented 1 day ago

Need Better Pre PROMPT !!!!