Commit 7c5e2cb
fix(codex): map http_headers to universal headers field
Remove redundant http_headers field from MCPServerConfigOmni model.
Codex's http_headers should map to the universal headers field, not be
a separate field.
Root cause: Initial implementation incorrectly added http_headers as a
separate Codex-specific field in Omni model, when it's semantically
identical to the universal headers field.
Solution:
- Remove http_headers from MCPServerConfigOmni (line 688)
- Update MCPServerConfigCodex.from_omni() to map headers → http_headers
- Update CodexHostStrategy._flatten_toml_server() to map TOML http_headers → headers
- Update CodexHostStrategy._to_toml_server() to map headers → TOML http_headers
Data flow:
- CLI: --header → Omni headers → Codex http_headers → TOML http_headers
- TOML: http_headers → MCPServerConfig headers → Omni headers → Codex http_headers
This ensures proper mapping between universal headers and Codex http_headers
while maintaining correct TOML format for Codex configuration files.1 parent 88e81fe commit 7c5e2cb
2 files changed
+27
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
627 | 630 | | |
628 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
629 | 637 | | |
630 | 638 | | |
631 | 639 | | |
| |||
685 | 693 | | |
686 | 694 | | |
687 | 695 | | |
688 | | - | |
689 | 696 | | |
| 697 | + | |
690 | 698 | | |
691 | 699 | | |
692 | 700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
| 753 | + | |
| 754 | + | |
753 | 755 | | |
754 | 756 | | |
755 | 757 | | |
756 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
757 | 765 | | |
758 | 766 | | |
759 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
760 | 771 | | |
761 | 772 | | |
762 | 773 | | |
763 | 774 | | |
764 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
765 | 780 | | |
0 commit comments