Skip to content

Bug: Automation General tab silently replaces unsaved trigger and project edits on refresh #3620

Closed

Description

@yannickmonney

Effects replace the whole local form/selection whenever the stored field content changes, even while the local form is dirty. No mutation or confirmation is required for the local edits to disappear.

Reproduced against 44e0dcf254975286c0e9dea443b5cd1ca6b23347. Suggested severity: P2.

Reproduction

  1. Open one automation’s General tab in sessions A and B. In A change Cron from 0 6 * * * to 0 9 * * * but do not save.
  2. In B turn Enabled off and save. Let the reactive read arrive in A.
  3. A’s Cron silently returns to 0 6 * * * and Save disables.
  4. The Projects section has the same failure: A adds Project B to the existing Project A selection without saving; another session changes the stored set to A+C. A’s unsaved B disappears and Save disables.

Expected: Preserve the dirty fields or ask the author to reconcile incoming changes; an unrelated server-side field change must not erase local work.

Actual: Effects replace the whole local form/selection whenever the stored field content changes, even while the local form is dirty. No mutation or confirmation is required for the local edits to disappear.

Impact: A teammate editing another setting can silently erase local automation configuration work.

Evidence

AUTO-004 tests observe Cron 0 9 * * * → 0 6 * * * and selection A+B → A+C after changed query fixtures, with no local save call and disabled Save.

Executed from /tmp/tale-audit-settings-44e0dcf2:

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x --no-install vitest run --config /Users/yannick/.codex/notes/tale-100-findings/auto-batch2.vitest.config.ts --maxWorkers=2 --reporter=verbose --silent=false

Observed result: 6 passed (6), exit 0. These observation tests assert the current defects and their controls. Frozen test: auto-settings-batch2.test.tsx; log: auto-batch2.log; config: auto-batch2.vitest.config.ts.

Controls:

  • A lastFiredAt-only trigger refresh preserves the dirty cron.
  • A fresh project binding array with unchanged content preserves the unsaved B selection.

Source

Scope and deduplication

  • Real TriggerEditor, ProjectBindingsSection, MultiSelect and shared grouped editor controls execute locally in jsdom. Query hooks inject reactive data; no browser session or backend mutation is used.
  • This does not report or test schedule-failure auto-pause behavior; another actor changing Enabled is sufficient.
  • The local harness omits navigation blocking because no navigation occurs; its DirtyBlockerProvider warnings are not findings.
  • Searched the 931 all-state cached issue titles and current accepted findings for automation/history/read failures and General/trigger/project/unsaved refresh loss.
  • No exact existing root cause found. Parent owns live GitHub dedup because delegated execution excludes external network.
  • Bug: Team membership refresh silently replaces unsaved roster selections #3584: Team membership has the same user symptom but different component/effect. These are the two custom editors of automation General, consolidated as one finding.
  • Improvement: Improve unsaved-changes handling when switching agent and automation settings tabs #2572: Historical tab navigation guards; this loss happens without navigation.

Parent verification: independently reran the observation/control proof successfully; retained output: auto-parent-batch2.log. Live all-state feature searches and related historical reports were reviewed before filing.

Acceptance: lock the reported boundary with a regression, preserve its working control, and verify corrected local UI behavior.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions