Skip to content

Commit d3cac6e

Browse files
authored
Merge pull request #631 from njhale/chore/ui-run-file-env
chore: set the run file env var when starting the ui
2 parents 9ca6e93 + b2b58bb commit d3cac6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cli/gptscript.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func (r *GPTScript) Run(cmd *cobra.Command, args []string) (retErr error) {
371371
gptOpt.Env = append(gptOpt.Env, "GPTSCRIPT_SDKSERVER_CREDENTIAL_OVERRIDE="+strings.Join(r.CredentialOverride, ","))
372372
}
373373

374-
args = append([]string{args[0]}, "--file="+file)
374+
gptOpt.Env = append(gptOpt.Env, "UI_RUN_FILE="+file)
375375

376376
if len(args) > 2 {
377377
args = append(args, args[2:]...)

0 commit comments

Comments
 (0)