feat(scheduled): retire core Send later doors for the plugin's commands (CLI + MCP) #36
Closed
gabrielvidal
wants to merge 0 commits from
scheduled-doors into main
pull from: scheduled-doors
merge into: gabrielvidal:main
gabrielvidal:main
gabrielvidal:fresh-context-plugin
gabrielvidal:remove-hooks-page
gabrielvidal:palette-plugins
gabrielvidal:linear-projects
gabrielvidal:agent-messaging
gabrielvidal:model-router
gabrielvidal:conv-card-layout
gabrielvidal:ask-more-options
gabrielvidal:agent-limits
gabrielvidal:generic-ui-strings
gabrielvidal:android-push-bridge
gabrielvidal:auto-translate
gabrielvidal:filter-chips
gabrielvidal:plugin-catalog
gabrielvidal:file-viewers
gabrielvidal:plugins-page-rework
gabrielvidal:hub-mcp-plugin
gabrielvidal:translation-plugin
gabrielvidal:cron-jobs-plugin
gabrielvidal:context-skills-plugin
gabrielvidal:files-plugins
gabrielvidal:worker-names
gabrielvidal:details-panel-perf
gabrielvidal:services-plugin-only
gabrielvidal:fix-test-env-leaks
gabrielvidal:bg-shells-plugin
gabrielvidal:feat-commits-plugins
gabrielvidal:fix-branch-line-tag-rows
gabrielvidal:retire-dead-leftovers
gabrielvidal:runner-into-harness-pi
gabrielvidal:retire-tool-proxy
gabrielvidal:new-project-policy-plugin-only
gabrielvidal:guest-jobs-sonnet
gabrielvidal:push-buttons-everywhere
gabrielvidal:mail-send-plugin
gabrielvidal:ui-polish-batch
gabrielvidal:command-palette-plugin
gabrielvidal:keyboard-shortcuts-plugin
gabrielvidal:prompt-shortcuts-plugin
gabrielvidal:matomo-site-grants
gabrielvidal:lab-chrome-plugin
gabrielvidal:performance-plugin
gabrielvidal:whats-new-plugin
gabrielvidal:skills-agents-plugin
gabrielvidal:goals-plugin-only
gabrielvidal:storage-server-side
gabrielvidal:plugin-scheduled-conversations
gabrielvidal:plugin-fences
gabrielvidal:handoff-plugin
gabrielvidal:plugin-commands
gabrielvidal:plugin-speed
gabrielvidal:cleanup-provider-harness
gabrielvidal:plugin-conversation-labels
gabrielvidal:plugin-plan-usage
gabrielvidal:fix-worker-harness-sync
gabrielvidal:plugin-gcloud-reauth
gabrielvidal:feat/plugin-cards-in-thread
gabrielvidal:feat/plugin-proxy-wake
gabrielvidal:unify-subagents-children
gabrielvidal:wave3d-frontend-typed-plugins
gabrielvidal:wave3c-sidecar-strict-plugins
gabrielvidal:wave3a-catalog-accounts-profiles
gabrielvidal:wave3b-pricing-usage-cutover
gabrielvidal:wave1a-typed-plugins
gabrielvidal:wave1b-sidecar-runtime
gabrielvidal:fix-ios-overlay-scroll
gabrielvidal:batch2-work-resources-core
gabrielvidal:batch2-apikeys
gabrielvidal:plugin-blue-green-deploy
gabrielvidal:plugin-ship
gabrielvidal:plugin-project-env
gabrielvidal:plugin-memories
gabrielvidal:plugin-activity
gabrielvidal:plugin-templates
gabrielvidal:plugin-desk-phone
gabrielvidal:batch1-platform
gabrielvidal:plugins-list-view
gabrielvidal:dash-plugins
gabrielvidal:pets-plugin
gabrielvidal:ha-push-channel
gabrielvidal:mail-agents
gabrielvidal:graph-fix
gabrielvidal:graph-plugin
gabrielvidal:services-plugin
gabrielvidal:left-to-do-plugin
gabrielvidal:plugins-gallery
gabrielvidal:home-conv-menu
gabrielvidal:meta-business
gabrielvidal:agy-rdrand
gabrielvidal:bg-lag
gabrielvidal:conv-load-perf
gabrielvidal:askform-instant
gabrielvidal:fix/drawer-menu-done-chip
gabrielvidal:pi-midrun-compaction
gabrielvidal:interrupt-menu-btn
gabrielvidal:authz
gabrielvidal:inkling
gabrielvidal:repo-plugins
gabrielvidal:work-sync
gabrielvidal:leftovers
gabrielvidal:fix/agy-guest-guard
gabrielvidal:feat/model-presets
gabrielvidal:scroll-back
gabrielvidal:feedback-bell
gabrielvidal:feat/movies-tool
gabrielvidal:feat/running-thread-padding
gabrielvidal:feat/drawer-filter-button-card-chat
gabrielvidal:burn-rate
gabrielvidal:guest-install
gabrielvidal:guest-usage
gabrielvidal:guest-palette
gabrielvidal:guest-form-links
gabrielvidal:form-open-buttons
gabrielvidal:clarifier-lean
gabrielvidal:auto-archive
gabrielvidal:guests-profile
gabrielvidal:conv-motion
gabrielvidal:share-target
gabrielvidal:terminal-sync
gabrielvidal:work-context-past
gabrielvidal:work-context-brief
gabrielvidal:enroll-codes
gabrielvidal:open-image-file
gabrielvidal:worker-uploads
gabrielvidal:conv-drawer-search
gabrielvidal:stack-motion-v3
gabrielvidal:notif-stack-fixes
gabrielvidal:home-motion
gabrielvidal:i18n-fr
gabrielvidal:local-electricity-cost
gabrielvidal:cache-pill-thread
gabrielvidal:cache-scenarios
gabrielvidal:fresh-start
gabrielvidal:msg-select
gabrielvidal:shortcuts-setup
gabrielvidal:ui-0-40-3
gabrielvidal:outbox-landing
gabrielvidal:resume-scope
gabrielvidal:conv-filter-range
gabrielvidal:fix-subagent-form-session
gabrielvidal:ask-form-integration
gabrielvidal:form-visual-options
gabrielvidal:watcher-perf
gabrielvidal:last-msg-summary
gabrielvidal:secret-fields
gabrielvidal:commit-review
gabrielvidal:summary-mode-fixes
gabrielvidal:service-tag-parser
gabrielvidal:clarifier
gabrielvidal:fetch-diet-2
gabrielvidal:fetch-diet
gabrielvidal:conv-look
gabrielvidal:pwa-links
gabrielvidal:tool-widgets
gabrielvidal:worker-autoupdate
gabrielvidal:usage-rings
gabrielvidal:opencode-harness
gabrielvidal:notif-diet
gabrielvidal:conv-resources
gabrielvidal:scheduled-tasks
gabrielvidal:profiles
gabrielvidal:notify-exact-cost
gabrielvidal:usage-measuring
gabrielvidal:guest-projects
gabrielvidal:usage-calibration
gabrielvidal:account-switch
gabrielvidal:multiuser-improve
gabrielvidal:form-groups
gabrielvidal:multiuser
gabrielvidal:motion-reel
gabrielvidal:dashboards-fixes
gabrielvidal:split-big-files
gabrielvidal:held-regex
gabrielvidal:subagent-interrupts
gabrielvidal:form-html
gabrielvidal:tokunia-video
gabrielvidal:settings-uniform
gabrielvidal:worker-ask-fix
gabrielvidal:worker-generic-mac
gabrielvidal:runner-shortcuts
gabrielvidal:notify-unify
gabrielvidal:perf-list-cache
gabrielvidal:mac-worker
gabrielvidal:model-switch
gabrielvidal:pipeline-paths
gabrielvidal:multi-account
gabrielvidal:feature-flags
gabrielvidal:qwen38-support
gabrielvidal:url-prompt
gabrielvidal:running-pages
gabrielvidal:homelab-tag
gabrielvidal:root-project
gabrielvidal:or-models
gabrielvidal:deploying-loader
gabrielvidal:worktree-diff
gabrielvidal:conv-tags
gabrielvidal:tags-page
gabrielvidal:agents-page
gabrielvidal:icon-picker-shortcuts
gabrielvidal:conv-cta
gabrielvidal:stamp-refine
gabrielvidal:post-task-cache
gabrielvidal:post-tidy-completed
gabrielvidal:form-badge
gabrielvidal:hooks-delay-seconds
gabrielvidal:cost-dashboard
gabrielvidal:plan-forms
gabrielvidal:form-mobile
gabrielvidal:guidelines-dag
gabrielvidal:skills-view
gabrielvidal:navbar-hold
gabrielvidal:spawnbox-status
gabrielvidal:hold-editable-expand
gabrielvidal:drawer-transparent
gabrielvidal:hold-fix
gabrielvidal:hold-editable
gabrielvidal:charroll-bump
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
gabrielvidal (Gabriel Vidal)
Clear assignees
No Assignees
gabrielvidal
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gabrielvidal/ai-agent#36
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Merge after #37 (branch based on cron-jobs-plugin).
Summary
Send later became the
scheduled-conversationsplugin on 2026-11-26, but core kept its doors:/api/scheduled*, the CLI'sai-agent later/scheduled/unschedule, and the MCP'sschedule_conversation/cancel_scheduled/browse kind=scheduled. Gabriel decided (formcron-scheduled-in-the-cli-and-mcp_x4nk83) to remove them and route everything through the plugin's own commands, each with"mcp": true. Connections bound to a worker can't schedule anymore: only Full does (the owner's own CLI, or an unbound connection). The core keeps the week's budget reader (op: upcoming) and the stopped-run card's Resume at…. The plugin PR is the companion: gabrielvidal/ai-agent-pluginsscheduled-doors.Key changes
backend/plugins/schedule_bridge.py: the router and its/api/scheduled*routes are gone. What remains is the provider lookup,run_opandupcoming(budget).main.pyno longer mounts it.backend/schemas/scheduled.pydeleted, andfrontend/openapi.json+src/generatedregenerated (only deletions).runs.schedulepermission is removed (it had no route left; stored roles drop unknown ids throughcatalog.clean);authz/routes.py;matrix.golden.txtis regenerated;worker.read/worker.runlose it;mock/rolesCatalog.jsonis regenerated.workers/bound.py: the docstring no longer says bound connections schedule. A bound connection has noplugins.use, so it gets no plugin actions and no plugin tools.cli/ai_agent.py:later/scheduled/unscheduleare gone. They are not aliased: each one now only prints the plugin command that replaces it and exits 2, the wayai-agent servicesdoes. The scheduling section (parse_when) is gone too.cli/mcp_tools.py:schedule_conversation,cancel_scheduledandbrowsekindscheduledare removed;schedulegroup is removed (GROUPS,mcpserver/store.pydefaults, the AI apps page label), and stored settings drop it through the existing intersection;WORKER_TOOLS/WORKER_KINDSare trimmed.cli/mcp_server.py: the instructions now name the plugin tools."conversation": true:plugins/commands.py.cli/plugin_commands.resolve_conversationsturns any spelling (a session id, a ≥6-char prefix, a conversation id or a viewer link) into a session id before calling the action. This is the old CLI'sresolve()..to$CLAUDE_SESSION_ID; the MCP refuses..add --to .keeps parity withai-agent later … --to ..conversationarg, the provider and commands notes), docs/mcp.md, docs/permissions.md, docs/fresh-context.md.scripts/fresh-context-calibration.pynow reads the plugin's store, plus the.migratedcopy.test_worker_boundchecks that a bound connection (run or read) gets a 403 on the plugin's actions and its commands catalogue;test_plugin_schedulechecks that the door is gone;test_mcpchecks that the old tools are gone and that a bound connection has noplugin_*tools and nobrowse scheduled;test_plugin_commandscovers theconversationarg;., a viewer link, a missing session, the MCP prefix resolution and the.refusal.Key decisions
conversation: trueas a generic arg type rather than a header or plugin-specific code. Core still names no plugin. The plugin can't see the caller's session, but the CLI can. An older hub ignores the key, and the plugin then refuses.with a clear message.runs.schedulepermission: a route permission with no routes failstest_every_route_permission_is_in_the_catalog. The plugin's actions areownerOnlyanyway.scheduleMCP group: it would be an empty switch. Plugin tools go inread/run.ai-agent servicesprecedent, so a stale habit in an agent prompt gets a clear way forward.Changelog
ai-agent plugin scheduled-conversations add|ls|show|cancel|startand the MCP toolsplugin_scheduled-conversations_*.ai-agent later/scheduled/unschedule, the MCPschedule_conversation/cancel_scheduled/browse scheduled, and the Schedule tool group in Settings → AI apps.Test notes
test_typed_plugins::test_records_carry_kindfails identically on main.cli/with pytest: 117 passed. Vitest: 1104/1105 (FreshContextCacheExpiredNotice, already failing on main).tscclean,npm run buildOK.ai-agent plugin scheduled-conversations add "…" --in 2h,--model qwen(→ pi),--to .,--to <prefix>,ls,cancel,show(404 after cancel);plugin_scheduled-conversations_*tools and none of the old three;.over MCP is refused;/api/scheduledPOST gets a 405, and GET falls through to the SPA shell;op: upcomingstill answers for the budget;scheduled-conversationsplugin to 1.1.0 when this deploys. It adds themodels.readcapability, so it needs re-approval, and every command becomes MCP. Merge the homelab PR at the same time: its cron agents (goal-keeper, tag-tuner, backup-audit) call the new command.cron-jobs-plugin(2026-11-28): the conflicts in CLAUDE.md,backend/main.py,cli/ai_agent.py,cli/mcp_server.py,cli/mcp_tools.py,cli/test_mcp_tools.py, docs/mcp.md and AiApps.tsx were resolved so that both the cron MCP tools /browse cron(#37) and the scheduled ones (this PR) are gone. The MCP groups are now read · run · agents.frontend/openapi.json,src/generated,matrix.golden.txtandmock/rolesCatalog.jsonwere regenerated from the rebased tree (only #37's docstrings moved; the golden matrix is unchanged).test_typed_plugins::test_records_carry_kind, which also fails on main);cli/117 passed;tscclean.When
hub-mcp-pluginis rebased onto this (don't merge as is)ai-agenthub-mcp-plugin:cli/ai_agent.py: dropcmd_later/cmd_scheduled/cmd_unschedule+ their parsers (this branch replaced them withSCHEDULED_MOVEDpointers), andparse_when/ the# ── schedulingsection (_DUR_RE/_DUR_Snow sit above_since).cli/test_ai_agent.py: thelater/scheduledtests.backend/main.py: theplugins.schedule_bridge.routermount;backend/test_worker_bound.py'stest_scheduled_turns_are_passed_on_as_that_worker/test_without_the_plugin_nothing_is_scheduled./api/scheduled*stays as a thin door…" paragraph.plugins.use); Read / Run must not.ai-agent-pluginshub-mcp(plugins/hub-mcp/):handlers/hubmcp_tools.py:schedule_conversation/cancel_scheduledtools;"scheduled"fromBROWSE_KINDS/WORKER_KINDSand the_rowsbranch;"schedule"fromGROUPS;README.md: thescheduletable row.test_hub_mcp_plugin.py(groups["read","run","schedule","agents"],tools["schedule"]),test_hub_mcp_tools.py(the schedule group /schedule_conversationtests),test_hub_mcp_endpoint.py(schedule_conversation/cancel_scheduledassertions).resolve_conversations(conversationargs) if it re-implementscall_tool.🤖 Generated with Claude Code
Screenshots
210bdef985to2768941145Merged into
mainas98ecb63bby the auto-ship batch https://ai-agent.lab.gabvdl.xyz/conversation/01a22324-ffa9-78f0-999d-dff18a148ad0.Pull request closed