My agentic slop goes here. Not intended for anyone else!

more

Changed files
+2 -2
stack
zulip
lib
zulip_bot
+2 -2
stack/zulip/lib/zulip_bot/lib/bot_storage.ml
···
(* Helper to encode storage data as form-encoded body for the API *)
let encode_storage_update keys_values =
-
(* Build the storage object wrapped in "storage" field as per API *)
+
(* Build the storage object as JSON - the API expects storage={"key": "value"} *)
let storage_obj =
List.map (fun (k, v) -> (k, `String v)) keys_values
in
-
let json_obj = `O [("storage", `O storage_obj)] in
+
let json_obj = `O storage_obj in
(* Convert to JSON string using Ezjsonm *)
let json_str = Ezjsonm.to_string json_obj in