Fix new-window context leak showing previous session ctx%

Stop tmux status from falling back to global status files, seed new
tmux instances at 0%, rank live sessions by opened_at instead of
signals.json keepalive mtime, and bind Grok pids to tmux more reliably.
This commit is contained in:
2026-07-17 16:53:41 +08:00
parent 9225922a10
commit ed1a1ade45
10 changed files with 299 additions and 28 deletions
+11
View File
@@ -1,5 +1,16 @@
# Changelog
## 0.3.13
### Fixes
- **New window context leak**: brand-new Terminal no longer shows the previous
sessions high ctx%. Root causes fixed:
1. tmux status **no longer falls back** to global `~/.grok/hud/tmux-*.txt`
2. new tmux instances are **seeded at ctx 0%**
3. session ranking ignores `signals.json` mtime keepalive and prefers newest
`opened_at` among live sessions
4. stronger pid/tty → tmux binding via `resolveTmuxSessionForGrok`
## 0.3.12
### Repo / docs