Skip to main content

prepend_protocol_refresh_reminder

Function prepend_protocol_refresh_reminder 

Source
pub fn prepend_protocol_refresh_reminder(
    prompt: &str,
    profile: ProtocolRequestProfile,
    workspace_root: &Path,
) -> String
Expand description

Prepends a compact refresh reminder for providers that already received the full instruction contract in the active context.

The reminder repeats the workspace-isolation boundary for workspace_root so long-lived provider contexts keep the rule even after provider-side context compaction.