Skip to content

Commit c4d86be

Browse files
committed
merge main
2 parents 079bbc8 + 2f1ba3b commit c4d86be

File tree

13 files changed

+2048
-406
lines changed

13 files changed

+2048
-406
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["Amazon Q CLI Team ([email protected])", "Chay Nabors (nabochay@amazon
88
edition = "2024"
99
homepage = "https://aws.amazon.com/q/"
1010
publish = false
11-
version = "1.16.2"
11+
version = "1.16.3"
1212
license = "MIT OR Apache-2.0"
1313

1414
[workspace.dependencies]
@@ -129,7 +129,7 @@ winnow = "=0.6.2"
129129
winreg = "0.55.0"
130130
schemars = "1.0.4"
131131
jsonschema = "0.30.0"
132-
rmcp = { version = "0.6.3", features = ["client", "transport-sse-client-reqwest", "reqwest", "transport-streamable-http-client-reqwest", "transport-child-process", "tower", "auth"] }
132+
rmcp = { version = "0.7.0", features = ["client", "transport-sse-client-reqwest", "reqwest", "transport-streamable-http-client-reqwest", "transport-child-process", "tower", "auth"] }
133133

134134
[workspace.lints.rust]
135135
future_incompatible = "warn"

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use crossterm::{
1212
};
1313
use dialoguer::Select;
1414

15-
use crate::cli::chat::conversation::format_tool_spec;
1615
use crate::cli::chat::{
1716
ChatError,
1817
ChatSession,
@@ -163,16 +162,13 @@ async fn select_experiment(os: &mut Os, session: &mut ChatSession) -> Result<Opt
163162
.await
164163
.map_err(|e| ChatError::Custom(format!("Failed to update experiment setting: {e}").into()))?;
165164

166-
// Reload tools to reflect the experiment change
167-
let tools = session
165+
// Reload built-in tools to reflect the experiment change while preserving MCP tools
166+
session
168167
.conversation
169-
.tool_manager
170-
.load_tools(os, &mut session.stderr)
168+
.reload_builtin_tools(os, &mut session.stderr)
171169
.await
172170
.map_err(|e| ChatError::Custom(format!("Failed to update tool spec: {e}").into()))?;
173171

174-
session.conversation.tools = format_tool_spec(tools);
175-
176172
let status_text = if new_state { "enabled" } else { "disabled" };
177173

178174
queue!(

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub mod model;
1212
pub mod persist;
1313
pub mod profile;
1414
pub mod prompts;
15+
pub mod reply;
1516
pub mod subscribe;
1617
pub mod tangent;
1718
pub mod todos;
@@ -32,6 +33,7 @@ use model::ModelArgs;
3233
use persist::PersistSubcommand;
3334
use profile::AgentSubcommand;
3435
use prompts::PromptsArgs;
36+
use reply::ReplyArgs;
3537
use tangent::TangentArgs;
3638
use todos::TodoSubcommand;
3739
use tools::ToolsArgs;
@@ -73,6 +75,8 @@ pub enum SlashCommand {
7375
/// Open $EDITOR (defaults to vi) to compose a prompt
7476
#[command(name = "editor")]
7577
PromptEditor(EditorArgs),
78+
/// Open $EDITOR with the most recent assistant message quoted for reply
79+
Reply(ReplyArgs),
7680
/// Summarize the conversation to free up context space
7781
Compact(CompactArgs),
7882
/// View tools and permissions
@@ -147,6 +151,7 @@ impl SlashCommand {
147151
Self::Context(args) => args.execute(os, session).await,
148152
Self::Knowledge(subcommand) => subcommand.execute(os, session).await,
149153
Self::PromptEditor(args) => args.execute(session).await,
154+
Self::Reply(args) => args.execute(session).await,
150155
Self::Compact(args) => args.execute(os, session).await,
151156
Self::Tools(args) => args.execute(session).await,
152157
Self::Issue(args) => {
@@ -191,6 +196,7 @@ impl SlashCommand {
191196
Self::Context(_) => "context",
192197
Self::Knowledge(_) => "knowledge",
193198
Self::PromptEditor(_) => "editor",
199+
Self::Reply(_) => "reply",
194200
Self::Compact(_) => "compact",
195201
Self::Tools(_) => "tools",
196202
Self::Issue(_) => "issue",

0 commit comments

Comments
 (0)