@towles/tool 0.0.131 → 0.0.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towles/tool",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
4
4
  "description": "One off quality of life scripts that I use on a daily basis.",
5
5
  "homepage": "https://github.com/ChrisTowles/towles-tool#readme",
6
6
  "bugs": {
@@ -259,6 +259,9 @@ function AgentRow(props: AgentRowProps) {
259
259
  backgroundColor={bgColor()}
260
260
  onMouseDown={(event) => {
261
261
  if (event.target?.id === "dismiss") return;
262
+ // Stop the click bubbling to SessionCard's onSelect, which would fire
263
+ // switch-session and clobber the precise pane that onFocusPane selects.
264
+ event.stopPropagation();
262
265
  triggerFlash();
263
266
  props.onFocusPane();
264
267
  }}
@@ -931,6 +931,7 @@ export function startServer(
931
931
  const raw = shell([
932
932
  "tmux",
933
933
  "list-panes",
934
+ "-s",
934
935
  "-t",
935
936
  sessionName,
936
937
  "-F",
@@ -999,6 +1000,15 @@ export function startServer(
999
1000
  if (!targetPaneId) return;
1000
1001
 
1001
1002
  log("focus-agent-pane", "focusing", { sessionName, agentName, paneId: targetPaneId });
1003
+ // The agent's pane may live in a different session/window than the one the
1004
+ // client is attached to. switch-client moves the active client to the
1005
+ // agent's session, select-window to its window, select-pane to the pane.
1006
+ // We deliberately omit `-c <tty>`: clients can share a tty name (e.g. a
1007
+ // stale suspended duplicate), making `-c` match the wrong client and
1008
+ // silently no-op. Without `-c`, tmux targets the most-recently-active
1009
+ // client, which is the real interactive one.
1010
+ shell(["tmux", "switch-client", "-t", sessionName]);
1011
+ shell(["tmux", "select-window", "-t", targetPaneId]);
1002
1012
  shell(["tmux", "select-pane", "-t", targetPaneId]);
1003
1013
 
1004
1014
  const existing = pendingHighlightResets.get(targetPaneId);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tt",
3
3
  "description": "Core dev workflow commands and skills: interview-me, write-prd, prd-to-issues, tdd, improve-architecture, refine-text, task, parallel-slots, towles-tool.",
4
- "version": "0.0.131",
4
+ "version": "0.0.132",
5
5
  "author": {
6
6
  "name": "Chris Towles"
7
7
  }