Skip to content

[codex] Make dashboard config writes atomic - #17

Draft
rushillshah wants to merge 1 commit into
mainfrom
codex/atomic-ui-config
Draft

[codex] Make dashboard config writes atomic#17
rushillshah wants to merge 1 commit into
mainfrom
codex/atomic-ui-config

Conversation

@rushillshah

Copy link
Copy Markdown
Owner

Summary

  • export the shared atomic file writer from lib/fs.js
  • route dashboard config saves through the shared atomic writer instead of direct writeFileSync
  • add a regression guard for the dashboard config write path

Partially addresses #11.

Validation

  • npm run check
  • npm test
  • node ./bin/digital-brain.js ui </dev/null exits with the expected non-interactive terminal message
  • npm pack --dry-run

Risk

Low. The change is limited to the dashboard config save path and preserves the existing chmod behavior. The larger source registry / args dedupe from #11 is intentionally left for a separate PR.

@rushillshah rushillshah added bug Something isn't working enhancement New feature or request labels Jun 28, 2026
@rushillshah

Copy link
Copy Markdown
Owner Author

Maintenance reconciliation note (2026-07-01): CI is passing and the branch is mergeable, but this PR is still draft and review-required. Next action: mark ready/request review before merge.

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

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant