GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [FEATURE]: Don't default agent scratch dir to a RAM-backed /tmp · Issue #55006 · anomalyco/opencode Open DescriptionFeature hasn't been suggested before.
Describe the enhancement you want to requestOpenCode's scratch dir is os.tmpdir()/opencode, and the built-in env prompt tells the model to prefer it ("Prefer /tmp/opencode over generic system temporary directories...", packages/core/src/instructions/builtins.ts). On most Linux distros, /tmp is a tmpfs, so everything the agent puts there lives in RAM until it's deleted. Agents use this dir for big stuff - downloads, extracted archives, builds. In one session mine left ~4.6 GB of firmware images in /tmp/opencode, which ate RAM and pushed the system into swap (zram on my Fedora system, so that's RAM too). Setting TMPDIR=/var/tmp works around it, but most people won't know they need to. Suggestion: default the scratch dir to disk-backed storage, e.g. $XDG_CACHE_HOME/opencode/tmp (with cleanup of old files), or at least avoid /tmp when it's tmpfs. The system prompt can still instruct to use /tmp where it makes sense such as high frequency I/O on smaller files. Reacted by Nikita Pedorich, Vlad Ionescu, abbas jafari and Johannes Rothmayr Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |