ductor icon indicating copy to clipboard operation
ductor copied to clipboard

[Bug]: Windows Docker + Gemini runtime issues in dev build

Open liuh886 opened this issue 8 months ago • 2 comments

What happened?

I hit several Windows-specific runtime issues while using the dev build with Docker + Gemini enabled.

Observed problems:

  • pythonw.exe service startup can fail because sys.stderr is None
  • Gemini CLI is invoked with an empty -p "", which causes stdin input to be ignored
  • Windows paths are passed into Docker exec with backslashes, producing invalid container paths for sub- agents

Examples:

  • AttributeError: 'NoneType' object has no attribute 'isatty'
  • No input provided via stdin - Session error "Yolo mode"
  • Session error Gemini exited with code 127
Image Image

Impact:

  • service startup may fail on Windows
  • Gemini requests can fail even when Docker and Gemini are installed correctly
  • sub-agents in Docker may break due to invalid cwd/env paths

A fix is prepared in PR based on commit d9063a4 ,

Steps to Reproduce

  1. Window environment, Dev install Ductor
  2. Enable Docker
  3. Start service
  4. Setting model to Gemini
  5. Start a chat

Expected Behavior

Gemini Cli shall start without any error

Operating System

Windows

Environment

Docker

Which LLM provider?

Gemini

ductor version

0.12.0

/diagnose output


Relevant log output

Gemini Log Error:

  2026-03-08 02:00:32 [INFO] ductor_bot.cli.gemini_provider:gemini_provider.py:578:
  [seismic-bot:msg:7872316431] Gemini stream cmd: docker exec -i -w /ductor/agents\seismic-
  bot\workspace ... GEMINI_SYSTEM_MD=/ductor\tmp\gemini_system_45mnl9em.md ductor-sandbox gemini --output-
  format stream-json --include-directories . --model auto --approval-mode yolo --include-directories /mnt
  2026-03-08 02:00:32 [INFO] ductor_bot.cli.service:service.py:232:
  [seismic-bot:msg:7872316431] CLI streaming completed label=main fallback=False timed_out=False
  2026-03-08 02:00:32 [WARNING] ductor_bot.orchestrator.flows:flows.py:152:
  [seismic-bot:msg:7872316431] Session error preserved model=auto provider=gemini
  2026-03-08 02:00:32 [INFO] ductor_bot.bot.message_dispatch:message_dispatch.py:131:
  [seismic-bot:msg:7872316431] Streaming flow completed fallback=False content=False

Windows +  Docker path error:

  OCI runtime exec failed: exec failed: unable to start container process:
  chdir to cwd ("/ductor/agents\\seismic-bot\\workspace") set in config.json failed:
  no such file or directory

LLM self-diagnosis (optional)

No response

Additional context

No response

Before submitting

  • [x] I have searched existing issues for duplicates.
  • [x] I am running the latest version.

liuh886 avatar Mar 07 '26 18:03 liuh886

Hi! I'm interested in helping with this. Could you share more context about the use case?

clawdney avatar Mar 08 '26 03:03 clawdney

Fixed in 15c7c97 — thanks for the detailed report and your own fix in PR #35!

  • sys.stderr is None guard for pythonw.exe
  • .as_posix() and .replace("\\", "/") for container path translation
  • Removed -p "" flag that prevented Gemini from reading stdin

PleasePrompto avatar Mar 08 '26 03:03 PleasePrompto