Commit Graph

49 Commits

Author SHA1 Message Date
alan fdc730422d Host floating chats on the shell window system
Phase 2.3 and 2.4 of docs/plans/floating-windows.md. A floating chat is a
window of the chat kind over the app's WindowManager, built from the
app-lifetime ChatRuntime, so it shows over every destination and at start
without the Chat destination being built. Float and Dock move the same
keyed view between the tiling and the window host. The pipelines app keeps
one runtime and one ChatWindows; saved chatFloat records (v1 and v2) are
brought over once.

ChatFloatHost, ChatFloatWindow, the float frames and binding, the
controller's float list and FloatingFocusRoot are gone; the workspace only
asks whether a chat is out in a window. Every MenuAnchor targets the root
overlay (guarded by a test), and menus and tooltips name the Alt chords.
2026-11-10 21:17:40 +00:00
alan 9695100faa Build chat panes through one content builder
Phase 2.2 of docs/plans/floating-windows.md: buildChatPaneContent wraps a
conversation in the scopes it needs and keys it by the runtime, so the
tiling and (next) a floating window build the same subtree. The tiling uses
it; behaviour is unchanged.
2026-11-10 21:05:41 +00:00
alan 7ff012880b Add explicit surface visibility signal
Provide composable shown/current visibility for retained surfaces and migrate visibility readers away from TickerMode. This keeps ticker muting separate from painted and current-surface state.
2026-11-10 20:28:09 +00:00
alan 182fd9bb62 Pad chat bar text buttons 12 px and add Alt+Y for floating chats
Model, mode and thinking buttons carry 12 px horizontal padding, replacing
the pill inset from 440995e3. Alt+Y (Option+Y by key position) toggles the
floating chats, like Alt+T for the terminal.
2026-11-10 19:18:46 +00:00
alan d77b36f56f Merge branch 'main' into floating-chats-global
# Conflicts:
#	app/lib/features/chat/workspace/chat_workspace.dart
2026-11-10 15:27:12 +00:00
alan e059e58caf Leave unrelated chat files as main formats them 2026-11-10 15:26:54 +00:00
alan cdd54c113c Float several chats and keep them working on every tab
Floating chats were stuck on other destinations: the hidden Chat tab
muted the window's hide animation, so the window stayed painted but took
no input. The reveal now uses its own ticker, each floating pane's focus
scope hangs from a FloatingFocusRoot above the destination stack, and the
windows show over every destination like the terminal.

Any number of chats can float; the shortcut, a window's X and the menu
show or hide them together. Each pane keeps its own frame (also while
docked), saved in record version 2; version 1 records still load. Drags
read the live frame so fast pointer events no longer lose movement.
2026-11-10 15:26:38 +00:00
alan 3b39f01e68 Keep the stage when using a side chat's action bar
On center stage, pressing or focusing a live side pane's header controls
(actions, More menu, model/mode/effort) no longer activates that pane.
Strips, keyboard activation and the normal split are unchanged.

Pipelines run 298 (reviewed and UI-reviewed); landed by hand because the
land stage's file capture was incomplete.
2026-11-10 15:18:56 +00:00
alan 827d9bd3b5 Merge branch 'main' into worktree-agent-a5b6d89690dfcde6b 2026-11-10 13:45:48 +00:00
alan 0d0810b87a Leave other lanes' files as main formats them 2026-11-10 13:38:10 +00:00
alan a33c8d6bbe Keep compact bar insets inside the floating chat window 2026-11-10 13:37:16 +00:00
alan b72164009a Merge main: floating chat beside center stage 2026-11-10 13:36:51 +00:00
alan 61e5f19abd Lay out each chat once per center stage move and record the feature 2026-11-10 13:26:15 +00:00
alan 4b6519610d Merge main: pane moves alongside center stage 2026-11-10 13:12:24 +00:00
alan e38958b381 Merge main: keep pane moves and the floating chat; Float sits beside the move items 2026-11-10 13:09:31 +00:00
alan e033d4e176 Put the active chat on center stage with Ctrl/Cmd+E 2026-11-10 12:57:39 +00:00
alan a410b9e5b7 Move chat panes up, down, left and right by swapping with their neighbour 2026-11-10 12:56:48 +00:00
alan bb669aface Float one chat pane over the app and toggle it with Ctrl+Y / Cmd+Y 2026-11-10 12:56:39 +00:00
alan eea1361980 Grow the tapped chat row into the chat page on phones
Replace the identity-avatar Hero with a container transform: the row's
surface, tint and edge marker morph into the full page while the content
cross-fades, and Back, the Cupertino edge swipe or Android predictive back
shrink the page into the open chat's row. Reduced motion or a row off
screen fades instead; wide layouts are unchanged.
2026-11-10 03:11:05 +00:00
alan 750071abe1 Keep keys typed in a terminal out of app shortcuts
Terminals are marked as typing surfaces. While one has focus, the chat's
"/ jumps to the composer", the Search tab's Escape, Ctrl+/, Ctrl+1…9 and
Ctrl+Shift+arrow pane moves leave the key to the terminal, like they do for
text fields.
2026-11-10 00:14:18 +00:00
alan 73e55b0b0c Double-click a chat divider to switch the split layout
Double-clicking the divider between two chat panes flips that split between
side by side and stacked, keeping its proportion, instead of resetting it to
50/50. Screen readers get the same action.
2026-11-09 18:36:16 +00:00
alan e4904395f0 Connect saved machines concurrently in the chat workspace 2026-11-08 22:21:17 +00:00
alan e1da589396 Show shared resize grips on list pane dividers 2026-11-08 14:50:07 +00:00
alan 4f51470202 Keep one shared separator between chat panes 2026-11-08 14:41:04 +00:00
alan e363a90295 Integrate scoped Settings restoration and preserve detail on Back 2026-11-08 01:05:07 +00:00
alan 2fe08226f2 Show shared resize grips on wide chat pane dividers 2026-11-08 00:59:00 +00:00
alan d189f61eee Animate retained mobile chat reopening without remounting panes 2026-11-08 00:23:00 +00:00
alan 8e041af6ad Shorten quick switching to 440 milliseconds 2026-11-07 23:36:21 +00:00
alan 68c0ad3caa Identify mobile chat peeks and expose switching and resize affordances 2026-11-07 20:37:30 +00:00
alan 0f2711e8fa Reveal full next card behind opaque deck front 2026-11-07 19:51:20 +00:00
alan ef0571c562 Reduce quick switch layout churn and flatten planar depth transforms 2026-11-07 19:44:54 +00:00
alan 3b44c49679 Add quick switch motion library with true deck exchanges 2026-11-07 19:37:06 +00:00
alan 0da7442296 Add live quick switch swaps with perspective card stacking 2026-11-07 19:16:57 +00:00
alan 9c67415c22 Cycle mobile tape through added panes and retain horizontal unfold layout 2026-11-07 16:10:05 +00:00
alan cc7049ccf4 Match tape background to the Cupertino host theme 2026-11-07 13:25:34 +00:00
alan f34ab8e985 Loop mobile chats as a tape and remember resizable peek height 2026-11-07 13:20:30 +00:00
alan 19958e81c5 Animate mobile chat swaps as overlapping raised cards 2026-11-07 12:38:11 +00:00
alan 7b5a0e0310 Smooth mobile chat swaps and measure the actual peek viewport 2026-11-07 02:47:34 +00:00
alan 357affe207 Phone chat peek: transcript-only peek, tap-or-scroll, animated switch
The inactive (peek) pane no longer shows the chat's bar: ChatPanePresentation
tells the conversation its role and ChatPaneBarReveal keeps a resting peek's
bar offstage (zero height, not painted), so the peek reads its transcript from
the top. A drag on the peek scrolls that transcript; a tap anywhere on it,
even over a button or link, activates the chat (ChatPeekTapRecognizer accepts
on release ahead of the arena sweep and yields to drags past the slop). The
'chat-peek-<id>' semantics stay a labelled button.

Switching animates (260 ms, Cubic(.2,.8,.2,1)): the tapped chat rises over the
active one with its bottom edge pinned, then the covered chat slides up into
the slot from the bottom edge; each bar fades and slides in or out over the
rise. Content boxes keep their fixed size, so ticks move and clip retained
pictures without laying a transcript out again. Reduced motion jumps. The
old focus stripe is gone.
2026-11-07 01:17:38 +00:00
alan a4f6c5473c Dispose pane focus animation resources and record measured switching improvements 2026-11-06 22:21:31 +00:00
alan 8473b24d1b Keep chat bodies opaque and animate only a small focus accent 2026-11-06 22:14:50 +00:00
alan cad9bbd0f7 Promote active mobile chats immediately and composite a short reveal 2026-11-06 22:08:42 +00:00
alan 2cadebab4b Lay out chat content against the animated pane viewport 2026-11-06 21:48:25 +00:00
alan 6bba6cf8d8 Animate focused mobile chat panes while preserving saved geometry 2026-11-06 21:46:45 +00:00
alan 9a0d5de26a Restore local chat layouts and add compact or hidden chat sidebar 2026-11-06 19:16:18 +00:00
alan c4776657c8 Persist validated device-local chat workspace layouts 2026-11-06 19:11:13 +00:00
alan 4bae206afd Connect independent resizable chat panes with routed focus and narrow layouts 2026-11-06 18:16:33 +00:00
alan 93cad08bef Preserve composer selection shortcuts in a single chat pane 2026-11-06 18:04:02 +00:00
alan dfcdf1c154 Add resizable split chat workspace primitives 2026-11-06 18:01:14 +00:00