Termux on 0.2.2-rc.2: prompts fail while writing the session log
Discussion #13241 is a Termux report for @deepseek-ai/dsh@0.2.2-rc.2, profile dsh-tui, Android 13, Node v26.13.1. The TUI started, and any prompt failed immediately. The reporter first saw turn error · rename is not defined in an installed copy whose materializePosix() called an unimported rename. After changing that call to link(), the same device returned EACCES: permission denied, link. On that device, rename in the same directory succeeded. A check of the official npm tarballs for 0.2.2-rc.2 and 0.2.2-rc.3 on 2026-11-13 found await link() and no rename import, so the ReferenceError may not match those published files. Tag dsh-v0.2.2-rc.3 still had no rename fallback. No older published version was shown to make Termux prompts work without a local edit.
Fix it by hand
- Quit dsh. echo "$HOME" and echo "$DSH_HOME". The source has no Termux-specific home. The default is "$HOME/.dsh".
- Copy that directory aside before another prompt and before any edit under node_modules. A failed new session often contains session.lock and no log.
- Do not treat a local patch of the installed package as a lasting fix. The next install overwrites it. The thread does not name a published version that avoids the hard-link failure.
- find on "*.jsonl" misses the default file session.v4.jsonl.zstd.
The absolute path under /data/data/com.termux depends on that device's HOME. It is not hard-coded.
Optional encrypted snapshot
Optional. UndoHaven is an unofficial third-party, compatible with dsh. Copy the directory by hand first, then use an encrypted snapshot if you want one.
npx undohaven init
- Install: copy this command.
- First snapshot: it stays encrypted on this machine.
- Roll back: undohaven restore --to SNAPSHOT_ID
Free covers 7 days of history and 1 device. Pricing