Skip to content

Commit 83fc321

Browse files
authored
Merge pull request #1090 from QwenLM/feat/logger-enhancement
Improve Usage Statistics by Moving Key Snapshot Fields into Properties
2 parents 48b7754 + f2439f8 commit 83fc321

File tree

4 files changed

+77
-80
lines changed

4 files changed

+77
-80
lines changed

packages/cli/src/ui/components/InputPrompt.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ describe('InputPrompt', () => {
19511951
unmount();
19521952
});
19531953

1954-
it('expands and collapses long suggestion via Right/Left arrows', async () => {
1954+
it.skip('expands and collapses long suggestion via Right/Left arrows', async () => {
19551955
props.shellModeActive = false;
19561956
const longValue = 'l'.repeat(200);
19571957

packages/cli/src/ui/components/subagents/runtime/AgentExecutionDisplay.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ export const AgentExecutionDisplay: React.FC<AgentExecutionDisplayProps> = ({
9999
data.toolCalls && data.toolCalls.length > MAX_TOOL_CALLS;
100100

101101
if (hasMoreToolCalls || hasMoreLines) {
102-
return 'Press ctrl+r to show less, ctrl+e to show more.';
102+
return 'Press ctrl+e to show less, ctrl+f to show more.';
103103
}
104-
return 'Press ctrl+r to show less.';
104+
return 'Press ctrl+e to show less.';
105105
}
106106

107107
if (displayMode === 'verbose') {
108-
return 'Press ctrl+e to show less.';
108+
return 'Press ctrl+f to show less.';
109109
}
110110

111111
return '';
@@ -114,13 +114,13 @@ export const AgentExecutionDisplay: React.FC<AgentExecutionDisplayProps> = ({
114114
// Handle keyboard shortcuts to control display mode
115115
useKeypress(
116116
(key) => {
117-
if (key.ctrl && key.name === 'r') {
118-
// ctrl+r toggles between compact and default
117+
if (key.ctrl && key.name === 'e') {
118+
// ctrl+e toggles between compact and default
119119
setDisplayMode((current) =>
120120
current === 'compact' ? 'default' : 'compact',
121121
);
122-
} else if (key.ctrl && key.name === 'e') {
123-
// ctrl+e toggles between default and verbose
122+
} else if (key.ctrl && key.name === 'f') {
123+
// ctrl+f toggles between default and verbose
124124
setDisplayMode((current) =>
125125
current === 'default' ? 'verbose' : 'default',
126126
);
@@ -157,7 +157,7 @@ export const AgentExecutionDisplay: React.FC<AgentExecutionDisplayProps> = ({
157157
{data.toolCalls.length > 1 && !data.pendingConfirmation && (
158158
<Box flexDirection="row" paddingLeft={4}>
159159
<Text color={theme.text.secondary}>
160-
+{data.toolCalls.length - 1} more tool calls (ctrl+r to
160+
+{data.toolCalls.length - 1} more tool calls (ctrl+e to
161161
expand)
162162
</Text>
163163
</Box>

packages/core/src/telemetry/qwen-logger/qwen-logger.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ describe('QwenLogger', () => {
286286
event_type: 'action',
287287
type: 'ide',
288288
name: 'ide_connection',
289-
snapshots: JSON.stringify({
289+
properties: {
290290
connection_type: IdeConnectionType.SESSION,
291-
}),
291+
},
292292
}),
293293
);
294294
});
@@ -307,8 +307,10 @@ describe('QwenLogger', () => {
307307
type: 'overflow',
308308
name: 'kitty_sequence_overflow',
309309
subtype: 'kitty_sequence_overflow',
310-
snapshots: JSON.stringify({
310+
properties: {
311311
sequence_length: 1024,
312+
},
313+
snapshots: JSON.stringify({
312314
truncated_sequence: 'truncated...',
313315
}),
314316
}),

0 commit comments

Comments
 (0)