Workspace .env bootstrap-only entries abort dsh web startup #190
Lancetwang
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
dsh webdiscovers the.envin its invoking directory. If that file contains a bootstrap-only name such asDEEPSEEK_BASE_URL, app boot throws before the Web UI opens—even when the file belongs to another application in the same workspace.Reproduction
dsh webCurrent behavior: startup aborts while reading
.env.Expected behavior: refuse the protected file value, explain how to set it in the launching environment, and continue booting with accepted entries from the same file. The security boundary requires rejecting the value; it does not require rejecting the whole launch.
Suggested behavior
process.envandLaunchEnvironmentSnapshot..envfiles.dsh web.Patch
I prepared a focused patch on my fork:
Verification completed: 52 focused app-boot tests; 124 related tests with 100% coverage for the changed source; lint, build, typecheck, and an unchanged-command built-CLI smoke test. Documentation sync passed 27/28 gates; the remaining Windows symlink-escape fixture could not create its test symlink on this host (
EPERM).The repository currently does not accept external PRs per
CONTRIBUTING.md, so I am reporting the issue here and leaving the commit available for review or cherry-pick.All reactions