opencode wont respect new line formatting request with claude sonnet 4 #1286

Closed
opened 2026-02-16 17:30:18 -05:00 by yindo · 2 comments
Owner

Originally created by @SeeThruHead on GitHub (Aug 13, 2025).

Originally assigned to: @adamdotdevin on GitHub.

claude code (sonnet 4)

DRAC-2411
  DRAC-2412
  DRAC-2415
  DRAC-2417
  DRAC-2414
  DRAC-2416
  DRAC-2414
  DRAC-2425
  DRAC-2413 sort these and remove dups

 DRAC-2411
  DRAC-2412
  DRAC-2413
  DRAC-2414
  DRAC-2415
  DRAC-2416
  DRAC-2417
  DRAC-2425

opencode v0.4.41 on macos (claude sonnet 4)

DRAC-2411
DRAC-2412
DRAC-2415
DRAC-2417
DRAC-2414
DRAC-2416
DRAC-2414
DRAC-2425
DRAC-2413 sort these and remove dups
my.name (01:54 PM)

DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425
Build anthropic.claude-sonnet-4-20250514-v1:0 (01:54 PM)

make them have the same newline at the end like before
my.name (01:55 PM)

DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425
Build anthropic.claude-sonnet-4-20250514-v1:0 (01:55 PM)

you failed
my.name (01:55 PM)

put each one on its own line
my.name (01:55 PM)

DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425
Build anthropic.claude-sonnet-4-20250514-v1:0 (01:55 PM)

put each ticket number on its own line
my.name (01:55 PM)

DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425
Build anthropic.claude-sonnet-4-20250514-v1:0 (01:55 PM)
Originally created by @SeeThruHead on GitHub (Aug 13, 2025). Originally assigned to: @adamdotdevin on GitHub. claude code (sonnet 4) ``` DRAC-2411 DRAC-2412 DRAC-2415 DRAC-2417 DRAC-2414 DRAC-2416 DRAC-2414 DRAC-2425 DRAC-2413 sort these and remove dups DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425 ``` opencode v0.4.41 on macos (claude sonnet 4) ``` DRAC-2411 DRAC-2412 DRAC-2415 DRAC-2417 DRAC-2414 DRAC-2416 DRAC-2414 DRAC-2425 DRAC-2413 sort these and remove dups my.name (01:54 PM) DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425 Build anthropic.claude-sonnet-4-20250514-v1:0 (01:54 PM) make them have the same newline at the end like before my.name (01:55 PM) DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425 Build anthropic.claude-sonnet-4-20250514-v1:0 (01:55 PM) you failed my.name (01:55 PM) put each one on its own line my.name (01:55 PM) DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425 Build anthropic.claude-sonnet-4-20250514-v1:0 (01:55 PM) put each ticket number on its own line my.name (01:55 PM) DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425 Build anthropic.claude-sonnet-4-20250514-v1:0 (01:55 PM) ```
yindo closed this issue 2026-02-16 17:30:18 -05:00
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

Edit this is because we render llm response as markdown

Ex:

DRAC-2411\nDRAC-2412\nDRAC-2413\nDRAC-2414\nDRAC-2415\nDRAC-2416\nDRAC-2417\nDRAC-2425

renders as:
DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425

@rekram1-node commented on GitHub (Aug 14, 2025): Edit this is because we render llm response as markdown Ex: ``` DRAC-2411\nDRAC-2412\nDRAC-2413\nDRAC-2414\nDRAC-2415\nDRAC-2416\nDRAC-2417\nDRAC-2425 ``` renders as: DRAC-2411 DRAC-2412 DRAC-2413 DRAC-2414 DRAC-2415 DRAC-2416 DRAC-2417 DRAC-2425
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1286