- Add timestampFormat setting to global-settings.ts with enum type
- Update formatTimestamp.ts to accept format parameter (12hour/24hour)
- Add comprehensive tests for 12-hour format (AM/PM display)
- Add time format dropdown in UI Settings when timestamps are enabled
- Update i18n translations for the new setting
Resolves: Issue #10539 - Request for 12hr/24hr time format toggle
Implements Issue #10539 - Adds the ability to display timestamps on chat messages.
Features:
- 24-hour format (14:34)
- Full date for messages from previous days (e.g., "Jan 7, 14:34")
- Configurable on/off toggle in UI Settings
- Timestamps appear on the right side of header rows
- Same styling as other header elements
Files changed:
- packages/types/src/global-settings.ts: Add showTimestamps setting
- src/shared/ExtensionMessage.ts: Add to ExtensionState
- webview-ui/src/context/ExtensionStateContext.tsx: Add state and setter
- webview-ui/src/utils/formatTimestamp.ts: New timestamp formatting utility
- webview-ui/src/components/settings/UISettings.tsx: Add toggle
- webview-ui/src/components/settings/SettingsView.tsx: Pass prop
- webview-ui/src/components/chat/ChatRow.tsx: Display timestamps
- webview-ui/src/i18n/locales/en/settings.json: Translation strings
- webview-ui/src/utils/__tests__/formatTimestamp.spec.ts: Tests
- webview-ui/src/components/settings/__tests__/UISettings.spec.tsx: Update tests
- Delete simpleReadFileTool.ts file
- Delete simple-read-file.ts prompt description file
- Delete single-file-read-models.ts types file
- Remove imports and usage from presentAssistantMessage.ts
- Remove imports and usage from prompts/tools/index.ts
- Remove export from packages/types/src/index.ts
This removes all traces of the legacy single-file read tool implementation that was used for specific models. All models now use the standard read_file tool.
Co-authored-by: Roo Code <roomote@roocode.com>
* feat(types): add defaultToolProtocol: native to providers
- Added supportsNativeTools: true and defaultToolProtocol: native to all chutes models
- Added defaultToolProtocol: native to moonshot models (already had supportsNativeTools)
- Added defaultToolProtocol: native to litellm default model (already had supportsNativeTools)
- Added defaultToolProtocol: native to minimax models (already had supportsNativeTools)
This enables native tool calling by default for these providers, reducing
the number of users falling back to XML tool protocol unnecessarily.
* fix(litellm): merge only native tool defaults with router models
Only merges supportsNativeTools and defaultToolProtocol from litellmDefaultModelInfo,
not prices or other model-specific info that could be incorrect for different models.