fix(tui): ← returns to main pane from focused log split
Previously ← in the narrow log strip cycled the section (matching n/p), which was disorienting once the user had drilled into the strip — they expected ← to back out, not flip them to a different panel. Now ← from a focused log strip clears the narrow-split sub-focus and returns to the main pane (System / Stats / Utilities / Settings) where the user can drag-select tokens or interact with the panel as usual. p/P still cycle sections in all states; ↑ at the top of the strip and Esc continue to work as before. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4380,6 +4380,14 @@ export function DashboardApp({ controller }: DashboardAppProps) {
|
||||
return;
|
||||
}
|
||||
if (key.leftArrow || input === "p" || input === "P") {
|
||||
// While sub-focus is on the narrow log strip, ← returns to the main
|
||||
// pane (System / Stats / Utilities / Settings) instead of cycling
|
||||
// sections — so the user can jump back to System to drag-select the
|
||||
// auth token without losing their place. p/P still cycle sections.
|
||||
if (key.leftArrow && narrowSplitActive && state.narrowLogSplitFocused) {
|
||||
controller.setNarrowLogSplitFocused(false);
|
||||
return;
|
||||
}
|
||||
if (state.activeSection !== "logs" || !state.logsExpandedMode) {
|
||||
controller.cycleSection(-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user