Skip to content

fix(cli): surface FS errors on prefs save failures - #3253

Draft
benallfree wants to merge 2 commits into
meshcore-dev:devfrom
MeshEnvy:feature/fs-save-errors
Draft

fix(cli): surface FS errors on prefs save failures#3253
benallfree wants to merge 2 commits into
meshcore-dev:devfrom
MeshEnvy:feature/fs-save-errors

Conversation

@benallfree

@benallfree benallfree commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Hello, I stumbled across a case where I needed more detailed FS errors surfaced. The LittleFS partition was full but silently failing, even sometimes saying 'OK' when actually nothing was written.

This PR attempts to surface more error details when an FS operation fails.

Condition Reply
Partition critically full ERR no space left on device
LittleFS NOSPC same as above
Other LFS error ERR prefs <stage> failed lfs=-NN
JSON serialize failure ERR prefs serialize failed

Stages: open, write, rename, serialize, nospc.

Stacked on #3254 (atomic saves) — merge that first, then rebase this onto dev. The first commit here is #3254's.

benallfree and others added 2 commits August 19, 2026 22:17
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@benallfree
benallfree force-pushed the feature/fs-save-errors branch from de6b346 to 9040879 Compare August 20, 2026 05:33
@benallfree benallfree changed the title fix(cli): atomic prefs save and FS error replies fix(cli): surface FS errors on prefs save failures Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant