发布

  • fix: always send full instructions when using the Responses API (#1207)

    frostbyte_neo 发布于 2025-06-03 16:40:19 +00:00

    This fixes a longstanding error in the Rust CLI where codex.rs
    contained an errant is_first_turn check that would exclude the user
    instructions for subsequent "turns" of a conversation when using the
    responses API (i.e., when previous_response_id existed).

    While here, renames Prompt.instructions to Prompt.user_instructions
    since we now have quite a few levels of instructions floating around.
    Also removed an unnecessary use of clone() in
    Prompt.get_full_instructions().

    下载附件