fix(codex-bridge): do nothing at all for Codex's own models
User, 11 Oct 2026: 'If you pick Codex and write to Codex, our bridge cannot be beside it even to help.' The last touch is gone too: traces an added model or the bridge left earlier in the chat are no longer cleaned on the way to chatgpt.com. The request goes out byte for byte. Known consequence: a chat that used an added model, or still carries a bridge-made summary, may be refused by chatgpt.com on Codex's own model; such a chat continues on the added models. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
12eeec7b0f
commit
c0eee2cc2a
2 files changed
+22
-29
No files matched your search
@@ -298,12 +298,19 @@ class Zincir(unittest.TestCase):
|
||||
self.assertFalse(kwargs["rewritten"])
|
||||
self.assertEqual(self.env["YONLENDIRME"].veri, {})
|
||||
|
||||
def test_only_the_bridges_own_traces_are_cleaned_for_codex_own_model(self):
|
||||
self.env["fix_tool_ids"] = lambda req: 2 # ids left behind by an added model earlier in the chat
|
||||
fake, body = self.send("gpt-6-astra", [user("devam")])
|
||||
def test_the_bridge_does_not_even_help_codex_own_model(self):
|
||||
"""'If you pick Codex and write to Codex, our bridge cannot be beside it even to help.' Traces an added
|
||||
model or the bridge left earlier in the chat are not cleaned either: the body goes out byte for byte."""
|
||||
self.env["CFG"]["ozet_kopru"] = {"enabled": True, "kapsam": "hepsi"}
|
||||
self.env["fix_tool_ids"] = Mock(return_value=2)
|
||||
self.env["drop_foreign_items"] = Mock(return_value=3)
|
||||
summary = ozet_kopru.ozet_ogesi("eski köprü özeti", "t")
|
||||
fake, body = self.send("gpt-6-astra", [summary, {"type": "reasoning", "id": "rs_chatcmpl-x"}, user("devam")])
|
||||
args, kwargs = fake._passthrough.call_args
|
||||
self.assertTrue(kwargs["rewritten"])
|
||||
self.assertEqual(json.loads(args[2]), json.loads(body))
|
||||
self.assertEqual(args[2], body)
|
||||
self.assertFalse(kwargs["rewritten"])
|
||||
self.env["fix_tool_ids"].assert_not_called()
|
||||
self.env["drop_foreign_items"].assert_not_called()
|
||||
fake._yerel_yanit.assert_not_called()
|
||||
|
||||
def test_voice_switch_stays_among_the_added_models(self):
|
||||
|
||||
Reference in new issue
Block a user