Skip to content

fix(container-runtime): honor the timeout option on Docker exec - #48

Merged
artempartos merged 1 commit into
developfrom
fix/docker-exec-timeout
Aug 7, 2026
Merged

artempartos merged 1 commit into
developfrom
fix/docker-exec-timeout

Conversation

@artempartos

Copy link
Copy Markdown
Contributor

What

DockerRuntime#exec now honours the timeout: option, and BmadMethodInjector passes INSTALL_TIMEOUT when it runs the BMAD install.

Why

DockerRuntime#exec forwarded its options straight to docker-api, which has no timeout key — it spells the Excon read timeout wait. The option was silently merged into the exec-create body and ignored, so every long exec ran against Excon's 60s default. KubernetesRuntime already reads timeout: (defaulting to 30s), and SessionContextService already passes it, so the key was established — Docker just dropped it.

Found while smoke-testing the BMAD 6.10.0 bump (#46) in a live session: 6.10.0 fetches bmb/cis/wds from GitHub and takes ~62s, so the install exec died at 60s and the session recorded:

bmad_install_status = failed
bmad_install_error  = "read timeout reached"

Verification

Same flow through the UI after the fix — Claude Code session with BMAD enabled, Demo Alpha project:

  • bmad_install_status = success
  • container has _bmad/_config/manifest.yaml → version: 6.10.0 and 76 skills in /workspace/.claude/skills
  • agent invoked Skill(bmad-help), Skill(wds-agent-freya-ux) and Skill(bmad-cis-agent-storyteller) — all loaded, including the two external modules

docker compose exec -T web make check_all — all green (rails-test, rubocop, brakeman, system-test, eslint, typescript, fe-test, vite-build).

🤖 Generated with Claude Code

DockerRuntime#exec passed its options straight through to docker-api, which
has no `timeout` key — it spells the Excon read timeout `wait`. The option was
therefore silently merged into the exec-create body and ignored, leaving every
long exec on Excon's 60s default.

The BMAD install is the first caller to outrun it: 6.10.0 fetches bmb, cis and
wds from GitHub and takes ~62s, so the exec died with "read timeout reached"
and the session came up without BMAD. Verified end to end after the fix — a
Claude Code session with BMAD enabled now records bmad_install_status=success
and loads skills from /workspace/.claude/skills.

Translate `timeout:` to `wait:` in DockerRuntime so the option means the same
thing on both runtimes (KubernetesRuntime already reads `timeout:`, defaulting
to 30s), and have BmadMethodInjector pass INSTALL_TIMEOUT.

Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
@artempartos
artempartos merged commit 17cc84c into develop Aug 7, 2026
6 checks passed
alex-astafyev pushed a commit to alex-astafyev/flow that referenced this pull request Aug 19, 2026
* origin/develop:
  feat(resources): unify Agents/Wrappers/Repositories/Integrations tables (AixleHQ#51)
  feat(personal-mcp): add trigger, authoring and diagnostic tools (AixleHQ#52)
  ci: stop cancelling develop runs when merges land back to back (AixleHQ#50)
  fix(container-runtime): honor the timeout option on Docker exec
  fix(container-runtime): honor the timeout option on Docker exec (AixleHQ#48)
  ci: publish coverage badges from develop runs (AixleHQ#49)

# Conflicts:
#	.github/workflows/ci.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant