What are you really trying to do?
Describe the bug
tctl --codec_endpoint 'http://localhost:8888' workflow show --wid my-wf-id the event history is shown in console with the payloads unencrypted
When the flag -of is added to serialize the event history to a file, tctl --codec_endpoint 'http://localhost:8888' workflow show --wid my-wf-id -of my.json the output written in the file has the payloads encrypted
Minimal Reproduction
You can reproduce it by running this example https://github.com/temporalio/samples-typescript/tree/main/encryption
Environment/Versions
Tested with versions:
Additional context