mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
_Disclosure: produced using Opus 4.8_ I've noticed recently that some prompts are not displaying correctly. <img width="1388" height="509" alt="image" src="https://github.com/user-attachments/assets/fad3812f-e42d-4398-a16c-a0e7f924455d" /> The cause is the `mid-conversation-system-2026-04-07` beta. When enabled, the client appends a trailing `role: "system"` message after the user's text (e.g. an injected skills list): ```json "messages": [ { "role": "user", "content": [ "hey how are ya" ] }, { "role": "system", "content": "The following skills are available..." } ] ``` Our prompt detection algo was being subverted since we only check the last message if role=user.