Conversation
Introduce attach_file capability: adds a new AttachFileTool (tools/AttachFileTool.js) to upload local files into the chat input by injecting a File via DataTransfer into a hidden <input type=file>. Registers the tool in tools/index.js and exposes attachFile in the JS sandbox (JsRunner) and preload tool list. Adds IPC handler (src/main/ipc.js) to run injection code from main process. Updates types (tools/cuckoo-tools.d.ts) and .gitignore. Enforces a 30MB size limit, MIME guessing, and a 15s upload-detection timeout; returns detailed errors on failures.
Reworked i18n keys (consistent formatting) and added localization for send-delay UI (labels, validation and saved message). Imported and used t() in overlay event handlers; changed send-delay inputs to seconds in the template/CSS and updated save handler to convert seconds→ms, validate and persist to localStorage. Also applied various JS cleanups in overlay/events (quote/style consistency, safer try/catch, DOM id queries) and improved token logging/storage helpers. Minor MCP, window-manager and UI string adjustments to use localized strings.
Add CHANGELOG.md entry for 4.0.25 (2026-09-17). Documents: new attach_file tool (local file attach via DataTransfer, 30 MB limit, MIME detection, JS API attachFile, typings and tool registry, window callback model), Telegram bot "typing" indicator (periodic sendChatAction with IPC handlers), UI change: input send delay now shown in seconds (stored in ms, UI conversion, 0.1 step), i18n for delay messages (ru/en), and overlay layout fix for delay labels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.