[Bug]: An image sent to a non-vision model (GLM 5.3) breaks that thread for the model permanently
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Start a thread with GLM 5.3 (no vision support) selected.
- Attach any image and send.
- Send any further message on the same thread, including after restarting the app.
Expected behavior
T3 checks whether the selected model supports images. For a model that doesn't, it either leaves the image out with a notice pointing to the saved file, or refuses the attachment with a clear warning before it goes into the session history.
Actual behavior
The image is added to the engine context as an image_url part and the turn fails with "The provider could not start this turn". The image part stays in the session history, so every later GLM 5.3 turn on that thread fails too, even after restarting the app. There's no way to remove the image from the history, so the thread can't be used with GLM 5.3 again. GLM 5.3 Flash, which supports images, handles the same context fine.
Suggested fixes:
- Check the model's image support before adding an attachment to the context.
- Add a per-message action to remove an attachment from the context, so threads that are already affected can be recovered.
Impact
Blocks work completely
Version or commit
0.1.9
Environment
macOS 27.2.1, T3 Code desktop 0.1.9, GLM 5.3 and GLM 5.3 Flash
Logs or stack traces
The provider could not start this turn
Workaround
Once a thread is affected, the only option is to switch to a model that supports images. To avoid it, don't attach images while GLM 5.3 is selected. Give the model the file path in ~/.t3/userdata/attachments/ instead.