Skip to content

Find the Claude app's storage after version 1.261005.20 - #2426

Merged
abrignoni merged 1 commit into
abrignoni:mainfrom
ayobamiseun:fix/claude-ios-app-new-storage-paths
Oct 9, 2026
Merged

abrignoni merged 1 commit into
abrignoni:mainfrom
ayobamiseun:fix/claude-ios-app-new-storage-paths

Conversation

@ayobamiseun

Copy link
Copy Markdown
Contributor

Fixes #2411.

What was wrong

Claude iOS app version 1.261005.20 moved its files:

  • bootstrap JSON: Library/Caches/bootstrap/*.json → Library/Application Support/accounts/<account>/claude.ai/orgs/<org>/<locale>/bootstrap.json
  • database: Library/Application Support/ClaudeCache/cache_<id>.sqlite → Library/Application Support/accounts/<account>/claude.ai/orgs/<org>/chat.sqlite

The four artifacts in scripts/artifacts/iOSclaude.py only matched the old layout. _cache_databases also kept only files named cache_*.sqlite, so even with corrected paths a chat.sqlite was discarded and every artifact stayed empty.

What changed

  • Each artifact's paths now carries the new pattern beside the old one, so existing extractions keep parsing.
  • _cache_databases also keeps a file named chat.sqlite, still once per database and without its -wal/-shm siblings.
  • The notes of all four artifacts state that the new layout comes from the issue report for app version 1.261005.20 and that it was not exercised on an image here. The queries are unchanged and were not run against a real chat.sqlite.
  • New test admin/test/scripts/test_iosclaude_new_storage_paths.py matches both layouts with fnmatch the way the seekers do, checks the filter, and reads a constructed chat.sqlite at the new location. All four tests fail on the previous code.

Verification

  • New test and the existing test_iosclaude_stored_files tests pass.
  • pylint --disable=C,R on both files: 10.00/10.
  • Full ileapp.py -t fs run: 1217 modules loaded, no duplicate artifact names, no tracebacks.
  • admin/scripts/check_claim_language.py: clean.

Validation boundary

I do not have an extraction from app version 1.261005.20. The new paths follow the layout the reporter gave in #2411, and the constructed database uses the schema the existing queries read. If the real chat.sqlite changed its schema, the queries will need a follow-up; a fixture from an extraction of that version would settle it.

The Claude iOS app moved its bootstrap JSON from Library/Caches/bootstrap/
to Library/Application Support/accounts/<account>/claude.ai/orgs/<org>/
<locale>/bootstrap.json, and its database from Library/Application
Support/ClaudeCache/cache_<id>.sqlite to .../orgs/<org>/chat.sqlite. The
four Claude artifacts only matched the old layout, and _cache_databases
kept only files named cache_*.sqlite, so a matched chat.sqlite was dropped
too and every artifact stayed empty on the new version.

Each artifact now carries the new path beside the old one, the filter also
keeps a file named chat.sqlite, and the notes say the new layout comes from
the issue report and was not exercised on an image here. A test matches
both layouts with fnmatch the way the seekers do, checks the filter, and
reads a constructed chat.sqlite at the new location.
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Thanks for the contribution!

This PR changes artifact modules without test data for them. A small fixture with each artifact change lets reviewers run the module against real data, and the committed case keeps guarding the module after merge.

  • iOSclaude.py: please include a fixture with this PR.

Adding a fixture

Generate it from your extraction with the helper (details in create_module_test_cases.md):

python admin/test/scripts/make_test_data.py <module> --case <case_number> --input <extraction.zip>

It writes admin/test/cases/testdata.<module>.json and one zip per artifact under admin/test/cases/data/<module>/.

Size rules:

  • Under 10 MB per zip: commit the files in this PR.
  • 10 to 25 MB: commit the case JSON in the PR and attach the zip to a comment here.
  • Over 25 MB: say so here and a maintainer will arrange a handoff.

If your extraction cannot be shared:

  • If the app appears on a public research image, generate the fixture from that instead. public_corpus_images.md lists the images and where to download them.
  • Or sanitize the real file in place: keep the file the app wrote and overwrite only the personal values, which keeps the format honest.
  • Or script a known session: install the app on a test device with a throwaway account, perform documented actions, and extract that.

If none of those fit, say so here and we will work it out. The PR can still be reviewed and merged with the gap recorded in the artifact's notes.

This is a request, not a gate. Nothing here blocks review.

@github-actions github-actions Bot added the needs-test-data Artifact PR without test data for the changed modules label Oct 9, 2026
@abrignoni
abrignoni merged commit 14770b7 into abrignoni:main Oct 9, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-test-data Artifact PR without test data for the changed modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOSclaude.py issue with new App version (1.261005.20)

2 participants