Symptom

The LogicGate editor showed the gate type twice: once in a GateTypeSelector dropdown row above the truth table, and again as a highlighted column inside the truth table. Picking a gate from the dropdown updated the highlight in the table; the table couldn’t be used as input. Two controls, one piece of state — confusing, and the dropdown row took up a full row of vertical space for no reason.

Root cause

composeApp/.../EditLogicGate.kt had grown two views over the same meta.gateType field. The LogicGateTruthTable already rendered every gate as a column with a primary-container highlight, which is itself a strong visual affordance for “this is the selected gate.” But the columns were not clickable, so the user had to reach for the dropdown. The dropdown stayed because nobody had wired the columns up to set the gate type.

Fix

Prevention