Skip to content

Preserve message names in loose maps - #1146

Merged
mikehostetler merged 1 commit into
agentjido:mainfrom
mikemikimike:codex/fix-preserve-message-name-1145
Oct 24, 2026
Merged

mikehostetler merged 1 commit into
agentjido:mainfrom
mikemikimike:codex/fix-preserve-message-name-1145

Conversation

@mikemikimike

@mikemikimike mikemikimike commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Preserve the optional participant name when generic message maps are normalized, including atom/string roles and keys, text and content-part messages, and assistant tool-call messages. Non-string names remain unset. The regression tests verify normalization and OpenAI-compatible encoding.

Fixes #1145

Issue: #1145

Tests:

  • mix test test/req_llm/context_test.exs test/req_llm/provider/defaults_test.exs (175 passed)
  • mix format --check-formatted
  • mix compile --warnings-as-errors
  • mix credo --strict (0 issues)
  • mix dialyzer (0 errors)
  • mix test (5,366/5,408 passed; the remaining 42 failures are in compatibility evidence, billing, release packaging, OAuth/GitHub CLI mocks, and network/stream timing; the failure set matches the clean-base baseline apart from a non-deterministic telemetry failure)

@mikemikimike
mikemikimike force-pushed the codex/fix-preserve-message-name-1145 branch from 35bd402 to 84fb099 Compare October 23, 2026 22:30

@mikehostetler mikehostetler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found no blocking issues. The change preserves participant names for the supported loose-map forms. GitHub CI is green, and the focused suite passed 175 tests.

@mikehostetler
mikehostetler merged commit 7e57ef5 into agentjido:main Oct 24, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Generic message-map normalization silently drops participant name

2 participants