Skip to content

fix(behavior): Respect DEV/E2E modes when mapping gateway token#148

Open
dejely wants to merge 5 commits intocloudflare:mainfrom
dejely:fix-behavior-mismatch
Open

fix(behavior): Respect DEV/E2E modes when mapping gateway token#148
dejely wants to merge 5 commits intocloudflare:mainfrom
dejely:fix-behavior-mismatch

Conversation

@dejely
Copy link

@dejely dejely commented Feb 3, 2026

Summary

Fixes #147 - DEV_MODE does not actually disable gateway token use in container (Behavior mismatch)

Changes

  • Adjusted gateway token handling so it’s skipped in both DEV_MODE and E2E_TEST_MODE, and added corresponding unit tests to lock in the behavior. This keeps dev/E2E flows from unintentionally enabling token auth when a token is present.

  • env.ts skips mapping MOLTBOT_GATEWAY_TOKEN when DEV_MODE or E2E_TEST_MODE is true

Testing:

  • All 84 unit tests passed (7 files)

@dejely dejely changed the title Fix behavior mismatch fix(behavior): Respect DEV/E2E modes when mapping gateway token Feb 3, 2026
@dejely
Copy link
Author

dejely commented Feb 5, 2026

Hello, Just wanted to bump this in case it slipped through, happy to adjust the approach if needed (refactoring, changes, etc.) . Thanks for maintaining the project guys :)

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.

DEV_MODE does not actually disable gateway token use in container (Behavior mismatch)

1 participant