Skip to content

Claude/serene turing yrxky2 - #27

Merged
mukeshkumarcharak merged 2 commits into
mainfrom
claude/serene-turing-yrxky2
Jul 12, 2026
Merged

Claude/serene turing yrxky2#27
mukeshkumarcharak merged 2 commits into
mainfrom
claude/serene-turing-yrxky2

Conversation

@mukeshkumarcharak

Copy link
Copy Markdown
Contributor

No description provided.

claude added 2 commits July 12, 2026 17:47
…storage

Two Termux install pain points from the field:

1. After install, failures scrolled past silently (e.g. the numpy
   py3compile traceback, an un-pulled Ollama model) with no summary of
   what actually ended up missing.

   verify() now probes the real end state — Pilot venv + its Python
   imports, whether the configured Ollama model is actually pulled, the
   browser engine (system Chromium on Termux / Playwright elsewhere), and
   numpy importability on Termux — and prints a "Still missing" section
   listing each optional gap with a copy-paste fix. Required failures and
   optional gaps are now reported separately. Because Pilot clears the
   screen on launch, the report is also saved to
   ~/.gathm/install_report.txt with a pointer shown as the final line.

2. Granting Termux's storage permission can restart Termux and abort the
   installer, forcing a full restart. Storage setup now runs FIRST on
   Termux (before any heavy work) and is idempotent — once ~/storage
   exists it returns instantly, so re-running ./install after a restart
   sails straight past it. The step also warns up front that a restart
   may happen and that re-running resumes. Step counter is now 11 on
   Termux / 10 elsewhere to match.
…me refs

Pilot's pip install hung on Termux at "Installing backend dependencies"
while building numpy 2.5.1 from source — numpy has no Android wheel, so
pip fell back to a source build that never finishes on-device.

Root cause: numpy was only ever pulled in transitively by
`langchain-community`, and Pilot imports neither it nor the `langchain`
meta-package — only langchain-core, langchain-ollama and langgraph.

- Remove `langchain` and `langchain-community` from pilot/requirements.txt.
  This eliminates numpy (and aiohttp and a large transitive tree), so the
  Termux install no longer tries to compile numpy at all — faster and
  lighter on every platform.
- Drop the now-pointless `pkg install python-numpy` from the Termux deps
  (it was only there to satisfy langchain-community, and its py3compile
  step was the noisy traceback users saw) and the numpy check in verify().
- Update user-facing references from `bash install.sh` to `./install`
  (the script was renamed to `install` and made executable); the
  `uninstall` comments, README, classic-cli doc, pilot run.sh/main.py
  hints, lib/llm.py and the VERSION release snippet now match. The
  ollama.com/install.sh URLs are unchanged.
@mukeshkumarcharak
mukeshkumarcharak merged commit e3f4872 into main Jul 12, 2026
0 of 6 checks passed
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.

2 participants