{ "argumentSchema": { "additionalProperties": false, "properties": {}, "type": "object" }, "pattern": "gideon-tests/select-initial-value-repro.tsx", "resultSchema": { "description": "Reproduction case for cf-select not displaying initial values from backend.\n\nBug: When a cf-select is bound to a cell via $value, the dropdown would show\nthe placeholder \"-\" instead of the actual cell value on initial page load.\nThe value was present in the cell, but the component's onChange callback\nwasn't being called when the subscription received backend updates.\n\nRoot cause: CellController._setupCellSubscription() only called\nhost.requestUpdate() when cell values changed, but didn't call the onChange\ncallback. Components like cf-select rely on onChange to sync their DOM state.\n\nFix: In cell-controller.ts, the subscription callback now calls onChange\nwhen the cell value changes from the backend.\n\nTo test:\n1. Deploy this pattern with `cf piece new`\n2. Use CLI to set values: echo '\"video\"' | cf cell set --piece ID type ...\n3. Refresh the page - the dropdown should show \"🎬 Video\", not \"-\"\n4. The \"Current value\" text should also display \"video\"", "properties": { "$NAME": { "type": "string" }, "status": { "type": "string" }, "type": { "type": "string" } }, "required": [ "type", "status", "$NAME" ], "type": "object" } }