Remove 'Task: ' prefix from user messages

The prefix was causing duplication when users typed 'Task: ...' themselves,
resulting in '📋 Task: Task: ...' in context dumps.

User messages are now stored as-is without any prefix.
This commit is contained in:
Dhanji R. Prasanna
2026-01-20 21:53:28 +05:30
parent 2eb9f2e67c
commit 07c0bf1e39

View File

@@ -794,7 +794,7 @@ impl<W: UiWriter> Agent<W> {
// Add user message to context window
let mut user_message = {
let provider = self.providers.get(None)?;
let content = format!("Task: {}", description);
let content = description.to_string();
// Apply cache control if provider supports it
if let Some(cache_config) = self.get_provider_cache_control() {