I think that currently the most straightforward way is always using the same name for your context. Then the child ctx
will shadow the outer ctx
. In Scala 3 the inner most implicit should be picked automatically, regardless of its name. Or that’s how it was last time I checked.