retire _transportable's refusal of -X=value, -t... and -- once a psmux release carries the psmux/psmux#795 fix
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 12/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
- 领域
- backend, testing-qa
调研方向
Start with PsmuxMultiplexer._transportable in src/bmad_loop/adapters/psmux_backend.py, then the "Refused option values" section of docs/multiplexer-backends.md. The work depends on an upstream psmux release that does not exist yet, so it can't be finished until that release ships. Done means the version gate, the CI pin in ci.yml, the clause and doc sentence removal, a test_adopted_* row in tests/test_psmux_live.py that fails against a fake of the 3.4.0 behaviour, and a CHANGELOG entry.
由索引模型根据 Issue 内容生成。
描述
psmux fixed psmux/psmux#795 on master in 20ef00fb. Until then, its client argv normalizers rewrote option values shaped like flags: -x=foo was stored as -x foo, and -t… and a bare -- were refused. bmad-loop works around that in #908 (#905): _transportable refuses those three shapes, so they take the visible path (a warning, and the key freed) instead of being stored corrupted. As of 2026-10-14 no release carries the fix. The latest tag is v3.4.0, and git tag --contains 20ef00fb is empty.
What retires: the clause in PsmuxMultiplexer._transportable (src/bmad_loop/adapters/psmux_backend.py):
if value == "--" or value.startswith("-t") or re.match(r"-[A-Za-z]=.", value):
return False
Also retire the sentence in docs/multiplexer-backends.md ("Refused option values") that names these three shapes.
What stays: every other _transportable rule (empty, a double quote, a line break, edge whitespace). Each one has its own reason in the docstring, and none of them depends on psmux/psmux#795.
The trigger
tests/test_psmux_live.py::test_premise_an_argv_flag_shaped_option_value_is_not_stored pins the 3.4.0 behaviour for each shape: -x=foo reads back -x foo at rc 0, and -t… and -- fail. It turns red on a psmux build that stores them verbatim. The weekly psmux-canary workflow runs the live gate against the latest psmux release, so that is where the red shows first.
How to retire it (not a plain deletion)
Retire it behind the version gate, as #900 did for psmux/psmux#583:
- Move
_LAST_UNSUPPORTEDto the last release without 20ef00fb (the gate is exclusive), and move the CI gate's pin (ci.yml,version:) to the first release that has it. - Delete the clause and its doc sentence.
- Turn the premise row into an ordinary-direction
test_adopted_*row: the three shapes are stored verbatim. Show that it fails against a fake of the 3.4.0 behaviour. - Add a CHANGELOG entry: an upgrade item for the floor, plus
Removedfor the refusal.
On any admitted build below the fix, removing the clause brings back silent corruption of a -X=value option value. A tag that reads back differently makes a window silently unprunable.
Checked: bmad-loop is not exposed to the rest of psmux/psmux#795
While fixing it, the maintainer found the same corruption in rename-session, set-buffer, new-window -n and display -p. bmad-loop never passes those commands a value starting with -:
- session names are
bmad-loop-<run id>andbmad-loop-ctl; - window names are run, sweep and control-window names that start with a letter;
- it does not use
set-bufferorrename-session; - its
display-message -pcalls pass only format strings that start with#{.
So _transportable remains the only workaround to retire.
Refs #905, #908
- 主要语言
- Python
- 星标
- 196
- 派生
- 78
- 平均合并
- 9 小时 24 分钟
- 30 天内合并 PR
- 44
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bmad-code-org/bmad-loop 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
bmad-code-org/bmad-loop#1063 ·
维护者通常 1 天内回复
-
psmux: task window name starting with '-' creates no window; session reads as crashed可能已有人在做 @RECOHA 于 8 天前认领。 未关闭
难度 1/5 1-3 小时 新手友好度 82/100
bmad-code-org/bmad-loop#1061 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
bmad-code-org/bmad-loop#1057 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
bmad-code-org/bmad-loop#973 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
bmad-code-org/bmad-loop#965 ·
维护者通常 1 天内回复
查看 bmad-code-org/bmad-loop 的全部 Issue
相似的 Issue
-
DMB documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 76/100
ubuntu/ubuntu-project-docs#921 ·
维护者通常 1 天内回复
-
⏳ Pending feedback 🐛 Bug
难度 2/5 1-3 小时 新手友好度 70/100
jumpserver/jumpserver#18282 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 76/100
ClickHouse/loom#2014 ·
维护者通常 1 天内回复
-
accepted
难度 2/5 1-3 小时 新手友好度 67/100
future-agi/future-agi#5274 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 2 天内回复