hdresearch / nolita

Work with web-enabled agents quickly — whether running a quick task or bootstrapping a full-stack product.
https://nolita.ai
MIT License
79 stars 3 forks source link

headless flag doesn't seem to do anything #59

Closed harperreed closed 2 months ago

harperreed commented 2 months ago

npx nolita doesn't respect the headless flag (either by --headless, setting the HDR_HEADLESS env var, or setting it in the config). It just runs the process headless regardless of whether the flag is true or false.

matildepark commented 2 months ago

I'll double check the logic in bin real quick.

harperreed commented 2 months ago

i may be making a mistake. just want to double check that it is doing what it is saying it is doing (i think it is)

matildepark commented 2 months ago

We're preparing to release 2.0 on stable within the next week but once #60 merges you can run npx nolita@alpha to run this normally. It's just boring JavaScript type coercion shenanigans. Thank you for spotting this.

In general the proper usage is just passing true, false, "true", "false" with --headless.

harperreed commented 2 months ago

ok great! will try it then