Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.93 KB

File metadata and controls

29 lines (15 loc) · 1.93 KB

PR #1057 Summary

What the PR Claims to Do

The PR title is: fix(host-agent): runtime hygiene — narrow pull, surface failures, normalize bind volumes

The PR modifies a single file: dream-server/bin/dream-host-agent.py (73 insertions, 13 deletions).

Claimed Changes (from commit message)

  1. Narrow docker compose pull: Filter out other user extensions' compose files from the pull step so an unrelated extension's unset :? guard no longer aborts the install. The downstream up step still uses full flags.

  2. stderr tail-truncation: Replace stderr[:N] (head-truncation) with stderr[-N:] (tail-truncation) at three sites in _handle_install. Docker-compose errors appear at the END of stderr after the layer-pull preamble.

  3. _write_model_status OSError logging: Log OSError write failures instead of silently swallowing them. Behavior preserved (does not raise) so the activate flow continues.

  4. _recreate_llama_server raises on failure: Replace silent log-and-fall-through with RuntimeError that includes the docker-run stderr tail. This prevents the activate flow from hanging for 5 minutes waiting for a health check that will never succeed.

  5. HTTP 403 vs 500 distinction: Distinguish "model not in catalog" (403) from "model catalog unavailable" (500) in the host-agent's library validation. Apply the same logger.exception + 500 pattern to _handle_model_list.

  6. _precreate_data_dirs long-form volume support: Handle long-form Compose volume entries ({type: bind, source: ./foo, target: /bar}) and skip relative bind sources Docker does not pre-expand (~, $VAR, backtick, backslash).

Bounty Tier

The PR does not explicitly state a bounty tier. Given the scope (6 distinct fixes in one file), this appears to be a Medium ($150) tier PR — multiple related fixes in a single file with moderate risk.

Author

Yasin Bursalı (yasinbursali38@gmail.com), co-authored by Claude Opus 4.7.