From 8886262da65f1056c1fb779b33dea37d0d52b2dd Mon Sep 17 00:00:00 2001 From: Patrick Dawkins Date: Thu, 9 Apr 2026 08:05:07 +0200 Subject: [PATCH] fix(init): ignore unknown data keys in AI config stream The NDJSON stream handler errored on unrecognized data keys, which broke the CLI when the API added a new "topology" key. Ignore unknown keys so future API additions don't break older CLI versions. Co-Authored-By: Claude Opus 4.6 (1M context) --- internal/init/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/init/command.go b/internal/init/command.go index 966cd1981..cc0e3d496 100644 --- a/internal/init/command.go +++ b/internal/init/command.go @@ -141,7 +141,7 @@ func RunAIConfig( if key == "output" { return json.Unmarshal(data, &apiOutput) } - return fmt.Errorf("unexpected data key: %s", key) + return nil }) eg, egCtx = errgroup.WithContext(ctx) msgChan = make(chan streaming.Message, 10) // Buffered to prevent deadlock if handleMessage errors.