Remove final_output tool - let summaries stream naturally
- Remove final_output from tool definitions, dispatch, and misc tools - Update system prompts to request summaries as regular markdown text - Remove print_final_output from UiWriter trait and all implementations - Remove final_output handling from agent core logic - Rename final_output_summary → summary in session continuation - Delete final_output test files - Update tool count tests (12→11, 27→26) This allows LLM summaries to stream through the markdown formatter for a more natural, responsive user experience instead of buffering everything into a tool call.
This commit is contained in:
@@ -37,11 +37,6 @@ pub async fn dispatch_tool<W: UiWriter>(
|
||||
"todo_write" => todo::execute_todo_write(tool_call, ctx).await,
|
||||
|
||||
// Miscellaneous tools
|
||||
"final_output" => {
|
||||
let result = misc::execute_final_output(tool_call, ctx).await?;
|
||||
// Note: Session continuation saving is handled by the caller
|
||||
Ok(result)
|
||||
}
|
||||
"take_screenshot" => misc::execute_take_screenshot(tool_call, ctx).await,
|
||||
"code_coverage" => misc::execute_code_coverage(tool_call, ctx).await,
|
||||
"code_search" => misc::execute_code_search(tool_call, ctx).await,
|
||||
|
||||
Reference in New Issue
Block a user