Repository navigation
Description
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
- 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.
- In B turn Enabled off and save. Let the reactive read arrive in A.
- A’s Cron silently returns to 0 6 * * * and Save disables.
- 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=falseObserved 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.
Activity
fix(platform): keep edits made while a General tab save is out