Skip to content

fix(conversations): avoid per-call String allocation in normalize_message_item#391

Merged
leseb merged 1 commit into
praxis-proxy:mainfrom
Nitjsefnie:fix/357-normalize-message-item-alloc
Jul 16, 2026
Merged

fix(conversations): avoid per-call String allocation in normalize_message_item#391
leseb merged 1 commit into
praxis-proxy:mainfrom
Nitjsefnie:fix/357-normalize-message-item-alloc

Conversation

@Nitjsefnie

Copy link
Copy Markdown
Contributor

Replaces the per-call String allocation in normalize_message_item with a borrowed string comparison via Value::as_str. The old and new expressions behave identically for missing or non-string type values.

Verification gates run on praxis-ai-apis:

  • cargo +nightly fmt -p praxis-ai-apis — passed
  • cargo clippy -p praxis-ai-apis --all-targets -- -D warnings — passed
  • cargo test -p praxis-ai-apis — passed

Closes #357

Prepared with AI assistance (Kimi K2.7 Code), human-reviewed before submission.

@Nitjsefnie
Nitjsefnie requested review from a team and crstrn13 July 16, 2026 09:18
@praxis-bot-app

Copy link
Copy Markdown

Unsigned commits: a713ddc. Please sign your commits.

@Nitjsefnie Nitjsefnie closed this Jul 16, 2026
@Nitjsefnie
Nitjsefnie force-pushed the fix/357-normalize-message-item-alloc branch from a713ddc to cc4fe85 Compare July 16, 2026 09:55
…sage_item

Co-Authored-By: Kimi K2.7 Code <noreply@kimi.com>
Signed-off-by: Nitjsefnie <zmatek.peter@gmail.com>
@Nitjsefnie Nitjsefnie reopened this Jul 16, 2026
@leseb
leseb enabled auto-merge July 16, 2026 12:42
@leseb
leseb added this pull request to the merge queue Jul 16, 2026
Merged via the queue into praxis-proxy:main with commit 2e9438e Jul 16, 2026
17 checks passed
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.

fix(conversations): unnecessary String allocation in normalize_message_item

2 participants