Platform Extension MOIM (Minus One Info Message) (#5027)
This commit is contained in:
@@ -261,7 +261,7 @@ fn render_tool_request(req: &ToolRequest, theme: Theme, debug: bool) {
|
||||
"developer__text_editor" => render_text_editor_request(call, debug),
|
||||
"developer__shell" => render_shell_request(call, debug),
|
||||
"dynamic_task__create_task" => render_dynamic_task_request(call, debug),
|
||||
"todo__read" | "todo__write" => render_todo_request(call, debug),
|
||||
"todo__write" => render_todo_request(call, debug),
|
||||
_ => render_default_request(call, debug),
|
||||
},
|
||||
Err(e) => print_markdown(&e.to_string(), theme),
|
||||
@@ -505,13 +505,9 @@ fn render_dynamic_task_request(call: &CallToolRequestParam, debug: bool) {
|
||||
fn render_todo_request(call: &CallToolRequestParam, _debug: bool) {
|
||||
print_tool_header(call);
|
||||
|
||||
// For todo tools, always show the full content without redaction
|
||||
if let Some(args) = &call.arguments {
|
||||
if let Some(Value::String(content)) = args.get("content") {
|
||||
println!("{}: {}", style("content").dim(), style(content).green());
|
||||
} else {
|
||||
// For todo__read, there are no arguments
|
||||
// Just print an empty line for consistency
|
||||
}
|
||||
}
|
||||
println!();
|
||||
|
||||
Reference in New Issue
Block a user