Skip to content

fix: repair stale CMake state with doctor - #442

Merged
janicduplessis merged 4 commits into
mainfrom
fix/android-cmake-launcher-self-heal
Sep 6, 2026
Merged

fix: repair stale CMake state with doctor#442
janicduplessis merged 4 commits into
mainfrom
fix/android-cmake-launcher-self-heal

Conversation

@janicduplessis

@janicduplessis janicduplessis commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Description

Android CMake configurations created before ccache was enabled can retain an empty launcher. Doctor flags this but currently offers only manual deletion instructions, and healthy app configurations can hide stale ones in native dependencies.

Solution

stim doctor --fix --platform android clears affected generated configurations and reports the remaining findings. Plain doctor scans the app and installed native modules, including mixed healthy/stale state; Android builds gain no extra checks. Shared sandbox repair still applies on Android, and an unrestricted Codex session does not report a false repair failure.

Cleanup requires ignored, untracked output within the checkout and preserves custom launcher settings. Stop all native builds and keep them stopped until repair finishes: the supplemental cache-lock check cannot detect uncached builds, release-swap fallback builds, or direct Gradle. Removed output is recreated on the next build, while shared ccache entries remain intact.

Test plan

Verified with real Git and CMake: configured and built without a launcher, repaired with doctor, then reconfigured and observed ccache in the actual C++ compile command. Regression coverage checks post-repair JSON under Claude and Codex, shared sandbox allowances, idempotence, healthy configurations, tracked/unignored output, linked dependencies, custom launchers, and detected build locks.

Fixes #440

@janicduplessis
janicduplessis merged commit 008d057 into main Sep 6, 2026
5 checks passed
@janicduplessis
janicduplessis deleted the fix/android-cmake-launcher-self-heal branch September 6, 2026 05:42
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.

Repair stale Android CMake state with doctor --fix

1 participant