Commit 819316c
authored
fix(cockpit): recognize CC 2.1.x seats in the tmux liveness path too (#374)
Follow-up to #371 (which fixed the process-scan signal). Philipp verified the
parallel blind spot I flagged: on CC 2.1.212, `tmux list-panes -F
'#{pane_current_command}'` reports "2.1.212" for every live claude pane (not
"claude"), so `_live_tmux_panes`'s {claude,node} membership test silently dropped
all 9 of his live seats via the tmux signal.
tmux only gives the command NAME (mangled), not argv — so we resolve the pane's
process. Fast-path claude/node; for panes whose command matches a version-string
regex (the CC-mangle signature, e.g. "2.1.212"), tree-walk the pane_pid's process
via psutil and reuse _is_claude_proc (the #371 cmdline[0]-basename match). Only
version-named panes are tree-walked — shells / python / other tools cost nothing.
+4 tests (regex / mangled-pane-detected / mangled-without-claude-excluded /
_pane_hosts_claude via cmdline).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qe4uGwYbVtE5CFZdsBwata
Epistemic-AI: empirica
Epistemic-Model: claude-haiku-4-5
Epistemic-Persona: implementer
Epistemic-Learning-Delta: 0.15 (0.75 → 0.9)
Epistemic-Mastery-Delta: 0.10 (0.80 → 0.90)
Epistemic-Uncertainty-Delta: -0.10 (0.2 → 0.1)
Epistemic-Engagement: 0.9
Epistemic-Completion: 1.0
Epistemic-Session: eab127be-0179-4d77-8e25-1b016f7bde64
Co-authored-by: Empirica System <david@getempirica.com>1 parent e84247a commit 819316c
2 files changed
Lines changed: 117 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
63 | 91 | | |
64 | 92 | | |
65 | 93 | | |
| |||
76 | 104 | | |
77 | 105 | | |
78 | 106 | | |
79 | | - | |
| 107 | + | |
80 | 108 | | |
81 | 109 | | |
82 | 110 | | |
| |||
88 | 116 | | |
89 | 117 | | |
90 | 118 | | |
91 | | - | |
92 | | - | |
| 119 | + | |
| 120 | + | |
93 | 121 | | |
94 | | - | |
| 122 | + | |
95 | 123 | | |
96 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
97 | 134 | | |
98 | 135 | | |
99 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
0 commit comments