Repository navigation
fix: keep new Settings entries visible during autosave - #148745
Patrick-Erichsen wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed October 5, 2026, 6:29 PM ET / 22:29 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR preserves newly added empty Settings entries during autosave while retaining cleanup of containers emptied by secret redaction. Merge readiness⛔ Needs changes before merge - 1 item remains This remains a useful, source-supported fix with convincing before/after evidence and no actionable defect in the pinned patch. Current main still prunes new empty entries, and the protected PR should remain open. Priority: P2 Review scores
Verification
How this fits togetherSettings builds configuration drafts from user edits and submits them through the shared configuration capability to the Gateway. Submission cleanup determines which entries survive saving and subsequent reloads. flowchart LR
A[Add Entry] --> B[Settings draft]
B --> C[Autosave submission]
C --> D{Authored empty or redaction cleanup}
D --> E[Preserve authored entry]
D --> F[Remove unrestorable placeholder]
E --> G[Gateway save and reload]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +67. Total +76 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Preserve intentional empty entries through the current submission owner while keeping secret handling, cancellation cleanup, and Gateway validation intact. Do we have a high-confidence way to reproduce the issue? Yes, from source: Add Entry creates a new empty object, and current main's submission cleanup removes empty keys absent from the original configuration. This review did not execute a current-main reproduction. Is this the best way to solve the issue? Yes, distinguishing authored emptiness from cleanup is the narrow repair on the pinned base. Current main requires adapting that invariant to its replacement submission owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ab2e92694e63. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
What Problem This Solves
New Talk provider, TTS persona/provider, and nested Skills entries disappear when autosave runs before the user fills them in.
User Impact
New entries remain available for editing and survive save/reload. Existing redacted-secret behavior is preserved; no configuration migration is required.
Why This Change Was Made
The shared submission sanitizer was pruning every newly empty object. It now prunes an empty container only when redaction actually removed one of its children, preserving intentionally empty entries.
Evidence
node scripts/check-changed.mjspass. Independent review found no actionable P0–P2 findings.dd52d7354262and this change, using isolated synthetic state.The proof covers configuration editing and persistence, not provider authentication or speech execution. Character-by-character entry into secret fields was not certified.