Repository navigation
fix(container-runtime): honor the timeout option on Docker exec - #48
Merged
Merged
Conversation
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]>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
DockerRuntime#execnow honours thetimeout:option, andBmadMethodInjectorpassesINSTALL_TIMEOUTwhen it runs the BMAD install.Why
DockerRuntime#execforwarded its options straight to docker-api, which has notimeoutkey — it spells the Excon read timeoutwait. The option was silently merged into the exec-create body and ignored, so every long exec ran against Excon's 60s default.KubernetesRuntimealready readstimeout:(defaulting to 30s), andSessionContextServicealready 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/wdsfrom GitHub and takes ~62s, so the install exec died at 60s and the session recorded:Verification
Same flow through the UI after the fix — Claude Code session with BMAD enabled, Demo Alpha project:
bmad_install_status = success_bmad/_config/manifest.yaml → version: 6.10.0and 76 skills in/workspace/.claude/skillsSkill(bmad-help),Skill(wds-agent-freya-ux)andSkill(bmad-cis-agent-storyteller)— all loaded, including the two external modulesdocker 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