@@ -23,7 +23,6 @@ import { join, resolve } from 'path'
2323const PROJECT_ROOT = resolve ( import . meta. dir , '..' )
2424const LOG_DIR = join ( PROJECT_ROOT , 'debug' , 'console' )
2525const PID_FILE = join ( LOG_DIR , 'services.json' )
26- // Use the .bin/bun wrapper with CODEBUFF_SKIP_ENV_CLEAR to preserve inherited env vars
2726const BUN_PATH = join ( PROJECT_ROOT , '.bin' , 'bun' )
2827
2928// Get config from environment (Bun loads .env files automatically)
@@ -156,7 +155,7 @@ function startDb(): boolean {
156155 const result = spawnSync ( BUN_PATH , [ '--cwd' , 'packages/internal' , 'db:start' ] , {
157156 cwd : PROJECT_ROOT ,
158157 stdio : [ 'ignore' , logFile , logFile ] ,
159- env : { ... process . env , CODEBUFF_SKIP_ENV_CLEAR : 'true' } ,
158+ env : process . env ,
160159 } )
161160
162161 if ( result . status !== 0 ) {
@@ -180,7 +179,7 @@ function spawnBackgroundProcess(
180179 cwd : PROJECT_ROOT ,
181180 detached : true ,
182181 stdio : [ 'ignore' , logFile , logFile ] ,
183- env : { ... process . env , CODEBUFF_SKIP_ENV_CLEAR : 'true' } ,
182+ env : process . env ,
184183 } )
185184
186185 child . unref ( )
@@ -253,7 +252,7 @@ function startCli(args: string[]): Promise<number> {
253252 cliProcess = spawn ( BUN_PATH , [ '--cwd' , 'cli' , 'dev' , ...args ] , {
254253 cwd : PROJECT_ROOT ,
255254 stdio : 'inherit' ,
256- env : { ... process . env , CODEBUFF_SKIP_ENV_CLEAR : 'true' } ,
255+ env : process . env ,
257256 } )
258257
259258 cliProcess . on ( 'close' , ( code ) => {
0 commit comments