mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
feat: change shortcut for subagent execution display
This commit is contained in:
@@ -99,13 +99,13 @@ export const AgentExecutionDisplay: React.FC<AgentExecutionDisplayProps> = ({
|
|||||||
data.toolCalls && data.toolCalls.length > MAX_TOOL_CALLS;
|
data.toolCalls && data.toolCalls.length > MAX_TOOL_CALLS;
|
||||||
|
|
||||||
if (hasMoreToolCalls || hasMoreLines) {
|
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') {
|
if (displayMode === 'verbose') {
|
||||||
return 'Press ctrl+e to show less.';
|
return 'Press ctrl+f to show less.';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
@@ -114,13 +114,13 @@ export const AgentExecutionDisplay: React.FC<AgentExecutionDisplayProps> = ({
|
|||||||
// Handle keyboard shortcuts to control display mode
|
// Handle keyboard shortcuts to control display mode
|
||||||
useKeypress(
|
useKeypress(
|
||||||
(key) => {
|
(key) => {
|
||||||
if (key.ctrl && key.name === 'r') {
|
if (key.ctrl && key.name === 'e') {
|
||||||
// ctrl+r toggles between compact and default
|
// ctrl+e toggles between compact and default
|
||||||
setDisplayMode((current) =>
|
setDisplayMode((current) =>
|
||||||
current === 'compact' ? 'default' : 'compact',
|
current === 'compact' ? 'default' : 'compact',
|
||||||
);
|
);
|
||||||
} else if (key.ctrl && key.name === 'e') {
|
} else if (key.ctrl && key.name === 'f') {
|
||||||
// ctrl+e toggles between default and verbose
|
// ctrl+f toggles between default and verbose
|
||||||
setDisplayMode((current) =>
|
setDisplayMode((current) =>
|
||||||
current === 'default' ? 'verbose' : 'default',
|
current === 'default' ? 'verbose' : 'default',
|
||||||
);
|
);
|
||||||
@@ -157,7 +157,7 @@ export const AgentExecutionDisplay: React.FC<AgentExecutionDisplayProps> = ({
|
|||||||
{data.toolCalls.length > 1 && !data.pendingConfirmation && (
|
{data.toolCalls.length > 1 && !data.pendingConfirmation && (
|
||||||
<Box flexDirection="row" paddingLeft={4}>
|
<Box flexDirection="row" paddingLeft={4}>
|
||||||
<Text color={theme.text.secondary}>
|
<Text color={theme.text.secondary}>
|
||||||
+{data.toolCalls.length - 1} more tool calls (ctrl+r to
|
+{data.toolCalls.length - 1} more tool calls (ctrl+e to
|
||||||
expand)
|
expand)
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user