Remove DEV_MODE from kiloclaw runtime code and tests#581
Merged
pandemicsyn merged 4 commits intomainfrom Feb 26, 2026
Merged
Conversation
Remove DEV_MODE=true from .dev.vars.example and all DEV_MODE/OPENCLAW_DEV_MODE references from documentation files (DEVELOPMENT.md, AGENTS.md, docker-image-testing.md). The runtime code that reads DEV_MODE is intentionally kept — this only cleans up examples and docs.
Removes all DEV_MODE references from kiloclaw source code: - types.ts: remove DEV_MODE from KiloClawEnv type - index.ts: remove env var validation skip when DEV_MODE=true - auth/middleware.ts: remove JWT auth bypass with synthetic dev user - gateway/env.ts: remove OPENCLAW_DEV_MODE passthrough to container - start-openclaw.sh: remove OPENCLAW_DEV_MODE allowInsecureAuth block - Remove corresponding test cases in middleware.test.ts and env.test.ts Builds on PR #578 which removed DEV_MODE from docs and .dev.vars.example.
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (11 files)
|
Contributor
|
Missed cleaning up these in #256 when i removed the related "debug" routes. This is a hold over from the original "moltworker" version |
St0rmz1
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
DEV_MODEreferences from kiloclaw runtime code, types, and testsChanges
Runtime code:
src/types.ts: RemoveDEV_MODE?: stringfromKiloClawEnvtypesrc/index.ts: Remove env var validation skip whenDEV_MODE === 'true'src/auth/middleware.ts: Remove JWT auth bypass that injected syntheticdev@kilocode.aiusersrc/gateway/env.ts: RemoveOPENCLAW_DEV_MODEpassthrough to container envstart-openclaw.sh: RemoveOPENCLAW_DEV_MODEblock that setallowInsecureAuthTests:
src/auth/middleware.test.ts: RemoveDEV_MODEbypass test casesrc/gateway/env.test.ts: RemoveDEV_MODE→OPENCLAW_DEV_MODEmapping test and referencesAll 392 tests pass, typecheck clean.
Built for Florian by Kilo for Slack