Skip to content

Keep the devtunnel data folder out of the working directory - #183

Merged
splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:devtunnel-data-dir
Nov 9, 2026
Merged

splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:devtunnel-data-dir

Conversation

@splitbrain-bot

Copy link
Copy Markdown

.NET programs such as devtunnel put their data folder into the working directory when ~/.local/share does not exist. A new home did not have this directory, so each devtunnel call left a DevTunnels folder in the directory where the agent was, for example in /workspace checkouts.

Changes:

  • box-image/setup.sh makes ~/.local/share together with ~/.local/bin.
  • box-image/Dockerfile removes /DevTunnels after the version check. The version check runs as root without /root/.local/share, so the folder was left in / of the image. The old cleanup removed /root/.local/share/DevTunnels, which never existed.

Tested in a box: with an empty home, devtunnel --version wrote DevTunnels/ into the working directory. With ~/.local/share present, it wrote ~/.local/share/DevTunnels/.

Not tested: an image build and a new box, because Docker is not available here.

DevTunnels folders that already exist in workspaces are not removed.

.NET programs such as devtunnel put their data folder into the working
directory when ~/.local/share does not exist. A new home did not have this
directory, so each devtunnel call left a DevTunnels folder in the directory
where the agent was. The setup of the home now makes ~/.local/share.

For the same reason, the version check in the image build left /DevTunnels
in the image. The cleanup of 37efdde removed a path that never existed. It
now removes /DevTunnels.
@splitbrain
splitbrain merged commit 820de1e into splitbrain:main Nov 9, 2026
5 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