From fb6d0b43fadd455e99ca70619add437945b7a0d4 Mon Sep 17 00:00:00 2001 From: tanzhenxin Date: Fri, 21 Nov 2025 15:42:17 +0800 Subject: [PATCH] feat: change shortcut for subagent execution display --- .../subagents/runtime/AgentExecutionDisplay.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/cli/src/ui/components/subagents/runtime/AgentExecutionDisplay.tsx b/packages/cli/src/ui/components/subagents/runtime/AgentExecutionDisplay.tsx index 9bd9a812f..a18705913 100644 --- a/packages/cli/src/ui/components/subagents/runtime/AgentExecutionDisplay.tsx +++ b/packages/cli/src/ui/components/subagents/runtime/AgentExecutionDisplay.tsx @@ -99,13 +99,13 @@ export const AgentExecutionDisplay: React.FC = ({ data.toolCalls && data.toolCalls.length > MAX_TOOL_CALLS; if (hasMoreToolCalls || hasMoreLines) { - return 'Press ctrl+r to show less, ctrl+e to show more.'; + return 'Press ctrl+e to show less, ctrl+f to show more.'; } - return 'Press ctrl+r to show less.'; + return 'Press ctrl+e to show less.'; } if (displayMode === 'verbose') { - return 'Press ctrl+e to show less.'; + return 'Press ctrl+f to show less.'; } return ''; @@ -114,13 +114,13 @@ export const AgentExecutionDisplay: React.FC = ({ // Handle keyboard shortcuts to control display mode useKeypress( (key) => { - if (key.ctrl && key.name === 'r') { - // ctrl+r toggles between compact and default + if (key.ctrl && key.name === 'e') { + // ctrl+e toggles between compact and default setDisplayMode((current) => current === 'compact' ? 'default' : 'compact', ); - } else if (key.ctrl && key.name === 'e') { - // ctrl+e toggles between default and verbose + } else if (key.ctrl && key.name === 'f') { + // ctrl+f toggles between default and verbose setDisplayMode((current) => current === 'default' ? 'verbose' : 'default', ); @@ -157,7 +157,7 @@ export const AgentExecutionDisplay: React.FC = ({ {data.toolCalls.length > 1 && !data.pendingConfirmation && ( - +{data.toolCalls.length - 1} more tool calls (ctrl+r to + +{data.toolCalls.length - 1} more tool calls (ctrl+e to expand)