@@ -91,6 +91,7 @@ describe("gateway-watch tmux wrapper", () => {
9191 args : [ "gateway" , "--force" , "--raw-stream-path" , "a b.jsonl" ] ,
9292 cwd : "/repo with spaces/openclaw" ,
9393 env : {
94+ OPENCLAW_DEV_SOURCE_ROOT : "/selected checkout" ,
9495 OPENCLAW_GATEWAY_PORT : "19001" ,
9596 OPENCLAW_GATEWAY_RESTART_TRACE : "1" ,
9697 OPENCLAW_GATEWAY_STARTUP_TRACE : "1" ,
@@ -109,6 +110,7 @@ describe("gateway-watch tmux wrapper", () => {
109110 expect ( command ) . toContain ( "'OPENCLAW_GATEWAY_WATCH_SESSION=openclaw-gateway-watch-main'" ) ;
110111 expect ( command ) . toContain ( "'\\''-u'\\'' '\\''NO_COLOR'\\''" ) ;
111112 expect ( command ) . toContain ( "'FORCE_COLOR=1'" ) ;
113+ expect ( command ) . toContain ( "'OPENCLAW_DEV_SOURCE_ROOT=/selected checkout'" ) ;
112114 expect ( command ) . toContain ( "'OPENCLAW_GATEWAY_PORT=19001'" ) ;
113115 expect ( command ) . toContain ( "'OPENCLAW_GATEWAY_RESTART_TRACE=1'" ) ;
114116 expect ( command ) . toContain ( "'OPENCLAW_GATEWAY_STARTUP_TRACE=1'" ) ;
@@ -126,7 +128,7 @@ describe("gateway-watch tmux wrapper", () => {
126128 expect ( command ) . toContain ( "--handoff-managed-service" ) ;
127129 } ) ;
128130
129- it ( "runs managed service handoff before watching" , ( ) => {
131+ it ( "runs managed service handoff before watching and clears an omitted development selector " , ( ) => {
130132 const command = buildGatewayWatchTmuxCommand ( {
131133 args : [ "gateway" , "--force" ] ,
132134 cwd : "/repo" ,
@@ -136,6 +138,8 @@ describe("gateway-watch tmux wrapper", () => {
136138 } ) ;
137139
138140 expect ( command ) . toContain ( "scripts/gateway-watch-tmux.mts" ) ;
141+ expect ( command ) . toContain ( "'\\''-u'\\'' '\\''OPENCLAW_DEV_SOURCE_ROOT'\\''" ) ;
142+ expect ( command ) . not . toContain ( "OPENCLAW_DEV_SOURCE_ROOT=" ) ;
139143 expect ( command ) . toMatch (
140144 / g a t e w a y - w a t c h - t m u x \. m t s .* h a n d o f f - m a n a g e d - s e r v i c e .* & & e x e c .* s c r i p t s \/ w a t c h - n o d e \. m j s / ,
141145 ) ;
0 commit comments