feat(codex): retain all tool items and expose bounded command output

This commit is contained in:
2026-10-20 18:07:00 +01:00
parent 9cdfd9d9ab
commit 83fef10331
6 changed files with 529 additions and 76 deletions
+1
View File
@@ -51,6 +51,7 @@ func modelTestChat(t *testing.T, handle func(string, json.RawMessage) any) *Chat
if err != nil {
t.Fatal(err)
}
conn.SetReadLimit(16 << 20) // Match the real App Server adapter's frame bound.
c := &Chat{conn: conn, ctx: ctx, cancel: cancel, pending: map[string]chan rpcResponse{}, subs: map[string]map[chan protocol.ChatEventFrame]struct{}{}, forms: map[string]pendingForm{}, turns: map[string]string{}, emitted: map[string]bool{}}
go c.readLoop()
t.Cleanup(func() { c.Close(); srv.Close() })