Fix session-scoped use command by exporting __VFOX_CURTMPPATH #587
+4
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Session-scoped
vfox u -sfails on Windows because__VFOX_CURTMPPATHisn't exported, causing each invocation to potentially use different temp directories.Root Cause
The shell hook sets
__VFOX_PIDand__VFOX_SHELL, then each prompt callsvfox env -s pwsh. The env command creates a temp directory path using these variables, stores session versions in{temp}/.tool-versions, but never exports the temp path back to the shell. Subsequentvfoxcommands then create new temp paths, losing session state.Changes
__VFOX_CURTMPPATHinenvFlag()to persist temp directory path across invocationsinternal.HookCurTmpPathconstant for consistency with existing code (matchesactivate.go)This ensures all commands in a shell session share the same temp directory for session-level version management.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
version-fox.github.io/tmp/go-build3603188520/b363/http.test /tmp/go-build3603188520/b363/http.test -test.testlogfile=/tmp/go-build3603188520/b363/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.short=true x64/src/runtime/-D uavocPfSd ache/go/1.24.11/-o yAccounting=yes ota=5% yHigh=170M 01.o ortc�� x64/src/runtime/cgo x64/src/path/match.go ache/go/1.24.11/x64/pkg/tool/lin-lang=go1.18 user.name(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.