Skip to content

refactor: remove the duplicated store, session and touch code - #60

Merged
ewanc26 merged 4 commits into
mainfrom
refactor/store-file-io
Oct 7, 2026
Merged

ewanc26 merged 4 commits into
mainfrom
refactor/store-file-io

Conversation

@ewanc26

@ewanc26 ewanc26 commented Oct 7, 2026

Copy link
Copy Markdown
Owner

What this changes

Four small commits that remove copies: the session, settings and draft stores each had their own write-to-temp-and-rename, bounded read and move-aside (now src/store/file.c); the timeline and the thread had the same touch actions (post_list_touch); session.c repeated the failure report thirteen times and the actor-page tail three (publish_failure, publish_actor_page). A last commit fixes the one warning the 3DS build printed: a release version too long for the update event is refused rather than truncated. jscpd (60 tokens) goes from 1.53% to 0.80% duplicated lines in src. Part of #53.

Verification

Host: make test (4019 checks, 0 failures under ASan and UBSan; a new test covers the file helpers), make warnings clean. The 3DS build (devkitARM) links with no warnings. The session changes are only compiled for the 3DS, so they are covered by that build and by CI, not by a test, and nothing ran on Azahar or a 3DS.

Docs

AGENTS.md and CHANGELOG updated.

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 4 commits October 7, 2026 09:02
Add store/file: the session, settings and draft stores each carried their own
copy of write-to-temp-and-rename, bounded read and move-aside.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ewanc26
ewanc26 merged commit 33d2579 into main Oct 7, 2026
9 checks passed
@ewanc26
ewanc26 deleted the refactor/store-file-io branch October 7, 2026 08:03
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