tinyclaw icon indicating copy to clipboard operation
tinyclaw copied to clipboard

Docker setup not working: add special flag and utilize --web option

Open warengonzaga opened this issue 9 months ago • 9 comments

Problem: Docker is not working as expected. When running Docker, the CLI appears, but users cannot proceed with the setup.

Steps to Reproduce:

  1. Run Docker for the project.
  2. Observe that the CLI opens, but setup cannot be completed as a user.

Expected Behavior: Users should be able to configure the project via the Docker CLI setup.

Proposed Solution:

  • Add a special flag to the CLI specifically for Docker installation.
  • Create/extend the setup flag to utilize the --web option to support Docker-specific installations.

Notes: This improvement will enhance usability for users running the project in Docker environments and streamline setup procedures.

warengonzaga avatar Feb 22 '26 03:02 warengonzaga

@youhanasheriff are you taking this or I'll take this?

warengonzaga avatar Feb 23 '26 02:02 warengonzaga

Hey @warengonzaga, I got busy the whole weekend. I still can't make time to look into it. Either you can take this or I can take this up tomorrow.

youhanasheriff avatar Feb 23 '26 04:02 youhanasheriff

Hey @warengonzaga, I got busy the whole weekend. I still can't make time to look into it. Either you can take this or I can take this up tomorrow.

No worries!

warengonzaga avatar Feb 23 '26 10:02 warengonzaga

Hey @warengonzaga,

What's the status?

youhanasheriff avatar Feb 24 '26 06:02 youhanasheriff

Haven't check this @youhanasheriff I can assign it to you need to fix the dev branch first.

warengonzaga avatar Feb 24 '26 07:02 warengonzaga

Starting this today guys!. Will update on the progress later tonight.

youhanasheriff avatar Feb 24 '26 22:02 youhanasheriff

Nice issue write-up. Since this is already assigned, a low-risk implementation detail is to parse Docker detection early and route setup into a non-interactive web-safe path.

Concretely: expose one explicit --docker mode (can internally map to --web) and skip TTY-only prompts when CI/container env is detected. That usually prevents the “CLI opens but cannot proceed” dead-end.

lustsazeus-lab avatar Feb 24 '26 23:02 lustsazeus-lab

Nice issue write-up. Since this is already assigned, a low-risk implementation detail is to parse Docker detection early and route setup into a non-interactive web-safe path.

Concretely: expose one explicit --docker mode (can internally map to --web) and skip TTY-only prompts when CI/container env is detected. That usually prevents the “CLI opens but cannot proceed” dead-end.

@youhanasheriff you might want to consider this ^

warengonzaga avatar Feb 24 '26 23:02 warengonzaga

Since there was maintainer activity after the initial report, one practical follow-up is adding a tiny integration test that runs setup in a container-like non-TTY env () and asserts it exits with actionable guidance (or auto-switches to web mode). That would lock in the Docker fix and prevent regressions.

lustsazeus-lab avatar Feb 25 '26 03:02 lustsazeus-lab