You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(sandbox): devops sandbox logs fails on a real Docker engine because the docker SDK's logs call takes no demux argument #2520
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonesource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
devops sandbox logs cannot read the logs of a sandbox from a real Docker engine. DockerEngineService.container_log_stream (src/devops_cli/docker/engine.py) calls container.logs(..., demux=True), and the docker SDK has no demux argument on logs. Every call raises TypeError, which the service turns into DockerEngineError("Container log stream failed: ..."). sandbox/engine.py_fetch_container_logs_raw is the only caller.
Evidence
docker-py 7.2.0 (the pinned version): ContainerApiMixin.logs(self, container, stdout=True, stderr=True, stream=False, timestamps=False, tail='all', since=None, follow=None, until=None) has no demux. Only exec_start and attach take demux.
Against a local Docker Engine 29.9.2 (API 1.56), on 2026-10-28: container.logs(stdout=True, stderr=True, stream=False, follow=False, tail="all", timestamps=False, demux=True) raised TypeError: ContainerApiMixin.logs() got an unexpected keyword argument 'demux'. The same call without demux returned b'out\nerr\n'.
The tests did not see it: tests/test_sandbox_logs.py::test_engine_logs_demux_stream_preservation gives the service a mock client that accepts any argument.
tests/test_sandbox_logs.py gives up the mock client for that case.
Key questions
Which SDK call keeps the two streams apart? attach(..., logs=True, demux=True) has no tail or timestamps. Two logs calls (stdout only, stderr only) lose the order between the streams. The design records the choice and the rejected options with evidence.
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonesource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The code passes an unsupported keyword to the SDK, causing a TypeError on every real Docker engine call.devops sandbox logs is completely broken against any real Docker engine; every call raises TypeError.The command is non-functional for all users who run it against a real Docker engine.The fix replaces one SDK call with a supported alternative and updates one test; the design choice is small.Both work on DockerEngineService and sandbox logs, but the candidate fixes a production TypeError while 1316 builds the test fake and contract suite.refactor(docker): DockerEngineService is the Docker engine seam, with…
fix(sandbox): devops sandbox logs reads each line with its stream fro…
chore(main): release 0.12.0 (#2552)