pub struct EditorContext {
pub current_response: Option<String>,
pub last_response: Option<String>,
pub previous_prompt: Option<String>,
pub chat_markdown: Option<String>,
pub edited_trailer_recovery: Option<String>,
}Expand description
Conversation context and prompt-editor recovery state appended below the prompt trailer when the user edits the prompt in an external editor.
Fields§
§current_response: Option<String>Response text currently streaming or otherwise in progress, included as read-only context when editing the next prompt.
last_response: Option<String>Most recent completed response text, included as read-only context when editing the next prompt.
previous_prompt: Option<String>Previous submitted prompt text, included as read-only context when editing the next prompt.
chat_markdown: Option<String>Exact Markdown conversation rendered directly below the trailer marker for a history-aware editor invocation.
edited_trailer_recovery: Option<String>Text recovered from a previous edit where the normally ignored trailer section was modified before the editor exited. This is set only when the edited trailer differs from the generated trailer, cleared when the trailer is unchanged or the marker is deleted, rendered below the marker on the next edit, and never promoted into the prompt unless the user manually moves it above the marker.