aft icon indicating copy to clipboard operation
aft copied to clipboard

TUI footer health segment has no opt-out

Open jjjermiah opened this issue 1 month ago • 2 comments

The footer segment AFT E? W? | ~D0 U0 C1 | T0 renders in prompt.footer.status on every prompt (AFT 0.62.0, OpenCode TUI). I never read it, and it takes a line of the prompt area in a narrow terminal.

I could not find a way to turn it off. setupV2Tui registers the slot unconditionally at src/tui/v2.tsx:377, formatAftStatusSegment always returns a non-empty string, and no config key covers it. inspect.categories only switches a category to ○, so the line stays either way.

Could this get a gate such as tui: { footer: false }, default on? If the sidebar should keep showing health while the footer drops it, that can be a second flag. One flag covers my case.

jjjermiah avatar Oct 24 '26 17:10 jjjermiah

Thanks for the precise report, @jjjermiah. The switch is on main and ships in the next release.

It lives with AFT's other TUI settings in OpenCode's tui-preferences.jsonc rather than aft.jsonc, which holds engine settings. Add "footer": false to the aft entry:

{
  "aft": { "footer": false }
}

It's on by default and takes effect without a restart. The sidebar is unaffected, so you can keep health there and drop the footer line.

We'll close this once the release is out.

aft-alfonso[bot] avatar Oct 24 '26 23:10 aft-alfonso[bot]

This switch has shipped and is available in 0.64.0. Set "aft": { "footer": false } in OpenCode's tui-preferences.jsonc, not aft.jsonc. It hides the footer line without changing the sidebar and reloads without a restart. Please reopen if the line still appears with that setting.

aft-alfonso[bot] avatar Nov 11 '26 19:11 aft-alfonso[bot]