Commit Graph

903 Commits

Author SHA1 Message Date
alan f7f2504a30 Drag chats at once with a mouse and mark only the receiving zone
The list rows used a long-press drag, which a mouse rarely triggers; they
now drag immediately with the chip at the pointer. The drop indicator
outlines just the area that will receive the chat (the pane, or the
right or bottom half) with a label saying what happens.
2026-11-13 13:00:57 +00:00
alan ad05909b75 Merge main into chat drag 2026-11-13 12:46:09 +00:00
alan cb49aeef34 Drag chats from the list onto panes
On desktop a chat dragged from the list or compact rail onto a tiled
pane replaces that pane's chat when dropped in its centre, or opens in a
split right of or below it when dropped on that edge; an open chat moves
without duplicating and a floating chat docks.
2026-11-13 12:45:42 +00:00
alan 3de6a9cbc1 Merge branch 'main' into pipelines/run-20261113-1158-ctrl-tab-cycles-all-chats-with-a-single-a9b6 2026-11-13 12:23:56 +00:00
alan b4d67d6ba8 Cycle Ctrl-Tab through available chats
When a tiled workspace has one chat pane, navigate the sidebar chat order while preserving pane state and composer focus. Keep pane and floating-window cycling behavior for their existing layouts, and update shortcut documentation and coverage.
2026-11-13 12:23:52 +00:00
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
alan df0614e2f7 Steady read-aloud highlight and a calmer default pace
The spoken word is now painted behind unchanged text instead of
restyling the paragraph, so words never reshape, shift or rewrap as the
highlight moves. Revealing the word measures its own boxes against the
visible area, so a reversed transcript no longer jumps for a word already
in view. Sentence breaks the reading adds no longer map onto the next
item's first letter. 1.0x now reads at 0.8 of the platform's normal rate.
2026-11-13 09:41:02 +00:00
alan b2736683e7 Merge branch 'main' into pipelines/run-20261112-2323-read-chat-replies-aloud-with-word-highli-e079 2026-11-13 01:29:09 +00:00
alan 6367cce68a Read chat replies aloud with word highlighting
An assistant reply gets Read aloud beside Copy; while it reads it becomes
Pause/Resume and Stop, one reply at a time app-wide. The spoken word is
highlighted in the rendered reply (across multi-part replies) and the
transcript scrolls only when that word leaves the viewport. Reading stops
when its chat closes or is swapped, another reply starts, or the app goes
to the background. Markdown is spoken as sentences; code blocks are
announced as "Code block.".

Speech goes through a SpeechEngine seam with a flutter_tts implementation
(Android, macOS, web; hidden on Linux) and a fake for tests. Settings has
a Read aloud section: a voice picker grouped by language (device language
first, a sample per voice), a rate slider and reset, saved per device.

flutter_tts has no Swift package, so macOS/iOS gain the CocoaPods
integration (Podfiles with the Runner deployment targets); Android
declares the TTS_SERVICE query. The capture fixture gains ?speech=fake.
2026-11-13 01:29:04 +00:00
alan 046de9db4d Use proper phone sheets for chat and Files menus
On phones the chat's More menu, chat list rows and Files entries open a
Material bottom sheet headed by the chat or file, with full-width icon
rows and destructive actions last in the error colour; desktop menus
show icons, a minimum width and destructive actions after a divider.
The chat menu drops Run command and Open chats, keeps a single terminal
entry and lists Close pane last.
2026-11-13 01:14:12 +00:00
alan 26e68140fd Send the sign-in with native video playback
The native video player requests media itself, without the session
cookie the app's file fetches send, so a video shown with show_file (or
opened from Files) behind the web login was refused in the phone and Mac
apps. Pass ServerSession.headersFor(uri) as the player's HTTP headers.
2026-11-12 23:18:44 +00:00
alan a440859108 Fit long Files breadcrumb labels to the panel
Each folder in the path gets a maximum width (the current folder the
whole row) and its label is shortened in the middle to what actually
fits, measured with the label's style, so a long name never pushes the
current folder out of a narrow panel.
2026-11-12 23:13:08 +00:00
alan 6ce67dc491 Merge branch 'main' into pipelines/run-20261112-2239-files-path-keeps-the-current-folder-in-v-3cb2
# Conflicts:
#	app/tool/probe_files_fixture.dart
2026-11-12 23:08:42 +00:00
alan d56a76c9a7 Keep Files breadcrumbs aligned to the current folder
Pin the horizontally scrolling breadcrumb to its trailing edge so deep paths keep the current folder visible. Preserve tappable navigation, middle-ellipsize long labels, and cover the behavior with focused widget tests and the rendered fixture.
2026-11-12 23:08:03 +00:00
alan 1928cfe51b Remember the last Files folder per chat
Persist each chat session's last navigated Files folder, restore it with bounded parent fallback, and forget it when the session closes. Add persistence coverage and capture-fixture support for the reviewed behavior.
2026-11-12 22:56:52 +00:00
alan d19a14b9f9 Hide the phone chat as soon as its Back is pressed
_back marked the open chat hidden without rebuilding and relied on the
owner's route change to redraw. When the chat was shown while the app was
already on /chat (a restored layout, the Chat tab re-selected) nothing
changed, so the chat stayed on screen for seconds while the list behind
it took the taps. Found on the device: closeChat logged route=null and
the entrance never animated out. _back now rebuilds itself.
2026-11-12 20:19:10 +00:00
alan 3029295b1f Rebind chat file and center-stage shortcuts
Give Cmd/Ctrl+E to the active chat Files panel while preserving terminal behavior, and move Center Stage to the shifted chord. Update shortcut documentation and regression coverage for the new bindings.
2026-11-12 19:52:39 +00:00
alan 19b1d1326a Close the phone chat page explicitly from its Back button
The chat page's Back had no handler and relied on the stock Back popping
the nearest route, while the system gesture went through the app's own
back handling. Back now pops the page's own route (or leaves the open
chat), the same path the gesture takes.
2026-11-12 19:20:33 +00:00
alan 767643d991 Open the run's artifact from notifications
Phone and browser notifications that carry an artifact open it full
screen in the artifact viewer, with an Open run action and the preview as
expanded text; pipelines://artifact deep links route to the viewer.
2026-11-12 18:56:26 +00:00
alan 3b0da38f70 Redesign the keyboard shortcuts cheatsheet with fuzzy search
One fixed-size list of grouped cards: actions and notes on the leading
side, keys drawn as keycaps in an aligned trailing column that never ends
a line on a joining word. A search field, focused when Ctrl+? opens it,
filters fuzzily by action and keys (exactly by group and note) and
highlights the matched letters.
2026-11-12 15:02:11 +00:00
alan 3e0b1e55c7 Add global keyboard shortcuts cheatsheet
Expose the existing shortcut help as a global Ctrl+?/Cmd+? cheatsheet while preserving Ctrl+/ search behavior. Register the current shortcuts and cover composer, terminal, layout, and close interactions with focused tests.
2026-11-12 14:41:20 +00:00
alan 677d202ae7 Thicken the running highlight while the composer has focus
The focus ring outlines the pill in the same colour, hiding the 2 px
highlight; draw it 4 px wide over a focused field.
2026-11-12 14:15:48 +00:00
alan ff39114e4f Drop the count badge from the background tasks gear
The caption beside the gear already says how many tasks run.
2026-11-12 14:12:34 +00:00
alan 45f5323c75 Keep phone chat back on the list
Treat server-synced open workspace snapshots as pane membership only so they do not show or retain a phone chat page. Add regression coverage for repeated system, button, and predictive Back cycles with tiled and floating entries.
2026-11-12 13:18:05 +00:00
alan 692ce7ec1a Merge commit '7f31e16bc1f9fe8cd6d0ac0fbe0d509756880aff' into pipelines/run-20261112-1235-gear-icon-for-background-tasks-1cb4 2026-11-12 12:47:40 +00:00
alan a2a9a7e3c1 Replace background task spinner with gear
Use an outlined settings gear with a running-count badge and slow linear rotation while background tasks are active. Preserve reduced-motion behavior, composer sizing, and tooltip coverage with updated focused tests and notes.
2026-11-12 12:43:47 +00:00
alan 7f31e16bc1 Keep only travelling composer border highlight
Remove glow, full-border tint, and reduced-motion overlay so the running composer paints only a short constant-speed arc. Expand focused arc tests and document verification limits.
2026-11-12 12:43:42 +00:00
alan a733a927f3 Finalize reviewed destination and skill changes
Preserve Settings as an independent navigation destination while landing the reviewed notification and skill-management updates. Keep the server and CLI skill contracts versioned and validated so the merged tree can be verified by the delivery gate.
2026-11-12 11:30:17 +00:00
alan 26bb583f10 Refine Settings destination shell integration
Keep Settings navigation independent while preserving shell actions and destination-specific state. Add the reviewed chat, run-entry, layout, and regression-test updates needed by the destination behavior.
2026-11-12 11:21:26 +00:00
alan 82418d31a7 Place terminal action in phone chat bar
Keep the Chats header clear at narrow widths by moving the phone terminal entry into the chat action bar and disabling the duplicate floating shortcut. Add focused widget coverage for the single terminal entry and header layout.
2026-11-12 10:33:57 +00:00
alan 2c911ab1d3 Merge commit '6fb6e86b6cb4be8d3d5f4c89ed0861ae130462eb' into pipelines/run-20261112-0233-settings-as-one-grouped-page-3e5f 2026-11-12 03:40:28 +00:00
alan 6fb6e86b6c Merge commit 'a1c0d10593881af1b59b2ce61b10fd3dbf790ad3' into pipelines/run-20261112-0233-phone-bottom-tab-bar-2b54 2026-11-12 03:36:04 +00:00
alan a1c0d10593 Merge commit '699c3adea55fa1a33801988e0cd588ff610be06a' into pipelines/run-20261112-0201-chat-seen-only-after-real-interaction-7302 2026-11-12 03:31:23 +00:00
alan a73eb960b9 Keep settings and delivery updates together
Preserve the reviewed grouped Settings page while fixing its embedded phone safe area, and land the accompanying notification, walkthrough, terminal, and documentation updates captured by this run.
2026-11-12 03:27:37 +00:00
alan 699c3adea5 Merge commit '9999e0912e9c38bd24a8754d64e7a14c589b1646' into pipelines/run-20261112-0206-composer-border-shows-the-agent-working-fd87 2026-11-12 03:26:25 +00:00
alan 4f8e99f316 Serialize open-chat sync writes by server revision and fan out prunes
Server: chat_open_workspace is a compare-and-swap on base_revision; a stale
write is refused and answered with the current snapshot (rejected: true).
Each stored change increments the revision; identical writes store nothing.
A request with no body reads the set. Seeds apply only to a never-stored set.
Validation uses the operator registry (recorded, not closed). chat_close and
connection-time pruning store a new revision and push it to every
connection; otherwise a new connection gets the current set to catch up.

App: ChatOpenWorkspaceController keeps one write in flight, coalesces later
changes, sends from the last replied revision and ignores lower revisions;
pushes and rejected replies win over unsent changes. It starts after the
local layout restores (seed or read), keeps a deep-linked chat, and is
disposed on server/gateway rebind. Remote membership is applied by
reconcileChatWorkspaceTree, keeping pane ids and split sizes. Federated
lists keep their local layout.

Tests: Go store/handler fan-out tests; app controller, reconcile and screen
sync tests. Notes record a live two-client scratch check.
2026-11-12 03:23:22 +00:00
alan ae5e00326c Keep unengaged open chats unread
Update the live-chat regression and note to reflect that replies received while a chat is merely open are not acknowledged as seen. This preserves phone notifications until the user actually interacts with the chat.
2026-11-12 03:21:38 +00:00
alan 92b3f47d92 Hide phone navigation on run details
Keep pushed run detail and placeholder views consistent with the phone navigation behavior by hiding the shell bar. Add regression coverage and preserve the floating-bar motion test at its intended breakpoint.
2026-11-12 03:17:44 +00:00
alan b4701419d0 Update permission card stop assertions
Keep the permission-card regression aligned with the redesigned running composer. Verify that the composer stop control is absent and Stop remains available through the More menu while the turn runs.
2026-11-12 03:11:02 +00:00
alan 6ccced012e Merge commit '40623991e8709e5c1ab3e875b51d4de55f0c20a5' into pipelines/run-20261112-0201-chat-seen-only-after-real-interaction-7302 2026-11-12 03:08:16 +00:00
alan f8e081825f Merge branch 'main' into pipelines/run-20261112-0138-sync-open-chats-across-devices-on-the-se-9f86
# Conflicts:
#	app/lib/features/chat/chat_screen_keys.dart
#	app/lib/features/chat/chat_screen_workspace.dart
2026-11-12 03:00:02 +00:00
alan c48a1559ac Sync open chats across devices through the server (pipeline run work in progress) 2026-11-12 02:59:34 +00:00
alan 77db577cd0 Merge commit '40623991e8709e5c1ab3e875b51d4de55f0c20a5' into pipelines/run-20261112-0206-composer-border-shows-the-agent-working-fd87 2026-11-12 02:58:45 +00:00
alan 40623991e8 Merge commit '6aeabfe5916b3eb345e922c86a60e04580156c01' into pipelines/run-20261112-0138-mobile-chat-terminal-buttons-26ca 2026-11-12 02:54:31 +00:00
alan 3136e5bb7e Redesign Settings as grouped searchable page
Replace the tabbed Settings flow with a single grouped page that searches and lazily loads server-backed sections. Preserve existing settings behavior while adding inline loading and retry states and updating coverage for the new navigation model.
2026-11-12 02:54:07 +00:00
alan cb897b74d9 Merge commit 'f9eac4d6a3cc42a133ed74691d5cf2d6119633dc' into pipelines/run-20261112-0144-ctrl-tab-floating-chats-when-shown-else-c9bd 2026-11-12 02:46:07 +00:00
alan f9eac4d6a3 Merge commit 'f2a74adb75b035a5a732d11e7e8117314e511150' into pipelines/run-20261112-0157-reliable-android-notifications-while-clo-880f 2026-11-12 02:40:31 +00:00
alan 7b6d33d842 Merge commit '9bb87e5118fdf37933ee20dd14c4842a8e978d09' into pipelines/run-20261112-0151-first-run-walkthrough-f0ed 2026-11-12 02:33:33 +00:00
alan 9bb87e5118 Merge commit '06d3e23b796c81aeeef21b27d9cfeb0697845247' into pipelines/run-20261112-0129-desktop-navigation-rail-with-settings-9292 2026-11-12 02:29:16 +00:00
alan 547d15c842 Add desktop navigation rail with Settings
Replace wide-layout floating destination controls with a full-height Material navigation rail, keeping badges and existing navigation behavior. Pin Settings to the rail and preserve the phone layout and pane/window clearance.
2026-11-12 02:27:41 +00:00