Skip to content

Commit dba2e96

Browse files
authored
fix(agent): copy change for /context subcommand (#2278)
* copy change for /context subcommand * fixes grammar
1 parent a1fe350 commit dba2e96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ use crate::os::Os;
2929
#[derive(Debug, PartialEq, Subcommand)]
3030
#[command(
3131
before_long_help = "Context rules determine which files are included in your Amazon Q session.
32+
They are derived from the current active agent.
3233
The files matched by these rules provide Amazon Q with additional information
3334
about your project or environment. Adding relevant files helps Q generate
3435
more accurate and helpful responses.
3536
3637
Notes:
3738
• You can add specific files or use glob patterns (e.g., \"*.py\", \"src/**/*.js\")
38-
• Profile rules apply only to the current profile
39-
• Global rules apply across all profiles
40-
• Context is preserved between chat sessions"
39+
• Agent rules apply only to the current agent
40+
• Context changes are NOT preserved between chat sessions. To make these changes permanent, edit the agent config file."
4141
)]
4242
pub enum ContextSubcommand {
4343
/// Display the context rule configuration and matched files
@@ -89,7 +89,7 @@ impl ContextSubcommand {
8989
session.stderr,
9090
style::SetAttribute(Attribute::Bold),
9191
style::SetForegroundColor(Color::Magenta),
92-
style::Print(format!("\n👤 profile ({}):\n", context_manager.current_profile)),
92+
style::Print(format!("\n👤 Agent ({}):\n", context_manager.current_profile)),
9393
style::SetAttribute(Attribute::Reset),
9494
)?;
9595

0 commit comments

Comments
 (0)