mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 15:31:27 +00:00
feat: add attachment ui
This commit is contained in:
parent
9a3e0bb72b
commit
aba4abf6ad
6 changed files with 161 additions and 36 deletions
|
|
@ -421,7 +421,7 @@ export async function cleanupOldClipboardImages(
|
|||
) {
|
||||
const filePath = path.join(tempDir, file);
|
||||
const stats = await fs.stat(filePath);
|
||||
if (stats.mtimeMs < oneHourAgo) {
|
||||
if (stats.atimeMs < oneHourAgo) {
|
||||
await fs.unlink(filePath);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue