File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -366,13 +366,13 @@ def cursor_ide_chat_to_markdown(
366366 fm_lines = ["---" ]
367367 fm_lines .append (f"log_id: { composer_id } " )
368368 fm_lines .append ("log_type: chat" )
369- fm_lines .append (f' title: " { title . replace ( chr ( 34 ), chr ( 92 ) + chr ( 34 )) } "' )
369+ fm_lines .append (f" title: { json . dumps ( title , ensure_ascii = False ) } " )
370370 fm_lines .append (f"created_at: { datetime .fromtimestamp (created_ms / 1000 ).isoformat ()} " )
371371 fm_lines .append (
372372 f"updated_at: { datetime .fromtimestamp (updated_at / 1000 ).isoformat () if updated_at else datetime .now ().isoformat ()} "
373373 )
374374 fm_lines .append (f"workspace: { ws_slug } " )
375- fm_lines .append (f' workspace_name: " { ws_display_name } "' )
375+ fm_lines .append (f" workspace_name: { json . dumps ( ws_display_name , ensure_ascii = False ) } " )
376376 if model_name and model_name != "default" :
377377 fm_lines .append (f"model: { model_name } " )
378378 fm_lines .append (f"message_count: { len (bubbles )} " )
You can’t perform that action at this time.
0 commit comments