GeezerVison is showing github.com — [Bug] Opencode crashes on second run in Termux/Proot distro · Issue #3143 · anomalyco/opencode
[Bug] Opencode crashes on second run in Termux/Proot distro #3143DescriptionDescribe the bug
Opencode runs fine the first time, but when I try to open it a second time in Termux (any Proot distro), it fails with the following message:
Error: Unexpected error, check log file at /root/.local/share/opencode/log/.log for more details
To Reproduce
Steps to reproduce the behavior:
- Install Opencode in Termux with any Proot distro.
- Run
opencode for the first time — it works normally.
- Close Opencode.
- Run
opencode again.
- Observe the unexpected error.
Expected behavior
Opencode should open and run correctly on subsequent launches as well.
Screenshots/Logs
The error log is located at: /root/.local/share/opencode/log/<timestamp>.log
(Attach log content if possible.)
Environment:
- OS: Termux (any Proot distro)
- Opencode version: latest version
- Node/npm version: latest version
Additional context
This issue only occurs on the second and subsequent runs, not on the first launch. It might be related to session, cache, or file handling between runs.
 Activitygithub-actions commented on Oct 13, 2025 This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case. rekram1-node commented on Oct 13, 2025 Can you show what the error log says? Maybe drop the file if possible? Ritusmin325k commented on Oct 14, 2025
Can you show what the error log says? Maybe drop the file if possible?
Here's the log file
2025-10-14T081251.log 621625 commented on Dec 11, 2025 I also cannot get opencode to run in Termux, neither in vanilla Termux nor proot (arch). michaelphagen commented on Jan 7, 2026 For reference, it seems to run again if you delete ~/.cache/opencode/version. I'm just deleting that before each run Reacted by HuBo Reacted by danielpcampagna, alexelalex and Riza Nafis pabloXDXDXD commented on Jan 9, 2026 danielpcampagna commented on Feb 4, 2026 Also, my first time has taken too long time to start up github-actions commented on Apr 6, 2026 To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|