Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#730 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách đọc predicate PSMUX_BARE_ENV trong pane.rs:890, phần xử lý session environment trong server/mod.rs:1023 và pane.rs, cùng cold-start path trong main.rs. Sử dụng lịch sử review của #537 để xác định các ràng buộc tương thích, sau đó xác định một explicit opt-in contract revision cần bảo toàn những gì cho window-0 và parked-engine environments; hoàn tất có nghĩa là đã thống nhất quyết định về support và định hướng interface có thể triển khai.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
160
Fork
68
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
90

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bmad-code-org/bmad-loop

Tất cả issue của bmad-code-org/bmad-loop

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.