Skip to content

feat(settings): support the github scheduling backend - #111

Merged
edenreich merged 1 commit into
mainfrom
feat/github-scheduler-settings
Aug 12, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/github-scheduler-settings

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

Desktop support for the CLI's github scheduling backend (cli#1055 / cli#1056): schedules deployed as Actions workflows in a .routines repo, run via infer-action, conversations pulled back by the daemon's artifact poller.

Closes #110

Changes

  • Config round-trip (backend/src/config.rs): scheduler.backend and scheduler.github.* (repository, pull_requests, artifacts enabled/poll_interval/initial_delay/max_attempts/rate_limit_backoff) added to DesktopConfig, config_from_value, and merge_config, with a round-trip test.
  • New Tauri commands (backend/src/scheduler.rs): github_auth_status (gh installed/authenticated probe, lifted from download.rs) and open_url (http(s)-only, default browser).
  • Settings UI (SettingsView.tsx): Scheduling backend selector (local/github); github options (repository, pull-request mode, artifact pull-back + poll tuning); prerequisites panel with gh auth status, the required Actions secrets (APP_CLIENT_ID, APP_PRIVATE_KEY, provider *_API_KEY - the app never stores secret values), and links to the repo's secrets/actions pages. Shared DEFAULT_CONFIG replaces the two duplicated config literals.
  • Scheduled-jobs strip (Transcript.tsx): "runs on GitHub Actions (UTC)" hint plus a "view runs" link when the github backend is active.

Deploy outcomes (push / PR URL) and cron validation errors already surface in chat via the CLI's schedule tool; pulled-back conversations appear through the existing conversation polling - no desktop changes needed for those acceptance criteria.

Non-jsonl run artifacts (images etc.) are tracked as a CLI follow-up (poller currently extracts only conversation jsonl).

Adds scheduler.backend and scheduler.github.* (repository, pull_requests,
artifacts poll settings) to the desktop config round-trip, a Scheduling
backend selector with github options and a prerequisites panel (gh auth
probe, required Actions secrets, links to repo secrets/actions) in
Settings, and a GitHub Actions (UTC) hint with a runs link on the
scheduled-jobs strip. New Tauri commands: github_auth_status, open_url.

Closes #110
@edenreich

Copy link
Copy Markdown
Contributor Author

@opentask I just released the artifact poller with images, generated files) anything further needed to be done here? use /ponytail:ponytail

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Model: ollama_cloud/deepseek-v4-flash:preview · View Job

I'm cooking...will get back to you soon...

Pull Request

#111

✅ Infer Result: Success

Nothing further needed here.

Traced the image flow end-to-end: CLI poller saves images to local storage → the conversation jsonl references them by local path → desktop's existing parseToolResult → safeImageSrc → <img> pipeline renders them automatically through the same code path that handles locally-generated images. The PR already has the config fields (artifacts.enabled, poll_interval, initial_delay, max_attempts, rate_limit_backoff), their settings UI, and the transcript "view runs" link.

The ponytail: follow-up note in the PR description was tracking a CLI-only gap — now closed on your side. This PR is complete.

Model: ollama_cloud/deepseek-v4-flash:preview · Exit Code: 0 · Duration: 52s

Tokens: 155,156 in · 3,885 out · 159,041 total (5 requests)

Tool calls: 10 total · 100% success rate

Traces
Session: 1786568589-1596e48c

session (headless, success)                                        42.7s
├── chat ollama_cloud/deepseek-v4-flash:preview                     4.1s
│   ╰── POST /v1/chat/completions [inference-gateway]               4.1s
│       ╰── HTTP POST [inference-gateway]                           4.1s [error: *errors.errorString]
│           ╰── POST /proxy/:provider/*path [inference-gateway]     4.1s
│               ╰── HTTP POST [inference-gateway]                   4.1s [error: *errors.errorString]
├── execute_tool Read call_dn8qu2ij                                183µs
├── execute_tool Bash call_9pxeqdte                                  7ms
├── execute_tool Bash call_6jaqdlaq                                  5ms
├── chat ollama_cloud/deepseek-v4-flash:preview                     4.6s
│   ╰── POST /v1/chat/completions [inference-gateway]               4.5s
│       ╰── HTTP POST [inference-gateway]                           4.5s [error: *errors.errorString]
│           ╰── POST /proxy/:provider/*path [inference-gateway]     4.5s
│               ╰── HTTP POST [inference-gateway]                   4.5s [error: *errors.errorString]
├── execute_tool Grep call_a7sl9xl6                                 1.0s
├── execute_tool Bash call_wirl3cfp                                  8ms
├── chat ollama_cloud/deepseek-v4-flash:preview                     6.6s
│   ╰── POST /v1/chat/completions [inference-gateway]               6.6s
│       ╰── HTTP POST [inference-gateway]                           6.6s [error: *errors.errorString]
│           ╰── POST /proxy/:provider/*path [inference-gateway]     6.6s
│               ╰── HTTP POST [inference-gateway]                   6.6s [error: *errors.errorString]
├── execute_tool Grep call_5ksr67ac                                  6ms
├── execute_tool Grep call_74nb9kna                                  2ms
├── chat ollama_cloud/deepseek-v4-flash:preview                    13.5s
│   ╰── POST /v1/chat/completions [inference-gateway]              13.5s
│       ╰── HTTP POST [inference-gateway]                          13.5s [error: *errors.errorString]
│           ╰── POST /proxy/:provider/*path [inference-gateway]    13.5s
│               ╰── HTTP POST [inference-gateway]                  13.5s
├── execute_tool Read call_dj1jdvrd                                196µs
├── execute_tool Read call_ykgwupuh                                335µs
├── execute_tool Read call_qj49ru7c                                158µs
╰── chat ollama_cloud/deepseek-v4-flash:preview                    12.3s
    ╰── POST /v1/chat/completions [inference-gateway]              12.3s
        ╰── HTTP POST [inference-gateway]                          12.3s [error: *errors.errorString]
            ╰── POST /proxy/:provider/*path [inference-gateway]    12.3s
                ╰── HTTP POST [inference-gateway]                  12.3s [error: *errors.errorString]
Stats
Tool Calls

╭──────┬───────┬───────┬───────╮
│ Tool │ Calls │ Fail% │ Avg   │
├──────┼───────┼───────┼───────┤
│ Read │ 4     │ 0%    │ 0ms   │
│ Bash │ 3     │ 0%    │ 7ms   │
│ Grep │ 3     │ 0%    │ 349ms │
╰──────┴───────┴───────┴───────╯

Token Usage

╭────────────────────────────────────────┬────────┬────────┬────────────┬────────┬──────╮
│ Model                                  │ Prompt │ Cached │ Completion │ Total  │ Cost │
├────────────────────────────────────────┼────────┼────────┼────────────┼────────┼──────┤
│ ollama_cloud/deepseek-v4-flash:preview │ 155156 │ 0      │ 3885       │ 159041 │ -    │
╰────────────────────────────────────────┴────────┴────────┴────────────┴────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ headless │ 1        │
╰───────────┴──────────┴──────────╯

Triggered by edenreich · Infer Action · OSS

@edenreich
edenreich merged commit c19c89b into main Aug 12, 2026
1 check passed
@edenreich
edenreich deleted the feat/github-scheduler-settings branch August 12, 2026 21:12
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.15.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Support the github scheduling backend (.routines Actions workflows)

1 participant