Skip to content

feat: per-message queue menu (stop current / send now / delete) - #24

Merged
rubenperezrial merged 5 commits into
mainfrom
feat/queue-message-menu
Sep 26, 2026
Merged

rubenperezrial merged 5 commits into
mainfrom
feat/queue-message-menu

Conversation

@rubenperezrial

Copy link
Copy Markdown

What

Tapping a queued-message button (the ❌ N. preview reply-keyboard row) used to drop the message silently. It now opens an inline menu:

  • ⏹ Stop current — aborts the running task keeping the queue intact (new keepQueue option on abortCurrentOperation) and resumes draining.
  • 📨 Send now — promotes the message to the front (promptQueue.moveToFront) and dispatches it immediately, interrupting the running task when busy.
  • 🗑 Delete — explicit removal; this is the previous behavior, now behind a deliberate action.

Also adds the queue inline-menu kind and callback route, i18n keys in all 10 locales, and tests (bun run check green: lint + build + 1860 tests).

Notes

Stacked on #23 (base = feat/project-agent-defaults), which is stacked on #22. Review only the latest commit; GitHub retargets the chain to main as the lower PRs merge and their branches are deleted.

Video messages and video/* documents were rejected as unsupported, so a
walkthrough clip sent to the bot was dropped. They are now downloaded
(<=20 MB, Telegram Bot API limit), saved to the agent upload dir
(LOCAL_VISION_UPLOAD_DIR, same as photos), and the saved path is appended
to the prompt so the agent can process the original file locally (e.g.
extract frames with ffmpeg). Oversize videos get a clear file_too_large
reply before downloading; media groups with videos stay unsupported.
A project can now have a default agent (settings.json `projectAgents`, keyed by worktree) that wins over the global currentAgent for that project.

- resolveProjectAgent / fetchCurrentAgent / getStoredAgent are project-aware
- picking an agent while a project is active stores it for the project only (selectAgentForCurrentProject); without an active project it keeps writing the global setting
- tests cover precedence, fallback, scoping and persistence; PRODUCT.md updated
Tapping a queued-message button used to drop the message silently. It now opens an inline menu:

- Stop current: aborts the running task keeping the queue intact (new `keepQueue` option on abortCurrentOperation) and resumes draining.
- Send now: promotes the message to the front and dispatches it immediately, interrupting the running task when busy.
- Delete: explicit removal, the previous behavior.

Adds the `queue` inline-menu kind and callback route, the moveToFront queue operation, i18n keys in all locales, and tests.
@rubenperezrial
rubenperezrial changed the base branch from feat/project-agent-defaults to main September 26, 2026 18:20
@rubenperezrial
rubenperezrial merged commit 18262be into main Sep 26, 2026
1 check passed
@rubenperezrial
rubenperezrial deleted the feat/queue-message-menu branch September 26, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant