This functionality is available starting from Talk 2.4.0.

Long Talk discussions collapse automatically into a compact form if you have:

 

When a collapsed discussion consists of 3 or more comments, you can see its first and last comments, as well as the number of hidden comments.

To expand a collapsed discussion:

Long Talk comments collapse automatically if you have:

To expand a collapsed Talk comment:

If it's a part of a collapsed Talk discussion, your collapsed comment automatically expands together with that discussion.

In active Talk comments and discussions you can use the 'Show less' and 'Show more' buttons to collapse and expand long comments.

When you click somewhere on the page or select another talk, your long comments get collapsed again.

When you click somewhere on the page or select another talk, your long discussion will collapse again.