We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e4c257 commit 8b88541Copy full SHA for 8b88541
crates/chat-cli/src/cli/chat/cli/tools.rs
@@ -18,7 +18,10 @@ use crossterm::{
18
};
19
20
use crate::api_client::model::Tool as FigTool;
21
-use crate::cli::agent::Agent;
+use crate::cli::agent::{
22
+ Agent,
23
+ DEFAULT_AGENT_NAME,
24
+};
25
use crate::cli::chat::consts::{
26
AGENT_FORMAT_TOOLS_DOC_URL,
27
DUMMY_TOOL_NAME,
@@ -371,7 +374,7 @@ impl ToolsSubcommand {
371
374
.conversation
372
375
.agents
373
376
.get_active()
- .is_some_and(|a| a.name.as_str() == "default")
377
+ .is_some_and(|a| a.name.as_str() == DEFAULT_AGENT_NAME)
378
{
379
// We only want to reset the tool permission and nothing else
380
if let Some(active_agent) = session.conversation.agents.get_active_mut() {
0 commit comments