Skip to content

style(chat): normalize slog attribute form in SendUserMessage log - #139

Merged
mhersson merged 1 commit into
mainfrom
ctxmax-629/follow-up-slog-style-inconsistency-on-sendusermess
May 23, 2026
Merged

style(chat): normalize slog attribute form in SendUserMessage log#139
mhersson merged 1 commit into
mainfrom
ctxmax-629/follow-up-slog-style-inconsistency-on-sendusermess

Conversation

@contextmatrix-runner

Copy link
Copy Markdown
Contributor

Summary

  • Replaces slog.Bool("has_tool_use_id", toolUseID != "") (typed attribute form) with "has_tool_use_id", toolUseID != "" (plain key/value form) in internal/chat/manager.go:1820
  • The two forms are semantically identical — both produce a boolean slog attribute with the same key and value
  • Aligns this one outlier with the consistent "key", value style used in every other log call in the chat package

Test plan

  • go build ./internal/chat/... — clean
  • go test ./internal/chat/... — all three sub-packages pass, no regressions

- Replace slog.Bool("has_tool_use_id", ...) with plain "key", value form
- Matches the style used in every other log call in the chat package
@mhersson
mhersson merged commit f047013 into main May 23, 2026
6 of 7 checks passed
@mhersson
mhersson deleted the ctxmax-629/follow-up-slog-style-inconsistency-on-sendusermess branch May 23, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant