From b7b5e13e54095a5dbd3f04ce19e0bccb1d364eaa Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 14 Oct 2026 06:02:22 +0000 Subject: [PATCH] Allow configure() on an idle SDK instance The assert was inverted: it rejected the empty (idle) status its message says is required, so any debug app calling configure() on a fresh instance crashed at startup. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01QZi3f27gbhPqhG91ngbdVe --- lib/src/codelessly.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/codelessly.dart b/lib/src/codelessly.dart index 6cfccad..ca84fe3 100644 --- a/lib/src/codelessly.dart +++ b/lib/src/codelessly.dart @@ -332,7 +332,7 @@ class Codelessly { initErrorLogger(); assert( - status is! CEmpty, + status is CEmpty || status is CConfigured, 'The SDK cannot be configured if it is not idle. ' 'Consider calling [Codelessly.dispose] before reconfiguring.', );