IO-aware eval for server dispatch + compile-modules timeout bump
sx_server.ml: the "eval" command now uses cek_run_with_io instead of raw eval_expr. This handles import suspensions during eval-blob (needed for .sx files with define-library/import wrappers). compile-modules.js: timeout bumped 5min → 10min for sxbc compilation with define-library overhead. 2608/2608 tests passing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1030,7 +1030,9 @@ let rec dispatch env cmd =
|
||||
(try
|
||||
let exprs = Sx_parser.parse_all src in
|
||||
let result = List.fold_left (fun _acc expr ->
|
||||
Sx_ref.eval_expr expr (Env env)
|
||||
(* Use IO-aware eval to handle import suspensions *)
|
||||
let state = Sx_ref.make_cek_state expr (Env env) (List []) in
|
||||
cek_run_with_io state
|
||||
) Nil exprs in
|
||||
(* Use ok-raw with natural list serialization — no (list ...) wrapping.
|
||||
This preserves the SX structure for Python to parse back. *)
|
||||
|
||||
Reference in New Issue
Block a user