Files
pipelines/app/notes/chat-compact-new-chat.md
T
alan 0a51add958 Add New chat to compact sidebar
Expose the existing chat creation flow from the compact rail so users can start chats without expanding the session list. Add focused callback coverage and document the verified behavior.
2026-11-13 12:14:16 +00:00

1.3 KiB

Compact sidebar New chat

The compact chat rail now keeps a Material + action above its scrolling session list. Its callback reaches the mounted ChatSessionsScreenState and invokes the existing _newChat flow, so machine selection, harness discovery, and the create dialog remain shared with the expanded list action.

Regression coverage

  • test/features/chat/ui/sessions/chat_visibility_marker_test.dart: the rail exposes the New chat tooltip and invokes its callback.
  • test/features/chat/ui/sessions/chat_machine_creation_test.dart: the existing expanded-list flow still selects a machine before harness discovery.
  • test/features/chat/ui/sessions/chat_sessions_floating_bar_test.dart: the expanded list still has exactly one New chat action in its bar.

Verification

  • tool/memwatch/full.sh 'test/features/chat/ui/sessions/chat_visibility_marker_test.dart test/features/chat/ui/sessions/chat_state_legibility_test.dart test/features/chat/ui/sessions/chat_machine_creation_test.dart test/features/chat/ui/sessions/chat_sessions_floating_bar_test.dart': 10 passed.
  • tool/analyze.sh: clean.
  • Browser captures: desktop 1600x1000 compact rail in light and dark themes, including the New chat tooltip, are in the shared artifact public/chat-compact-sidebar/.