GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): a scheduled task can be deleted from its Edit task dialog by smirea · Pull Request #42946 · pingdotgg/t3code Conversation
Contributor
Note Claude Opus 5.5 writing on behalf of Stefan. ProblemA 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 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 #30253 (reasoning effort, #30233). Change
ScopeFixes #42945
VerificationA Linux VM with no account can re-run all of this (web client,
Not covered by the above: the desktop app. It renders the same web dialog, and I didn't run it separately.
Scenario sourceimport { 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. All reactions
Co-Authored-By: stefan <[email protected]> Co-Authored-By: stefan <[email protected]>
|
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title "fix(web): a scheduled task can be deleted from its Edit task dialog" matches the main change: the scheduled-task editor now shows a Delete button for existing tasks. It follows the conventi… | |
| Description check | The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each is filled in with specifics. It links the issue (#42945) and explains why mobile is … |
|
| Linked Issues check | [#42945] requires the Edit task dialog for an existing task to offer Delete, with the same confirmation as the task row. The whole-PR diff of ScheduledTasksSettings.tsx (merge base a76e554 to head f8f… |
|
| Out of Scope Changes check | All changes in the reviewed diff serve #42945. The ScheduledTasksSettings.tsx hunks add the delete command, handler, and footer button. The browser test covers the new delete path. The translation fil… |
Explanation
The title "fix(web): a scheduled task can be deleted from its Edit task dialog" matches the main change: the scheduled-task editor now shows a Delete button for existing tasks. It follows the conventional commit format and the repository's example style. It is specific enough for a teammate to understand the primary change, and it does not describe anything missing from the changeset.
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each is filled in with specifics. It links the issue (#42945) and explains why mobile is excluded. Verification names focused tests, the scenario proof, and the checks that ran. It also states what was not covered (the desktop app). The before/after screenshots meet the UI-change requirement. The author's note at the top and the agent attribution at the bottom both follow the template's guidance.
Explanation
[#42945] requires the Edit task dialog for an existing task to offer Delete, with the same confirmation as the task row. The whole-PR diff of ScheduledTasksSettings.tsx (merge base a76e554 to head f8f6afa) shows: (1) a new removeTask command bound to serverEnvironment.deleteScheduledTask; (2) a deleteTask handler that returns early when task is null, when the operate scope is missing, or when a submission is pending or saving; (3) the confirmation message Delete "{title}"? plus This cannot be undone., passed to requestConfirmDialog; (4) saving is set during the delete, which locks the form; (5) onClose() on success and reportFailure("Could not delete scheduled task") on non-interrupted failure; (6) a destructive-outline Delete button rendered only when task !== null, placed first in DialogFooter with sm:mr-auto. This satisfies the coding requirement. The diff does not show the row's confirmation code, so the claim that the message and command match the row rests on the PR description and the browser test. Those were not re-read here. The desktop path shares this dialog, so no separate change is required. Mobile is excluded by the issue.
Explanation
All changes in the reviewed diff serve #42945. The ScheduledTasksSettings.tsx hunks add the delete command, handler, and footer button. The browser test covers the new delete path. The translation files add two strings each for the delete error and the Delete label, which the new UI requires. No unrelated refactoring or feature change was found in the inspected hunk. The PR description states that Mobile is untouched and that related issue #38604 is only referenced, not implemented. The browser test file and translation files were not inspected line by line. Their stated content matches the requirement.
f328ae50-0d07-4e6f-9c50-3cf483910bdcapps/web/src/components/settings/ScheduledTasksSettings.browser.test.tsxapps/web/src/components/settings/ScheduledTasksSettings.tsxapps/web/src/i18n/translations/de.jsonapps/web/src/i18n/translations/en.jsonapps/web/src/i18n/translations/es.jsonapps/web/src/i18n/translations/fr.jsonapps/web/src/i18n/translations/ja.jsonapps/web/src/i18n/translations/ko.jsonapps/web/src/i18n/translations/pt-BR.jsonapps/web/src/i18n/translations/ru.jsonapps/web/src/i18n/translations/sv.jsonapps/web/src/i18n/translations/zh.jsonIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Edit task dialog opened from a thread's automation has no way to delete the task
There was an error while loading. Please reload this page.