You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Schedule tool cannot create jobs outside channel-driven sessions, which blocks the desktop app (inference-gateway/desktop#83, local scheduling) from using it.
Current behavior:
The tool registers globally when tools.schedule.enabled: true (internal/agent/tools/registry.go), so list/get/update/delete work in any session.
create hard-fails in resolveRouting (internal/agent/tools/schedule.go): the session ID must parse as channel-<name>-<sender> and the channel must be a configured telegram or whatsapp. Desktop/headless sessions use UUID session IDs, so create can never succeed there.
Delivery is mandatory (job.Channel is looked up per fire; a missing channel persists an error), and only Telegram is implemented - there is no local/desktop channel to deliver job output to.
Proposed direction (smallest change): add a desktop/local channel implementation (e.g. writes job output to storage or a local endpoint the desktop app can consume), register it in registerChannels, and allow it in ScheduleTool.channelConfigured. The desktop app would then run its sessions with a channel-desktop-<id> session ID so resolveRouting resolves.
Acceptance Criteria
A session driven by the desktop app (headless/ag-ui) can successfully call Schedulecreate
A local/desktop channel type exists so scheduled job output is deliverable without Telegram/WhatsApp
channelConfigured accepts the new channel type; misconfiguration still surfaces a clear error
Docs (scheduling guide) updated to cover local delivery
All checks pass. Here's a summary of what was done:
Summary
Implemented the local channel for the Schedule tool, enabling the Schedule create operation from desktop/headless sessions.
Changes (5 files, +130 lines)
config/channels.go - Added LocalChannelConfig struct with Enabled bool to ChannelsConfig, plus default value in DefaultChannelsConfig()
internal/services/channels/local.go (new) - Minimal LocalChannel implementing domain.Channel. Writes scheduled-job output as JSON lines to ~/.infer/tmp/schedule-output.jsonl for the desktop app to consume. Start blocks until context cancel (no inbound handling needed); Stop is a no-op
cmd/channels.go - Registers the local channel in registerChannels when cfg.Channels.Local.Enabled is true
internal/agent/tools/schedule.go - Added case "local" to channelConfigured, routing through cfg.Channels.Local.Enabled
docs/scheduling.md - Added local channel setup instructions (YAML config + env var) in the Setup section
Usage
Desktop app sets its session ID to channel-local-<id> and enables the local channel:
# ~/.infer/channels.yamllocal:
enabled: true
or via env: INFER_CHANNELS_LOCAL_ENABLED=true
When a scheduled job fires, the daemon writes each assistant message as a JSONL entry to ~/.infer/tmp/schedule-output.jsonl, where the desktop app can poll or tail it.
Activity
edenreich commentedon Aug 11, 2026
@infer Can you implement this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Aug 11, 2026
Model:
ollama_cloud/deepseek-v4-flash:preview· View JobTodos
Pull Request
#1050
✅ Infer Result: Success
All checks pass. Here's a summary of what was done:
Summary
Implemented the
localchannel for the Schedule tool, enabling theSchedule createoperation from desktop/headless sessions.Changes (5 files, +130 lines)
config/channels.go- AddedLocalChannelConfigstruct withEnabledbool toChannelsConfig, plus default value inDefaultChannelsConfig()internal/services/channels/local.go(new) - MinimalLocalChannelimplementingdomain.Channel. Writes scheduled-job output as JSON lines to~/.infer/tmp/schedule-output.jsonlfor the desktop app to consume.Startblocks until context cancel (no inbound handling needed);Stopis a no-opcmd/channels.go- Registers the local channel inregisterChannelswhencfg.Channels.Local.Enabledis trueinternal/agent/tools/schedule.go- Addedcase "local"tochannelConfigured, routing throughcfg.Channels.Local.Enableddocs/scheduling.md- Added local channel setup instructions (YAML config + env var) in the Setup sectionUsage
Desktop app sets its session ID to
channel-local-<id>and enables the local channel:or via env:
INFER_CHANNELS_LOCAL_ENABLED=trueWhen a scheduled job fires, the daemon writes each assistant message as a JSONL entry to
~/.infer/tmp/schedule-output.jsonl, where the desktop app can poll or tail it.Draft PR: #1050
Model:
ollama_cloud/deepseek-v4-flash:preview· Exit Code:0· Duration: 7m 51sTokens: 7,118,429 in · 20,780 out · 7,139,209 total (53 requests)
Tool calls: 72 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Aug 12, 2026
🎉 This issue has been resolved in version 0.167.0 🎉
The release is available on:
Your semantic-release bot 📦🚀