GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@smirea

@smirea smirea commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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 #30253 (reasoning effort, #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 #42945

  • 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 #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 a76e554784 and passes on head f8f6afac8a. 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
Thread details: Automations row with the Edit automation pencil Before: Edit task footer has only Cancel and Save task After: Edit task footer has Delete on the left
Confirmation After confirming Phone width
Delete confirmation over the editor Task list shows No scheduled tasks Phone width: Delete stacked below Save and Cancel
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.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
smirea-ai and others added 2 commits November 25, 2026 10:31
@smirea-ai @smirea
fix(web): a scheduled task can be deleted from its Edit task dialog
7277117
Co-Authored-By: stefan <[email protected]>
@smirea-ai @smirea
test(web): drop the New task case that passes without the fix
f8f6afa
Co-Authored-By: stefan <[email protected]>
@smirea smirea mentioned this pull request Nov 25, 2026
fix(web): a scheduled task can be deleted from its Edit task dialog smirea/t3code#8
Closed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T16:36:09.243987Z f8f6afa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The scheduled-task editor now offers deletion for existing tasks. Deletion requires confirmation and is subject to permission, saving, and connection checks. The change also adds translated labels and error messages, plus browser-test coverage.

Changes: Scheduled-task editor deletion

Layer / File(s) Summary
Editor deletion flow
apps/web/src/components/settings/ScheduledTasksSettings.tsx, apps/web/src/components/settings/ScheduledTasksSettings.browser.test.tsx, apps/web/src/i18n/translations/{de,en,es,fr,ja,ko,pt-BR,ru,sv,zh}.json
The editor adds a Delete action for existing tasks. The handler confirms before deleting by task ID, reports non-interrupted failures, and closes the editor on success. The button is disabled when operation is unavailable, saving is in progress, the task is missing, or the environment is disconnected. Browser tests cover cancelling and confirming deletion. Translations add the action label and failure message.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature · Severity of issue fixed: Low

Suggested reviewers: juliusmarminge, maria-rcks

Merge Risk: Minimal · up to c4bc3

Merge Risk: ⚪ Minimal · up to c4bc3

This adds a Delete action with confirmation to the existing scheduled-task editor. It is a small, contained change with test coverage, and I found no concrete merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed [#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 Passed 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…
Full details: Title check

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.

Full details: Description check

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.

Full details: Linked Issues check

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.

Full details: Out of Scope Changes check

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.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 867a9f0
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f328ae50-0d07-4e6f-9c50-3cf483910bdc
Commits

Reviewing files that changed from the base of the PR and between 867a9f0 and f8f6afa.

Files selected for processing: 12

  • apps/web/src/components/settings/ScheduledTasksSettings.browser.test.tsx
  • apps/web/src/components/settings/ScheduledTasksSettings.tsx
  • apps/web/src/i18n/translations/de.json
  • apps/web/src/i18n/translations/en.json
  • apps/web/src/i18n/translations/es.json
  • apps/web/src/i18n/translations/fr.json
  • apps/web/src/i18n/translations/ja.json
  • apps/web/src/i18n/translations/ko.json
  • apps/web/src/i18n/translations/pt-BR.json
  • apps/web/src/i18n/translations/ru.json
  • apps/web/src/i18n/translations/sv.json
  • apps/web/src/i18n/translations/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 25, 2026
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/task-edit-delete
c4bc3d6
@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). takeover:needs-julius Takeover done; route gate says Julius decides vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

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

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@smirea @juliusmarminge @smirea-ai
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.