Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

berth wire has no wait option, and --update clobbers hand-edited wrapper flags

クローズ
#231 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
backend, cli

調査の方向性

Start by reading internal/wire/wire.go and tracing the berth wire flags and how wrapperLine handles existing wrapped lines. Check the discussion and implementation context in #172 for the intended --wait behavior. Done means wire writes the wait setting on each line and preserves it on --update, or clearly warns before dropping unsupported hand-edited flags.

索引モデルが issue の本文から書いたものです。

説明

Problem

  1. No per-model wait. A model wrapped by berth wire waits only as long as the request names — with no per-model wait anywhere, that means berthd's DefaultWait (120 s default, broker). There is no wait in berth.toml engine entries and no wait flag on berth wire (current flags: --config --api --bin --group --priority --update --write --check). For a batch job that parks behind a resident foreground lease, 120 s is not enough: the job exits before the berth frees.

  2. --update clobbers hand edits. The only workaround is editing the wrapper line by hand, and that edit is silently lost by the next wire --write --update: wrapperLine (internal/wire/wire.go) rewrites each wrapped line with exactly the flags wire writes (run --as NAME [--group] [--priority] --drain-post … --), and any flag wire didn't write — e.g. --needs-mib 14000 -wait 700s — is stripped with no warning.

Live example (llama-swap config, hand-edited line that wire --update would strip):

F:\AI\berth\berth.exe run --as qwen-3.8-27b --group llama-swap --priority foreground --needs-mib 14000 -wait 700s --drain-post http://127.0.0.1:1233/api/models/unload/qwen-3.8-27b --

Example solution

berth wire --wait 800s writes the flag on every line and keeps it on --update — the shape discussed in #172, which fixes both points at once.

A warning (or refusal) when an existing wrapped line carries flags wire would drop would make the clobber visible even before the knob exists.

Environment

  • Windows 11, RTX 5070 Ti (16 GiB)
  • berth v0.4.0-rc.3 binary; code verified at main @ 0ebd1c5
主要言語
Go
スター
226
フォーク
20
平均マージ
51分
マージ済み PR(30日)
225

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

T-Crypt/berth のほかの issue

T-Crypt/berth の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。