Skip to content

refactor(store): share the codec line reader and drop the test-only settings clear - #76

Closed
ewanc26 wants to merge 2 commits into
mainfrom
refactor/store-duplication-2
Closed

ewanc26 wants to merge 2 commits into
mainfrom
refactor/store-duplication-2

Conversation

@ewanc26

@ewanc26 ewanc26 commented Oct 7, 2026

Copy link
Copy Markdown
Owner

What this changes

Replaces #73, which conflicted with main after the v0.39.0 pin landed. This is the same refactor on a fresh branch from main, without the old pin commit.

Shares the codec line reader between the session and settings codecs, and removes a test-only wrapper around file removal.

Verification

Host: make test 4063 checks, 0 failures. Pinned to Wolfram v0.39.0 on main. Not run on a 3DS or in Azahar.

Docs

Docs: none (internal refactor; behaviour unchanged).

Changelog: CHANGELOG.md

Checklist

  • CI is green (CI gate and flow / conventions)
  • No secrets, tokens or signing keys in the diff
  • Tests added or changed with the behaviour; none skipped, disabled or deleted

🤖 Generated with Claude Code

ewanc26 and others added 2 commits October 8, 2026 00:54
…ettings clear

The session and settings codecs each carried a copy of the value-line check
and of the read-a-line loop. Both now come from store/codec_text.h. The
settings store's clear was a wrapper around indigo_file_remove used only by
the tests, so the tests call indigo_file_remove directly. No behaviour change:
host tests stay at 4037 checks, 0 failures.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ewanc26

ewanc26 commented Oct 7, 2026

Copy link
Copy Markdown
Owner Author

Duplicate of #75 (same refactor; #75 was opened from a separate branch by the store agent). Keeping #75.

@ewanc26 ewanc26 closed this Oct 7, 2026
@ewanc26
ewanc26 deleted the refactor/store-duplication-2 branch October 9, 2026 15:28
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