kimi-code
kimi-code copied to clipboard
feat(desktop): add external-open actions and fallback for file previews
Problem
On Windows Desktop, file paths in answers do not always offer a quick way to open the file. When the right-side preview cannot handle a file (for example an image, HTML, or MP4), there is no fallback to an installed application, leaving the file effectively stuck in the preview panel.
Environment
- Kimi Code Desktop 1.1.2
- Windows
- Example registered handlers on the device: WPS image viewer for PNG/JPG and Windows Media Player for MP4
Requested behavior
- File paths and preview panels should expose Open externally and Reveal in folder actions.
- If the built-in preview is unsupported or fails, offer Open with system default app.
- If no default handler is available, offer the operating system Open with / Choose another app flow.
- HTML should allow opening in the default browser; media should allow opening in its registered player/viewer.
Using operating-system file associations would avoid maintaining an application database and would respect the user's existing software choices.