GeezerVison is showing github.com — fix(web): a scheduled task can be deleted from its Edit task dialog by smirea · Pull Request #8 · smirea/t3code
Conversation
smirea
commented
Nov 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Claude Opus 5.5 writing on behalf of Stefan.
Problem
A thread's details panel lists the scheduled tasks that post into it. Each one's Edit automation pencil opens that task's Edit task dialog, which is the only screen in the thread flow for acting on a task. The dialog can save or cancel, but it can't delete the task. Closing it leaves you on the full Settings → Scheduled tasks list with nothing marking the task you came from, so you have to find it again by name and use its ⋯ menu.
Expected: for an existing task, the dialog offers Delete, the same action and confirmation as the task's row. This same editor already gained a missing control as a fix in pingdotgg#30253 (reasoning effort, pingdotgg#30233).
Change
ScheduledTasksSettings.tsx: when the editor is open on an existing task, the footer gets a destructive Delete button on the left, the same placement the project action editor uses. It reuses the row menu's confirmation (Delete "{title}"? / This cannot be undone.) and its deleteScheduledTask command. While the delete runs, the form is locked the way Save locks it. When the delete succeeds the dialog closes through the existing close path, which also clears the taskId the thread panel's link added. If it fails, an error toast appears. A new task gets no Delete button. Two new strings are added to the web catalogs, with translations.
Scope
Fixes #ISSUE
- Web and desktop share this dialog and both routes into it: the thread panel's Edit automation (which links
/settings/scheduled-tasks?taskId=…) and the row's ⋯ → Edit. This one change covers both.
- Mobile is left alone. Its edit screen is only reached from the task list, where Delete already sits on the same row, so the dead end doesn't happen there.
- Related idea: Scheduled tasks: a Delete button in the Edit task dialog pingdotgg/t3code#38604.
Verification
A Linux VM with no account can re-run all of this (web client, Replay (dev) agent):
vp run scenarios:prove against origin/main: Proven: the scenario fails on base 67918f51cc and passes on head 30ad5b8a18. The scenario creates a thread and a task posting into it, opens the thread, and clicks the task's Edit automation pencil. It then deletes the task from the dialog and confirms. It checks that the editor closes, the list reads "No scheduled tasks", and taskId is gone from the URL. It also checks at a 390 px width. On base it fails because there is no Delete button. The source is below and isn't committed.
ScheduledTasksSettings.browser.test.tsx: a new case opens the editor through a taskId link and cancels the confirmation, which deletes nothing and leaves the editor open. It then confirms and checks the task is deleted exactly once and the editor closes. It fails with ScheduledTasksSettings.tsx reverted and passes here. All 12 tests in the file pass.
vp run check:changed and vp run i18n:check pass.
Not covered by the above: the desktop app. It renders the same web dialog, and I didn't run it separately.
| Thread panel (entry point) |
Before (main) |
After |
 |
 |
 |
| Confirmation |
After confirming |
Phone width |
 |
 |
 |
Scenario source
import { expect } from "e2e";
import { test, WEB } from "./t3.ts";
const settle = () => new Promise<null>((resolve) => setTimeout(() => resolve(null), 800));
test(
"A thread's automation can be deleted from the Edit task dialog its pencil opens",
WEB,
async ({ t3, app, screen, browser }) => {
const project = await t3.project("demo");
const thread = await t3.thread({ project, title: "Dependency triage", messages: ["hello"] });
await t3.open("/settings/scheduled-tasks");
await screen.getByRole("button", "New task").tap();
await screen.getByLabel("Name").fill("Nightly dependency check");
await screen
.getByLabel("Prompt")
.fill("Check for outdated dependencies and summarize what changed.");
await screen.getByLabel("Destination").tap();
await screen.getByRole("option", "One thread, continuing the conversation").tap();
await screen.getByLabel("Destination thread").tap();
await screen.getByRole("option", "Dependency triage").tap();
await screen.getByRole("button", "Create task").tap();
await expect(screen.getByText("Nightly dependency check")).toBeVisible();
await t3.open(thread);
await expect(screen.getByRole("button", "Edit Nightly dependency check")).toBeVisible();
await browser.evaluate(settle);
await app.screenshot("thread-automations");
await screen.getByRole("button", "Edit Nightly dependency check").tap();
await expect(screen.getByRole("button", "Save task")).toBeVisible();
await browser.evaluate(settle);
await app.screenshot("edit-task-dialog");
await browser.setViewport({ width: 390, height: 844 });
await expect(screen.getByRole("button", "Delete")).toBeVisible();
await app.screenshot("edit-task-dialog-phone");
await browser.setViewport({ width: 1280, height: 800 });
await screen.getByRole("button", "Delete").tap();
await expect(screen.getByText('Delete "Nightly dependency check"?')).toBeVisible();
await browser.evaluate(settle);
await app.screenshot("delete-confirmation");
await screen.getByRole("button", "Confirm").tap();
await expect(screen.getByText("Edit task")).not.toBeVisible();
await expect(screen.getByText("No scheduled tasks")).toBeVisible();
expect(await browser.evaluate(() => location.search.includes("taskId"))).toBe(false);
await browser.evaluate(settle);
await app.screenshot("task-deleted");
},
);
Claude Opus 5.5 in Claude Code (T3 Code).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|