berth wire has no wait option, and --update clobbers hand-edited wrapper flags
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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
-
No per-model wait. A model wrapped by
berth wirewaits only as long as the request names — with no per-model wait anywhere, that meansberthd'sDefaultWait(120 s default, broker). There is no wait inberth.tomlengine entries and no wait flag onberth 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. -
--updateclobbers hand edits. The only workaround is editing the wrapper line by hand, and that edit is silently lost by the nextwire --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 分钟
- 30 天内合并 PR
- 225
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
T-Crypt/berth 的其他 Issue
-
难度 5/5 一周以上 新手友好度 42/100
维护者通常 1 天内回复
-
berthd --gpu-backend amd exits at startup on a desktop session: "process VRAM exceeds card usage"未关闭
难度 4/5 1-2 天 新手友好度 48/100
维护者通常 1 天内回复
-
Lend part of a card from a running engine and get it back, without a park or a reload可能已有人在做 @T-Crypt 于 6 天前认领。 未关闭
T-Crypt/berth#189 · 26 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
Idea: Proxmox support in every layout (testers wanted)可能已有人在做 @sharmis-tp 于 3 天前认领。 未关闭enhancement help wanted
难度 5/5 一周以上 新手友好度 25/100
T-Crypt/berth#128 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
schema-drift
难度 2/5 1-3 小时 新手友好度 72/100
stefanhoth/paperless-ngx-cli#61 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
slavakurilyak/awesome-ai-agents#888 ·
维护者通常 1 天内回复
-
enhancement nav-pilot
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
kind/enhancement
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复