Skip to content

fix(google-workspace): remove unsupported metadataHeaders from gws binary path in gmail_reply#35894

Open
uzunkuyruk wants to merge 1 commit into
NousResearch:mainfrom
uzunkuyruk:fix/gmail-header-case-sensitive
Open

fix(google-workspace): remove unsupported metadataHeaders from gws binary path in gmail_reply#35894
uzunkuyruk wants to merge 1 commit into
NousResearch:mainfrom
uzunkuyruk:fix/gmail-header-case-sensitive

Conversation

@uzunkuyruk

Copy link
Copy Markdown
Contributor

What does this PR do?

In gmail_reply, the _run_gws binary path passes metadataHeaders inside the params dict. The gws binary does not recognize this key when serialized as --params JSON, so the Gmail API returns no headers — causing _headers_dict to return an empty dict and losing the To and Subject fields in the reply.

The Python client path correctly uses metadataHeaders as a keyword argument to .get(), which works fine and is left unchanged.

Fix: Remove "metadataHeaders" from the params dict in the _run_gws call.

Type of Change

  • 🐛 Bug fix

References

Fixes #34806

Checklist

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits
  • My PR contains only changes related to this fix

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have labels May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: google-workspace Gmail wrapper loses To/Subject due to case-sensitive header handling

2 participants