Tasks page
Work that runs without the user has two ends, what is set to run and what came back, and they share one page.
Reference: Codex's Automations, which keeps the scheduled automations and their results needing review under one entry.
| Part | Decision | Why |
|---|---|---|
| Sidebar | One row, Tasks, with the calendar glyph at the end of the primary nav, where Scheduler was. A quiet number on its right counts Inbox items; none at zero. | Pending and Scheduler were two rows for one kind of work. The count says something needs the user without a coloured badge. |
| Header | ManagePageHeader: title Tasks and two tabs, Inbox and Scheduled, each with its count as a muted number after the label. The toolbar follows the tab: Inbox shows "N need you"; Scheduled shows its summary, search, Refresh and New task. | Search and New task act only on scheduled tasks. |
| Opening tab | A link that names one (/tasks?tab=inbox or scheduled) wins; otherwise Inbox when it has items; otherwise the tab last chosen, kept in localStorage; Scheduled the first time. | Something waiting is why the user came; with nothing waiting, the page is as they left it. |
| Inbox | "Waiting for your decision" (approvals) then "New" (findings, finished work, scheduled results), ManageRow rows with Open. The icon is the Agent's avatar, or the calendar for a scheduled task's result, whose description starts "Scheduled task". Empty: "Nothing waiting". | Where a report came from decides how to answer it. |
| Scheduled results | A scheduled run that has something to say still posts a chat message, and its report (task_id) is also an Inbox item until the conversation is opened. The inbox scans the conversations tasks report into as well as always-on Agents' (always_on/pending.py). | A result the user has not seen needs them as much as an Agent's finding; leaving it only in the chat hid it in whichever conversation the task was set from. |
| Scheduled | The Scheduler's content unchanged: the type row (All, One-time, Recurring, Monitors) with a List / Calendar switch (ToggleGroup) at its end; the view is remembered as before. | The header tabs are the page's own; the view is a choice inside one tab. |
| Old routes | /pending redirects to /tasks?tab=inbox, /scheduler to /tasks?tab=scheduled. The command palette, tab names and icons, and Activity's Open in Tasks use /tasks. | Kept tabs and bookmarks still land. |
Scheduled tab layout
- Shared page header and theme tokens;
ManageRowrows keep schedule, status and actions, numbered in visible order. - The type filters sit in a row below the header, no sidebar; they wrap when narrow.
- Empty state: introduction and Create task centered; three suggestion cards in a centered grid up to 960px, one column when narrow, each with title, schedule, prompt and Use.
- Create and Use open the existing form without creating a task; Escape returns.
- Code:
apps/web/components/tasks/(tasks-page.tsx,tasks-inbox.tsx,tasks-tabs.ts),apps/web/components/scheduler/scheduler-page.tsx(the Scheduled tab),apps/web/lib/agents/pending-inbox.ts(the inbox query). - Tests:
apps/web/tests/agents/pending-inbox.test.mjs,apps/web/tests/settings/scheduler/scheduler-page.test.mjs,tests/unit/agent/test_always_on.py.
Implementation status
Implemented. Scheduled runs report only findings; a scheduled run that asks for a decision has no kind of its own yet.
Last updated · 2026-11-25