fix: address PR review feedback for verbose/compact mode toggle

- Change default verboseMode to true (preserving current UX behavior)
- Fix compact mode hiding active shell output (add forceShowResult + isUserInitiated)
- Fix asymmetric frozen snapshot (freeze on ANY toggle during streaming)
- Fix copyright header in VerboseModeContext.tsx (Google LLC → Qwen)
- Add proper translations for all 6 locales (de/ja/pt/ru/zh/en)
- Rewrite CompactToolGroupDisplay with bordered box, i18n hint, shell detection
- Fix Pending status color (theme.text.secondary instead of theme.status.success)
- Fix description casing: ctrl+o → Ctrl+O
- Add explanatory comment for useCallback settings dependency

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chiga0 2026-04-04 20:43:06 +08:00
parent b9c17d13ff
commit 6fd29b698b
18 changed files with 261 additions and 27 deletions

View file

@ -143,6 +143,7 @@ describe('useShellCommandProcessor', () => {
status: ToolCallStatus.Executing,
}),
],
isUserInitiated: true,
});
const tmpFile = path.join(os.tmpdir(), 'shell_pwd_abcdef.tmp');
const wrappedCommand = `{ ls -l; }; __code=$?; pwd > "${tmpFile}"; exit $__code`;

View file

@ -131,6 +131,7 @@ export const useShellCommandProcessor = (
setPendingHistoryItem({
type: 'tool_group',
tools: [initialToolDisplay],
isUserInitiated: true,
});
let executionPid: number | undefined;
@ -304,6 +305,7 @@ export const useShellCommandProcessor = (
{
type: 'tool_group',
tools: [finalToolDisplay],
isUserInitiated: true,
} as HistoryItemWithoutId,
userMessageTimestamp,
);