Fix AI suggestions when build fails
Goal: Turn a failed build after PatchAI edits into a working graph without starting over.
Time: ~10 minutes
Steps
- Click the build status on the toolbar and read the first error in the log (see Read build error messages).
- Open PatchAI on the toolbar and paste the error text: “Build says unwired obj on set color — wire target to clip.”
- Fix common AI mistakes yourself when faster:
- Wire target or Song / Resources into obj inputs.
- Use MidiClip notes for MIDI, not generic clip notes.
- Move Show Dialog / Progress Dialog outside Transaction.
- Split merged If/Else branches into duplicate final steps.
- For Resources actions (insert device, load sample), wire Resources → obj.
- Execute Command does not need a Commands context wire — only wire what the node docs require.
- Rebuild after each fix; repeat until status shows success.
- Build & Run and test one command in Live.
Expected result
Build succeeds. The graph matches Live behavior you asked for, with types and Run order corrected.
If something goes wrong
| Problem | What to do |
|---|---|
| Same error after AI fix | Fix manually on canvas — hover ports for type hints |
| String compare error | Replace string equality with numeric flags or restructure Branch |
| Color build error | Clip color is an integer index, not hex |
| AI keeps merging branches | Edit Run wires yourself per Core Concepts |
| Live works, build fails | Rare runtime-only issues — still fix build before export |