[FEATURE] Sub-agent TUI output rendering order is reversed + request for configurable layout
Problem Statement
When navigating into a sub-agent's view in the TUI, the content is rendered in reverse order relative to what you'd expect from a normal terminal conversation:
Current rendering (top → bottom):
- Main agent output
- Sub-agent's current activity / live progress
- Sub-agent's original prompt
Expected rendering (top → bottom):
- Main agent output
- Sub-agent's original prompt
- Sub-agent's current activity / live progress
The terminal convention is that the most recent output is at the bottom. Having the prompt at the bottom and live progress above it means the sub-agent section reads upside-down relative to every other part of the interface.
Proposed Solution
- Fix the default rendering order — sub-agent sections should render prompt-first, progress below, consistent with how every other part of the TUI works.
- Expose a configurable layout option — allow users to customize how sub-agent output is displayed in
settings.json, e.g.:
``json``
{
"subagentDisplay": {
"showPrompt": true,
"promptPosition": "top"
}
}
Use Case
When monitoring a long-running background sub-agent, the bottom of the terminal window should always reflect what the agent is currently doing. Right now it shows the prompt, which is the least useful thing to have at the bottom.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗