@@ -75,16 +75,6 @@ const toolText = (stdout: string, id: number): string => {
7575 ) ?. content ;
7676 return content ?. [ 0 ] ?. text ?? "" ;
7777} ;
78- const codexBridgeEnvelope = (
79- id : string ,
80- message : string ,
81- source : "claude" | "codex" = "claude"
82- ) : string =>
83- [
84- `<loop-bridge source="${ source } " message_id="${ id } ">` ,
85- `${ source === "claude" ? "Claude" : "Codex" } : ${ message } ` ,
86- "</loop-bridge>" ,
87- ] . join ( "\n" ) ;
8878
8979const runBridgeProcess = async (
9080 runDir : string ,
@@ -481,15 +471,6 @@ test("bridge normalization treats short and legacy Claude prefixes as equivalent
481471 "Claude: Please verify the final diff."
482472 )
483473 ) . toBe ( true ) ;
484- expect (
485- bridge . blocksBridgeBounce (
486- runDir ,
487- "codex" ,
488- "claude" ,
489- codexBridgeEnvelope ( "msg-2" , "Please verify the final diff." )
490- )
491- ) . toBe ( true ) ;
492-
493474 rmSync ( root , { recursive : true , force : true } ) ;
494475} ) ;
495476
@@ -1181,7 +1162,7 @@ test("bridge delivers Claude replies directly to Codex when app-server state is
11811162 expect ( injectCodexMessage ) . toHaveBeenCalledWith (
11821163 "ws://127.0.0.1:4500" ,
11831164 "codex-thread-1" ,
1184- codexBridgeEnvelope ( "msg-1" , " The files look good to me.")
1165+ "Claude: The files look good to me."
11851166 ) ;
11861167 expect ( bridge . readPendingBridgeMessages ( runDir ) ) . toEqual ( [ ] ) ;
11871168 expect (
@@ -1239,7 +1220,7 @@ test("bridge prefers Codex app-server delivery even when tmux is live", async ()
12391220 expect ( injectCodexMessage ) . toHaveBeenCalledWith (
12401221 "ws://127.0.0.1:4500" ,
12411222 "codex-thread-1" ,
1242- codexBridgeEnvelope ( "msg-live" , " Please steer this into the active turn.")
1223+ "Claude: Please steer this into the active turn."
12431224 ) ;
12441225 expect ( bridge . readPendingBridgeMessages ( runDir ) ) . toEqual ( [ ] ) ;
12451226 expect (
@@ -1300,7 +1281,7 @@ test("bridge falls back to direct Codex delivery when the stored tmux session is
13001281 expect ( injectCodexMessage ) . toHaveBeenCalledWith (
13011282 "ws://127.0.0.1:4500" ,
13021283 "codex-thread-1" ,
1303- '<loop-bridge source="claude" message_id="msg-2">\nClaude : Please review the final state.\n</loop-bridge>'
1284+ "Claude : Please review the final state."
13041285 ) ;
13051286 expect ( readRunManifest ( join ( runDir , "manifest.json" ) ) ?. tmuxSession ) . toBe (
13061287 undefined
@@ -1385,22 +1366,6 @@ test("bridge drains pending codex tmux messages through the injected command dep
13851366 [ "tmux" , "capture-pane" , "-p" , "-t" , "repo-loop-8:0.1" ] ,
13861367 { stderr : "ignore" , stdout : "pipe" } ,
13871368 ] ,
1388- [
1389- [
1390- "tmux" ,
1391- "send-keys" ,
1392- "-t" ,
1393- "repo-loop-8:0.1" ,
1394- "-l" ,
1395- "--" ,
1396- '<loop-bridge source="claude" message_id="msg-3">' ,
1397- ] ,
1398- { stderr : "ignore" } ,
1399- ] ,
1400- [
1401- [ "tmux" , "send-keys" , "-t" , "repo-loop-8:0.1" , "C-j" ] ,
1402- { stderr : "ignore" } ,
1403- ] ,
14041369 [
14051370 [
14061371 "tmux" ,
@@ -1413,22 +1378,6 @@ test("bridge drains pending codex tmux messages through the injected command dep
14131378 ] ,
14141379 { stderr : "ignore" } ,
14151380 ] ,
1416- [
1417- [ "tmux" , "send-keys" , "-t" , "repo-loop-8:0.1" , "C-j" ] ,
1418- { stderr : "ignore" } ,
1419- ] ,
1420- [
1421- [
1422- "tmux" ,
1423- "send-keys" ,
1424- "-t" ,
1425- "repo-loop-8:0.1" ,
1426- "-l" ,
1427- "--" ,
1428- "</loop-bridge>" ,
1429- ] ,
1430- { stderr : "ignore" } ,
1431- ] ,
14321381 [
14331382 [ "tmux" , "send-keys" , "-t" , "repo-loop-8:0.1" , "Enter" ] ,
14341383 { stderr : "ignore" } ,
@@ -1732,10 +1681,7 @@ test("runBridgeWorker falls back to app-server delivery after stale tmux cleanup
17321681 expect ( injectCodexMessage ) . toHaveBeenCalledWith (
17331682 "ws://127.0.0.1:4500" ,
17341683 "codex-thread-1" ,
1735- codexBridgeEnvelope (
1736- "msg-stale-fallback" ,
1737- "Please deliver this after tmux cleanup."
1738- )
1684+ "Claude: Please deliver this after tmux cleanup."
17391685 ) ;
17401686 expect ( readRunManifest ( join ( runDir , "manifest.json" ) ) ?. tmuxSession ) . toBe (
17411687 undefined
@@ -1847,12 +1793,12 @@ test("runBridgeWorker retries queued codex app-server messages", async () => {
18471793 [
18481794 "ws://127.0.0.1:4500" ,
18491795 "codex-thread-1" ,
1850- codexBridgeEnvelope ( "msg-4" , " Please review the final diff.") ,
1796+ "Claude: Please review the final diff.",
18511797 ] ,
18521798 [
18531799 "ws://127.0.0.1:4500" ,
18541800 "codex-thread-1" ,
1855- codexBridgeEnvelope ( "msg-4" , " Please review the final diff.") ,
1801+ "Claude: Please review the final diff.",
18561802 ] ,
18571803 ] ) ;
18581804 expect ( bridge . readPendingBridgeMessages ( runDir ) ) . toEqual ( [ ] ) ;
0 commit comments