You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model adds n from new line symbol to generated code #4685
Generated code has new line symbol added, which creates "n" at line start.
"\n"
OpenCode version
1.0.107
Steps to reproduce
Ask for code generation (longer code means more likely it will add new line symbol)
See the result.
I used gemini-5-mini. Custom instruction added to AGENTS.md didn't solve the issue.
Screenshot and/or share link
Operating System
Windows 11
Terminal
pwsh within Windows Terminal, Terminal Reworked 2025 (IntelliJ)
Activity
github-actions commentedon Nov 24, 2025
This issue might be a duplicate of existing issues. Please check:
\nreplaces newlines causing entire files to become one line, which appears to be the same root cause of generated code having literal\ncharacters added instead of proper newlinesFeel free to ignore if your specific case is different.