Closed (duplicate)
Project:
Drupal Canvas
Version:
1.x-dev
Component:
AI
Priority:
Critical
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
12 Oct 2025 at 07:27 UTC
Updated:
22 Apr 2026 at 06:59 UTC
Jump to comment: Most recent

Comments
Comment #2
dinu r. commentedComment #3
wim leersYay!
Canvas' config validation reuses SDC's
\Drupal\Core\Theme\Component\ComponentValidator::validateDefinition(), and that's where this validation error is coming from 🥳Comment #4
wim leersComment #5
wim leersActually, is this still relevant? This was apparently reported months ago.
Comment #6
lauriiiI don't think this has been addressed. Ideally we could run the validation as part of generating the code and iterate until it passes.
Comment #7
wim leers💯 (That is how I expected this to work in the first place 😅)
Comment #8
wim leersComment #9
dinu r. commentedlauriii, is there a way to reproduce this?
Comment #10
lauriiiThere's no way to reproduce this consistently because this is essentially an issue where AI doesn't follow the instructions provided for it. The likelihood of running into this also depends on the model. For example, after some testing, we are seeing that this is happening more often on Claude Sonnet 4.5 than on Claude Opus 4.5.
I don't think it's super relevant for us to be able to reproduce this with an LLM. We know that it's happening occasionally but not very often. The goal of this issue would be to introduce a deterministic validation for the cases where the LLM goes off track with the changes. This would allow us to reliably create several components without having to worry about invalid components it may have generated. Instead of trying to reproduce this with a LLM, we should be able to establish that kind of test case with a mock LLM response.
Comment #11
nagwani commentedComment #12
rakhimandhania commentedComment #13
rakhimandhania commentedComment #14
akhil babuThis should get fixed once #3584136: Canvas AI - Not able to create the components lands. So closing as duplicate