Repository navigation
feat(tuios): rconのDocker container sessionをTUIOSで使えるようにする - #439
Merged
Merged
Conversation
shonenm
force-pushed
the
feat/tuios-rcon-container
branch
from
October 19, 2026 03:20
74e10d2 to
0c461c9
Compare
- tui rconでtargetsからcontainerを選び、sessionのホストへ登録してから作成・表示する - 登録済みsessionのpane shellはtmux-docker-enterでcontainerへ入る - 新規paneは同じsessionで最後にpromptを出したpaneのcontainer内cwdを引き継ぐ - lazygit・live-pr・pgcli・quayのpopupをfocus中paneのcontainer・cwdで開く - tmux-pane-contextをTUIOSのcommand entry環境変数と登録ファイルに対応させる
shonenm
force-pushed
the
feat/tuios-rcon-container
branch
from
October 19, 2026 03:27
0c461c9 to
18ca912
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tmux の rcon で使っていた Docker container 連携を TUIOS でも使えるようにする。container に紐づけた session では、pane・split・popup が container 内で開き、cwd も引き継ぐ。
Changes
tui rcon [host:container]を追加する。~/.config/rcon/targetsから fzf で選ぶか、引数で指定する。${XDG_STATE_HOME:-~/.local/state}/tuios-rcon/<session>に container 名を書いてから、session を作成・表示する。[hosts]のaddrに SSH して書く。tmux-default-shell: 登録済み session の pane shell(引数なし、$TMUXなし)はtmux-docker-enterで container に入る。分割・新規 pane・daemon 再起動後の復元にも同じ経路が効く。tmux-docker-enter: TUIOS の pane ではRCON_PANE_IDを container に渡す。RCON_PANE_IDでも pane ごとの cwd ファイルを書く。TUIOS の pane では prompt のたびに更新する。tmux-pane-context: TUIOS では command entry のTUIOS_SESSION/TUIOS_ACTIVE_PANE_ID/TUIOS_ACTIVE_PANE_CWDと state file を読む。tmux 経路の出力は変えない。tmux-popup-in-container経由にする。docs/tools/tuios.mdに Container session の節を追加し、docs/infrastructure/rcon.mdからリンクする。Test plan
python3 scripts/test-tui.py(33件)。登録・SSH 経由の登録・pane shell の分岐・pane context・新規 pane の cwd 選択を、偽の docker / tuios / tmux で確認TUIOS_SERVER、一時XDG_CONFIG_HOME/XDG_STATE_HOME)と一時 alpine container での E2Etui rcon local:<container>で pane が container に入るcdしてからprefix |で分割すると、新しい pane が同じ container 内 cwd で開くtmux-pane-contextの tmux 経路の出力が main と同一scripts/check-markdown-links.py/scripts/check-package-duplication.shailab:<container>)での実機確認。稼働中のホストに触れないよう未実施