Skip to content

Commit 80987c0

Browse files
authored
fix issue url and default agent name (#3361)
* fix issue url and default agent name * update agent name to kiro-default
1 parent ea21e84 commit 80987c0

File tree

13 files changed

+21
-29
lines changed

13 files changed

+21
-29
lines changed

crates/agent/src/agent/consts.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/// Name of the default agent.
2-
pub const DEFAULT_AGENT_NAME: &str = "q_cli_default";
1+
pub const DEFAULT_AGENT_NAME: &str = "kiro_default";
32

43
pub const MAX_CONVERSATION_STATE_HISTORY_LEN: usize = 500;
54

crates/chat-cli/src/cli/agent/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ use crate::cli::agent::hook::{
6060
Hook,
6161
HookTrigger,
6262
};
63+
use crate::constants::DEFAULT_AGENT_NAME;
6364
use crate::database::settings::Setting;
6465
use crate::os::Os;
6566
use crate::theme::StyledText;
@@ -71,8 +72,6 @@ use crate::util::{
7172
paths,
7273
};
7374

74-
pub const DEFAULT_AGENT_NAME: &str = "q_cli_default";
75-
7675
#[derive(Debug, Error)]
7776
pub enum AgentConfigError {
7877
#[error("Json supplied at {} is invalid: {}", path.display(), error)]

crates/chat-cli/src/cli/chat/cli/clear.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ impl ClearArgs {
2929
"\nAre you sure? This will erase the conversation history and context from hooks for the current session. "
3030
),
3131
style::Print("["),
32-
StyledText::success_fg(),
32+
StyledText::current_item_fg(),
3333
style::Print("y"),
3434
StyledText::secondary_fg(),
3535
style::Print("/"),
36-
StyledText::success_fg(),
36+
StyledText::current_item_fg(),
3737
style::Print("n"),
3838
StyledText::secondary_fg(),
3939
style::Print("]:\n\n"),

crates/chat-cli/src/cli/chat/cli/tools.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ use crossterm::{
1515
};
1616

1717
use crate::api_client::model::Tool as FigTool;
18-
use crate::cli::agent::{
19-
Agent,
20-
DEFAULT_AGENT_NAME,
21-
};
18+
use crate::cli::agent::Agent;
2219
use crate::cli::chat::consts::{
2320
AGENT_FORMAT_TOOLS_DOC_URL,
2421
DUMMY_TOOL_NAME,
@@ -30,6 +27,7 @@ use crate::cli::chat::{
3027
ChatState,
3128
trust_all_text,
3229
};
30+
use crate::constants::DEFAULT_AGENT_NAME;
3331
use crate::constants::help_text::tools_long_help;
3432
use crate::theme::StyledText;
3533
use crate::util::consts::MCP_SERVER_TOOL_DELIMITER;

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ use winnow::stream::Offset;
162162

163163
use super::agent::{
164164
Agent,
165-
DEFAULT_AGENT_NAME,
166165
PermissionEvalResult,
167166
};
168167
use crate::api_client::model::ToolResultStatus;
@@ -191,6 +190,7 @@ use crate::cli::experiment::experiment_manager::{
191190
ExperimentName,
192191
};
193192
use crate::constants::{
193+
DEFAULT_AGENT_NAME,
194194
error_messages,
195195
tips,
196196
};

crates/chat-cli/src/cli/chat/prompt_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::cli::agent::DEFAULT_AGENT_NAME;
1+
use crate::constants::DEFAULT_AGENT_NAME;
22

33
/// Components extracted from a prompt string
44
#[derive(Debug, PartialEq)]

crates/chat-cli/src/cli/chat/tools/delegate.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use strum::{
2323
EnumString,
2424
};
2525

26+
use crate::cli::Agent;
2627
use crate::cli::agent::Agents;
2728
use crate::cli::chat::tools::{
2829
InvokeOutput,
@@ -32,10 +33,7 @@ use crate::cli::experiment::experiment_manager::{
3233
ExperimentManager,
3334
ExperimentName,
3435
};
35-
use crate::cli::{
36-
Agent,
37-
DEFAULT_AGENT_NAME,
38-
};
36+
use crate::constants::DEFAULT_AGENT_NAME;
3937
use crate::os::Os;
4038
use crate::theme::StyledText;
4139
use crate::util::env_var::get_all_env_vars;

crates/chat-cli/src/cli/chat/util/issue.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use anstream::{
55
use crossterm::style::Stylize;
66
use eyre::Result;
77

8+
use crate::constants::GITHUB_ISSUES_URL;
89
use crate::os::Os;
910
use crate::os::diagnostics::Diagnostics;
10-
use crate::util::GITHUB_REPO_NAME;
1111
use crate::util::system_info::is_remote;
1212

1313
const TEMPLATE_NAME: &str = "1_bug_report_template.yml";
@@ -70,10 +70,7 @@ impl IssueCreator {
7070
params.push(("reproduce", warning(t)));
7171
}
7272

73-
let url = url::Url::parse_with_params(
74-
&format!("https://github.com/{GITHUB_REPO_NAME}/issues/new"),
75-
params.iter(),
76-
)?;
73+
let url = url::Url::parse_with_params(GITHUB_ISSUES_URL, params.iter())?;
7774

7875
if is_remote() || crate::util::open::open_url_async(url.as_str()).await.is_err() {
7976
println!("Issue Url: {}", url.as_str().underlined());

crates/chat-cli/src/cli/mcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use eyre::{
2323
use super::agent::{
2424
Agent,
2525
Agents,
26-
DEFAULT_AGENT_NAME,
2726
McpServerConfig,
2827
};
2928
use crate::cli::chat::tool_manager::{
@@ -34,6 +33,7 @@ use crate::cli::chat::tools::custom_tool::{
3433
CustomToolConfig,
3534
default_timeout,
3635
};
36+
use crate::constants::DEFAULT_AGENT_NAME;
3737
use crate::os::Os;
3838
use crate::util::paths::PathResolver;
3939

crates/chat-cli/src/cli/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ use std::io::{
2121
};
2222
use std::process::ExitCode;
2323

24+
pub use agent::Agent;
2425
use agent::AgentArgs;
25-
pub use agent::{
26-
Agent,
27-
DEFAULT_AGENT_NAME,
28-
};
2926
use anstream::println;
3027
pub use chat::ConversationState;
3128
pub use chat::tools::todo::TodoListState;

0 commit comments

Comments
 (0)