Commit a6a72df
committed
tmux_cmd(feat[logging]): Add structured extra to pre-execution log
why: Conform to CLAUDE.md logging standards — structured extra enables
assertion on record attributes instead of fragile string matching.
what:
- Add import shlex to common.py
- Replace subprocess.list2cmdline with shlex.join (POSIX quoting)
- Add extra={"tmux_cmd": ...} to pre-execution debug log
- Update test to assert on caplog.records attributes1 parent 2cf447f commit a6a72df
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
262 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
263 | 268 | | |
264 | 269 | | |
265 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
524 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
0 commit comments