Skip to content

Commit 35158bb

Browse files
jayleatonclaude
andcommitted
fix(web): hide the thread Automations section until the thread has a task
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 80e8ea3 commit 35158bb

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

‎apps/web/src/components/chat/ThreadAutomationsPanel.tsx‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ export function ThreadAutomationsPanel(props: {
8585
(task) => task.threadId === props.threadId && !isScheduledTaskArchived(task),
8686
);
8787

88-
// With nothing bound the section only offers New, so viewers who can't create don't see it.
89-
if (tasksQuery.error === null && boundTasks.length === 0 && (!canCreate || !tasksQuery.data)) {
90-
return null;
91-
}
88+
if (tasksQuery.error === null && boundTasks.length === 0) return null;
9289

9390
const reportFailure = (title: string, error: unknown) => {
9491
toastManager.add(
@@ -187,11 +184,6 @@ export function ThreadAutomationsPanel(props: {
187184
</>
188185
}
189186
>
190-
{boundTasks.length === 0 && tasksQuery.error === null ? (
191-
<p className="px-2.5 py-1.5 text-2xs text-muted-foreground">
192-
Nothing scheduled for this thread.
193-
</p>
194-
) : null}
195187
<ul className="m-0 max-h-[13.5rem] list-none overflow-y-auto p-0">
196188
{boundTasks.map((task) => (
197189
<li

‎docs/user/remote-access.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ an agent a prompt at a set time (for example a deploy tonight) or on repeat (for
682682
the latest changes every weekday at 7:00). Set **Destination** to **An agent's thread** and pick
683683
the agent. Each task has one thread: the first run creates it and every later run posts into it.
684684
This is the same list as **Settings → Scheduled tasks**, opened on **Agents**; choose **All**,
685-
**Threads**, **New thread** or **Archived** to see the rest. To schedule a prompt into the chat
686-
you are in, choose **+** under **Automations** in its details. Pause, resume, run now, edit, or
685+
**Threads**, **New thread** or **Archived** to see the rest. To add another task to a chat that
686+
already has one, choose **+** under **Automations** in its details. Pause, resume, run now, edit, or
687687
delete a task from the list.
688688

689689
A task is kept on, and runs on, the machine that hosts its project. When you ask an agent in a chat

0 commit comments

Comments
 (0)