Commit Graph
3 Commits
Author SHA1 Message Date
Felipe Coury 06023b038f Add mouse controls to hide and restore the TUI sidebar (#64055)
## Why

Hiding the sidebar through keyboard navigation leaves no visible control
for reopening it.

## What changed

Click `›` in the sidebar tab strip to hide the sidebar and return focus
to the parent conversation. Click `‹` above the main transcript to
restore the previous sidebar content. The restore control also appears
when the terminal is too narrow to show the sidebar alongside the main
conversation.

## Testing

Cover hiding and restoring side chats and document previews with the
mouse, including reopening a side chat at narrow terminal widths and
preserving the parent conversation's reading position.

GitOrigin-RevId: 1f0f893b736b61c109e0761abbe3bde3d388e1b6
2026-11-26 02:35:01 +00:00
Felipe Coury 57a49fc013 Refactor TUI sidebar chooser input handling (#64054)
## What changed

Move chooser handling from `side_focus.rs` into a dedicated sidebar input
module. Distinguish events the chooser consumes from events it leaves
unhandled and events that produce an action.

Check row visibility and guard against stale keyboard selections before
resolving an open action to an agent, retry row, document, existing
chat, or new chat.

GitOrigin-RevId: 681dadbb3b964fbb886795120fa28760cb11be9d
2026-11-26 02:34:20 +00:00
Felipe Coury 2a3f7da445 Extract TUI sidebar input routing into its own module (#64053)
## What changed

Move sidebar hit testing and mouse press tracking into `sidebar_input`.
Resolve pointer events before executing tab actions or dispatching input
to the visible document, subagent panel, or chooser.

Keep requiring the press and release to resolve
to the same target in the current sidebar state.

GitOrigin-RevId: a818dbfd53cbf79c97ae5036d3608c7d4d67da52
2026-11-26 02:33:41 +00:00