Add a Loops tab to see and manage every scheduled loop
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with Sources/SwitchboardApp/ScheduleList.swift and SidePanel.swift to see how per-session schedules are displayed and how ScheduleCaption can be reused. Then inspect sb schedule ls --json and the schedule commands, including how sessions and run history are represented. Done means a Loops tab lists schedules across sessions with the requested details, actions, filters, and attention indicators, while the per-session view stays in sync.
Written by the indexing model from the issue text.
Description
Add a "Loops" tab to the Switchboard app, next to the Inbox, Board and Issues views, where the user can see every loop that's running and manage it: create, edit, pause, resume, run now, and delete.
Today: a loop is an sb schedule: sbd sends a prompt to a session on an interval and keeps it across restarts (#294). The app shows a session's schedules only inside that session (ScheduleList in Sources/SwitchboardApp/ScheduleList.swift, used from SidePanel.swift and a popover). There's no place that lists every loop across sessions, so the user can't tell at a glance which loops exist, whether they ran, or what they did. For example, the Switchboard work loop on the operator ("keep 5 sessions working on issues, most important first") is visible only by opening the operator, or with sb schedule ls. An earlier loop that ran on chained date waits stopped without anyone noticing.
What the tab should show, one row per schedule across all sessions:
- the session it runs in, as a link to that session, and the prompt (first line, with the full text on hover or expand);
- the interval, the next run time, and whether it's paused;
- the last run: when, and whether it was sent, skipped (the session was busy), or failed, with the error;
- a short history of recent runs, and a link to each run's reply in the session's transcript, so the user can see what each tick did.
Actions:
- New Loop…: pick a session (the operator by default, or any session or Manager conversation), an interval, and a prompt. It runs
sb scheduleunderneath. - Edit the interval or prompt of an existing loop.
- Pause, Resume, Run now, and Delete, the same as
sb schedule pause|resume|rm, plus a new "run now" if sbd doesn't have one yet. - Sort and filter by session, and put loops whose last run failed, or that haven't run when due, at the top with the attention color.
Also:
- A badge on the tab when a loop failed or is overdue.
- Loops on a remote host's sessions, if hosts have schedules.
- Keep the per-session
ScheduleListin sync with the tab, and reuse its row code (ScheduleCaption) instead of a second implementation. sb schedule ls --jsonshould carry what the tab needs (last result, history), so agents and the tab read the same data.
- Dominant language
- Swift
- Stars
- 0
- Forks
- 0
- Avg merge
- 6h 15m
- Merged PRs (30d)
- 308
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from haacked/switchboard
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
haacked/switchboard#420 ·
Maintainers usually reply within 1 day
-
priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
haacked/switchboard#403 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
haacked/switchboard#395 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
haacked/switchboard#391 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 66/100
haacked/switchboard#419 ·
Maintainers usually reply within 1 day
All issues in haacked/switchboard
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Enzoo404/gravitybox#21 ·
Maintainers usually reply within 1 day
-
area: sidebar enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ZigaoWang/zigzag#351 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
manaflow-ai/cmux#46584 ·
Maintainers usually reply within 1 day
-
android:core ios:core
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day