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

psmux: decide whether bmad-loop should support `PSMUX_BARE_ENV`

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

まず pane.rs:890 の PSMUX_BARE_ENV predicate、server/mod.rs:1023 と pane.rs の session environment handling、そして main.rs の cold-start path を読んでください。#537 の review history を使って互換性の制約を特定し、そのうえで、明示的な opt-in による contract revision が window-0 と parked-engine environments について何を維持する必要があるかを定義してください。完了の条件は、support に関する決定が確定し、実装可能な interface の方向性が定まっていることです。

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

説明

area:psmux needs-design P4

psmux's PSMUX_BARE_ENV=1 (its escape hatch for CreateProcessW err 87 on bloated Windows environments, psmux#167) env_clears every pane child and repopulates from a 14-name allowlist. That deletes BMAD_LOOP_STATE_DIR and the LOCALAPPDATA its default cascade falls back to, so any pane shell that runs bmad-loop derives a different state root — and with it a different psmux registry — and reads live sessions as gone.

#537 declares the mode unsupported: coding-CLI windows still work (their env rides the in-source -EncodedCommand prelude, applied after the clear), and the psmux backend warns once per process when the switch is on. What does NOT survive is inheritance into a session's window-0 shell and the TUI's parked engine windows.

Supporting it means an env transport on the session- and parked-window verbs. That was attempted on #537 across five review rounds and cut: widening the released signatures breaks out-of-tree backends (TypeError), signature-probing around that misbinds (a trailing default swallowed the env dict), and a delegation layer with concrete env-taking entries bypasses subclass overrides of the released verbs and turns same-named helpers into accidental capability declarations. A workable design likely needs a new, differently-named verb pair introduced as an explicit opt-in contract revision — a seam version bump, not a compatibility shim.

Facts to build on, all source-read at psmux v3.3.8 and measured on #537: the mode's predicate is "1"/case-insensitive "true" in the SERVER's env (pane.rs:890); new-session -e pairs are merged into the session env before the first pane spawns and applied after the clear (server/mod.rs:1023, pane.rs), so -e is a working transport for window 0; a -e create never claims a warm server (main.rs, env_vars.is_empty()), so such mints are always cold starts; and an in-source $env: prelude survives the mode.

Related: #537 (per-project registry root; the warning), the ambient-PSMUX_DATA_DIR design issue drafted alongside it.

主要言語
Python
スター
160
フォーク
68
平均マージ
1日 1時間
マージ済み PR(30日)
84

環境構築

はじめの一歩

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

bmad-code-org/bmad-loop のほかの issue

bmad-code-org/bmad-loop の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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