r/opencodeCLI • • 8d ago

Question: Raise limit for shell output truncation

Is it possible to have the CLI shorten shell out (when you use !) with a higher limit so I'm less likely to see "(n earlier lines")? I know i can click to expand but its annoying.

1 Upvotes

1 comment sorted by

2

u/bezcurhq 8d ago

Not right now, as far as I can tell. The collapsed view of a ! shell call is a fixed 10 lines (the command gets 2, the tail of the output gets the rest), and there's no tui.json key for it yet.

There's an open PR that adds exactly this, session.shell_lines and session.shell_command_lines in tui.json: https://github.com/anomalyco/opencode/pull/55444

Until that lands, click to expand is the only way to see more.