I took a look at the sdk source code and seems we can set these https://rich.readthedocs.io/en/stable/console.html#interactive-mode
However I tried
config.console.force_terminal = True
config.console.force_interactive = False
this doesn't seem to have any effect.
For now I did at the bash level by piping it through cat (thanks chatgpt :p) and this seemed to do the trick, the output is back to this format:
$ uv run ./build.py 2>&1 | cat
2 : โ connect
3 : โ โ starting engine
4 : โ โ โ create
5 : โ โ โ โ exec docker ps -a --no-trunc --filter name=^dagger-engine-|^dagger-engine-v0\.18\.4$ --format {{.Names}}
5 : โ โ โ โ [0.0s] | dagger-engine-v0.18.4
5 : โ โ โ โ exec docker ps -a --no-trunc --filter name=^dagger-engine-|^dagger-engine-v0\.18\.4$ --format {{.Names}} DONE [0.0s]
6 : โ โ โ โ exec docker start dagger-engine-v0.18.4
6 : โ โ โ โ [0.0s] | dagger-engine-v0.18.4
6
However, seemed like it'd be better to be able to control that from the sdk itself.