Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(logging[load]): move reattach output to structured extra
why: Inlining tmux stdout in the log message string defeats structured
log aggregation and filtering.
what:
- Move display-message output from format arg to extra tmux_stdout key
  • Loading branch information
tony committed Mar 8, 2026
commit 9ee0acc4f5844bca4752fbf8b7a8e908263f40b2
5 changes: 4 additions & 1 deletion src/tmuxp/cli/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ def _reattach(builder: WorkspaceBuilder, colors: Colors | None = None) -> None:
proc = builder.session.cmd("display-message", "-p", "'#S'")
for line in proc.stdout:
tmuxp_echo(colors.info(line) if colors else line)
logger.debug("reattach display-message output: %s", line.strip())
logger.debug(
"reattach display-message output",
extra={"tmux_stdout": [line.strip()]},
)

if "TMUX" in os.environ:
builder.session.switch_client()
Expand Down