2427 Commits

Author SHA1 Message Date
alan b264043eee Restore green/red/blue run status colours
The Material cleanup mapped run states to theme roles, which made
succeeded runs use tertiary (reddish in the app theme).
2026-11-11 23:25:54 +00:00
alan fa95c2fcae Remove the Runs error counter for now
Keep the running indicator and Needs you flow, but remove the failed-count badge and its tab count plumbing until unseen-state behavior is addressed. Preserve the unfinished seen-state work separately. Verify application, Runs, attention and shell regressions.
2026-11-11 23:18:30 +00:00
alan aebd549d53 Record complete Material and run indicator checks 2026-11-11 22:25:37 +00:00
alan efca56e4e4 Show running and failed run counts independently
Give the Runs tab separate activity and failure indicators so neither suppresses the other. Reuse known summaries and pushed updates, keep failed states separate from decisions and dismissal counts, and update across tabs even when total attention is unchanged.
2026-11-11 22:10:37 +00:00
alan 9551eceaed Complete Material-only APIs and fixtures
Remove obsolete control-family flags and icon metadata across all callers, dead alternate themes and host helpers, obsolete test setup, and the unused icon-font dependency. Preserve native Material Back transitions. Make navigation fixtures independent of update plugins and answer auxiliary shell snapshots so the complete application suite can run deterministically.
2026-11-11 21:55:39 +00:00
alan 63b2fd12cd Merge commit 'b556e76778001e36621b3cadfd38b06b9cf2b476' into pipelines/run-20261111-2114-finish-remaining-material-only-probe-hos-0220 2026-11-11 21:38:41 +00:00
alan b60ad6d98f Remove alternate hosts from tooling probes
Keep the probe suite on the Material composition so browser fixtures and capture drivers no longer render or select Cupertino hosts. Record the final residual legacy arguments and implementation checks for the delivery gate.
2026-11-11 21:38:30 +00:00
alan b556e76778 Populate selector catalogs for desktop UI review 2026-11-11 21:23:02 +00:00
alan 16f4e43ddc Format shared Material primitive integration 2026-11-11 21:17:32 +00:00
alan 16dab6d74e Merge branch 'main' into pipelines/run-20261111-1951-material-cleanup-shared-ui-primitives-65fb
# Conflicts:
#	app/test/features/runs/ui/run_path_mini_test.dart
2026-11-11 21:16:36 +00:00
alan 7cb95471cb Format integrated runs and pipelines cleanup 2026-11-11 21:13:38 +00:00
alan b771f3813a Remove Cupertino remnants from runs and pipelines
Keep the assigned runs and pipelines UI Material-only by removing alternate icons, host branches, and Cupertino color usage while preserving compatibility parameters needed by other callers. Update mirrored tests and record focused verification for the cleanup.
2026-11-11 21:12:40 +00:00
alan c88d1f983b Merge commit '66cb9edee1367da311589ecfacc3ac312dc1a395' into pipelines/run-20261111-1951-material-cleanup-shared-ui-primitives-65fb 2026-11-11 21:10:21 +00:00
alan 66cb9edee1 Keep diff choices readable at large text sizes 2026-11-11 21:08:54 +00:00
alan 3650726ca1 Remove obsolete Cupertino motion fixtures
Keep floating tab motion coverage aligned with the app's Material-only UI and update the cleanup note with the focused verification already completed.
2026-11-11 21:08:01 +00:00
alan db522c8dc9 Merge commit '2da375ccce14528305d19416678bc2667520afa9' into pipelines/run-20261111-1951-material-cleanup-chat-workspace-and-sess-8fd9 2026-11-11 21:01:24 +00:00
alan 2da375ccce Adapt remaining feature popups for desktop
Use the shared anchored choices and bounded details dialogs for diff form and artifact facts while preserving narrow Material sheets. Cover both width branches and dismissal behavior.
2026-11-11 20:57:08 +00:00
alan 83fd56ba19 Merge commit '551e403d48d51e4904387d2c299dcfd9ec62dbf9' into pipelines/run-20261111-1951-material-cleanup-shared-ui-primitives-65fb 2026-11-11 20:56:34 +00:00
alan 551e403d48 Merge branch 'main' into pipelines/run-20261111-1947-use-desktop-dialogs-for-remaining-sheets-4d07 2026-11-11 20:54:12 +00:00
alan d16c1b3db7 Merge current main and preserve Material chat cleanup 2026-11-11 20:53:58 +00:00
alan 3f396ef73a Merge branch 'main' into pipelines/run-20261111-1951-material-cleanup-remaining-fixtures-and-92bd 2026-11-11 20:48:46 +00:00
alan c88a9e8ce8 Remove obsolete Cupertino fixture coverage
Keep the shared UI primitive tests focused on the app's Material-only behavior and remove alternate-host fixtures that no longer represent supported rendering.
2026-11-11 20:48:02 +00:00
alan 1d790c2a66 Merge commit 'a823a6e8a398ab1327ff22f9c393d970e52a6f4b' into pipelines/run-20261111-1947-use-desktop-dialogs-for-remaining-sheets-4d07 2026-11-11 20:47:24 +00:00
alan a823a6e8a3 Use theme typography in shortcut help 2026-11-11 20:44:32 +00:00
alan 3f698e1ef9 Record integrated shortcut help verification 2026-11-11 20:43:49 +00:00
alan b5fd8118cb Merge branch 'main' into pipelines/run-20261111-1947-add-discoverable-unified-keyboard-shortc-134b 2026-11-11 20:43:00 +00:00
alan 6185797b2c Merge commit '00d470a4aa8a314108732620d69d636a0a93f64f' into pipelines/run-20261111-1951-material-cleanup-remaining-fixtures-and-92bd 2026-11-11 20:42:42 +00:00
alan 00d470a4aa Merge commit '61c34bb74ad275430fb8909f64fc18cd588fb943' into pipelines/run-20261111-1927-open-search-with-alt-slash-and-cmd-slash-f9f5 2026-11-11 20:38:11 +00:00
alan 1b36328860 Preserve chat action compatibility
Keep the optional legacy icon parameter available for callers that have not yet migrated while rendering remains Material-only. The reviewed chat cleanup is already present in the preceding commit.
2026-11-11 20:35:48 +00:00
alan 86a8e11438 Merge commit '61c34bb74ad275430fb8909f64fc18cd588fb943' into pipelines/run-20261111-1951-material-cleanup-shared-ui-primitives-65fb 2026-11-11 20:33:29 +00:00
alan 61c34bb74a Record browser terminal to chat focus verification 2026-11-11 20:32:17 +00:00
alan 49da2bc336 Merge commit 'e1cc3cbf3d9aca17248b1d9368cf1f972418c5d2' into pipelines/run-20261111-1951-material-cleanup-chat-and-graph-probe-ho-87d5 2026-11-11 20:24:31 +00:00
alan e1cc3cbf3d Merge commit 'fb8acda1975ed21dea3b03d9ecff2fc03a78f137' into pipelines/run-20261111-1951-material-cleanup-chat-conversation-and-t-b53d 2026-11-11 20:20:19 +00:00
alan fb8acda197 Merge commit 'ec3455e34dbec87376f00d19d9cc944eef51dae7' into pipelines/run-20261111-1951-material-cleanup-terminal-and-chat-shell-1213 2026-11-11 20:15:37 +00:00
alan ec3455e34d Merge branch 'main' into pipelines/run-20261111-1951-material-cleanup-app-startup-and-shell-4c7b 2026-11-11 20:11:17 +00:00
alan 9e218f755a Consolidate startup and shell on Material
Remove alternate application hosts, page scaffolds, connection controls and icon metadata while preserving Material routing. Isolate navigation fixtures from native update plugins and retain separate startup-update regressions.
2026-11-11 20:11:17 +00:00
alan 714f8aedab Merge commit '2e3275a46e8ab51fff4191204fe4bd0f2e39ab82' into pipelines/run-20261111-1947-use-desktop-dialogs-for-remaining-sheets-4d07 2026-11-11 20:10:57 +00:00
alan 69ae0519bd Remove Cupertino fixture alternatives
Keep capture and probe tooling on the app's single Material surface by removing obsolete platform switches, hosts, and documentation. Preserve the existing Material routes and fixture behavior while retaining compatibility APIs outside this lane.
2026-11-11 20:10:51 +00:00
alan 13a5e1dee0 Remove Cupertino branches from probe fixtures
Keep the chat and graph fixtures aligned with the app's Material-only UI by removing alternate Cupertino hosts, imports, and query-controlled rendering paths. Preserve the existing Material scenarios and document the focused probe coverage.
2026-11-11 20:08:06 +00:00
alan 04ba81e0ea Remove Cupertino chat cleanup leftovers
Keep chat and folder-picker UI on the Material path by removing obsolete Cupertino imports, icon metadata, flags, and alternate control handling while preserving existing behavior and focused test coverage.
2026-11-11 20:06:37 +00:00
alan ba198d144a Use desktop dialogs for remaining sheets
Keep the audited runs filter, chat colour picker, and Needs you flows as Material bottom sheets on narrow or touch layouts while presenting bounded desktop dialogs on wide layouts. Remove obsolete Cupertino flags and add focused route regressions and notes.
2026-11-11 20:06:27 +00:00
alan 2e3275a46e Merge branch 'main' into pipelines/run-20261111-1951-material-cleanup-remaining-feature-surfa-3a1f 2026-11-11 20:06:17 +00:00
alan 5c80f75211 Remove Cupertino UI branches from shared primitives
Keep the existing Material rendering, semantics, and interaction paths while removing obsolete Cupertino imports, alternate widgets, and dynamic-color dependencies. Record focused verification and remaining fixture limitations for final integration.
2026-11-11 20:05:58 +00:00
alan 21115f8e8f Add unified keyboard shortcut help
Expose platform-aware shortcut help from Settings, keep narrow layouts scrollable, share Search tooltip labels, and document Terminal-to-chat composer focus. Integrate together with the separately reviewed Alt-slash handler.
2026-11-11 20:05:56 +00:00
alan 214bbbc54f Remove Cupertino branches from terminal chat shell
Keep the existing Material terminal and chat-shell behavior while removing live Cupertino widgets, icon metadata, and alternate-host branches. Retain only the documented optional compatibility parameters until remaining callers migrate.
2026-11-11 20:05:55 +00:00
alan 87a568a7b4 Remove dead Cupertino chat paths
Keep the chat transcript and toolbar on their existing Material behavior while removing obsolete Cupertino-only helpers, arguments, and icon metadata. Preserve compatibility parameters where callers outside this lane still require them.
2026-11-11 20:05:45 +00:00
alan 70b3f05c5e Merge commit 'f45bca093f04e9d87bbdfdd58c88331a9737e3b3' into pipelines/run-20261111-1927-open-search-with-alt-slash-and-cmd-slash-f9f5 2026-11-11 20:05:06 +00:00
alan 8e5a88beff Remove alternate feature icon metadata
Preserve reviewed Material-only feature changes after the pipeline's landing stage incorrectly refused shell committing. Keep required shared compatibility inputs until the coordinated caller cleanup.
2026-11-11 20:03:57 +00:00
alan f45bca093f Merge commit '2e41717e83132e55d296853c0338bc2c7ed87b9d' into pipelines/run-20261111-1927-unify-chat-selectors-with-permission-men-e1a8 2026-11-11 19:53:26 +00:00
alan 1850528ced Cover Alt slash search focus
Update the keyboard focus regression coverage so Alt+/ is verified as the shell Search destination shortcut while preserving the existing Ctrl+/ behavior. Record the expanded focused-check result in the implementation note.
2026-11-11 19:51:15 +00:00
alan 2e41717e83 Merge commit '3f05421e8b61f063155eb61a166edcee910b750a' into pipelines/run-20261111-1928-focus-chat-composer-when-toggling-from-f-1ed3 2026-11-11 19:48:03 +00:00
alan 3f05421e8b Merge commit 'a38f1bb3d1d8f3eb841a5eb618eb70f184ce4c7d' into pipelines/run-20261111-1927-use-proper-file-explorer-sort-icon-7c7b 2026-11-11 19:43:28 +00:00
alan 6cacd11c6b Use proper sort icon in file explorer
Give the FilesHeader sort control a recognizable Material sort glyph while preserving the default overflow icon for other menus. Add focused widget coverage for sort key and direction behavior.
2026-11-11 19:41:20 +00:00
alan 4668deeaf7 Focus floating chat from terminal shortcut
Raise the most recently used chat when Ctrl+Y is invoked from another window, then rely on the existing host lifecycle to focus its composer. Preserve toggle behavior while chat is active and retain the Apple shortcut aliases.
2026-11-11 19:40:30 +00:00
alan 2d0e33dd67 Unify chat selector menus
Use the permission selector's shared popup and choice-row primitives for model and thinking controls while preserving catalog, search, and next-turn behavior. Remove the obsolete Cupertino model chooser parameter and cover current-model dismissal.
2026-11-11 19:40:26 +00:00
alan aa0b090bd0 Merge commit 'a38f1bb3d1d8f3eb841a5eb618eb70f184ce4c7d' into pipelines/run-20261111-1927-open-search-with-alt-slash-and-cmd-slash-f9f5 2026-11-11 19:38:55 +00:00
alan aa8329460d Open Search with Alt slash shortcut
Accept the physical slash key for exact Alt+/ delivery, including macOS Option dead-key values, while preserving existing Ctrl+/ and Command+/ behavior. Add focused regression coverage and document the verified checks.
2026-11-11 19:33:17 +00:00
alan a38f1bb3d1 Add outline to floating windows
Paint a theme-derived one-pixel outline as a foreground overlay so the full floating window perimeter remains visible over navigator content without changing existing interaction geometry.
2026-11-11 19:32:46 +00:00
alan 3da71c3053 Merge commit 'c8d9f661b5285a97ff9b2fb5f670549d09ac2ebf' into pipelines/run-20261111-1811-preserve-center-stage-reading-width-with-c833 2026-11-11 18:25:51 +00:00
alan d17d356814 Preserve center stage width with file explorer
Report each pane's active explorer width to the center-stage layout so the reading column stays at its preferred width while constrained workspaces still make room for side strips. Restore the allocation when switching panes or closing the explorer.
2026-11-11 18:25:44 +00:00
alan c8d9f661b5 Support Alt+E center stage shortcut
Recognize Option+E by physical key position so macOS dead-key delivery works, including from focused composers, while preserving existing platform aliases and shell behavior. Update labels, notes, and focused coverage.
2026-11-11 18:20:24 +00:00
alan 2307d45417 Release native chat runtimes on lifecycle changes
Ensure /new and chat close stop native foreground and background work before changing registry state. Preserve transcripts while surfacing release and recovery cleanup failures instead of reporting false success, with focused adapter and server regressions.
2026-11-11 17:11:40 +00:00
alan a5912d9a1e Remove Cupertino branches from layout widgets
Keep the public cupertino parameters for existing callers while making the layout widgets and focused tests Material-only. Remove unreachable Cupertino imports, helpers, widgets, and test variants without changing the Material path.
2026-11-11 16:35:38 +00:00
alan edc503b228 Remove Cupertino changes branches
Keep the Material-only changes feature while preserving public Cupertino parameters for callers. Remove Cupertino-only widgets, imports, hosts, and tests because the app never reaches that path.
2026-11-11 16:22:09 +00:00
alan 4b4628f35c Remove Cupertino branches from runs UI
Keep the public cupertino parameters for compatibility while retaining only the Material rendering paths. Remove Cupertino-only widgets, routes, styling, and tests because the application runs under Material hosts.
2026-11-11 16:06:54 +00:00
alan 706c460c6e List the center stage width and file explorer location requests 2026-11-11 15:24:17 +00:00
alan ef9b279014 Say when a Claude usage limit resets
Run 355 stopped on the 5-hour usage window with the balance wording. The
diagnostic now names the reset time the CLI reports.
2026-11-11 15:24:17 +00:00
alan ae208699d8 Remove Cupertino chat session branches
Keep the Material-only session UI and narrow its tests to the supported host. Preserve public Cupertino parameters for callers while removing unreachable Cupertino widgets and variants.
2026-11-11 14:18:04 +00:00
alan 96de9f5bea Remove Cupertino chat conversation branches
Keep the Material-only conversation implementation while preserving public Cupertino parameters for callers. Narrow affected tests to Material hosts so the dead platform paths are no longer exercised.
2026-11-11 13:11:05 +00:00
alan 8f52c7ec55 Narrow chat tests to Material hosts
Remove Cupertino-only fixtures, test variants, and the obsolete readable-text test now that the app is Material-only. Preserve the Material coverage while avoiding unreachable platform branches.
2026-11-11 12:35:38 +00:00
alan fc1e93760d Narrow chat tests to Material hosts
Remove Cupertino-only composer test variants and keep the remaining coverage focused on the app's Material-only runtime.
2026-11-11 12:10:39 +00:00
alan 4e083af695 Merge commit '3ba124f2500ed32c7169cf3b7963b60d6c1ee0b3' into pipelines/run-20261111-1117-cupertino-out-chat-transcript-part-1-bf8b 2026-11-11 11:57:10 +00:00
alan ddcf7bb3d1 Use Material theme colors in transcript links
Remove the obsolete Cupertino theme dependency from link rendering and keep the shown-entry documentation accurate after the transcript cleanup.
2026-11-11 11:56:48 +00:00
alan fbe1928f59 Remove Cupertino chat transcript branches
Keep the existing Material transcript path while preserving public Cupertino parameters for callers. Narrow transcript tests to the Material-only behavior and remove Cupertino-only fixtures.
2026-11-11 11:46:13 +00:00
alan 3ba124f250 Remove Cupertino branches from shown transcript
Keep the Material transcript path while preserving public Cupertino parameters for callers that will be removed in a later change.
2026-11-11 11:13:58 +00:00
alan 1c2bb8733a Remove Cupertino folder picker branches
Keep the Material-only folder picker implementation while preserving public cupertino parameters for callers. Narrow the matching tests to the supported Material host.
2026-11-11 10:56:54 +00:00
alan a3fdecbbcb Keep long Claude stream records valid in the retained evidence
RedactEvidence truncates at 16 KB and appends a line break, which cut long
stream-json records in two. The session export parses that stream, so the
first real Claude stage (run 346) parked on "Session export pending". The
stream is now redacted record by record without truncation.
2026-11-11 10:48:42 +00:00
alan ac4627b8f2 Take the race out of the chat seen-sync test
The open chat acknowledged after 20 ms of real time, so on a loaded machine
it could fire before the assertion that the other device still shows New.
That failed the delivery gate of runs 304 and 318.
2026-11-11 10:46:05 +00:00
alan bd07abcde8 Run pipeline stages on Claude Code (harness=claude)
A model stage with harness=claude, provider=anthropic and a Claude model id
runs one claude -p process per visit with the server user's Claude sign-in.
Only the declared tools exist (--tools) and nothing else is approved
(--permission-mode dontAsk); edits are approved only below the run directory
and the stage's artifacts directory. A permissions block, run write paths,
delivery=true and reasoning_effort none/minimal are refused, not widened.

Usage comes from the CLI's final result and counts toward budgets. Failures
are fixed text; billing, quota and rate-limit refusals map to
ErrProviderQuota. The redacted stream is the session export and evidence.
provider-check --harness claude and model overrides are covered.
2026-11-11 10:30:37 +00:00
alan 16643b9f1b Stop a run when the model provider refuses for balance or quota
Ten runs each burned five visits in seconds on "OpenCode agent reported an
execution error": the provider answered HTTP 402 provider.quota and the
classifier read neither field. That refusal is now its own error with fixed
text, is not retried inside the stage, and ends the run instead of
following the error edge.
2026-11-11 10:10:40 +00:00
alan 0392f57b08 Merge commit '8b1ca066aca07861622b4b1350b7988531ccd5e0' into pipelines/run-20261111-0456-cupertino-out-runs-ui-part-1-2ad5 2026-11-11 05:29:23 +00:00
alan 8b1ca066ac Merge commit '1259e98520fef49f089be7f78b826e74008a130c' into pipelines/run-20261111-0511-cupertino-out-settings-part-2-8e27 2026-11-11 05:24:31 +00:00
alan 3933ff980c Remove Cupertino settings branches
Keep the Material settings implementation while preserving public Cupertino parameters for later cleanup. Narrow settings tests to the Material-only behavior.
2026-11-11 05:21:30 +00:00
alan 1259e98520 Merge commit '75fd19439476623e5dd150a5e7c322ea07ab4ffb' into pipelines/run-20261111-0502-cupertino-out-chat-conversation-part-1-5053 2026-11-11 05:18:51 +00:00
alan b6aa820378 Remove Cupertino chat conversation branches
Keep the Material-only chat conversation implementation while preserving public Cupertino parameters for downstream compatibility. Narrow the matching tests to the Material path.
2026-11-11 05:18:29 +00:00
alan fe618689f5 Merge main into pipelines/run-20261111-0456-cupertino-out-runs-ui-part-1-2ad5 2026-11-11 05:13:28 +00:00
alan 75929a0a41 Remove Cupertino branches from runs UI
Keep the Material-only run detail implementation while preserving public parameters for callers. Narrow the corresponding widget tests to the supported Material host and remove unused Cupertino-only code.
2026-11-11 05:11:26 +00:00
alan 75fd194394 Merge commit '544cd8128d5b360a0c8a552fe0987024a311a22a' into pipelines/run-20261111-0449-cupertino-out-settings-part-1-c39d 2026-11-11 05:06:10 +00:00
alan a7c41063fa Remove Cupertino branches from Settings
Keep the Material-only settings implementation and its focused tests while preserving public cupertino parameters for later cleanup. This removes unreachable platform-specific widgets and test variants without changing the Material path.
2026-11-11 05:05:57 +00:00
alan 544cd8128d Merge commit '591e1eec3a69099d7ae95ddcdd07d727b4bdeb27' into pipelines/run-20261111-0432-cupertino-out-pipelines-56b8 2026-11-11 04:55:37 +00:00
alan d1b05217c9 Remove Cupertino pipeline branches
Keep the pipeline feature on its existing Material path because the app runs under MaterialApp and never selects Cupertino hosts. Preserve public cupertino parameters and required Cupertino icon values for later cleanup and shared controls.
2026-11-11 04:53:12 +00:00
alan 591e1eec3a Merge commit 'a2e6f8557ee46a545a9b4b2e7c5440b947b7c4df' into pipelines/run-20261111-0420-cupertino-out-artifacts-9258 2026-11-11 04:50:39 +00:00
alan bc4e638475 Keep artifact tests on Material platform
Remove the unused Cupertino test variants so the reviewed artifact changes match the app's Material-only execution path.
2026-11-11 04:50:14 +00:00
alan a2e6f8557e Merge commit '03915fbb35c202d554d9e4cbc1549c0c4e62bdef' into pipelines/run-20261111-0431-cupertino-out-chat-shell-2721 2026-11-11 04:42:43 +00:00
alan 8e98651db6 Remove Cupertino chat shell branches
Keep the Material-only chat shell path while preserving public Cupertino parameters for callers. Narrow matching tests to the supported Material host.
2026-11-11 04:41:58 +00:00
alan 2ae18f3c9a Merge commit '03915fbb35c202d554d9e4cbc1549c0c4e62bdef' into pipelines/run-20261111-0420-cupertino-out-artifacts-9258 2026-11-11 04:37:15 +00:00
alan f46b82e207 Remove Cupertino branches from artifact features
Keep the Material implementation while preserving public parameters needed by callers. Remove Cupertino-only tests and variants because the app runs exclusively under MaterialApp.
2026-11-11 04:36:57 +00:00
alan 03915fbb35 Merge commit '98e2abd9af3a67c57ff42181aa1e5d1817dd3270' into pipelines/run-20261111-0410-cupertino-out-schedules-37d5 2026-11-11 04:26:25 +00:00
alan 4647b9c43e Remove Cupertino schedules branches
Keep the Material-only schedules implementation while preserving public Cupertino parameters for callers. Remove Cupertino-only test hosts and variants because the app runs every schedule screen under MaterialApp.
2026-11-11 04:26:05 +00:00
alan 98e2abd9af Merge commit 'd365959bf1bb7921e728f8ad152548b21a44f9b5' into pipelines/run-20261111-0353-cupertino-out-runs-actions-7b6c 2026-11-11 04:19:56 +00:00
alan 364fd5b538 Remove Cupertino run action branches
Keep the Material-only run action behavior while preserving public Cupertino parameters for callers that will be cleaned up separately. Narrow the related tests to the supported Material path.
2026-11-11 04:18:26 +00:00
alan d365959bf1 Merge commit 'a135430526945af309b884757a7fb25228e6f298' into pipelines/run-20261111-0323-cupertino-out-shell-eacf 2026-11-11 04:14:30 +00:00
alan 8316b25029 Remove remaining Cupertino-only shell tests
Keep the Material coverage while removing tests for unreachable Cupertino hosts and variants from the shell cleanup.
2026-11-11 04:11:51 +00:00
alan a135430526 Merge commit '1ad62e81d3587f53ed486a2ecc79759e42d6abff' into pipelines/run-20261111-0351-cupertino-out-terminal-3084 2026-11-11 04:03:04 +00:00
alan 3be07064f9 Remove Cupertino terminal branches
Keep the Material-only terminal implementation while preserving public Cupertino parameters for callers. This removes unreachable Cupertino widgets and imports without changing the Material path.
2026-11-11 03:58:24 +00:00
alan 943b1cc72a Merge branch 'main' into pipelines/run-20261111-0323-cupertino-out-shell-eacf
# Conflicts:
#	app/test/application/search_artifact_open_test.dart
#	app/test/application/search_chat_open_test.dart
2026-11-11 03:54:36 +00:00
alan 9bdabb32d9 Remove Cupertino shell branches
Keep the Material-only shell path while preserving public cupertino parameters for callers. Narrow matching tests to Material hosts and behavior because the app always runs under MaterialApp.
2026-11-11 03:48:41 +00:00
alan 1ad62e81d3 Merge commit 'c65a66d9bb27a16c8fc201f25dd5df6c2076682c' into pipelines/run-20261111-0338-cupertino-out-search-5420 2026-11-11 03:47:26 +00:00
alan 1b7da4106c Remove Cupertino search branches
Keep the Material-only search implementation while preserving public signatures and required icon fallback parameters.
2026-11-11 03:47:13 +00:00
alan c65a66d9bb Merge commit '84684463204d32bc51ea50ddb5789b0cc17b280a' into pipelines/run-20261111-0240-perf-whole-pixel-window-frames-stop-per-89f6 2026-11-11 03:37:34 +00:00
alan 8361322fe2 Keep floating window moves pixel-stable
Round fitted window frames to whole logical pixels and accumulate drag deltas from the gesture start. This prevents floating-point size noise from rebuilding window content while preserving fractional pointer movement and resizing behavior.
2026-11-11 03:28:34 +00:00
alan 8468446320 Merge commit 'baac6eca9a07c3645e57b3515dcf64bf6a49ae4e' into pipelines/run-20261111-0115-cupertino-out-ui-motion-navigation-input-6491 2026-11-11 03:23:07 +00:00
alan baac6eca9a Merge commit '148b3e790560f14d97c6ebfee69b0bf578c9d11d' into pipelines/run-20261111-0216-cupertino-out-templates-29f5 2026-11-11 03:06:11 +00:00
alan f3d6013ef5 Remove Cupertino variants from runs sheet tests
Keep the runs sheet coverage focused on the Material-only app path and remove obsolete Cupertino hosts and loop variants.
2026-11-11 03:04:27 +00:00
alan 1db273894c Remove Cupertino template branches
Keep the Material-only template implementation and narrow its tests to the runtime path. Retain public Cupertino parameters for compatibility while removing unreachable hosts, widgets, and test variants.
2026-11-11 02:53:23 +00:00
alan f65eb98311 Merge branch 'main' into pipelines/run-20261111-0115-cupertino-out-ui-motion-navigation-input-6491
# Conflicts:
#	app/test/features/runs/ui/runs_list_widget_test.dart
2026-11-11 02:43:51 +00:00
alan 9adee6cc60 Remove Cupertino UI branches
Keep the public Cupertino-compatible parameters while retaining only the Material implementations and tests. The app is Material-only, so deleting unreachable Cupertino branches reduces dead code without changing the active path.
2026-11-11 02:41:26 +00:00
alan 148b3e7905 Merge commit '98c985e27f938eb80378a16995bfe31e16ea9631' into pipelines/run-20261111-0141-cupertino-out-graph-4ef1 2026-11-11 02:31:22 +00:00
alan 88cb76f220 Remove Cupertino graph branches
Keep the Material graph implementation while preserving public Cupertino parameters for callers. Remove unreachable Cupertino widgets, routes, theme branches, imports, and Cupertino-only tests because the app runs exclusively under MaterialApp.
2026-11-11 02:26:12 +00:00
alan 98c985e27f Merge commit '42cb6a6f2d0de09a5851b31ef1b866c876a32337' into pipelines/run-20261111-0141-perf-window-moves-do-not-rebuild-content-b294 2026-11-11 02:15:50 +00:00
alan 98cdf63079 Prevent floating window content rebuilds
Keep window content scope independent from frame changes, and retain the page theme and root page across layer rebuilds. Add repaint boundaries and regression coverage so dragging and resizing avoid unrelated content work while content changes still propagate.
2026-11-11 02:05:30 +00:00
alan 42cb6a6f2d Merge commit 'c75023eb402a3851e5bbb617920e1574bb1614ef' into pipelines/run-20261111-0115-cupertino-out-servers-and-settings-secur-c6ad 2026-11-11 02:01:33 +00:00
alan c75023eb40 Remove Cupertino chat workspace branches
Keep the app's Material-only chat workspace path while retaining public cupertino parameters for callers. Narrow the affected widget tests to the supported Material host.
2026-11-11 01:53:14 +00:00
alan e153cd5e15 Merge branch 'main' into pipelines/run-20261111-0115-cupertino-out-servers-and-settings-secur-c6ad 2026-11-11 01:48:53 +00:00
alan 6a37039028 Merge perf bench scenarios 2026-11-11 01:41:44 +00:00
alan 6eb26b6d17 Bench desktop windows and chat, with an option to keep the GPU
interaction_bench.mjs gains 1280x800 scenarios (dragging, resizing, hiding
and floating chat windows, a probe window drag, chat scroll, typing, chat
switch, the terminal panel), key, drag and wheel steps, a per-scenario size
and --gpu, which keeps WebGL so raster time reads as on a desktop.
2026-11-11 01:41:44 +00:00
alan 8cb895ec27 Merge commit 'b29bd5830cba1485f365cd6f06a29d0e0f0468b4' into pipelines/run-20261111-0115-cupertino-out-servers-and-settings-secur-c6ad 2026-11-11 01:40:09 +00:00
alan 502027b602 Remove Cupertino branches from server settings
Keep the public compatibility parameters while retaining only the Material UI path. Remove Cupertino-only tests so the reviewed settings and server code matches the app's Material-only runtime.
2026-11-11 01:39:39 +00:00
alan b29bd5830c Merge commit 'f21365f60905568be9d6a2c1fe5e2d87f60184df' into pipelines/run-20261111-0115-cupertino-out-attention-fde4 2026-11-11 01:31:27 +00:00
alan 968e3e908a Remove Cupertino attention branches
Keep the reviewed attention surfaces on their Material implementations while preserving public cupertino parameters for remaining callers. Remove the unreachable Cupertino sheet and narrow tests to the Material path.
2026-11-11 01:31:14 +00:00
alan f21365f609 Remove Cupertino chat file branches
Keep the Material-only file explorer path while preserving public APIs used by callers. Remove unreachable Cupertino widgets, hosts, routes, and tests so the app remains behaviorally unchanged on Material screens.
2026-11-11 01:23:59 +00:00
alan 37cf9472c2 Merge commit '122f9fcd33b256842fcbde729e76fd031d988314' into pipelines/run-20261111-0040-cupertino-out-ui-status-text-scale-3de6 2026-11-11 01:09:47 +00:00
alan 122f9fcd33 Merge commit '970b7cb16d2a25a9b3017d509f515186eae3c9d4' into pipelines/run-20261111-0040-cupertino-out-onboarding-b13c 2026-11-11 01:05:06 +00:00
alan 3ca1bf4a00 Remove Cupertino UI branches
Keep the Material-only status, text, and scale paths while preserving public signatures and the Cupertino colors still required by the status API.
2026-11-11 01:00:35 +00:00
alan 26eafffd42 Remove Cupertino onboarding branches
Keep onboarding on the app's Material-only path and remove unreachable Cupertino widgets and host-specific tests. Preserve the reviewed Material behavior while documenting the focused checks and verification limits.
2026-11-11 00:57:05 +00:00
alan 970b7cb16d Remove Cupertino update dialog branches
Keep the Material update dialogs as the only reachable implementation while preserving public cupertino parameters for callers. Update focused tests and document the verified checks.
2026-11-11 00:56:46 +00:00
alan c2b992542b Tell the next stage what failed when an error edge leads onward
A failed visit was recorded on its step only, so a landing gate that sent
the run back to implement gave the implementer nothing about which checks
failed. The diagnostic (bounded) is now the next stage's previous output
and a memory entry.
2026-11-11 00:39:36 +00:00
alan c7fa38439e Update the floating-windows status 2026-11-11 00:10:02 +00:00
alan 78b477a8ad Merge main 2026-11-11 00:05:16 +00:00
alan 2628f6c425 Copy a terminal selection with Ctrl+C outside Apple platforms
A browser keeps Ctrl+Shift+C for its developer tools, so on Linux and
Windows web nothing copied. With text selected Ctrl+C now copies it (and
clears the selection) instead of interrupting the process; Ctrl+Insert
copies too, and a finished run's read-only output answers the copy keys.
The terminal's options menu names the key.
2026-11-11 00:05:16 +00:00
alan ef1c120f57 Add the Windows menu, window cycling, edge snapping and size per kind
Phase 4 of docs/plans/floating-windows.md. A bar button lists the app's
windows on every tab (show one, Show all, Minimise all, Close all). Alt+`
and Alt+Shift+` bring the next or previous window to the front. Dropping a
title at the left or right edge fills that half, at the top it maximises.
A new window of a kind opens at the size that kind was last given.
2026-11-11 00:05:16 +00:00
alan e9fa1b6ec9 Record the floating-windows status and what the pipeline runs showed 2026-11-10 23:17:13 +00:00
alan aa6468dc06 Drop Cupertino variants of the mode control tests 2026-11-10 23:11:29 +00:00
alan 046460b4b6 Merge 2b.2: mode and add-pane pickers as menus on desktop 2026-11-10 23:02:20 +00:00
alan 6a071a5b02 Drop Cupertino variants of the row menu and run detail tests 2026-11-10 23:02:20 +00:00
alan 5fc3c9d3bd Show the mode picker and the add-pane picker as menus on desktop
Phase 2b.2 of docs/plans/floating-windows.md, implemented by pipeline run
303: both use showAppChoiceMenu (a menu anchored to its button on a wide
app, a bottom sheet on a phone).
2026-11-10 23:02:20 +00:00
alan 440065614c Merge 2b.5: files and runs sort menus on desktop 2026-11-10 22:56:39 +00:00
alan 4acecd3d1c Merge 2b.3: turn changes and shell history as dialogs on desktop 2026-11-10 22:56:33 +00:00
alan 3a0577cba0 Keep phone pages and window pages for turn changes and shell history
A dialog only in the tiled app on a wide layout: a phone keeps its
full-screen page (run 304 had turned it into a sheet and rewritten the
tests), and a floating window opens it as a page of that window so a diff
or command output it opens stays in the window.
2026-11-10 22:56:32 +00:00
alan 8c95f0dd39 Fix the tests the chat details dialog broke on main
I landed 2b.4 without reading its gate result: six Cupertino variants of
the chat details tests and one floating chat test expected the old sheet.
2026-11-10 22:56:24 +00:00
alan 213fc4608c Merge 2b.4: chat details and file details as dialogs on desktop 2026-11-10 22:54:32 +00:00
alan f6046c5ab6 Drop the Cupertino files test the Material-only details invalidated 2026-11-10 22:54:32 +00:00
alan 122c849281 Merge main 2026-11-10 22:42:42 +00:00
alan 6b82f51331 Open a choice menu over its anchor when the anchor is a whole pane
The add-pane picker is opened from a pane, not a button; with no room
above or below the anchor the panel was laid out with no height (found by
run 303's UI review).
2026-11-10 22:41:59 +00:00
alan ab70f78e92 Merge commit 'ba1cbccdf28e6e57862fc3f50474b1da93a0d6b8' into pipelines/run-20261110-2153-desktop-menus-2b-5-on-desktop-the-files-4544 2026-11-10 22:25:57 +00:00
alan e4ad266a6a Merge main 2026-11-10 22:21:15 +00:00
alan 286506310c Show chat details and file details as dialogs on desktop
Phase 2b.4 of docs/plans/floating-windows.md: both use showAppDetails (a
dialog on a wide app, a bottom sheet on a phone). Implemented by pipeline
run 305; landed by hand after its UI review found the dialog clipped, which
the helper now scrolls.
2026-11-10 22:21:15 +00:00
alan ba1cbccdf2 Scroll details dialogs whose content is taller than the app
Chat details was cut off at 1280x800 (found by run 305's UI review).
2026-11-10 22:21:14 +00:00
alan 75a61dbd8c Make the terminal's floating mode a window of the window system
Phase 3 of docs/plans/floating-windows.md. The terminal window kind reuses
TerminalHub; TerminalWindows keeps the window in step with TerminalLayout
(show opens or shows it, hide minimises it, Minimise and Close hide the
terminal). The bottom panel stays a shell panel. The first window takes the
frame and maximised state pipelines.terminal-layout.v1 saved.

The terminal's own float chrome and FloatingLayer are deleted.
2026-11-10 22:19:30 +00:00
alan 8a308204fa Use adaptive popups for chat details
Present chat turn and shell-history detail surfaces through the shared adaptive popup helpers so desktop uses dialogs while phone layouts retain bottom sheets. Update focused tests and document the verified behavior.
2026-11-10 22:14:29 +00:00
alan 42a2378ecb Anchor desktop Files and Runs menus
Use Material popup menus for file actions and anchor Runs sorting choices to the sort button while retaining the phone fallback. Update callers, tests, and implementation notes to match the desktop behavior.
2026-11-10 22:14:29 +00:00
alan 31f495fc18 Add adaptive popup helpers: anchored choice menus and details dialogs
Phase 2b.1 of docs/plans/floating-windows.md. showAppChoiceMenu is a menu
panel anchored to its button on a wide app and a bottom sheet on a phone;
showAppDetails is a dialog or a bottom sheet. Both are on the root
navigator, and the app's width decides, so content in a narrow floating
window still gets desktop popups. The probe window exercises both.
2026-11-10 21:53:35 +00:00
alan f0aadbe4e3 Merge branch 'chat-runtime': chats on the shell window system 2026-11-10 21:43:37 +00:00
alan 9d533fcad9 Describe floating chats on the window system in the notes 2026-11-10 21:43:37 +00:00
alan 16afda3634 Close menus with Escape and keep a window's popups focused
AppMenuAnchor is the app's one MenuAnchor: root overlay, takes the keyboard
while open (Escape and arrows work wherever focus was) and gives it back.
A window no longer takes the keyboard back from a popup its own press
opened. In a window, Files opens as a page of that window and Chat details
is in the More menu.
2026-11-10 21:33:07 +00:00
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 558eedb410 Extract ChatRuntime from the Chat screen
Phase 2.1 of docs/plans/floating-windows.md. The session list controller,
opened rows, accepted models, transcript positions and caches, composer
focus requests and list folds move from ChatScreen's state to ChatRuntime.
ChatScreen builds its own unless one is passed; behaviour is unchanged.
2026-11-10 21:00:21 +00:00
alan 76191ade35 List the terminal copy failure on Linux web as an open item 2026-11-10 20:53:41 +00:00
alan a99f7014f5 Add the shell window host with layering acceptance tests
Phase 1.3 and 1.4 of docs/plans/floating-windows.md. Windows are plain
children of the terminal stage's stack in the shell page, outside every
destination, so popups opened from one are above all of them. Each window
has its own page navigator: pushed pages open inside the window, and popup
routes go to the root navigator. One WindowFrame chrome (move, resize,
minimise, maximise, close), a focus scope per window, a ScaffoldMessenger
per window.

No feature uses it yet. The capture fixture opens probe windows with
?windows=N, and window_layering_test.dart covers every popup type from a
window over Chat and over another destination.
2026-11-10 20:48:31 +00:00
alan 215e1cee2a Merge commit '4273f9d801f20420be383be90e60cf6b30cfeb58' into pipelines/run-20261110-2013-surfacevisibility-signal-replaces-ticker-a247 2026-11-10 20:28:22 +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 4273f9d801 Merge branch 'windows-core' 2026-11-10 20:22:31 +00:00
alan 715efab778 Add the window manager, kinds and store for floating windows
Phase 1.2 of docs/plans/floating-windows.md: an app-lifetime WindowManager
with ordered WindowEntry values, a WindowKind registry and a device-local
versioned WindowStore whose server-scoped entries carry their server key.
Nothing uses it yet.
2026-11-10 20:16:56 +00:00
alan e0e8ca68f3 Make the app Material-only in the rules
The app builds one Material UI for every platform. Cupertino code, tests and
captures are being removed, so the agreement, the capture recipe and the
floating-windows plan no longer ask for them.
2026-11-10 20:10:02 +00:00
alan 08b1ff371c Merge branch 'bar-padding-alt-keys' 2026-11-10 19:18:46 +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 c8e4faf6a4 Plan desktop menus instead of bottom sheets 2026-11-10 19:01:48 +00:00
alan f29efc0fc9 Record the floating-window decisions in the plan
Pages open inside their window, windows get minimize and X closes, one
server for now with room for more; bottom sheets versus menus is still
open.
2026-11-10 19:00:53 +00:00
alan 132bd11fc6 Plan floating windows as a shell-level window system
Why popups open behind floating chats, why the chat float is still tied to
the Chat tab, and a phased plan for one window host that terminal, chats
and later runs and pipelines share.
2026-11-10 18:16:07 +00:00
alan 1b698a1241 Capture committed .env templates instead of skipping them
Every run in this repository reported an incomplete file-change capture
because the tracked .env.example matched the secret-file rules and was
skipped. Committed templates (.example, .sample, .template, .dist) hold
placeholders, so they are captured like any file; real secret files and
protected directories stay excluded.
2026-11-10 17:49:58 +00:00
alan 440995e31f Keep model and mode text off the action bar pill ends
Run 299 removed the model and mode buttons' horizontal padding on desktop
so the island's gap sets the spacing, which left their text touching the
pill's rounded ends. The island now insets its content by 12 px.
2026-11-10 17:00:42 +00:00
alan 123c864397 Evenly space chat action bar controls
Add a uniform desktop gap between header control groups and remove duplicated horizontal padding from model and mode controls. Preserve compact-layout touch targets and add Material/Cupertino regression coverage.
2026-11-10 16:38:55 +00:00
alan c6ab716ecb Merge branch 'main' into run-worktrees 2026-11-10 16:06:40 +00:00
alan 532ba48927 Run every pipeline run in its own worktree
A fresh run started from a repository's main checkout gets its own
worktree and branch next to the repository, so runs never share a tree
or see the operator's uncommitted work, and several can run at once.
Retries and runs started in a linked worktree keep their directory. A
clean, landed run tree is removed after success; anything else is kept.

The delivery gate commits what the land stage left uncommitted in a run
worktree, and no longer requires the operator's main checkout to be
clean: Git's fast-forward refuses safely when a local change conflicts.
2026-11-10 16:06:40 +00:00
alan 1a584e3432 Paste into a focused floating chat
The clipboard bridge gave every paste to the active tiled chat while
another composer had focus, so a floating chat (never the active pane)
could not receive pasted text or files. A floating chat's composer now
owns the paste while it has the keyboard, and the paste target yields to
it. A focused composer in an inactive tiled pane still leaves the paste
to the active pane, as before.
2026-11-10 16:02:35 +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 5be19909a4 Note center stage checks and the floating chat 2026-11-10 13:38:01 +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 c944bcb55b Merge branch 'main' into worktree-agent-a5b6d89690dfcde6b 2026-11-10 13:35:27 +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 ba85eb36a7 Record floating chat checks and captures 2026-11-10 13:25:24 +00:00
alan 97856906bb Merge branch 'main' into worktree-agent-a5b6d89690dfcde6b 2026-11-10 13:20:11 +00:00
alan 4b6519610d Merge main: pane moves alongside center stage 2026-11-10 13:12:24 +00:00
alan a49b59a2bc Keep even 16px window margins for top bars on wide windows
On a wide window (both sides at least 600 logical px) every SegmentedBar
keeps the floating tab bar's 16px from the top and the sides, in every
pane and page. A root WindowMargins scope adds the extra 8px to the top
media padding, so Cupertino's fixed reserved bar height, list clearances,
pinned headers and measured overlays all move together; the bar and the
TopGlassStrip read the 16px side inset from the same scope, and sticky
section chevrons keep 16px from the trailing edge. Phones keep 8/12.
2026-11-10 13:09:36 +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 19aa726e7f Wash the operator's bubbles softly in the chat colour
A coloured chat's own messages blend 22% of its shade over the host's
neutral bubble fill; text keeps the host colours and uncoloured chats
are unchanged.
2026-11-10 11:27:29 +00:00
alan 4ae2de444e Show the terminal bar button on the Chat tab only
Pipelines and Runs no longer carry it; the keyboard shortcut still
toggles the terminal everywhere.
2026-11-10 09:32:35 +00:00
alan 2720a063d1 Merge branch 'worktree-agent-afeabde4082bcde9e' 2026-11-10 03:11:27 +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 1ad85de1f1 Keep step-up elevation for the signed-in session and stop gating terminals
The proxy forwards an HMAC-derived session id (X-Pipelines-Session) on
/connect and POST /files; the server trusts it only on token-authenticated
requests and keys elevation by it, so reconnects stay elevated up to a 24 h
cap. Terminals rely on their su -l login. The app no longer forgets the
elevation on disconnect and asks again only on a fresh refusal.
2026-11-10 03:00:45 +00:00
alan 60b4c495f1 Colour the send button with the chat colour
A coloured chat's send button uses the chat's seeded primary and its
on-colour, like the focus ring; stop stays the host's error red and
uncoloured chats keep the host button.
2026-11-10 02:33:14 +00:00
alan 87519985bf Always show the terminal shortcut on the phone Chat page
The shortcut no longer waits for a running shell: on the Chat page it opens
the terminal, starting one at its login prompt when none is open, and shows
a count when more than one shell runs.
2026-11-10 02:25:36 +00:00
alan d52eb4ba82 Show the phone terminal shortcut on the Chat tab only 2026-11-10 02:20:54 +00:00
alan d55e1e7162 Let installed apps sign in over https again
The __Host- session cookie name now goes to browsers only. Native clients
(no Origin or fetch metadata), including app builds from before the change,
get the plain cookie name, still Secure over https, so they find their
session after signing in.
2026-11-10 02:19:36 +00:00
alan 50535dc5ea Merge branch 'worktree-agent-a7f96a1eb9a56587d'
# Conflicts:
#	cmd/pipelines-server/main.go
#	internal/server/websocket.go
#	scripts/manage.py
#	scripts/setup-native.py
#	web/serve.mjs
#	web/src/peerRelay.js
2026-11-10 01:25:04 +00:00
alan 31317be258 Document web sign-in and session hardening 2026-11-10 01:21:28 +00:00
alan 9702d68d2d Ask for the password once and retry when a machine requires elevation
Carry the protocol error code, wrap each machine's gateway so an
elevation_required refusal shows one native password dialog, elevates that
connection and retries; send the upload token with file uploads; add a Settings
sign-in security section with the weak-password warning and sign out
everywhere; accept the __Host- session cookie.
2026-11-10 01:21:28 +00:00
alan e43f9fa50c Hash the web password and revoke sessions server-side
Store a scrypt hash (migrating a plaintext password without changing it),
sign sessions with a generation that ./password and --revoke-all rotate,
make logout a same-origin POST that revokes the token, add sign out everywhere,
and close proxied websockets whose session ends. Enforce a strength rule for
new passwords, back off logins per client and server-wide, check Origin on
login, tighten next, add security headers and a __Host- cookie over https.
2026-11-10 01:21:28 +00:00
alan f11ff8650d Require step-up password confirmation for shells, terminals and file changes
A new elevate request verifies the web sign-in password (scrypt hash, read-only,
rate-limited, constant time) and elevates that connection for 15 minutes.
chat_shell_run/input, rename/move/delete, terminal_open/input and POST /files
(via a per-connection upload token) are refused with code elevation_required
until then.
2026-11-10 01:21:15 +00:00
alan a0f2cfec16 Merge branch 'worktree-agent-ac54c8919e940163a'
# Conflicts:
#	scripts/setup-native.py
2026-11-10 01:07:12 +00:00
alan e614f93578 Document the network defaults, LAN opt-in and migration 2026-11-10 01:06:17 +00:00
alan d35ae9b65a Merge branch 'worktree-agent-a5eba3669bc0e09ad' into worktree-agent-ac54c8919e940163a 2026-11-10 01:02:08 +00:00
alan ad6cdab418 Listen on loopback and tailnet by default; make the plain-HTTP LAN opt-in
The web proxy binds the wildcard and drops connections that are not
loopback or Tailscale at both ends. A LAN listener is opt-in (web.lan) and
refuses sign-in and signed-in pages over plain HTTP unless
web.lan_plain_login is set. Existing installs keep their bind address with
a warning. Without the LAN the mDNS advert carries only the tailnet and
public routes (lan=0).
2026-11-10 01:02:02 +00:00
alan 41e9b10c9d Merge branch 'worktree-agent-a37f45fa108430592'
# Conflicts:
#	internal/server/websocket.go
2026-11-10 01:00:49 +00:00
alan 12a74247ae Create the server token at install and document the security boundary 2026-11-10 00:59:39 +00:00
alan 547d4d9822 Send the server token from the web proxy and limit peer relay addresses
The proxy adds the shared token to every upstream request and drops any
client copy. The peer relay accepts only tailnet, LAN, ts.net and discovered
hosts, resolves each name once and pins the checked address, and flags
ws:// endpoints with insecure_transport.
2026-11-10 00:59:39 +00:00
alan 84f7e33872 Guard the Go server's request boundary: loopback Host, no Origin on /connect, shared token
The server answered any Host, so a DNS-rebinding page reached /connect (101)
and could drive terminals. Every route now refuses a non-loopback Host on a
loopback connection (421), /connect refuses any Origin (403), and a server
started with -token-file requires X-Pipelines-Token (401; /mcp and /healthz
exempt). The CLI/TUI send the token only to loopback URLs.
2026-11-10 00:59:39 +00:00
alan 9f38e38f6a Sign the app update feed with Ed25519 and verify it in the app
Each installation generates a private Ed25519 key once (0600, under
~/.config/pipelines), signs version.json with a detached version.json.sig
when publishing APK and desktop builds, and embeds its own and listed
trusted public keys in app builds. The app verifies the feed signature
before trusting the artifact sha256, refuses unsigned or foreign feeds when
it has keys, and requires the sha256 and Android signer in signed feeds.
2026-11-10 00:51:16 +00:00
alan 4858b9e8bf Merge branch 'worktree-agent-a2b0140029ece13b5' 2026-11-10 00:46:16 +00:00
alan ec5c690bea Split the terminal lifetime tests from the login tests 2026-11-10 00:45:39 +00:00
alan a792b30513 Open one login terminal on first show; toggling only hides it
The first show of an app run starts one terminal (the machine's login
prompt) unless one is running; later toggles never open another. Drop
the tmux field and restart note, and update the Settings copy and the
terminal notes.
2026-11-10 00:42:59 +00:00
alan 227c036aa5 Start machine terminals at the su login prompt instead of tmux
A new terminal runs su -l for the server's own account in its PTY, so the
operator types the account password before getting a shell. Opening is
refused when su is missing, the server runs as root, or su opens a shell
without asking. The Pipelines-owned tmux backing, its reattach and its
persisted session names are removed: terminals end with the server and
are listed as ended. A starting server ends leftover pipelines-term_*
sessions on tmux -L pipelines only.
2026-11-10 00:37:11 +00:00
alan a706739088 Merge branch 'worktree-agent-a1275d0f5d434eccb' 2026-11-10 00:30:05 +00:00
alan e09673f6e0 Record chat colour bar spec, contrast and captures 2026-11-10 00:26:03 +00:00
alan 070f9e205e Show a terminal shortcut below the top bar on phones
While shells are running and the full-screen terminal is closed, a small
floating button under the right end of the top bar reopens it, with a count
when more than one shell runs. The surface's stack is always present so the
app never remounts when the shortcut comes or goes.
2026-11-10 00:23:53 +00:00
alan b44938d028 Open the on-screen keyboard for terminals on phones
On Android and iOS a tap on a terminal (a chat command card or the terminal
panel) now opens the soft keyboard and typing goes to the process, with no
autocorrect. Desktop keeps raw key events. Desktop keyboard tests now run
as macOS, since tests default to Android.
2026-11-10 00:19:46 +00:00
alan b382ae7e03 Carry the chat colour in the thread bar instead of a page wash
Tint the bar's glass pieces with the chat shade over the raised surface
(0.16 light and dark, then the 0.82 glass opacity) and draw its labels in
the seeded scheme's onPrimaryContainer; Cupertino takes it as the bar's
primary colour. Inactive split panes keep half the tint. Remove
ChatColorWash. The composer focus ring is the seeded primary at full
opacity, 2 px, with no glow. Contrast test asserts AA for every palette
colour on both hosts in light and dark.
2026-11-10 00:18:23 +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 339cce0424 Page through a folder's files in the file viewer
Opening a file from the Files panel now passes the folder's previewable
files in their shown order, so the arrows, swipes and Previous/Next step
through them and Escape closes the viewer. Download follows the file on
screen.
2026-11-10 00:14:18 +00:00
alan ec70bee12e Merge branch 'worktree-agent-ae4ea8a7cf042aa35' 2026-11-09 23:59:28 +00:00
alan 9e74810957 Swallow held toggle chords, film key presses in the capture kit, and record terminal shortcut verification 2026-11-09 23:56:55 +00:00
alan 13e58f205e Merge branch 'worktree-agent-a7743f4217dc47a1b' 2026-11-09 23:47:45 +00:00
alan cf9f71f27c Show dismissed commands as an answer footer chip; move Copy to the left gutter
Dismissed shell runs leave the transcript and fold into a "N commands"
chip in the footer of the first answer at or after each run (the last
answer for newer runs, or a row of its own without any answer). The chip
opens the turn sheet (wide) or a full-screen page (narrow) listing the
commands; each opens its output read-only with Copy output, Send to agent
and Restore.

On a wide conversation the answer's Copy button moves out of the footer
into a 48 px gutter left of the reading column (chatCopyGutter), shown on
hover or focus on desktops and always on touch; narrow widths keep it in
the footer.
2026-11-09 23:47:14 +00:00
alan 30934aa71c Toggle the terminal with Alt/Ctrl/Cmd+T, animate it, focus it, and cycle its tabs with Ctrl+Tab
Alt+T, Ctrl+T and Cmd+T join Ctrl+` as early focus-manager key handlers, so
they toggle the panel, window or narrow page from anywhere without reaching
the shell or a text field. Opening with no terminal starts one. The shown
terminal takes the keyboard (also on reload and tab changes) and hiding gives
it back. The panel slides from the bottom edge as the app shrinks, the window
scales and fades, both on Motion.standard and off under reduced motion.
While shown, Ctrl+Tab/Ctrl+Shift+Tab move between terminal tabs instead of
chat panes. The tooltip and menu list the shortcuts the platform delivers.
2026-11-09 23:43:56 +00:00
alan f30b0833e1 Note the Feature workflow in the workflow snapshots README 2026-11-09 23:39:10 +00:00
alan 93682f9ce6 Add the Feature workflow and its full-stack change guide
docs/feature-changes.md records how cross-layer features (protocol,
persistence, server, harness adapters, web proxy, app, fixtures) were built
and verified in this session; docs/workflows/feature.md is the reviewed
prepare → plan → implement → review → ui-review → land definition that
follows it, with a delivery gate for Go, web and app checks.
2026-11-09 23:38:57 +00:00
alan 98e5ecf501 Escape closes the full-screen diff page
The file diff page (from a turn's files-changed chip or run Changes) now
closes on Escape, like its back button.
2026-11-09 23:34:27 +00:00
alan f2520a09b8 Keep dismissed shell commands and restore them without a time limit
A dismissed run keeps its command, status, times and output within the
usual history bounds. chat_shell_runs lists dismissed runs apart
(chat_shell_dismissed_runs), chat_shell_run_output still reads them, and
the purge timer and startup purge are gone. Rows an older server purged
are listed with purged set and cannot be restored.
2026-11-09 23:29:25 +00:00
alan 371d29224c Dismiss command cards without a notice
Dismissing a finished command, or all of them, now just removes the cards;
the SnackBar / overlay with Undo is gone.
2026-11-09 22:24:53 +00:00
alan 9bbd9e0c9b Merge branch 'worktree-agent-a2791c24c562412e3'
# Conflicts:
#	app/lib/features/chat/conversation/chat_thread_view.dart
#	internal/protocol/message.go
2026-11-09 22:07:45 +00:00
alan fcc5a81690 Notes: permanent terminal panel 2026-11-09 22:06:42 +00:00
alan 9cda79fa87 Terminal fixture for captures, protocol docs, panel icon 2026-11-09 22:03:52 +00:00
alan e79a120ac7 Terminal surface: lazy activation, settings mode choice, open in terminal, tests 2026-11-09 21:55:38 +00:00
alan acd160b49e Add the app's terminal surface: bottom panel, floating window and full-screen page 2026-11-09 21:42:52 +00:00
alan bac21efc5b Dismiss finished shell command cards with Undo
Finished command cards get a Dismiss button and the chat's More menu a
Dismiss all finished commands entry. Dismissal applies to every client of
the chat; a SnackBar (Material) or transient notice (Cupertino) offers Undo
for 5 s. Running commands cannot be dismissed until they end.
2026-11-09 21:40:20 +00:00
alan a5842e6b3b Format terminal manager 2026-11-09 21:30:23 +00:00
alan 277384c864 Add persistent machine terminals with tmux-backed reattach 2026-11-09 21:30:15 +00:00
alan 03123c23fd Dismiss and restore operator shell commands per chat
chat_shell_dismiss hides finished runs from every readback and pushes a
dismissal frame to every watcher; chat_shell_restore undoes it within a
30 s window, after which the command, output and error are purged and only
a tombstone remains, reported by chat_shell_runs for clients that missed
the event.
2026-11-09 21:22:07 +00:00
alan 8f06f12d49 Merge branch 'worktree-agent-a26df8b0059ab1b12' 2026-11-09 20:54:12 +00:00
alan 2332143e5b Fit chat terminals to their output, keep pastes and keys in the terminal
Finished terminals are sized synchronously from their rows at the view's
width (the post-frame fit made the transcript re-anchor forever); blank rows
xterm.dart keeps when rewrapping are dropped; desktop typing uses key events;
the composer leaves Cmd/Ctrl-V to a focused terminal; Ctrl-A reaches the
process. The probe fixture gains coloured terminal runs and an interactive
login. Notes record behaviour, protocol, security and verification.
2026-11-09 20:51:59 +00:00
alan 55ef6558e0 Hug the turn activity row's hover on desktop
On macOS, Linux, Windows and desktop browsers the "Thought · tool calls ·
background tasks" row is as wide as its label, so its hover and click area
no longer span the transcript. Phones keep the full-width touch row. The
check uses the device platform because web themes are pinned to Android.
The scroll fixture gains ?turnactivity=1 for captures.
2026-11-09 20:46:22 +00:00
alan 9246c168ac Add opt-in live thinking-level checks and notes 2026-11-09 20:22:33 +00:00
alan 66e6a7cb73 Give the capture fixture chat thinking levels 2026-11-09 20:19:20 +00:00
alan b57405df29 Show a thinking-level control beside the chat model and mode
Material menu or Cupertino action sheet of the levels the chat's model
accepts, sent with chat_effort through the chat's own gateway. Hidden when
the model has none; says when a running turn keeps its level; re-reads the
levels after a model switch.
2026-11-09 20:16:13 +00:00
alan 89882d90f3 Draw chat shell runs in an xterm terminal that takes typed input
The card's output area is now an xterm.dart emulator kept per run by the
controller: it is fed the raw stream in order, takes typing and paste while
the command runs (with a key toolbar and a soft-keyboard field on touch
platforms), resizes the process to its layout, opens printed links, shrinks
finished runs to their output and opens full screen. A reconnect resumes from
the byte the card holds; Copy output copies the server's plain text.
2026-11-09 20:08:33 +00:00
alan 06001697c8 Add per-chat thinking levels for Codex, Claude Code and OpenCode
Codex: model/list supportedReasoningEfforts per model, turn/start effort,
thread reasoningEffort as the current level. Claude Code: initialize
supportedEffortLevels, apply_flag_settings effortLevel at the next turn
start. OpenCode v2: model variants via the session model endpoint.
chat_effort sets a level; rows and chat_models carry the levels; Codex and
Claude levels persist in operator_sessions.chat_effort and are re-applied
before every turn.
2026-11-09 20:07:41 +00:00
alan 355b722a1d Run chat shell commands in a pseudo-terminal with typed input and resize
Commands start in a PTY (creack/pty; macOS and Linux) of the client's size
with TERM=xterm-256color in their own session. chat_shell_input writes typed
UTF-8 text in order through a bounded queue; chat_shell_resize sets the size.
Output stays the raw terminal stream with byte offsets as sequence numbers,
chat_shell_run_output resumes from an offset, and a plain-text rendering is
persisted for Copy output and Send to agent. Input is never stored or logged.
2026-11-09 19:57:46 +00:00
alan 8ca5a1fdda Add a per-user Linux app installer script
scripts/install-linux-app.sh installs a release archive into
~/.local/share/pipelines-app (writable, so in-app updates can swap it), with
a ~/.local/bin launcher, icon and desktop entry, and checks for missing
system libraries first.
2026-11-09 19:45:17 +00:00
alan 277c691b2c Install Linux updates in place and restart
The Linux app now downloads the release archive to a temporary folder,
verifies its checksum, extracts it beside the install folder, swaps the
bundle in with two renames (keeping <install>.previous for rollback) and
relaunches. A read-only install location is reported with how to fix it.
The prompt and Settings button say "Install and restart".
2026-11-09 19:40:52 +00:00
alan 15939fcf09 Colour the turn change chip's counts
"3 files changed +9 −2" now shows additions in green and removals in red,
using the run Changes colours, in light and dark themes.
2026-11-09 19:01:09 +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 96b71d122e Merge branch 'worktree-agent-aae8756320b8309f6'
# Conflicts:
#	app/lib/features/chat/conversation/chat_thread_view.dart
#	app/tool/perf/perf_fixture.dart
#	internal/protocol/message.go
#	internal/server/chat_hub.go
2026-11-09 16:56:55 +00:00
alan ba3da80adc Record the Flutter verdicts for the chat tools 2026-11-09 16:55:36 +00:00
alan f3ddd3e1ec Attribute OpenCode code-mode tool calls, keep same-instant shown items in order, and record the chat tools notes 2026-11-09 16:55:28 +00:00
alan 9791f09230 Serve the Pipelines chat tools over a loopback MCP endpoint and register it with Claude Code, Codex and OpenCode chats 2026-11-09 16:34:21 +00:00
alan 7841aa7dea Merge branch 'worktree-agent-a672970b929d7358c'
# Conflicts:
#	internal/pipeline/store.go
#	internal/server/chat_hub.go
2026-11-09 16:21:55 +00:00
alan 5c3248a48d Record chat shell commands with fixture captures and a note
Show Expand only when output can overflow and drop the final newline from
the drawn output. The full-app probe lists shell runs with ?shell=1 so the
cards, Shell mode and Run command dialog can be captured in Chrome.
2026-11-09 16:21:15 +00:00
alan 3ab029cd7b Render Pipelines-shown files, images, HTML views and phone notifications in the chat transcript 2026-11-09 16:17:34 +00:00
alan 1ae6c95b55 Fix null-aware warnings in the discovery probe test 2026-11-09 16:09:25 +00:00
alan a6f0f0a1cb Run shell commands from the chat composer and show them as cards
A draft starting with ! shows a Shell mode indicator and runs through
chat_shell_run instead of being sent to the agent; the chat's actions menu
gains Run command. Each run is a terminal-style card among the turns with
live output, Stop, its exit status, Copy output and Send to agent.
2026-11-09 16:08:48 +00:00
alan 3374bea2ef Show a chat turn's changed files as a chip that opens its diff
The answer footer shows '3 files changed +9 -2'; tapping opens the turn's
files in the sheet (wide) or a full-screen page (narrow), and a file opens
the run Changes diff viewer. Patches load through the chat's own gateway.
2026-11-09 16:08:35 +00:00
alan 0696ab849a Record each chat turn's workspace changes for every harness
Snapshot the chat directory with internal/filediff when a turn starts and
compare it when the turn ends; store changed turns (newest 100 per chat),
push chat_turn_diffs summaries, attach them to chat_messages replies and
serve one turn's patches through chat_turn_diff.
2026-11-09 16:08:35 +00:00
alan e6bc57c901 Run operator shell commands in a chat's directory on the server
chat_shell_run starts $SHELL -lc in the chat session's directory in its own
process group, streams merged output to every watcher of the session, keeps a
1 MiB tail and persists each run; chat_shell_stop interrupts the group and
kills it after a grace period. chat_shell_share queues an ordinary prompt
with the command and a bounded output tail.
2026-11-09 15:55:14 +00:00
alan 57679d9591 Let the macOS app save updates to Downloads
The sandboxed app downloads its update zip to ~/Downloads, which needs the
downloads read-write entitlement; without it the download failed with
"Operation not permitted".
2026-11-09 14:03:34 +00:00
alan bb2adcc182 Add an interface size setting (0.5x to 2x)
Settings > Appearance > Interface size scales every dimension, text, icon
and dialog on this device. The app lays out in a smaller or larger viewport
and paints it scaled to the window, so hit testing and layout stay
consistent; the value is saved per device and applies when the slider is
released.
2026-11-09 12:56:42 +00:00
alan 701fb98ef0 Fix native APK homes; add a native discovery probe
The native APK build no longer sets ANDROID_SDK_HOME beside
ANDROID_USER_HOME (AGP rejects the conflict). integration_test/
discovery_probe_test.dart runs the real Bonsoir discovery on a desktop
host and prints what the platform delivers.
2026-11-09 12:42:05 +00:00
alan 0e16e6c9fe Republish mDNS on address change; build the APK natively when the host can
The server compares its LAN and tailnet addresses every 30 seconds and
republishes the advert when they change, so a machine that moves networks
stops advertising the address it had at startup.

./install --apk builds on this machine with the host Flutter and Android SDK
when both exist (--docker forces the container build), signing with the same
shared debug keystore so phones keep accepting updates.
2026-11-09 12:38:51 +00:00
alan 0613cca6f4 Use the Pipelines icon for the macOS app
The macOS icon set still carried the Flutter template icon; it is now the
same rounded Pipelines mark as the web app, rendered from tool/app_icon.
2026-11-09 12:34:32 +00:00
alan 5593e2451e Drop the per-machine connection bar from the chat
Saved machines' state and sign-in live in Settings; the chat no longer shows
"<machine> · Connected" above both panes, which also pushed the thread pane
below a bar that belongs to neither pane.
2026-11-09 12:29:45 +00:00
alan f31794d1cc Record manager verification of file explorer rename, move and delete 2026-11-09 01:52:18 +00:00
alan 208d1d096b Record Files panel rename, move and delete behaviour and checks 2026-11-09 01:46:36 +00:00
alan 4733d4b615 Rename, move and delete entries from the chat Files panel
Every row and tile menu gains Rename…, Move… and Delete… (folders now
have a menu too). Rename prefills the name with the file's stem selected
and applies the server's name rules inline. Move reuses the chat folder
picker through a FolderPickerPurpose: titled for the entry, confirmed
with Move here, never offering the entry's current folder and keeping a
moved folder's own subtree out of reach. Delete confirms, and when the
server reports a folder with contents asks once more before deleting
recursively. Holding an entry and dropping it on a folder row or tile
moves it there; the target highlights and refuses itself and ancestors.

FilesController performs each request through files_mutations.dart,
shows Renaming…/Moving…/Deleting… progress, reloads the shown folder
afterwards and keeps a refusal in the server's words in the panel's
notice until dismissed.
2026-11-09 01:46:28 +00:00
alan c61490aeb0 Add rename_path, move_path and delete_path for home files
The chat Files panel needs to rename, move and delete entries. Three
websocket requests, dispatched beside list_directory, operate on one
entry inside the operator's home and reply with path_mutated {path} or
an error frame (does not exist, already exists, is not empty, outside
the home directory, cannot be moved into itself).

The entry's parent folder and the move destination are resolved through
symlinks and must stay inside home; the entry's own symlink is never
followed, so a link is renamed, moved or removed as a link. The home
directory itself, anything outside it and pseudo filesystems are
refused. A folder is deleted only when empty unless recursive is set;
os.RemoveAll unlinks symlinks rather than descending into them.
2026-11-09 01:32:31 +00:00
alan a02b271509 Record live post-deployment discovery and upload checks 2026-11-09 00:25:18 +00:00
alan 49f36a9456 Merge branch 'worktree-agent-ab6edc0d99947642f' 2026-11-09 00:11:40 +00:00
alan 6112e83f62 Record Files panel upload behaviour, limits and verification 2026-11-09 00:10:19 +00:00
alan b8fb4d350c Upload files into the shown folder from the chat Files panel
The header gains an Upload button that uses the host file picker (disabled
with its reason where no picker exists), and the panel body becomes a drop
target: on web, document drag events are observed through a dart:js_interop
seam and a file drag over the panel shows a highlight naming the folder.
Each file is posted to POST /files?path=<folder> through an injectable
transport; refusals (exists, sign in, too large) stay visible until dismissed
and the folder reloads afterwards. The list/grid builders move to
files_entries.dart to keep the panel small.
2026-11-09 00:09:01 +00:00
alan c600f1560c Relay POST /files uploads through the web proxy and peer relay
The direct proxy already forwards every /files method behind the sign-in
gate; the peer relay now allows POST /files beside /chat-uploads. Tests cover
the name header, body and refusal of other POST targets.
2026-11-09 00:00:00 +00:00
alan 079924d19a Recover from zero servers, sign each machine in on its own, offer every route
- Removing the primary machine hands pipelines/runs to the next saved machine
  on native hosts; removing the last machine returns to the connect screen
  instead of stranding the app on "Server endpoint not configured".
- Add server probes the new machine and asks for its own password in the same
  page; Settings rows show Connected / Sign in required / Unreachable with the
  reason and offer Sign in; no other machine's credential is ever reused.
- Unreachable addresses explain why: a TLS failure against an IP points at the
  Tailscale name, a non-Pipelines answer points at the port.
- Discovered machines list every advertised route (LAN, Tailscale IP, Tailscale
  name) as a checklist; chosen routes are saved as one machine.
- tool/connection_probe.dart replays the native login and websocket against
  real addresses for diagnosis.
2026-11-08 23:59:20 +00:00
alan 929e4cc017 Advertise tailnet and public routes in server discovery
The mDNS record now carries ts= (tailnet IPv4 addresses) and public= (the
installer's HTTPS origin from PIPELINES_WEB_PUBLIC_URL) in TXT, and browse,
the discover_servers RPC and /discovery return every route to a machine as
addresses with kinds lan, tailscale and public. Endpoint stays the LAN route
for older clients. Unsafe ts/public values are dropped.
2026-11-08 23:59:19 +00:00
alan 81460c4a4d Add POST /files to store an uploaded file inside a home folder
The handler reuses the home-path resolution of GET /files, refuses special
filesystems and non-directories, writes with O_EXCL so an existing name is
answered 409 instead of overwritten, enforces the chat upload size limit and
replies with the stored name, path and size.
2026-11-08 23:57:53 +00:00
alan c2d8d6d7a3 Record live multi-server browser acceptance and integration checks 2026-11-08 22:31:50 +00:00
alan 871f7cdfa0 Sandbox remote file responses at the browser relay boundary 2026-11-08 22:27:43 +00:00
alan 3d88220430 Authenticate native chat thumbnails without following redirects 2026-11-08 22:23:42 +00:00
alan 9beebcdac5 Record concurrent chat integration verification 2026-11-08 22:23:06 +00:00
alan e4904395f0 Connect saved machines concurrently in the chat workspace 2026-11-08 22:21:17 +00:00
alan 663d5fb5c9 Merge browser discovery and authenticated relay foundation 2026-11-08 22:06:20 +00:00
alan 497cd66a1e Keep browser chat server connections together in saved-server settings 2026-11-08 22:01:09 +00:00
alan 349428f11d Discover LAN servers and relay authenticated browser peer connections 2026-11-08 21:58:23 +00:00
alan 89814d9fbe Record browser discovery capture review and checks 2026-11-08 21:54:20 +00:00
alan b69d7efb4a Find LAN servers from browser and review discovered machine names 2026-11-08 21:54:20 +00:00
alan ae8fe49e41 Find LAN servers from browser and review discovered machine names 2026-11-08 21:50:46 +00:00
alan 543e3f063a Add interactive password change command without service restart 2026-11-08 21:48:00 +00:00
alan 8016108558 Reload web password safely without restarting active sessions 2026-11-08 21:48:00 +00:00
alan 828227f549 Add complete uninstall reset for fresh native installations 2026-11-08 19:16:46 +00:00
alan e17bc2ca4f Exercise reset failure paths and scoped Docker resource cleanup 2026-11-08 19:13:39 +00:00
alan bcd534c456 Cover full Pipelines reset and deletion boundaries 2026-11-08 19:10:42 +00:00
alan b67ae34ca1 Stage ntfy output on installation filesystem before atomic replacement 2026-11-08 19:02:26 +00:00
alan 323faef686 Document Android update identity across multiple servers 2026-11-08 17:01:25 +00:00
alan 7cbf7455ff Merge commit 'c549eb8a' 2026-11-08 16:59:23 +00:00
alan c549eb8ac2 Filter Android update offers by installed signing certificate 2026-11-08 16:58:59 +00:00
alan 8ddf893de9 Publish APK certificate identity for multi-server compatibility 2026-11-08 16:58:47 +00:00
alan bd9509b744 Preserve Node tool-manager shim names during native installation 2026-11-08 16:54:17 +00:00
alan fdc411716f Isolate root connection tests from native update network probes 2026-11-08 16:51:54 +00:00
alan 761ff021fe Keep generated Linux plugin registries out of build identity 2026-11-08 16:50:15 +00:00
alan 28b7eaeee4 Merge commit '394fd672' 2026-11-08 16:49:58 +00:00
alan 394fd672e6 Check all saved servers for compatible native app updates 2026-11-08 16:49:45 +00:00
alan 521ec56c53 Merge commit '50e01934' 2026-11-08 16:49:24 +00:00
alan 50e01934c1 Record compact machine label capture 2026-11-08 16:49:01 +00:00
alan eea4b1ddc9 Document second-machine installation and verification scope 2026-11-08 16:48:57 +00:00
alan 84a79569f6 Record machine creation integration and browser checks 2026-11-08 16:48:48 +00:00
alan f3ed97f109 Merge branch 'main' into work/machine-provenance 2026-11-08 16:46:23 +00:00
alan 4c57c50a0f Label machine provenance and choose server before chat harness 2026-11-08 16:46:23 +00:00
alan 36f73bb89d Build Linux and macOS clients with platform update feeds 2026-11-08 16:45:42 +00:00
alan b7f439a94f Show session automation counts in chat composer 2026-11-08 16:40:53 +00:00
alan 3fbfb85ace Observe native Claude automations and preserve pending timers 2026-11-08 15:52:22 +00:00
alan 9d3358be47 Expose session-owned chat automation metadata 2026-11-08 15:24:23 +00:00
alan cecfa39aac Record verified shared separator and sidebar grip release 2026-11-08 14:57:13 +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 9acf37b61b Record verified tab restoration and arc/divider release 2026-11-08 01:24:16 +00:00
alan 032d4cd6c0 Restore ordinary root launches with query parameters and verify Back intent 2026-11-08 01:13:58 +00:00
alan eee3b70684 Queue accepted Settings choices before replacement reads 2026-11-08 01:13:43 +00:00
alan 0ddc1dd2f8 Protect restored Settings categories from disposed owner writes 2026-11-08 01:13:43 +00:00
alan eadbc03efb Flush accepted tab moves before replacement restoration 2026-11-08 01:12:27 +00:00
alan 1ed58126da Keep replaced tab navigation owners from overwriting newer state 2026-11-08 01:12:27 +00:00
alan a352593aed Order local storage operations across replacement owners 2026-11-08 01:08:33 +00:00
alan e363a90295 Integrate scoped Settings restoration and preserve detail on Back 2026-11-08 01:05:07 +00:00
alan 151d99fbb6 Persist exact tab locations including Settings under Pipelines 2026-11-08 01:04:28 +00:00
alan d6006bb1f8 Add opposing arc swap animation for chat quick switch 2026-11-08 01:00:41 +00:00
alan 2fe08226f2 Show shared resize grips on wide chat pane dividers 2026-11-08 00:59:00 +00:00
alan 2aa0000382 Restore server-scoped Settings category after relaunch 2026-11-08 00:58:05 +00:00
alan 4fc397f0ae Record completed backlog release and verified delivery 2026-11-08 00:33:00 +00:00
alan d189f61eee Animate retained mobile chat reopening without remounting panes 2026-11-08 00:23:00 +00:00
alan 1a674297c1 Retain boot chat deep links for Chats tab restore 2026-11-08 00:18:59 +00:00
alan fa95bf57ff Disable paste targets in hidden retained chat workspaces 2026-11-08 00:17:55 +00:00
alan 8a409e2d0a Record repainted startup update browser evidence 2026-11-08 00:15:59 +00:00
alan 97f190e1b1 Offer platform-specific updates at startup and foreground return 2026-11-08 00:15:08 +00:00
alan 81b3515369 Record verified clipboard and mobile identity transition flows 2026-11-08 00:13:03 +00:00
alan 78bb5dcd9b Construct chat row contents only when slivers mount them 2026-11-08 00:11:39 +00:00
alan 1af69c1bca Qualify chat profiling evidence and controlled streaming workload 2026-11-08 00:11:39 +00:00
alan 11e25f6a5f Profile mobile chat text rendering 2026-11-08 00:11:39 +00:00
alan b08d458c4b Keep asynchronous clipboard files with their original composer 2026-11-08 00:10:50 +00:00
alan d9a99457cf Fit chat identity beside scalable one-row controls 2026-11-08 00:10:35 +00:00
alan 6b7316fca3 Include reviewed chat row identity transition 2026-11-08 00:10:35 +00:00
alan 292ed92dc3 Add mobile chat opening identity transition 2026-11-08 00:10:35 +00:00
alan 63758cd176 Support unfocused chat composer paste 2026-11-08 00:10:35 +00:00
alan f6ca558302 Add stable web release metadata 2026-11-08 00:10:31 +00:00
alan 9408ec1531 Restore mobile Chats workspace on tab retap 2026-11-08 00:04:12 +00:00
alan 7287ba35c9 Refresh runs from nested wire events and foreground resume 2026-11-07 23:46:02 +00:00
alan 8e041af6ad Shorten quick switching to 440 milliseconds 2026-11-07 23:36:21 +00:00
alan cd495a4e8f Restore requested navigation and mobile chat controls 2026-11-07 22:55:09 +00:00
alan 4e2b9800e8 Align wide desktop tabs to leading edge 2026-11-07 22:48:27 +00:00
alan 6a3daccd6d Keep mobile chat selectors in header row 2026-11-07 22:48:09 +00:00
alan cd034db77a Remove shared backdrop from main tab labels 2026-11-07 22:48:09 +00:00
alan 37bf293d7c Integrate reviewed navigation backdrop change 2026-11-07 22:11:56 +00:00
alan 421e2e8887 Use native image reset controls on each host 2026-11-07 22:08:52 +00:00
alan 6c89ee03c6 Remove shared backdrop from main tab labels 2026-11-07 22:01:40 +00:00
alan 5917827bc5 Improve file image gestures 2026-11-07 22:01:10 +00:00
alan 6e4e11aca2 Record final UI review and integrated verification 2026-11-07 21:12:56 +00:00
alan 0098662b06 Reserve chat list viewport above labeled navigation 2026-11-07 21:10:31 +00:00
alan bbcfcd32a2 Keep Cupertino chat summaries and contextual prompts readable 2026-11-07 21:08:05 +00:00
alan b9332dda0a Verify transcript clears the header while scrolling 2026-11-07 21:03:30 +00:00
alan 1da3da92a3 Preserve caption focus and scale readable chat controls 2026-11-07 21:02:41 +00:00
alan 03ac760361 Verify labeled navigation bounds and scalable targets 2026-11-07 20:50:54 +00:00
alan cb0942b5ee Keep enlarged chat header controls reachable in short viewports 2026-11-07 20:50:30 +00:00
alan 4bbbe01633 Keep chat controls readable and expose labeled app navigation 2026-11-07 20:46:02 +00:00
alan 68c0ad3caa Identify mobile chat peeks and expose switching and resize affordances 2026-11-07 20:37:30 +00:00
alan 2429a33fbe Separate chat identity from pane state and retain compact attention facts 2026-11-07 20:36:41 +00:00
alan 004979ccd0 Expose horizontal chat overflow with native scrollbars and keyboard controls 2026-11-07 20:35:52 +00:00
alan 5ddd52f817 Clarify fixture capture limits and final analyzer evidence 2026-11-07 19:57:49 +00:00
alan b82e89f66f Record final deck geometry performance comparison and raster limits 2026-11-07 19:55:59 +00:00
alan 17569034e0 Record animation library, settings preview and integration evidence 2026-11-07 19:53:27 +00:00
alan 0f2711e8fa Reveal full next card behind opaque deck front 2026-11-07 19:51:20 +00:00
alan f6491e995f Restore the capture viewport between animation recordings 2026-11-07 19:50:35 +00:00
alan c9c411761c Add repeatable mobile quick switch frame profiling driver 2026-11-07 19:46:56 +00:00
alan ef0571c562 Reduce quick switch layout churn and flatten planar depth transforms 2026-11-07 19:44:54 +00:00
alan 53a9cc78a3 Preview quick switch styles with the real local workspace 2026-11-07 19:40:57 +00:00
alan 9a252b67af Follow settings topic navigation in template wiring tests 2026-11-07 19:39:47 +00:00
alan 3b44c49679 Add quick switch motion library with true deck exchanges 2026-11-07 19:37:06 +00:00
alan fc4aa1652f Organize settings into retained topic tabs 2026-11-07 19:36:11 +00:00
alan 6b654693d9 Animate desktop chat selection border colors 2026-11-07 19:30:30 +00:00
alan 0da7442296 Add live quick switch swaps with perspective card stacking 2026-11-07 19:16:57 +00:00
alan 5eb59a6813 Add device-local quick switch animation settings 2026-11-07 19:09:54 +00:00
alan 87a140754c Merge retry of initial recovered stream attachment 2026-11-07 16:43:35 +00:00
alan 6699d10eb8 Retry initial recovered chat stream attachment failures 2026-11-07 16:43:24 +00:00
alan 08b247de68 Document durable background recovery and legacy replay limits 2026-11-07 16:42:55 +00:00
alan d02bab3e4a Merge startup chat admission recovery gate 2026-11-07 16:41:58 +00:00
alan 692eb181c3 Merge conservative legacy task readback recovery 2026-11-07 16:41:58 +00:00
alan 62406f7fdb Hold external chat admission until live turn recovery completes 2026-11-07 16:41:02 +00:00
alan d0f616babc Keep trimmed legacy host task readback explicitly incomplete 2026-11-07 16:40:44 +00:00
alan d30b99e18e Merge metadata-only startup reattachment and unknown-readback handling 2026-11-07 16:37:01 +00:00
alan 63a89ec99c Retry retained Claude hosts from metadata readback without spawning work 2026-11-07 16:36:48 +00:00
alan d1f7c2141a Merge durable background-only startup recovery 2026-11-07 16:34:30 +00:00
alan 132a94192a Recover background chat observers from durable live membership 2026-11-07 16:33:49 +00:00
alan 886e3ea2b7 Merge replay boundary and native task identity reconnect regressions 2026-11-07 16:30:00 +00:00
alan 723ed3aa68 Prove task recovery beyond spool trim and order live events after snapshots 2026-11-07 16:28:26 +00:00
alan 5d38ba3352 Retain native task identity across partial progress notifications 2026-11-07 16:27:23 +00:00
alan aef027452c Merge background-aware idle shutdown and durable session hosts 2026-11-07 16:24:40 +00:00
alan f3a39a5e33 Retain native task identity across partial progress notifications 2026-11-07 16:23:49 +00:00
alan b15597662f Preserve independent background sessions through owner shutdown and idle cleanup 2026-11-07 16:23:20 +00:00
alan 9c364b9599 Merge authoritative task restoration and safe live host reconnect 2026-11-07 16:23:15 +00:00
alan dd024d71f5 Merge durable native host task tracking 2026-11-07 16:23:15 +00:00
alan 1d8076ebdc Keep native Claude background tasks alive across detached sessions 2026-11-07 16:22:57 +00:00
alan 4ead2abdbf Restore hosted background tasks and preserve live hosts on reconnect failure 2026-11-07 16:22:51 +00:00
alan fd82eaa576 Restore hosted background tasks and preserve live hosts on reconnect failure 2026-11-07 16:22:38 +00:00
alan 5061cd5da4 Keep native Claude background tasks alive across detached sessions 2026-11-07 16:22:16 +00:00
alan 14fa17b977 Record multi-pane ring and unfold validation 2026-11-07 16:13:44 +00:00
alan 3da992075e Expose authoritative hosted Claude background task snapshot 2026-11-07 16:13:08 +00:00
alan 62cfa2f5ac Expose authoritative hosted Claude background task snapshot 2026-11-07 16:12:52 +00:00
alan 9c67415c22 Cycle mobile tape through added panes and retain horizontal unfold layout 2026-11-07 16:10:05 +00:00
alan 329005abe3 Record active chat emphasis validation 2026-11-07 14:34:45 +00:00
alan cc28dcbca0 Strengthen active chat marker and fade identity tint across selection 2026-11-07 14:34:06 +00:00
alan b7fc221360 Record installed release walkthrough and cleanup 2026-11-07 13:30:24 +00:00
alan 2f2ee64b18 Record integrated tape and sidebar acceptance evidence 2026-11-07 13:26:45 +00:00
alan cc7049ccf4 Match tape background to the Cupertino host theme 2026-11-07 13:25:34 +00:00
alan fc3e198141 Connect rendered pane visibility to chat list indicators 2026-11-07 13:21:25 +00:00
alan c2e2be296e Merge looping mobile tape and remembered peek resizing 2026-11-07 13:21:05 +00:00
alan f34ab8e985 Loop mobile chats as a tape and remember resizable peek height 2026-11-07 13:20:30 +00:00
alan 028511b73d Merge sidebar drag compaction and visible chat markers 2026-11-07 13:20:25 +00:00
alan e2cfa90776 Resize chat list into compact rail and animate visible chat markers 2026-11-07 13:20:12 +00:00
alan b586b067bb Use a neutral chip icon for compact chat model control 2026-11-07 13:11:22 +00:00
alan 19958e81c5 Animate mobile chat swaps as overlapping raised cards 2026-11-07 12:38:11 +00:00
alan 414a74e0c9 Record combined chat polish acceptance and rendered evidence 2026-11-07 03:04:08 +00:00
alan f9101a5ffc Merge branch 'fix/mobile-motion' 2026-11-07 03:00:04 +00:00
alan 63bf5b8e75 Measure retained peek chrome without constraining its hidden contents 2026-11-07 02:59:42 +00:00
alan ba13c5a66d Verify drafts and focus while inactive composers are hidden 2026-11-07 02:58:28 +00:00
alan 9a065c4963 Merge branch 'feature/chat-code-hover-copy' 2026-11-07 02:52:52 +00:00
alan 4340c3e72f Add hover copy actions for fenced and inline chat code 2026-11-07 02:52:29 +00:00
alan 23eee6f3f4 Merge branch 'chat/header-islands'
# Conflicts:
#	app/tool/capture/README.md
2026-11-07 02:50:13 +00:00
alan e9d66af785 Separate chat selectors from Files and More actions 2026-11-07 02:49:44 +00:00
alan 9263cb6e4f Merge branch 'fix/mobile-motion' 2026-11-07 02:47:45 +00:00
alan 7b5a0e0310 Smooth mobile chat swaps and measure the actual peek viewport 2026-11-07 02:47:34 +00:00
alan 590334920b Merge branch 'feature/animation-speed' 2026-11-07 02:46:38 +00:00
alan 0be9f3c1ce Keep chat workspace above Android navigation and use pane chat color 2026-11-07 02:46:38 +00:00
alan 049a551432 Add device-wide animation speed setting 2026-11-07 02:43:00 +00:00
alan 9e6d55942f Refresh retained explorer when chat directory metadata arrives 2026-11-07 02:41:52 +00:00
alan b33970182c Proxy authenticated file explorer downloads and previews 2026-11-07 01:51:12 +00:00
alan 54ffb5d022 Record recovered session changes and verification evidence 2026-11-07 01:49:16 +00:00
alan ebd0a15647 Merge branch 'ws-files-viewer' 2026-11-07 01:46:13 +00:00
alan d8ef2b6109 Respect Cupertino brightness and render file markdown 2026-11-07 01:46:05 +00:00
alan 75bd4dcff0 Merge branch 'ws-files-viewer'
# Conflicts:
#	app/tool/capture/README.md
2026-11-07 01:45:03 +00:00
alan 84a03bea8d Complete chat file previews downloads and explorer actions 2026-11-07 01:44:42 +00:00
alan 61b382e9c0 Merge branch 'ws-stats-app'
# Conflicts:
#	docs/notes/server-stats.md
2026-11-07 01:44:15 +00:00
alan 8bf8cd9507 Add server health page with native controls and bounded refresh 2026-11-07 01:43:54 +00:00
alan 23cbcfc091 Merge branch 'ws-delivery' 2026-11-07 01:42:55 +00:00
alan 1a0f999fb1 Show prompts delivered into the running reply distinctly 2026-11-07 01:42:48 +00:00
alan b8313c9790 Document explorer metadata and server health protocol 2026-11-07 01:40:56 +00:00
alan f80edfabab Record Flutter terminal popup integration research 2026-11-07 01:39:49 +00:00
alan dbf6398231 Correct CPU core counts and report incomplete data size scans 2026-11-07 01:38:59 +00:00
alan e579c06b45 Merge branch 'main' into ws-stats-server 2026-11-07 01:35:41 +00:00
alan 95849f636a Add server stats websocket reporting 2026-11-07 01:35:39 +00:00
alan 983136a2b4 Merge branch 'worktree-agent-a8f377357a0dfcebf' 2026-11-07 01:18:24 +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 81955059de Expect the Files toggle in the chat header actions pill 2026-11-07 01:08:30 +00:00
alan 2c1fa52e86 Merge branch 'main' into ws-files-panel 2026-11-07 01:06:30 +00:00
alan 5a1d503f58 Add chat files panel explorer shell with sorting and views 2026-11-07 01:06:23 +00:00
alan 46627c7204 Merge branch 'ws-files-http' 2026-11-07 00:54:53 +00:00
alan c4ccbb3f95 Add file size and modified time to directory listings 2026-11-07 00:54:36 +00:00
alan b46c77a967 Merge branch 'main' into ws-files-http 2026-11-07 00:53:18 +00:00
alan bfe89432bb Add contained home file endpoint 2026-11-07 00:53:15 +00:00
alan 0ea249be36 Merge branch 'worktree-agent-a979f00543edb836c' 2026-11-07 00:49:55 +00:00
alan 5e1498c4b2 Chat composer: accent focus ring and wider desktop bottom margin
While the field has focus the composer pill shows a thin translucent ring
and soft glow in the chat's accent (its own colour, else the theme
primary), fading in and out; nothing is drawn unfocused. On desktop hosts
the composer keeps 24 px from the window's bottom edge instead of 12
(phones unchanged), split by the same host test as Enter-sends.
2026-11-07 00:48:12 +00:00
alan de0c06cec1 Chat: slash focuses the composer; Ctrl+Tab over one pane toggles recent chats
A bare / typed outside any text field puts the keyboard in the active
chat's composer through the existing focus request, after the frame, so
the slash is not typed into it. Ctrl+Tab with a single pane now swaps in
the chat shown before the current one and back; two or more panes keep
cycling panes. The visit remembers its shown chats most-recent-first,
dropping closed, /new-moved and other-server ids.
2026-11-07 00:46:02 +00:00
alan f4ba2ab25e Document verified Codex ai-memory connection repair 2026-11-07 00:29:24 +00:00
alan 492fb70d91 Preserve deferred macOS desktop host and local publisher 2026-11-07 00:24:32 +00:00
alan f728b6c855 Record verified background task GUI publication 2026-11-07 00:01:44 +00:00
alan 267d100708 Record background task GUI design and verification 2026-11-07 00:00:54 +00:00
alan 21542fb4f0 Keep background task status badges legible on Cupertino 2026-11-07 00:00:21 +00:00
alan cd175e099b Present background tasks as adaptive status cards 2026-11-06 23:58:05 +00:00
alan d739166cf9 Add an isolated single-task GUI fixture matching reported metadata 2026-11-06 23:47:52 +00:00
alan 5a9c45f0e6 Record validated pane refresh and deferred combined deployment 2026-11-06 22:31:34 +00:00
alan 8e82c599b9 Keep pane profiling compatible with native chat row labels 2026-11-06 22:27:46 +00:00
alan 8eb3a44d56 Finalize pane animation lifecycle and profiling evidence 2026-11-06 22:22:30 +00:00
alan a4f6c5473c Dispose pane focus animation resources and record measured switching improvements 2026-11-06 22:21:31 +00:00
alan b13cf328c9 Reuse the visible native chat list when adding a pane 2026-11-06 22:19:34 +00:00
alan a0992eb2e7 Keep one dismiss action in the Cupertino pane picker 2026-11-06 22:16:08 +00:00
alan 9593021792 Use an opaque immediate pane switch with a lightweight focus cue 2026-11-06 22:15:21 +00:00
alan 8473b24d1b Keep chat bodies opaque and animate only a small focus accent 2026-11-06 22:14:50 +00:00
alan 778b368f03 Use the visible chat list to choose an added pane 2026-11-06 22:14:17 +00:00
alan 7e1657edd2 Validate every pane switch and drain warmup timing batches 2026-11-06 22:13:27 +00:00
alan 283a08ba01 Make chat pane benchmark recording and metrics readable 2026-11-06 22:10:50 +00:00
alan c936eb4e25 Integrate active-on-top mobile pane rendering optimization 2026-11-06 22:09:29 +00:00
alan cad9bbd0f7 Promote active mobile chats immediately and composite a short reveal 2026-11-06 22:08:42 +00:00
alan 2eb13d9a35 Add repeated rich-chat pane CPU and frame profiling benchmark 2026-11-06 22:08:37 +00:00
alan af1c9eb98c Record verified mobile pane publication and pending storage delivery 2026-11-06 21:53:16 +00:00
alan 51e7a0fc25 Refine mobile pane animation and preserve native Back 2026-11-06 21:50:37 +00:00
alan be6c6a471a Preserve stock Navigator Back for native phone chat panes 2026-11-06 21:49:11 +00:00
alan 2cadebab4b Lay out chat content against the animated pane viewport 2026-11-06 21:48:25 +00:00
alan 11cae0afc1 Add animated mobile chat panes alongside storage management 2026-11-06 21:47:09 +00:00
alan ed58e5a96f Record staged storage release and active-work delivery gate 2026-11-06 21:46:47 +00:00
alan 2cd8003e3a Allow adding chats on phones and keep their native detail route 2026-11-06 21:46:45 +00:00
alan 6bba6cf8d8 Animate focused mobile chat panes while preserving saved geometry 2026-11-06 21:46:45 +00:00
alan 0f49b31ca3 Clarify managed session storage and excluded native histories 2026-11-06 21:40:42 +00:00
alan f06a915dc7 Integrate storage overview and retention across server and app 2026-11-06 21:35:12 +00:00
alan 6abc309009 Expose storage usage and safe persisted age or size retention 2026-11-06 21:34:55 +00:00
alan 10ed8bb774 Document storage controls and verified native UI behavior 2026-11-06 21:33:54 +00:00
alan aa19c82156 Protect containing worktrees from deleting nested checkouts 2026-11-06 21:29:51 +00:00
alan 4f2c981a13 Verify storage controls and provide isolated browser fixture 2026-11-06 21:28:37 +00:00
alan 18eec34f56 Measure server data and registered worktree storage safely 2026-11-06 21:27:11 +00:00
alan c9e1124baa Add server storage overview and retention controls to Settings 2026-11-06 21:26:51 +00:00
alan 9820efd3d3 Record verified chat layout web and Android publication 2026-11-06 19:25:48 +00:00
alan 803a067edf Populate metadata for every restored chat pane 2026-11-06 19:19:24 +00:00
alan 7d2e200407 Document production workspace restoration and save behavior 2026-11-06 19:16:56 +00:00
alan 9a0d5de26a Restore local chat layouts and add compact or hidden chat sidebar 2026-11-06 19:16:18 +00:00
alan 8a7b704940 Verify sidebar focus modes retain chat panes and drafts 2026-11-06 19:15:38 +00:00
alan 1ee7960925 Make Search Escape restore input then previous tab 2026-11-06 19:11:28 +00:00
alan 1106adbce2 Support compact and hidden list panes in the shell 2026-11-06 19:11:28 +00:00
alan c4776657c8 Persist validated device-local chat workspace layouts 2026-11-06 19:11:13 +00:00
alan 7aec6738bd Cycle open chat panes with Control Tab and focus their input 2026-11-06 19:05:45 +00:00
alan 0c98de0a0a Record verified multi-chat web and Android publication 2026-11-06 18:42:21 +00:00
alan a223089c08 Record multi-chat workspace acceptance and release checks 2026-11-06 18:41:44 +00:00
alan b34c3fa875 Keep Cupertino web Search keyboard input stable 2026-11-06 18:37:13 +00:00
alan f398376e38 Keep Cupertino web search editable across clear and revisit 2026-11-06 18:36:53 +00:00
alan 417a696785 Keep background pane updates from stealing destination navigation 2026-11-06 18:24:58 +00:00
alan 4bae206afd Connect independent resizable chat panes with routed focus and narrow layouts 2026-11-06 18:16:33 +00:00
alan c1e0de352a Check Cupertino search shortcut focus across query updates 2026-11-06 18:15:18 +00:00
alan 30372ce8b5 Preserve editing shortcuts outside multi-pane layouts 2026-11-06 18:04:19 +00:00
alan 93cad08bef Preserve composer selection shortcuts in a single chat pane 2026-11-06 18:04:02 +00:00
alan 9582261d21 Integrate resizable chat workspace 2026-11-06 18:01:30 +00:00
alan dfcdf1c154 Add resizable split chat workspace primitives 2026-11-06 18:01:14 +00:00
alan 4a3f0f179f Integrate chat and Search keyboard remapping 2026-11-06 17:59:17 +00:00
alan e47d832187 Integrate split chat menu callbacks 2026-11-06 17:59:17 +00:00
alan 7a55d58093 Keep destination shortcut tests lint-clean 2026-11-06 17:58:27 +00:00
alan f668e1eef8 Reserve global shortcuts for chat selection and search 2026-11-06 17:58:12 +00:00
alan ce59b12702 Add session menu actions for opening split chats 2026-11-06 17:56:22 +00:00
alan 51ee950a5b Record verified backend deployment and preserved Claude hosts 2026-11-06 16:30:47 +00:00
alan fa928a6226 Record richer background task client delivery and backend staging 2026-11-06 15:12:29 +00:00
alan 7ce754f631 Remove unused timestamp test import 2026-11-06 15:09:44 +00:00
alan c405cdfe24 Merge richer background task list and metadata presentation 2026-11-06 15:08:57 +00:00
alan 6421554bfe Expose recorded background task timing and progress metadata 2026-11-06 15:08:34 +00:00
alan 6dfb5d7a4b Show recorded timing and progress in background task lists 2026-11-06 15:08:11 +00:00
alan c9a4cd0bf6 Record checked Codex timestamp fix and deferred deployment 2026-11-06 00:01:20 +00:00
alan 20a69b7e47 Forward recorded Codex turn timestamps to chat history 2026-11-06 00:00:21 +00:00
alan 6d4ed4ac67 Record day-first timestamp client publication 2026-11-05 22:15:08 +00:00
alan 5cb2da9028 Use day-first written dates and 24-hour chat timestamps 2026-11-05 22:14:48 +00:00
alan 3c4a7ec710 Record timestamp web and Android release verification 2026-11-05 22:01:29 +00:00
alan 9180e84109 Show discreet local timestamps on chat messages 2026-11-05 22:00:13 +00:00
alan 5b0c46b27a Record verified web and Android publication 2026-11-05 16:50:03 +00:00
alan c83156b014 Merge branch 'main' into validation/web-transcript-selection 2026-11-05 16:35:06 +00:00
alan 9e7140449f Fix web transcript cross-message selection 2026-11-05 16:34:58 +00:00
alan 0d4300d578 Record HTML artifact browser interaction verification 2026-11-05 16:06:52 +00:00
alan f81e0e945b Allow the read-only retry test to run under integration load 2026-11-05 15:52:29 +00:00
alan 1211d72421 Complete Codex host initialization before reconnects 2026-11-05 15:50:02 +00:00
alan 1e886faa41 Complete the Codex host initialization handshake once 2026-11-05 15:49:44 +00:00
alan b7cda48149 Tolerate bounded telemetry timeouts without replaying work 2026-11-05 15:48:34 +00:00
alan 46f85556af Retry bounded budget reads after transient timeouts 2026-11-05 15:48:14 +00:00
alan 6f39245ce8 Keep optional validation behind primary app requests 2026-11-05 15:47:56 +00:00
alan b8d3eaad35 Let primary summary reads precede optional validation 2026-11-05 15:47:19 +00:00
alan 3a9ba55277 Merge persistent Codex interaction connections 2026-11-05 15:36:36 +00:00
alan 2da9e6a69e Merge app warning visibility 2026-11-05 15:36:36 +00:00
alan c2a8f5ff16 Retain Codex interaction callbacks across server restarts 2026-11-05 14:32:59 +00:00
alan 5423f1e839 Show definition and run warnings in app summaries 2026-11-05 14:23:36 +00:00
alan ef726dfb99 Merge memory-watched app verification gate 2026-11-05 14:05:03 +00:00
alan cee205d4b8 Refresh API CLI Plan and Research workflow definitions 2026-11-05 14:05:03 +00:00
alan ea98a7ae2d Use bounded verification wrappers in the app landing gate 2026-11-05 14:03:00 +00:00
alan c7e57973a0 Support Command conversation shortcuts in Mac browsers 2026-11-05 13:59:38 +00:00
alan af178b83a1 Show recorded OpenCode models in the chat list 2026-11-05 13:42:01 +00:00
alan f5bf8ada8a Merge: archive and unarchive pipelines
# Conflicts:
#	internal/cli/commands.go
#	internal/pipeline/store.go
2026-11-04 23:39:02 +00:00
alan 5a9284ccf7 App: archive and unarchive pipelines
The pipeline's bar gets a Pipeline actions menu with Archive (confirm
dialog: history is kept) or Unarchive; an archived detail says so and
offers no Run. The list hides archived pipelines and the scope control
gains an Archived view. Server refusals (enabled schedule, newer
version) are shown verbatim. The capture fixture answers archive
requests.
2026-11-04 23:37:25 +00:00
alan 06bf580154 Archive pipelines: hide unused ones while keeping their history
archived_at on pipelines (migrated in place). archive_pipeline and
unarchive_pipeline by id or name with an expected-version guard;
list_pipelines hides archived unless include_archived. Archived
pipelines refuse runs, retries, new versions and name reuse, and
cannot be archived while an enabled schedule points at them.
CLI archive/unarchive and list --archived/--all, docs and skill note.
2026-11-04 23:25:55 +00:00
alan d274516f74 Merge: chat composer pops in with the bar 2026-11-04 21:58:28 +00:00
alan b71345fe4e Chat composer pops in with the bar when a chat opens 2026-11-04 21:58:11 +00:00
alan 6882a6c2f4 Merge: Add font works with a real file dialog and always reports failures 2026-11-04 20:48:03 +00:00
alan 081ae0957d Add font: own web file chooser, so a picked font is never dropped silently
file_picker's web picker treated the window regaining focus as a cancel when
the files arrived more than 500 ms later, so a real dialog could return an
empty pick and Add font did nothing. The web now uses its own file input that
completes only on change or cancel; mobile browsers get no accept filter.
Picker, check and save failures are shown in a dialog, and the row is busy
only after files were chosen.
2026-11-04 20:47:43 +00:00
alan d8a773981a Merge: picking a chat focuses its text box on desktop 2026-11-04 20:42:34 +00:00
alan 38cd92813b Chat: choosing a chat focuses its composer on desktop
A row click or tap, Next chat and a created chat put the keyboard in the
composer, as Ctrl+1-9 does, on desktop hosts (native or desktop browser, any
window width) and after a mouse or trackpad click anywhere. A finger tap on a
phone or tablet (Android, iOS, mobile browsers) leaves focus alone so the
on-screen keyboard does not cover the transcript. Closed chats are not
focused, and a request yields when another control took focus meanwhile.
2026-11-04 20:42:20 +00:00
alan 1d025bebf3 Merge: add your own fonts in Settings 2026-11-04 18:45:25 +00:00
alan c24e7f40b4 Settings: add your own fonts (.ttf/.otf) per device
Add font… picks one or more files, checks them with a bounded sfnt reader
(name table family, OS/2 weight), registers them with FontLoader before
storing, and chooses the new family. Added fonts list below the bundled ones
with Rename and Remove; removing the chosen one falls back to System default.
Bytes live in the app support directory natively and in IndexedDB on the web
(localStorage is too small); a shared_preferences index names them. Limits:
10 MB per file, 40 MB total. The capture kit gains a files= step.
2026-11-04 18:45:01 +00:00
alan c38f43cae3 Merge: Next chat button cycles through the list 2026-11-04 18:22:45 +00:00
alan 9a7adf88ab Chat bar: Next chat button cycles to the next chat in list order 2026-11-04 18:22:27 +00:00
alan e358878fcb Merge: pipeline runs use the workspace's directory environment 2026-11-04 18:09:09 +00:00
alan cedfc22e45 Pipeline runs use the workspace's directory environment
Resolve the run workspace's environment with workenv (direnv, parent
.envrc, mise; same account rule as Claude chats) at run start and resume,
and apply it to Pi stage processes, a per-environment Pipelines-owned
OpenCode stage service (keyed by a hash of the change, reused across runs,
idle ones stopped after PIPELINES_OPENCODE_STAGE_IDLE_TIMEOUT, revived per
registration), delivery-gate checks and merges, plain-stage opencode CLI
calls and file-change capture git reads. Record the directory, .envrc
files, sources and variable names (never values) on the run detail; a
blocked .envrc becomes a run warning.
2026-11-04 18:08:42 +00:00
alan e0d7b720f5 Merge: running durations tick live in runs list, summary and timeline 2026-11-04 17:48:34 +00:00
alan c618313776 Notes: live durations capture after merge 2026-11-04 17:48:00 +00:00
alan c83fb5406c Test: read the phone's clear and ack frames in either order 2026-11-04 17:47:17 +00:00
alan 3ac726828c Merge: runner-internal files move to a hidden Debugging files group 2026-11-04 17:45:37 +00:00
alan fc615c69e7 Merge branch 'main' into worktree-agent-a35ac03e196ffae50
# Conflicts:
#	app/lib/features/runs/ui/run_detail_content.dart
#	app/lib/features/runs/ui/run_list_row.dart
#	app/tool/search_selection_probe_entry.dart
2026-11-04 17:44:29 +00:00
alan 4e0491d619 Merge main 2026-11-04 17:43:47 +00:00
alan 57f5219628 Artifacts: runner-internal turn files move to a Debugging files group
Each recorded artifact now carries a server group (deliverable or debug).
public/ files are deliverables; input/memory/history/output.md, session
exports and private/ scratch are debugging files. The app's Artifacts tab
lists deliverables and the Debug toggle reveals a separate Debugging files
group (older servers fall back to the filename rule); the TUI lists
deliverables first and marks debug rows; artifact search excludes debug
files unless include_debug / --debug-files is set.
2026-11-04 17:43:47 +00:00
alan e7d00b85ff Runs: running run and stage durations tick live
One shared ElapsedClock (single timer, only while a visible running item
is watched and the app is visible; cadence follows formatDuration
precision) and a LiveElapsedBuilder that repaints only its own text.
Running list rows, the Summary Duration and running timeline visits
tick. A stage start re-reads the open detail, since step deltas carry
no started_at. Fixture ?running=1 for captures.
2026-11-04 17:43:29 +00:00
alan 7d83b9d1ca Merge: pipelines skill rewrite per independent review 2026-11-04 17:27:30 +00:00
alan 5090f1cf4e Pipelines skill: outcome-first output, aligned review and loop guidance, operator material moved to docs
Rewrite format.md around turn files, the output.md order (# outcome, edge word, # handoff, detail), checks, configs, human stages and the land stage delivery gate (sh -c in a fresh detached worktree, clean checkouts incl. untracked, 64 KB output cap, opencode only). Align review guidance across practices, verification, orchestration and the feedback-loop example. Fix loop-limit semantics in control.md against runner.go, budget_tokens sizing, read for large inputs, blocked-else-error and one stage naming set. Move dated verification logs to docs/verification-history.md and brokered chat, TUI keys and harness internals to docs/operator-reference.md; label operator-only references in SKILL.md.
2026-11-04 17:27:01 +00:00
alan dfe84b6504 Merge: timeline rows show cached share and cost; no-patch reasons 2026-11-04 17:26:47 +00:00
alan d3a2369d1f Stage rows show cached share and cost; Changes explain no_patch_reason
Timeline stage rows add the cached share (when cache_known) and a positive
cost: 20.1M tokens · 97% cached · $1.42. The file viewer words each server
no_patch_reason, keeping the old truncated/binary text as the fallback.
2026-11-04 17:26:31 +00:00
alan b5ccd73a51 Merge: outcome-first stage output and one-shot outcome repair 2026-11-04 17:21:17 +00:00
alan 88dfc051e5 Model stages: outcome-first output shape and one in-session outcome repair
The prompt now says output.md must start with # outcome and the outcome
word alone on the next line, then # handoff, then detail. Runs 241/243
followed the old "start with # handoff" wording and dropped the outcome.

When a completed turn lacks a valid outcome, the OpenCode/agent and Pi
clients send one short follow-up in the same session asking only for the
outcome line. An outcome-only reply goes at the top of the original report;
a still-invalid reply fails with the same validation error as before. The
follow-up's tokens accrue to the session usage. No outcome is inferred.

Missing tools/evidence now name blocked when declared, else error. The
parser tolerates a trailing period on the outcome word.
2026-11-04 17:20:58 +00:00
alan b5927505cc Merge: git baselines give full patches for changed files in large repos 2026-11-04 17:08:28 +00:00
alan 70391b17c2 Stage diffs: clean Git files take their baseline from the index blob
On a large Git workspace the 32 MiB retained-text budget was spent
alphabetically on files that never change, so small late edits were
recorded with no_patch. The stage-start snapshot now keeps text only for
files dirty or untracked at start; a clean tracked file keeps its hash and
stage-0 index blob id. When it changes or is deleted, the after capture
reads that blob in one `git cat-file --batch` and uses it only if its
SHA-256 matches the start read, so stage commits/resets do not move the
baseline and filters or assume-unchanged never yield a wrong patch. The
after capture shares unchanged files' representation instead of spending
budget on them again.

FileChange gains no_patch_reason (binary, file_size, budget, lines,
evidence_size, git_status, baseline). Non-Git workspaces keep their
behaviour.
2026-11-04 17:08:01 +00:00
alan 6870c81960 Skill install: also refresh Codex's copy under $CODEX_HOME/skills 2026-11-04 16:43:55 +00:00
alan bc7ce15f40 Merge: OpenCode/Codex chats and stage runs survive server restarts 2026-11-04 16:24:50 +00:00
alan a627b38ef3 Merge main; use the shared chatShutdownDetacher for OpenCode and Codex
OpenCode and Codex chats implement Detach (called by chatManager.Close)
instead of a parallel DetachSessions interface. Docs follow the Claude Code
host and the systemd KillMode=process unit. The opt-in live restart check
copies only the stage provider's login row into its scratch OpenCode
database, builds the CLI for skill install and removes its scratch tree.
2026-11-04 16:24:17 +00:00
alan aa8eddd686 Keep OpenCode/Codex chat and stage sessions running across server restarts
A stopping server no longer interrupts harness sessions. Runs are canceled
with a shutdown cause, so stage clients leave admitted sessions running and
owned; start-up recovery re-adopts live OpenCode V2 stage sessions (wait,
read back the result, continue the graph), restarts unadmitted visits,
continues runs between stages, and falls back to interrupted with a reason
when the harness is gone. Chats with live work are recorded on shutdown and
reattached on start; turns that ended during the downtime are folded in
from history. The server-spawned V2 chat serve is now a detached owned
service. PIPELINES_SHUTDOWN_SESSIONS=stop restores the old behaviour.
2026-11-04 16:17:08 +00:00
alan 6b22389cae Merge: Claude Code chats survive server restarts via a detachable host 2026-11-04 16:15:06 +00:00
alan 34c2ccec25 Install and document pipelines-claude-host alongside the server 2026-11-04 16:14:35 +00:00
alan c810437aa5 Claude Code chats survive server restarts in a detachable host
A pipelines-claude-host process owns each claude -p CLI and its pipes,
spools its stream-json output with offsets and serves a private Unix
socket. The server detaches on shutdown and reattaches on start,
replaying the spool to rebuild turns, approvals, questions, background
tasks and the live model. Explicit close, idle release and CLI exit stop
the host; a crashed host falls back to --resume with a notice.
2026-11-04 16:09:56 +00:00
alan 9351cd7d74 Merge: pipeline stages run on their own OpenCode service with stage-only limits 2026-11-04 14:12:38 +00:00
alan b655278674 Run OpenCode stages on a Pipelines-owned stage service with their own limits
Stages now run on a detached Pipelines-owned opencode serve started with
OPENCODE_CONFIG_CONTENT carrying stage tool_output (16384 bytes / 400 lines)
and compaction.auto defaults, configurable through PIPELINES_OPENCODE_STAGE_*.
Chats keep their existing service and configuration; a server-spawned chat
serve can take PIPELINES_OPENCODE_CHAT_CONFIG. The service shares the user's
OpenCode config, credentials and session database, keeps a stable private
registration so retained references (recovery, interrupt, export) stay valid,
revives on the same port after a crash, replaces itself when idle after a
settings change, and is stopped on shutdown only when idle.
PIPELINES_OPENCODE_STAGE_SERVICE=shared restores the previous behaviour.
2026-11-04 14:04:35 +00:00
alan 8a25308abe Merge: quiet-tooling guidance in the good-practices skill page 2026-11-04 13:13:04 +00:00
alan c188b36d95 Skill practices: quiet test wrappers, targeted diffs and file ranges, grep logs, batch tool calls 2026-11-04 13:12:21 +00:00
alan 66b5f564b4 Merge: required checks, authoring lint, good-practices skill page 2026-11-04 13:12:04 +00:00
alan dfa239d637 Lint: catch 'the server checks and lands it'; value fallbacks are not silent guards 2026-11-04 13:11:26 +00:00
alan efa9c5b5de Merge: memwatch quiet bounded test summary; analyze wrapper 2026-11-04 13:11:15 +00:00
alan 941d2a7148 memwatch: quiet bounded test summary off a terminal; bounded analyze wrapper
run.sh now records flutter's JSON results beside the log and prints a
summary from tool/memwatch/summary.dart: one verdict line (pass/fail/skip
counts, peak MB, duration, exit status), only failing tests with their
error and app stack frames (framework frames dropped, per-test and total
caps, tail of printed output), the tests still running when killed, and
the log and JSON paths. Quiet is the default when stdout is not a
terminal; MEMWATCH_OUTPUT=full also prints the whole log. The watchdog
loop and exit status are unchanged.

tool/analyze.sh bounds flutter analyze to a verdict line and the first
40 issues. Tests: test/tool/memwatch/summary_test.dart and the
end-to-end tool/memwatch/quiet_test.sh over fixture suites.
2026-11-04 13:10:21 +00:00
alan 3c31bca87f Merge main; align lint and skill practices with essential memory/history and the four graded examples 2026-11-04 13:08:47 +00:00
alan 37e941bbba Authoring lint: required checks, undeclared outcomes, delivery claims, loop limits, silent guards, boilerplate 2026-11-04 13:04:11 +00:00
alan d7e54f4612 Merge: short essential memory per stage; full history on demand 2026-11-04 13:01:16 +00:00
alan 538143554c Split stage memory into capped essential memory.md and full history.md
Every stage used to be told to read memory.md, the full output of every
earlier turn (19 KB average, 92 KB max), and paid for it on each model call.
memory.md is now essential memory, hard-capped at 4 KB and inlined in the
prompt: the task, the previous stage's # handoff section (or its truncated
output head), a one-line-per-stage outcome ledger and the server-captured
changed files. history.md keeps the old full memory on disk; read-capable
stages are pointed at it and input.md for on-demand detail, and it is never
inlined. The prompt asks each stage for a short # handoff section.
2026-11-04 13:00:48 +00:00
alan e5c015f6ed Merge: no UI-review auto-skip without complete change capture; capture lists over-budget changes
# Conflicts:
#	internal/protocol/runs.go
2026-11-04 12:58:45 +00:00
alan f16d61cdfa Skip fallback needs complete, empty evidence; capture lists over-budget changes
The server skip fallback for stages with a skipped edge now applies only
when every earlier visit recorded a complete file-change capture with no
changed files and no image artifact. Any change (no repo-specific UI path
or extension list), any partial/unavailable/missing capture, a human
decision or a checkpoint-retry prefix runs the model. auto_skip=false opts
a stage out. The fallback verdict names the server fallback.

Capture compares over-budget text by hash and, in Git, lists paths it
could not compare when their git status changes, marked no_patch, so a
large workspace no longer records files: [] for a real edit. Run detail
gains a warnings list for partial/unavailable captures, also printed by
inspect on stderr.
2026-11-04 12:56:40 +00:00
alan 5b17794179 Chat: code blocks and inline code use the monospace font 2026-11-04 02:15:50 +00:00
alan bd7ae0050a Merge: per-device font choice in Settings 2026-11-04 02:02:24 +00:00
alan 2853b18b9e Settings: per-device interface font choice
System default plus Inter, IBM Plex Sans, Source Sans 3 and Atkinson
Hyperlegible Next (OFL 1.1, bundled as on-demand assets and loaded with
FontLoader, so the web fetches only the previewed/chosen files). Stored in
shared_preferences, applied live to Material and Cupertino text themes;
RobotoMono styles unchanged. Licences registered with LicenseRegistry.
2026-11-04 02:01:49 +00:00
alan 89462848b6 Merge: run token usage beside size, fresh vs cached, orphan-free stats 2026-11-03 22:22:04 +00:00
alan e727c3fd07 Merge main into run token usage branch 2026-11-03 22:21:38 +00:00
alan 3227d61caf Token usage: keep cache/reasoning split, count only recorded steps, cost only when positive; captures fixture, docs and notes 2026-11-03 22:16:49 +00:00
alan aa948bdfe4 Runs list carries per-run token usage; app shows tokens beside size, Most tokens sort, Summary and stage tokens 2026-11-03 22:04:55 +00:00
alan 8c7093d1e6 Merge: chat list shows running turns and background tasks for every chat 2026-11-03 19:54:35 +00:00
alan 45c933c176 Chat list: spinner and background-task badge from server activity on every row
The list applies chat_activity pushes and each row's activity by seq, so
every listed chat shows a running turn, not only the chat open here. An
idle chat with running background tasks wears a quiet badge with tooltip and
semantics "Background tasks running (N)". Older servers keep the old
behaviour. List rows that never changed carry the server's current seq so
they order after snapshots kept from an earlier server process.
2026-11-03 19:53:52 +00:00
alan 1b98877d88 Chat list activity: turn running and background tasks on every row, pushed to every connection
chat_sessions rows carry activity (turn_running, background_tasks, seq) from
the hub's own state, and chat_activity is pushed to every connection when a
session's turn starts or ends or its running background-task count changes.
A room whose last viewer left stays observed while background tasks run,
bounded by the unattended limits; a Claude Code process exit ends its tasks.
2026-11-03 19:45:43 +00:00
alan 0d459f69af Merge: answered chat questions collapse into their turn like tool calls 2026-11-03 19:39:19 +00:00
alan fc94210595 Chat: answered questions collapse into their turn like tool calls 2026-11-03 19:38:52 +00:00
alan b6bc18b19f Merge: four graded example pipelines, seeded once into a new database 2026-11-03 19:36:54 +00:00
alan d427b48be3 Merge: list rows a little roomier 2026-11-03 19:35:59 +00:00
alan a48e4a5b6a Replace starters with four graded examples seeded into new databases
The template catalog is now Example 1-4: one stage, two stages (handoff),
feedback loop (runner-owned limits, retries, timeout) and human decision
(type=human approve/revise/abort with notify hooks). All read-only or leave
changes uncommitted; none commits, pushes or deploys.

A brand-new database (schema created by this Open) gets the examples once at
server start, bound to the configured default model and harness. A
server_settings marker records the decision, so removed examples never come
back and existing installs are marked without any pipeline being added or
rewritten.
2026-11-03 19:35:47 +00:00
alan db45b72d8b List rows: a little more vertical room in the shared row 2026-11-03 19:35:40 +00:00
alan 35558fec07 Merge: notes on the chat-list background-task gap 2026-11-03 19:27:37 +00:00
alan f34637303d Notes: session-list background-task indicator blocked on server data 2026-11-03 19:27:18 +00:00
alan bcbcd295c1 README: two clients, ./install --web, shorter run and artifact notes, one PATH setup 2026-11-03 19:18:12 +00:00
alan 3eb2c86b99 Notes: operator confirmed Copy link works 2026-11-03 18:54:20 +00:00
alan 9bf0cdac40 Merge: artifact full screen; HTML scrolls, pans and zooms; links open safely 2026-11-03 18:51:15 +00:00
alan 4e0481fd8d Artifact viewer: full screen view; HTML scrolls, pans and zooms; links open safely
Full screen button in the viewer's bottom bar opens a root full-screen route
with the same bar and top bar; exit by the bar, Close, Escape or back. It
renders the already fetched bytes, never the system browser. The external
Open action is now labelled Open in browser.

Native web views claim their gestures (vertical drags inline, every pointer
in full screen) so the page swipe no longer starves them. On the web, full
screen adds zoom buttons that scale the live sandboxed frame. Links: in-page
anchors scroll, http(s)/mailto open outside, everything else is inert.

Capture kit: --touch, swipe=, pinch=, tabs=; html=1 fixture artifact.
2026-11-03 18:50:41 +00:00
alan a7d550b94b Merge: a mouse click on a chat link opens it despite small pointer drift 2026-11-03 18:36:10 +00:00
alan 7f313cf5ef Chat links: a mouse click opens the link even when the pointer drifts
The selection area claimed a primary mouse press on a link as a selection
drag once the pointer moved 2 px, so in the browser ordinary clicks with a
little hand or trackpad movement opened nothing. A link's recognizer now
accepts a primary mouse press on pointer down, as an anchor does; the click
still cancels past the tap slop, drags from plain text still select across
links, and touch long press keeps Copy link.
2026-11-03 18:35:43 +00:00
alan d092a6520b Merge: tool calls and notices never mark a chat New 2026-11-03 18:34:51 +00:00
alan c320dac131 Chat list: tool calls and notices never mark a chat New
Only visible assistant reply text, a pending form or an unresolved
permission request is unread. Tool results, user prompts, harness
notices/agent reports and blank deltas only drive the working state.
2026-11-03 18:34:29 +00:00
alan fa6c0864db Merge: top bar clears iPadOS window controls 2026-11-03 18:11:03 +00:00
alan e00c39aa5f Top bar: clear iPadOS 26 window controls in a window
Flutter's safe area leaves out the window controls of a windowed iPad app,
so they covered the list pane's title pill and took its taps. A small Runner
plugin reports their corner from UIKit's corner-adapted safe-area regions
over a method channel, and SegmentedBar pads the side they overlap. No-op
off iOS and when there are no controls.
2026-11-03 18:10:33 +00:00
alan 092e497fcb Merge: narrow list panes keep a readable title and row status 2026-11-03 18:04:37 +00:00
alan a40a6e2e1c Narrow list panes: readable bar title, More overflow menu, rows keep status and actions
The floating bar keeps the title at its own width (up to half the bar) and
moves overflowable actions into one More menu instead of squeezing them
below their touch targets. List rows keep their leading status avatar and
More actions at any list-pane width; the time moves under the subtitle.
2026-11-03 18:04:10 +00:00
alan 1ba69685aa Merge: Settings tab bar back at the right edge 2026-11-03 17:34:42 +00:00
alan 43d6135df3 Shell: Settings has no list column, so its tab bar stays at the right edge 2026-11-03 17:34:42 +00:00
alan fb3987ef4e Merge: iPad layout review notes and native fixture host 2026-11-03 17:33:36 +00:00
alan 9b6809c9a1 iPad layout review notes and native fixture host
Run the full-app fixture entry on an iOS simulator: options from a file in
the app's tmp dir or the environment, route via a route provider, a narrow
strip for Split View widths, and a small in-app tap/type driver.
2026-11-03 17:32:58 +00:00
alan 50c31c6d34 Merge: system Back returns to the previous tab 2026-11-03 17:15:00 +00:00
alan 5deddda9c0 Shell: system Back returns to the previous tab
At a tab's root the system Back now returns to the tab opened before it,
through a most-recent-first stack of visited tabs without duplicates.
Every tab change (tap, Ctrl+Tab, a routed open) records it. Pages over
the shell, Settings and a page in the open item's pane still close
first; with no history Back reaches the platform as before. Only the
shown tab's detail pane answers Back now.
2026-11-03 17:14:41 +00:00
alan 8341c8ab1d Merge: subtler glass 2026-11-03 17:11:30 +00:00
alan eed04eceef Glass: subtler frosted look instead of a metallic sheen
Top highlight, rim and shadow are much fainter in both themes, the
highlight fades out sooner (0.55 -> 0.4), the backdrop saturation boost
drops from 1.6 to 1.25 and the fill opacity rises from 0.78 to 0.82.
One backdrop filter per piece and the solid high-contrast piece stay.
2026-11-03 17:11:09 +00:00
alan 0ac9c5a8a9 Merge: clickable links in chat 2026-11-03 16:17:54 +00:00
alan 9bfd16c6e5 Chat: highlighted, clickable links in messages
Markdown links, autolinks and bare http(s)/www. URLs open externally through
url_launcher (http, https and mailto only) in assistant markdown and operator
messages; code is never linkified. Links use the host primary colour with an
underline that thickens on hover, and offer Copy link on long press and
right-click without breaking text selection.
2026-11-03 16:17:26 +00:00
alan f0b287dd9a Merge: liquid-glass look for every glass surface 2026-11-03 16:11:48 +00:00
alan 9283220c82 Glass: liquid-glass look for every glass surface
GlassPill (segmented bars, floating tabs, composer, viewer control bars,
top strips) now composes blur with a saturation boost in one backdrop
filter, paints a soft top highlight, a thin luminous gradient rim and an
outer-only depth shadow, tuned separately for light and dark fills
(GlassLook in glass_surface.dart). Fill opacity 0.84 -> 0.78; blur stays
at sigma 4 and one filter per piece. High contrast keeps the solid piece.
2026-11-03 16:11:24 +00:00
alan 0f12c8a01b Merge: Material host and controls on every platform 2026-11-03 16:08:08 +00:00
alan 493e950195 App uses the Material host and controls on every platform
iOS and macOS no longer switch to the Cupertino host or Cupertino controls by
target platform; they render the same Material UI as web and Android.
Cupertino paths remain for an explicit cupertino: true host. Flutter's
automatic platform behaviours (scroll physics, text selection, back-swipe
transitions) are unchanged.
2026-11-03 16:07:48 +00:00
alan b5051fc8b6 Merge: a sent message rises in from the composer 2026-11-03 15:59:56 +00:00
alan 6e8c9b1a9e Chat: a sent message rises in from the composer
The just-sent (or queued) message slides up 20px, fades and grows from
0.96 over 280ms on an emphasized decelerate curve. Only a send marks it:
history, scroll restore, other devices, replies and the server copy
replacing the local one appear in place. Row keys follow the operation
id so the server copy keeps the row. Reduced motion shows it at once.
The capture fixture now accepts chat_prompt.
2026-11-03 15:59:34 +00:00
alan 5f51bbf53b Merge: LAN service discovery (mDNS advert + app scan) 2026-11-03 14:55:26 +00:00
alan 7ecc12b747 LAN discovery: server advertises _pipelines._tcp over mDNS; app finds servers on the connect screen
Server: internal/discovery publishes a DNS-SD record (hashicorp/mdns) with
the port LAN clients dial (the web proxy via -mdns-port, which the
supervisor passes, or a non-loopback -addr) and TXT v, name, path, tls, auth.
On by default; -mdns=false or PIPELINES_MDNS=off disables it. Failures are
logged and never block startup; the advert is withdrawn on shutdown.

App: the Connect to Pipelines screen gets 'Find servers on this network'
behind a ServerDiscovery interface (Bonsoir: Android NSD with multicast lock,
iOS Bonjour with NSLocalNetworkUsageDescription and NSBonjourServices).
Tapping a server fills the address and connects; manual entry stays. Web has
no scan.
2026-11-03 14:54:54 +00:00
alan 97509cb49f Merge: /new starts a fresh context in the same chat 2026-11-03 14:11:38 +00:00
alan ad4233f7b8 Chat: /new continues the same chat on a fresh session
The composer's /new used to create a separate chat. It now sends
chat_new_session. The server starts a fresh native session on the chat's
own harness (OpenCode, Codex or Claude Code) and re-keys the
operator_sessions row in one transaction. The chat keeps its title,
directory, backend, colour, star, model and mode. The old row is kept
unlisted with replaced_by, and its native session stays resumable.

The reply and the chat_session_changed push carry previous_id, so every
client swaps the row in place and an open conversation follows it to the
fresh, empty transcript with a notice.
2026-11-03 14:06:44 +00:00
alan 0bf3e6374b Merge: tabs stay on the left on wide windows 2026-11-03 14:04:08 +00:00
alan 4149c57d70 Shell: on wide windows the tabs stay under the list column even with no item open 2026-11-03 14:04:08 +00:00
alan 251cc4f274 Merge: search results newest first 2026-11-03 13:35:49 +00:00
alan 6ca415c134 Search: order results newest first in every group
Chat hits sort by the chat's last use whatever field matched, and run,
step, field, artifact and pipeline hits sort by their own date, before
the result cap applies so the cap drops the oldest. Each kind's row scan
also walks newest first. Score still reports the match tier. The app
sorts both groups newest first as well.
2026-11-03 13:35:27 +00:00
alan 63a67e0621 Merge: search finds chats and opens them 2026-11-03 13:02:16 +00:00
alan bff7115e4e Search: find operator chats by title, directory and message text
A search with kind chat matches the operator-session registry's titles and
directories and the newest messages of recent transcripts through the chat
broker (bounded count, concurrency and one-second budget), answered off the
connection's read loop. The all-kind search is unchanged for older clients.

The app sends the chat search after its run search and shows a Chats group
with title, harness, directory and snippet; a chat hit opens that chat in the
Chat tab. The probe fixture answers chat searches over ?chats=N.
2026-11-03 13:01:53 +00:00
alan edc1543874 Merge: background-task notices grouped in the chat 2026-11-03 12:45:18 +00:00
alan 44fa197d0d Merge: Ctrl+1-9 focuses the opened chat's composer 2026-11-03 12:45:14 +00:00
alan 1a9db0206c Chat: group consecutive background-task notices into one collapsed chip
Two or more consecutive Claude Code task notices fold into one
task_notices row: a chip 'N background tasks' (tinted when one failed)
that opens a sheet with one compact row per task (outcome icon, summary,
outcome word), like the tools and permissions chips. A lone notice stays
one line. The server also treats Claude Code's [SYSTEM NOTIFICATION]
banner as harness text, so a bannered notification without an origin is
still a notice, never the operator's turn. The chat fixture gains
?tasks=N.
2026-11-03 12:44:57 +00:00
alan d6f636a325 Chat: Ctrl+1-9 puts the keyboard in the opened chat's composer
A chat opened from the keyboard asks its composer for focus; the composer
takes it after the frame it is built in (new detail pane or phone page), or
at once when that chat is already open. Taps and other opens cancel the
request, so they keep focus where it was. The capture kit's press step
accepts modifier chords such as Control+2.
2026-11-03 12:42:28 +00:00
alan 200e68b09d Merge: Claude sessions named after the chat title for claude --resume 2026-11-03 12:36:52 +00:00
alan a12a7b3d66 Claude chats: pass the chat title as --name so terminal resume lists them by name
Spawns pass the session title with --name (Claude Code records it as the
transcript's custom-title). A rename tells the harness the new title for its
next spawn, and the first routing of a session after a restart hands it the
registry title.
2026-11-03 12:31:31 +00:00
alan 759c8ed643 Merge: main tabs under the list pane on wide layouts 2026-11-03 12:31:19 +00:00
alan 40e94cc3da Shell: on wide split layouts the destination tabs sit under the list pane
The four destination buttons move from the bottom right over the detail
pane to the bottom of the list pane, centred in the (dragged) list width.
The list now keeps the bar's height as bottom clearance; the detail pane
clears only the system inset, so its tabs, the chat composer and the
artifact actions sit at its bottom edge. Phone layout is unchanged.
kStackedBarGap is gone with the stacked bars.
2026-11-03 12:30:56 +00:00
alan 6862f4a213 Merge: chat transcript ends at the composer; colour wash from the bar top 2026-11-03 12:28:14 +00:00
alan 777c444529 Chat: the transcript ends at the composer's top; the colour wash starts at the bar's top edge 2026-11-03 12:27:53 +00:00
alan d34185b56c Merge: chat colours, Ctrl+1-9, starred chats alphabetical
# Conflicts:
#	app/lib/features/chat/conversation/chat_thread_view.dart
#	app/tool/perf/perf_fixture.dart
#	internal/protocol/chat.go
#	internal/server/chat_close.go
#	internal/server/chat_sessions.go
2026-11-03 11:22:50 +00:00
alan 56e78ef940 Chat colours: the tint and bar span the divider; a stronger top wash; capture fixture
?colors=1 (with ?chats=N) names, stars and colours the fixture chats and
keeps colours picked with chat_color, for capture review.
2026-11-03 11:12:31 +00:00
alan f7b5958d64 App: chat colours, Ctrl+1-9 opens the Nth list item, starred chats alphabetical
A chat's colour is picked from its row menu (Colour...), a long-press or
the chat information sheet. The list shows it as a leading bar, a faint
row tint and a coloured avatar; the open chat shows a faint wash under its
top bar. Shades are Cupertino's dynamic system colours and Material
swatches tuned per brightness. Changes from other devices apply live.

Ctrl+1...Ctrl+9 open the Nth item of the open tab's list (chats, runs,
pipelines) in on-screen order, also while typing. Starred chats are sorted
by name, case-insensitively, as one alphabetical group.
2026-11-03 11:05:38 +00:00
alan 062c84b376 Merge: chat session info, copy and export 2026-11-03 11:02:30 +00:00
alan 8ead259373 Merge: sending scrolls to the bottom 2026-11-03 11:02:30 +00:00
alan c6bebb0af3 Chat: sending a message always scrolls to the bottom
After a send the view jumps to the end of the conversation and resumes
following, even when the operator had scrolled up or the message is taller
than the screen, so the message's end and the reply stay in view.
2026-11-03 11:02:06 +00:00
alan 1de74f76bb Chat info: Session section with native id, resume command and export
The chat information sheet gains a Session section: the harness's native
session id (copy), harness, directory, a verified resume command (copy)
and Export conversation (Markdown), Export JSON and, for Claude Code,
Export native session (the JSONL transcript).

Server: chat_sessions rows carry resume_command and native_export; new
chat_export command builds Markdown/JSON from the same paged history
chat_messages serves (bounded at 8 MiB), refuses non-operator sessions.
App: exports go through the artifact file bridge (web download, share
sheet on phones).
2026-11-03 10:59:41 +00:00
alan a4c191a416 Chats: a shared highlight colour per chat, pushed live with star and rename
chat_color {session_id, color|null} stores a palette name (red, orange,
amber, green, teal, blue, purple, pink) on the operator-session row; rows
and replies carry it as color. Colour, star and rename changes are pushed
to every other connection as chat_session_changed.
2026-11-03 10:53:38 +00:00
alan f93d121227 Merge: draggable list/detail divider, remembered per tab 2026-11-03 10:49:35 +00:00
alan c0d68f7c47 Split view: drag the divider to resize the list pane, remembered per destination
A 12 px grab area over the divider line resizes the list live (mouse,
touch, arrow keys; double tap resets to the default policy). The shell bar
over the list follows. Widths persist per destination in SharedPreferences
and clamp to the window without overwriting the saved value. Capture kit
gains hover= and drag= steps.
2026-11-03 10:49:09 +00:00
alan 072688476c Chat composer: a newline at the line limit scrolls to the new line
At the field's line limit, a newline at the end left the caret on an empty
line the field only scrolled to after the next character. The field now
scrolls to the end right after such an edit.
2026-11-03 10:41:26 +00:00
alan 73646a038d Chat composer: grow to 12 lines, at most ~40% of the visible height
The message field grows up to 12 lines (was 6) before it scrolls, capped at
about 40% of the visible height with the keyboard excluded, so the
conversation stays in view on a phone.
2026-11-03 10:37:39 +00:00
alan 6413fc5a90 Merge: top bar items pop in like the tab buttons 2026-11-03 00:31:21 +00:00
alan 05798a56c8 Top bar: every piece pops in like the tab buttons
One shared pop (pop_entrance.dart: PopTransition, popWindow, PopEntrance)
drives the floating tab buttons and the top bar, on Motion.tabEntrance*
(0.6 -> 1, 260 ms, 70 ms stagger, ease-out-back, glass fading in).
SegmentedEntrance and the barEntrance* constants are gone.

Back, the title, the actions pill and each action pop in turn from the
leading edge (SegmentedEntrancePlanner). A lone action pops once, with its
pill. A newcomer pops alone. Rebuilds and title changes never replay it.
The shell passes published actions one by one, keyed by their screen
(actionsKey), not as one cross-fading Row. The chat thread's model and mode
are separate actions. The folder picker now uses SegmentedBar.
2026-11-03 00:30:44 +00:00
alan 2176b396ac Tabs: the selected button grows about 20%, neighbours keep their gaps
The selected tab's whole button (62 px Material, 60 px Cupertino, from 52/50)
and its icon grow with the selection in the layout, so the other buttons move
over and every gap stays the same; the previous selection shrinks back. The
row is as tall as the selected button with the others centred on it.
2026-11-02 22:30:25 +00:00
alan 6fcdbcaec2 Tabs: the selected tab's icon is a little larger
The selected icon grows to 1.15x with the selection tint (220 ms, same curve)
and shrinks back when another tab is selected, on every floating tab bar;
reduced motion jumps straight to the size.
2026-11-02 21:57:26 +00:00
alan badf858124 Merge: chat wheel/trackpad scrolling fixes 2026-11-02 20:40:17 +00:00
alan d02d5ea11d Chat transcript: wheel and trackpad scrolling always reaches the transcript
Root causes found in release web captures (1280x800 and 560x900):
- Follow mode undid small wheel/trackpad ticks at the end: each tick is its
  own scroll, re-judged as following within 32 px and jumped back. A user
  scroll toward older rows now releases the end however small; the jump
  control appears once streamed content moves the end beyond the threshold.
- The end-of-scroll jump ran inside the position's activity switch, so a
  touch or scrollbar drag released near the end recursed without end (stack
  overflow during the gesture). The jump now runs after the notification.
- Horizontally scrolling code blocks and tables claimed diagonal trackpad
  gestures whole. HorizontalScrollView gives mostly vertical gestures to the
  enclosing list; sideways and Shift + wheel still scroll the block.
- The wheel over the floating chat bar, composer and jump control moved
  nothing. VerticalWheelForwarder scrolls the transcript from them unless
  something under the pointer claims the event.

Adds widget tests per content kind and scroll mode, follow/touch/Load older
tests, a capture-kit check (tool/capture/examples/chat-wheel-scroll.json)
with eval/expect steps, wheel dx/repeat, --params and eval: targets, a
transcript scroll probe and fixture options, and fixes the kit ignoring a
script's size. Notes in notes/chat-wheel-scroll.md.
2026-11-02 20:37:36 +00:00
alan bd79011046 Merge: account quota in the chat info sheet 2026-11-02 18:57:53 +00:00
alan 10049b8062 Chat info: account quota per harness (Claude rate_limit_event, Codex account/rateLimits, OpenCode unsupported)
Usage frames carry optional usage.account {harness, source, plan, as_of,
windows[{id,label,used_percent,resets_at}], unsupported}. Claude Code quota
comes from its rate_limit_event stream lines and the initialize account
(plan), shared across chats on the same account. Codex reads
account/rateLimits/read once per connection (re-read when a chat opens after
5 min) and merges account/rateLimits/updated. OpenCode exposes no quota API
and says so. The app's chat info sheet shows an Account usage section with a
progress bar and reset countdown per window, Material and Cupertino.
2026-11-02 18:57:13 +00:00
alan 6fbfa4e11f Merge: tabs as separate round glass buttons 2026-11-02 18:44:27 +00:00
alan 377ff04aaf Show each floating tab as its own round glass button
Replace the single glass pill (host NavigationBar/CupertinoTabBar with one
gliding highlight) with a row of separate circular GlassPill buttons, 52/50 px
with 12/10 px gaps, at the same bottom-right place. The selected button fills
with the host selection tint and cross-fades; each button pops in on its own,
staggered, only when the bar appears or its tabs change; presses sink like the
top bar's. Tab semantics, keys, tooltips and badges are kept; the row shares
one BackdropGroup for its blurs.
2026-11-02 18:43:05 +00:00
alan 7ab15f9ba9 Merge: search artifact hit opens that artifact (phone path fixed) 2026-11-02 18:40:15 +00:00
alan 8d2ca95057 Open Search artifact hits in the viewer over the run's Artifacts tab
On a phone-width window the open run is its own page pushed on the app
navigator, so RunDetailTabs was not a descendant of the shell's
RunSearchSelectionScope (which wraps only the Runs tab body). The field or
artifact selection was never seen and the run opened at its plain Summary.
The previous widget tests injected the scope directly above RunDetailView at
900 px, where the detail is an inline pane, so they could not catch it.

- RunsScreen relays the shell's search scope into the detail it builds, so
  the pushed page sees the selection too (also fixes field hits on phones).
- An artifact hit now opens the run's Artifacts tab and the gallery opens
  that artifact exactly as a tap there does: selected, scrolled into view
  (ArtifactVisitReveal) and in the viewer. Back returns to the tab with the
  artifact highlighted. An unknown URL leaves the tab open with the existing
  "That artifact is no longer available." notice.
- New test/application/search_artifact_open_test.dart drives the real Search
  tab -> typed query -> result tap -> run read -> viewer on a 390x844 phone,
  Material and Cupertino; it fails without the scope relay.
2026-11-02 18:39:43 +00:00
alan 8a402c1114 Merge: even edge gaps in glass control bars 2026-11-02 18:36:14 +00:00
alan 4d9ee1ea78 Give glass control bars equal end and edge gaps
Inside a glass bar the first and last controls now keep the same gap from
the pill's sides as from its top and bottom, from shared GlassBarMetrics
(48/44 targets, 8 edge gap). Applies to the artifact viewer bar (hugs its
actions without a pager), the chevron pagers (position text inset like an
icon), and the chat composer's Cupertino Send/Stop (centred circle).
Run 7 in the full-app probe now records change captures for diff captures.
2026-11-02 18:35:37 +00:00
alan b535e9a8f3 README: PATH step and a Linux (Debian/Ubuntu) quick start
Adds the copy-paste prerequisites for Linux (Docker group, Go from go.dev,
OpenCode), the PATH line for the installed CLI, and enable-linger so the
systemd --user service survives logout.
2026-11-02 18:17:16 +00:00
alan 37b67c84df Merge branch 'main' into viewer-controls-bigger 2026-11-02 17:50:30 +00:00
alan e65e2800e6 Enlarge viewer controls and respect safe areas 2026-11-02 17:50:27 +00:00
alan 895b23d2da Chat reply notifications: up to 1000 characters, paragraphs kept
The finished-reply notification now carries up to 1000 characters of the reply
(was 200), keeping its paragraph breaks for the app's expanded notification;
ntfy still gets it on one line within its 2048-byte limit.
2026-11-02 17:08:19 +00:00
alan e2ba091f7d Merge: worktree-agent-a6762a58e660a3046 2026-11-02 16:47:33 +00:00
alan 9393345acb Merge: worktree-agent-adedec543a1830ea7 2026-11-02 16:47:33 +00:00
alan a7b32d4473 Merge: worktree-agent-af03a51b8bf6c96ab 2026-11-02 16:47:32 +00:00
alan dd99e8d823 Merge: worktree-agent-add396073f8f3e026 2026-11-02 16:47:32 +00:00
alan 009bf3d853 Pop the top bar's islands in and give its controls press feedback
Each island (Back, title, actions pill, each action) scales in from 0.85
with a gentle overshoot, staggered from the leading edge on first show and
at once when it newly appears; rebuilds and title changes keep it. Glass
fades its fill and blur together so backdrop grouping is unchanged.
Every tappable piece sinks to 0.94 under a stadium tint while pressed and
springs back. Reduced motion skips the animation.
2026-11-02 16:47:01 +00:00
alan 07d4740d0c Show injected Claude input as agent reports and notices, not operator bubbles
Claude Code records subagent/peer reports, task notifications, reminders and
skill bodies as user-role entries. Classify them server-side (history and live
stream) by origin/isMeta/queued_command mode: reports become kind agent_report,
task notifications kind notice, harness meta is hidden, and the mid-turn
wrapper is unwrapped to the operator's text. The app draws a collapsed Agent
report card and a one-line system notice on the agent's side.
2026-11-02 16:44:07 +00:00
alan af1e61c063 Artifact viewer: centre the Details (i) button in its bar pill
The viewer's top-bar Details action reused the compact bottom-bar button, so
its icon sat off-centre in the bar's round pill on Material. Bar actions now
use the standard bar button size.
2026-11-02 16:41:18 +00:00
alan 1a9fc74999 Show the chat mode control as soon as the session names its mode
A created chat's reply carried no mode, and the chat destination kept the
first row it opened for the whole visit, ignoring later list re-reads, so the
mode control only appeared after closing and reopening the chat. The server
now names the mode on a created row, and the destination adopts each listed
row that a re-read changed (excluding the live running flag), so the open
conversation follows new, refreshed and other-device mode changes in place.
2026-11-02 16:37:35 +00:00
alan b4382b08ad Apply the chat directory's environment and account to Claude Code chats
Claude Code chats now start with the chat directory's own environment:
direnv (allowed .envrc only, via direnv export json) and mise (mise env
--json), cached per directory and invalidated when config, watched files or
allow records change. A blocked .envrc is logged and shown in the chat as a
notice and never applied. When the directory chooses the Claude account
(CLAUDE_CONFIG_DIR, API key or token variables), the server's service token
and login-file fallbacks are skipped and inherited credentials dropped.
Transcripts in a directory's CLAUDE_CONFIG_DIR are found for history,
resume and after a restart. PWD is set to the chat directory.
2026-11-02 16:37:20 +00:00
alan d78cbe3f66 Merge: one way to set up harnesses (pipelines harness setup) 2026-11-02 16:14:50 +00:00
alan de10797f20 Merge: list pane width cap 2026-11-02 16:14:50 +00:00
alan 885234e0e4 Cap the list pane at 440 px beside an open item
On very wide windows (a 4K monitor) the list took 40% of the window; past
440 px the extra width now goes to the open item. Fold and laptop widths
keep the 60/40 split.
2026-11-02 16:14:50 +00:00
alan 108c29f9eb One harness setup path: pipelines harness setup <claude|codex|opencode|pi>
Checks the CLI on the server's PATH (install command when missing), signs in
with the harness's own login only when needed (--login forces it), keeps the
OpenCode/Pi model pickers, and verifies with the server's check. Works on
native and Docker installs (Docker delegates to the container setup); --host
is a hidden compatibility alias. harness list shows all four harnesses'
installed/signed-in/configured/default status. ./install --opencode|--pi now
point to the command; ./install ends with the next-step hint.
2026-11-02 16:11:04 +00:00
alan 1f214d36bf Merge: chat notifications arrive with no client attached 2026-11-02 16:09:39 +00:00
alan 80022ea41a Keep observing chats with an in-flight turn after the last client leaves
Chat attention notifications (questions, approvals, finished replies) come
from a session's event stream, which the hub only read while a room existed;
detach destroyed the room when the last client left, so a turn that finished
or asked with the app closed notified nobody.

A room whose last client leaves now stays observing, unattended, while its
turn is in flight or it holds an unanswered question/approval, and is torn
down when the turn ends (or after 6h for a stuck turn); at most 16 such rooms.
At server start, recently used open sessions whose harness reports a running
turn (OpenCode /api/session/active, Codex thread/turns/list) are observed
again so their reply still notifies. Settings, dedupe and app_notifications
recording are unchanged.
2026-11-02 16:07:42 +00:00
alan 9d1c8bf910 Merge: tab bar — sliding highlight, no entrance replay on switches 2026-11-02 15:59:26 +00:00
alan 94a41ff563 Glide one tab highlight and stop tab entrances replaying on selection
The per-tab entrance pop lived in each icon, but the hosts swap a tab's
icon subtree when it is selected or deselected (Material wrapped the
selected icon in its own circle; Cupertino did the same in activeIcon),
so every tab switch remounted those icons and replayed their pop.
The bar now owns the entrance, highlight slide and bounce animations and
restarts the entrance only when its set of tabs changes.

One highlight behind the icons glides to the new tab (250 ms, stretching
to 1.25x wide mid-move) and the new icon bounces (1.08x, 180 ms); reduced
motion jumps. Cupertino paints it from tab 0 above the host's backdrop
blur.
2026-11-02 15:58:51 +00:00
alan 467f3eafa7 Merge: README, install, harness and notification docs 2026-11-02 15:54:49 +00:00
alan 3e100f78f3 Document the current install, harnesses and notifications
Rewrite the README around the server, web/Android app and CLI, and
replace docs/install.md with the current native install (all-or-nothing
Docker web build, flags from setup-native.py, lifecycle commands, data
locations, password, upgrading). Add docs/harnesses.md and
docs/notifications.md; point ntfy.md at the new overview and fix its
topic name.
2026-11-02 15:54:25 +00:00
alan 815f7c2a5a Stage notifications: no empty "()" and say what a waiting stage needs
A waiting human stage has no outcome yet, so its notification read
"… · waiting ()". The outcome is now shown only when recorded, and a
waiting stage reads "waiting for your decision".
2026-11-02 15:47:06 +00:00
alan 1c8680393e Merge: perf round 4 — lazy chat sessions list 2026-11-02 14:29:04 +00:00
alan 8fd55cb7eb Perf round 4: lazy chat sessions list
Chat sections are slivers: a lazy, keyed SliverList under the same heading,
with SliverAnimatedExtent reproducing the clipped AnimatedSize for open,
close and arriving rows. The first Chat tab visit no longer builds every row
(150 chats: worst build frame 116 ms to 19 ms).
2026-11-02 14:28:33 +00:00
alan 2f6d967f3b Merge: perf round 3 — run detail builds hidden tabs after the transition 2026-11-02 13:55:25 +00:00
alan f1ac647125 perf: build unshown run-detail tabs after the route transition; interaction bench
FadeThroughStack(lazy: true) builds only the shown page first and the rest
one per frame once no animation runs. Opening a run detail no longer lays out
Timeline, Artifacts and Changes offstage during the route transition
(transition build 62-103 ms -> 38-59 ms); first tab switches are unchanged.

Adds tool/perf/interaction_bench.mjs (FrameTiming per interaction over the
full-app fixture, CPU profiles mapped to Dart files), fixture options for
hits/chats/graph, and notes/perf-round3.md with the survey.
2026-11-02 13:54:56 +00:00
alan ec619234c2 Merge: perf — cheaper frosted glass (sigma 4, grouped backdrops) 2026-11-02 00:59:41 +00:00
alan b90c7e2d1d Cheaper frosted-glass blurs: sigma 4 and one backdrop read per bar
Blur sigma 16 -> 4 keeps CanvasKit on its direct blur path; under the 84%
fill the look is unchanged (max 13/255 inside the pieces). SegmentedBar's
pieces share a BackdropGroup so Impeller reads the content behind them once.
Adds a scroll frame-time bench, a backdrop census and filler rows to the
full-app probe. CPU CanvasKit, 560x900: run timeline p50 31.8 -> 22.1 ms,
runs list 25.3 -> 19.9 ms.
2026-11-02 00:58:23 +00:00
alan 0bf81a7c4e Merge: perf round 2 — long chats open with only the visible rows 2026-11-02 00:55:37 +00:00
alan c74065dc48 Settle bottom-anchored restores, flush open timings in the probe, record numbers 2026-11-02 00:55:03 +00:00
alan 4af1ab843e Merge: search artifact hit opens that artifact 2026-11-02 00:40:38 +00:00
alan 629c8c6091 Search artifact hit: clear the pending visit flag; tests for opening
After opening an artifact from search the pending flag was never cleared, so
later visit selections stopped syncing. It is cleared once the visit page is
installed. Adds widget tests: the hit opens the viewer on that artifact, Back
lands on its visit and another visit still opens, and a missing artifact shows
the notice. Finishes run #231.
2026-11-02 00:40:38 +00:00
alan 7e00cedd00 Merge main 2026-11-02 00:36:49 +00:00
alan 41492df436 WIP: search artifact hit opens the viewer (run #231) 2026-11-02 00:35:23 +00:00
alan a5f0eb3811 Open long chats bottom-anchored so only the rows that show are laid out 2026-11-02 00:23:52 +00:00
alan 63d3b8e478 Merge: perf round 2 — memoized list rows, lazy artifact sections 2026-11-02 00:22:55 +00:00
alan 27dc4840e2 Allow the runs burst bench for executing rows' clock-driven durations 2026-11-02 00:22:22 +00:00
alan b80c52b3e1 Measure chat transcript open cost in the perf harness and web probe 2026-11-02 00:15:40 +00:00
alan 7b1455631b Rebuild only changed list rows and lay out big artifact sections lazily
Runs and chat session rows are memoized on their own data (MemoSubtree), so
a run event or a chat's running change rebuilds one row instead of every
built row. The artifact gallery's open sections are lazy slivers revealed
by a sliver open/close animation, and thumbnails decode at display size.
Benches in test/perf measure both.
2026-11-02 00:08:29 +00:00
alan 52e31fc4ec Merge: perf round 1 — chat streaming rebuilds only the live turn 2026-11-02 00:00:09 +00:00
alan 20bf6202b3 Rebuild only the live chat turn while replies stream
Reuse unchanged transcript rows, the composer bar and the header across
streamed deltas, and share parsed markdown by text so rows scrolled back
into view are not parsed again. Adds a rebuild/parse harness and a
release-web frame-timing probe with a long-transcript fixture.
2026-11-01 23:59:40 +00:00
alan b3b761c56d Merge: perf round 1 — shared clock, narrower shell rebuilds, quiet run events 2026-11-01 23:33:12 +00:00
alan 3b996bdbc7 Share one minute clock across time labels and narrow shell and runs rebuilds
Relative-time labels follow one wall-minute RelativeTimeClock instead of a
timer per row, skip ticks while their tab is offstage and rebuild only when
their text changes. The shell rebuilds its top bar only for the focused
destination's published bar and its tab bar only for badge changes. Run
events that repeat a row's state no longer notify, and the runs list filters
and sorts once per build. Adds a rebuild/timer benchmark.
2026-11-01 23:29:39 +00:00
alan bdf70af7e8 Merge: folder picker for new chats 2026-11-01 21:52:28 +00:00
alan eed3806efb Add a home-restricted folder picker to the new-chat dialog
Server: list_directory returns a directory_listing (path, home, parent,
entries with is_dir/is_git_repo/hidden, truncated) confined to the server
user's home subtree after cleaning and resolving symlinks, refusing pseudo
filesystems and capping entries at 2000. Documented in docs/cli.md.

App: "Choose folder…" in the create dialog opens a picker (full-screen page
on phones, large dialog on wide windows, Material and Cupertino) with
breadcrumbs, filter, Show hidden, git badges, dimmed files, recent folders,
inline errors and "Start chat here". The probe app gains a folder fixture
for captures.
2026-11-01 21:51:48 +00:00
alan eadd017bdc Merge: capture kit and repo memory watchdog 2026-11-01 21:29:47 +00:00
alan a322e367da Artifact viewer: keep the preview between the top bar and the controls
Every preview (image, text, markdown, HTML, video) now fills the space between
the viewer's top bar and its bottom controls instead of passing behind them;
the insets are applied once here and removed for the content inside.
2026-11-01 21:22:36 +00:00
alan ea428d3c98 Add generic capture kit and repo-owned test memory watchdog
app/tool/capture: one Chrome DevTools capture CLI over the full-app fixture
(serve build or URL, private headless Chrome or --cdp attach, label/key/xy
clicks via Flutter semantics, type, press, scroll, screenshots, filmed
clicks with a canvas contact sheet, cleanup on exit/signal), README recipes
and an example script. The fixture entry gains ?theme=light|dark.

app/tool/memwatch: run.sh/full.sh watchdog moved from /tmp (output dir
created if missing, exit status propagated) plus install.sh for the legacy
/tmp/memwatch shims. app/AGENTS.md points tests at full.sh and UI review at
the capture kit.
2026-11-01 21:22:08 +00:00
alan b57b494959 Merge: pipeline page actions 2026-11-01 20:41:34 +00:00
alan a9fdedc1ea Pipeline page: Runs and Run as icon buttons; Runs works on phones
On a phone the pipeline detail was pushed above the shell, so Runs switched to
the Runs tab underneath it and seemed to do nothing; the detail now shows only
while the Pipelines tab is active. Runs (list) and Run (play) are icon-only
bar actions with their accessible names. Finishes run #230; adds a phone-width
regression test.
2026-11-01 20:41:34 +00:00
alan f8903e2f6d WIP: pipeline page Runs/Run icon actions (run #230) 2026-11-01 20:37:29 +00:00
alan 4503febb07 App icon: the Pipelines tab glyph in white
Replaces the coloured graph with the Pipelines tab's own glyph (Material
account_tree, outlined, taken from the MaterialIcons font) in white on the
dark background, across Android, iOS and web.
2026-11-01 20:03:26 +00:00
alan 3bfb3d6b44 Fix decide-after-finish refusal and run size loop data race
A run stays in r.active after finishRunState persists its terminal status
until its goroutine finishes notifying, so a decision in that window was
refused as "already active". decide now refuses only runs whose terminal
state is not yet durable; a finished run gets ResolveDecision's
already-decided / not-waiting answer, and an executing run is still refused.

Tests overwrote runner.artifactsRoot after Handler/newRunner had started
background goroutines (sizeLoop, session export jobs) that read it. The
root is now fixed at construction through newRunnerAt, which
HandlerWithOptions uses for Options.ArtifactsRoot, and tests configure it
there instead of mutating the field afterwards.
2026-11-01 18:58:14 +00:00
alan c41f5caa4f Merge: server-owned chat prompt queue, mid-turn delivery 2026-11-01 18:43:16 +00:00
alan 70cdf985c5 Show server-queued chat prompts from the server, with Remove
The thread reads the session's queued prompts from the chat_subscribe reply
and chat_queue frames: a reload draws them as Queued after the transcript,
a delivered one enters the transcript as Sent, a refused one becomes Not
sent, and Remove sends chat_unqueue. A prompt the server reports queued is
dropped from the device unsent store; the any-frame queued heuristic is
used only with a server that does not report its queue.
2026-11-01 18:42:10 +00:00
alan e42f9cc031 Send mid-turn chat prompts to the harness and queue the rest durably on the server
Claude Code (stream-json stdin) and Codex (turn/steer pinned to the active
turn) receive a prompt sent while a turn runs immediately. Other harnesses
(OpenCode) get a durable chat_prompt_queue row owned by the session: it
survives the last client detaching and a server restart, is delivered in
order when the turn ends with or without a client, and is deduplicated by
operation id. chat_subscribe carries the queue, chat_queue frames report
delivered/removed/failed changes, and chat_unqueue removes a waiting prompt.
2026-11-01 18:30:20 +00:00
alan d300fdc5a5 New app icon: a pipeline graph instead of the P
One stage forks into two parallel stages that rejoin in a finished ring, in
the app's palette on the dark background. Updates the Android adaptive,
themed and legacy launcher icons, the status-bar icon, the iOS icon set and
the web favicon and PWA icons, and adds the generator under tool/app_icon.
2026-11-01 18:02:34 +00:00
alan a83346276b Merge: runs no longer wedge on an exhausted session export 2026-11-01 17:27:05 +00:00
alan 603e9771bf Merge: fade-through tab transitions 2026-11-01 17:27:05 +00:00
alan b56a2eb72d Fade-through tab transitions, kept state and tests (finishes run #228)
Tabs fade through when switching main destinations and page tabs. Each page
keeps one widget structure whatever its state, so its element (scroll,
controllers, text) survives switches; curves are computed directly instead of
building a CurvedAnimation per frame; only the active and outgoing pages are
on stage, including under reduced motion. Adds FadeThroughStack tests.
2026-11-01 17:27:05 +00:00
alan d35739cb49 Release session export gates whose recovery is exhausted or overdue
An exhausted export recovery job left its run parked forever in the
export wait, reserving the workspace and refusing later scheduled runs
(runs 221/226: OpenCode sessions above the 8 MiB export bound are
always truncated, so every retry stays partial).

A gate is now releasable when its job is exhausted: the visit keeps its
partial/unavailable evidence and diagnostic (still repairable), the run
continues to its next stage or terminal, and the workspace is freed.
Gates older than 15 minutes with a pending, lease-expired or missing job
are exhausted by a bounded wait. The worker reconciles on its first
tick after startup and every 30 seconds, so existing wedged runs recover
after a restart. Truncation diagnostics now name the size bound.
2026-11-01 17:24:56 +00:00
alan d210ba2381 Merge main
# Conflicts:
#	app/lib/ui/motion/motion.dart
2026-11-01 17:15:28 +00:00
alan c385a1f72b WIP: fade-through tab transitions (run #228) 2026-11-01 17:15:17 +00:00
alan c742bb17f0 Merge branch 'main' into tab-pop-anim
# Conflicts:
#	app/lib/ui/adaptive/floating_destination_bar.dart
2026-11-01 17:05:54 +00:00
alan b1d149d872 Make floating tab entrances pop sequentially 2026-11-01 17:01:12 +00:00
alan bc3472e63c Merge: artifact viewer bar position and clicks; tab fade semantics 2026-11-01 16:55:14 +00:00
alan 5132da62a9 Artifact viewer bar: right above the tab bar and clickable
The viewer's action/pager bar added the inherited bottom clearance twice
(its SafeArea already applies it), floating far above the tab bar. On the
web an HTML preview's iframe passed behind the bars and, as a platform view,
took every click there; it now stops at the bars. Also keep floating tabs in
semantics while they fade in, which broke the badge announcements (5 failing
tests on main since the entrance animation landed).
2026-11-01 16:55:14 +00:00
alan 8687f0fc0d Merge commit '09389f18cb01effd9c855e5b91722ade4816395a' into tab-spacing-anim 2026-11-01 13:13:26 +00:00
alan 4007599c99 Animate and space floating tab bars 2026-11-01 13:13:15 +00:00
alan 09389f18cb Merge: expandable run title 2026-11-01 12:57:44 +00:00
alan 331509106c Expandable run title: full title on tap, pipeline link as an icon
Tapping the run detail's title expands it to the whole title and subtitle
with an icon button that opens the pipeline; tapping again, or another run,
collapses it. The expanded title is drawn in the overlay, anchored to the bar
and sized beside the actions, so its pipeline icon receives taps and the
actions stay visible. Other bars keep their title behaviour. Finishes run #224.
2026-11-01 12:57:44 +00:00
alan 6e6559235f WIP: expandable run title (run #224) 2026-11-01 12:43:27 +00:00
alan fea3d770b4 Increase floating tab icon sizes 2026-11-01 11:33:01 +00:00
alan 5346759665 Use native service as Android notification source 2026-11-01 10:01:16 +00:00
alan 2808378823 Keep turn documents out of the artifact viewer unless Debug is on
Opening a stage artifact paged through every visit's turn documents too,
although the list hides them; the viewer now pages through what the list
shows.
2026-11-01 08:32:10 +00:00
alan ea134b38f2 Merge: Android in-app notification service 2026-11-01 02:22:03 +00:00
alan 826e420423 Deliver server notifications from the Android app itself
A native foreground service keeps an authenticated websocket to the
connected server (handed over by the app on every connect), subscribes with
a replay cursor, shows each notification with kind-based channels and
grouping, opens pipelines:// links on tap, and clears taps, dismissals and
cross-device clears. It starts at boot and app launch, backs off and follows
network changes. Settings gains the delivery switch, status, notification
and battery-exemption actions, and the server's optional ntfy_enabled
toggle.
2026-11-01 02:21:22 +00:00
alan 4bb495ed63 Merge branch 'main' into pager-bar-overlap 2026-11-01 02:05:09 +00:00
alan 821d1a8836 Keep pager controls clear of floating bars 2026-11-01 02:05:06 +00:00
alan efb482465c Merge: app notification stream (ntfy optional) 2026-11-01 02:04:35 +00:00
alan d1846441cc Stream ntfy notifications to app clients over /connect
Record every notification published to ntfy (run outbox, stage notify
hooks, chat question/approval/reply) in a persisted app_notifications
outbox and stream it to subscribe_notifications clients with an after
cursor; clear_notifications and ack_attention clear across devices, as do
runs leaving waiting, deleted runs and answered chat questions. Add the
notify.ntfy_enabled setting (default on) to stop only the ntfy publish.
2026-11-01 02:03:58 +00:00
alan 6c7c32078c Merge commit '72128d53685269ff1e13d2c76c80b6276f7635ba' into sticky-section-clip 2026-11-01 01:50:32 +00:00
alan 72128d5368 Merge: relative times in lists keep updating 2026-11-01 01:50:24 +00:00
alan c20070be21 Merge main 2026-11-01 01:50:24 +00:00
alan 82af7b250f Keep relative times in the chat and runs lists up to date
A shared RelativeTimeLabel refreshes at the next minute/hour/day boundary,
pauses while the app is hidden and catches up on resume. It keeps the row's
time style (an unread chat's accent). Continues run #218.
2026-11-01 01:50:24 +00:00
alan 977407bcca Fix sticky section content overlap 2026-11-01 01:50:17 +00:00
alan 944a26ce1a Open run artifact groups by default
Turn documents are hidden behind the Debug toggle now, so the run's own
artifact groups (the run Artifacts tab and a stage's Artifacts section) start
open instead of collapsed.
2026-11-01 01:41:54 +00:00
alan f422d26e32 Add shell destination keyboard shortcuts 2026-11-01 00:34:54 +00:00
alan 8193626076 Restore activity row touch targets 2026-10-31 23:40:18 +00:00
alan 49afcba2d3 Preserve activity row layout changes 2026-10-31 23:39:27 +00:00
alan b80c267dd7 Merge: runs multi-select, delete and size sort 2026-10-31 22:20:06 +00:00
alan 266916f92a Runs: multi-select delete, run sizes and Largest-first sort
- Select mode (bar Select or long-press): per-row checkboxes, per-day
  Select all/Deselect all over finished runs only, "N selected" with the
  selection size, Delete and Done. Active runs get a disabled checkbox
  whose semantics give the reason.
- Native destructive confirmation, then delete_runs {run_ids} (batched by
  1000); the nested runs_deleted reply removes deleted rows and reports
  "Deleted N runs, freed X" plus refusals verbatim. runs_removed pushes
  remove rows and close an open detail; a deleted open run closes too.
  Delete run in the row and detail menus.
- size_bytes shown compactly in rows (0/absent = unknown, nothing shown),
  updated from run_event frames that carry it; Largest first sort (flat,
  unknowns last); the sort choice persists.
- Shared AppListRow gains selectionControl and onLongPress.
- Browser probe tool/runs_delete_probe.mjs; fixture server implements
  delete_runs/runs_removed.
2026-10-31 22:19:36 +00:00
alan 7504fa5f94 Merge: restore composer focus when the window returns 2026-10-31 22:16:43 +00:00
alan 7ec92e1de5 Return focus to the chat composer when the desktop window comes back
On web the engine closes the text connection on the editing element's blur,
which the browser fires just before the window blur, so the field is already
unfocused when lifecycle inactive arrives and FocusManager's own suspend and
resume restores only the route scope. Remember whether the composer held (or
had just lost) focus when the window left, and refocus it on resume, keeping
the caret and selection, unless another control took focus or a dialog,
sheet or route covers the chat. Desktop hosts only, so phones never get an
unasked on-screen keyboard.
2026-10-31 22:16:21 +00:00
alan 4d4aac5f81 Merge: run sizes and delete_runs 2026-10-31 22:11:56 +00:00
alan 31e89e872b Add run size_bytes and delete_runs to free disk space
Every run summary carries size_bytes (artifact tree, server-created Pi
session directories and an estimate of the run's database rows), cached in
pipeline_runs.size_bytes, invalidated by triggers, measured when a run
finishes and backfilled in the background. delete_runs removes terminal
runs with every scoped row and server-owned file, refuses active ones with
a reason, and pushes runs_removed to subscribers. pipelines runs rm is the
CLI form; retention apply now shares the complete row deletion.
2026-10-31 22:11:14 +00:00
alan 04d04cfe79 Merge: report a busy chat session on subscribe 2026-10-31 22:09:33 +00:00
alan 429e175b95 Report a busy chat on subscribe after a reload
The room that records a server-run turn is torn down when its last client
leaves, so a page reload re-subscribed to a new room that no longer knew the
turn was running and never replayed the step-started marker. Claude Code does
not re-announce a running turn to a new stream either, so the activity row and
Stop control vanished until the next streamed delta.

chat_subscribe now also replays the marker when the room's stream announced a
turn (CLI-originated or re-announced on attach) or when the broker reports its
own turn in flight through the optional chatTurnReporter (Claude Code reads its
in-process running flag; the chat manager routes it without I/O).
2026-10-31 22:09:11 +00:00
alan 1c52981482 Merge: search fills the width; stage page width test 2026-10-31 22:01:51 +00:00
alan 0ceafcb6d7 Search results and pill span the pane; lock stage page to the full detail pane
Remove the 840 px Search reading cap (results column and bar pill) so both
fill the pane at Fold and wide widths. Add a width test for the stage page
at 880 and 1400 and deep-link/query flags to the search probe entry.
2026-10-31 22:01:28 +00:00
alan 063c1144a1 Merge: stop re-sending streamed Claude text as a second part 2026-10-31 20:38:14 +00:00
alan d7ad468b78 Stop repeating streamed Claude text when assistant blocks arrive split
Claude Code emits one assistant event per content block, so a text block that
streamed at index 1 after a redacted (empty) thinking block arrives alone at
index 0 of its event. The translator aligned completed blocks by that local
index and cleared stream state after every event, found no streamed text, and
re-emitted the whole paragraph as a new text part. Claim the streamed block of
the same kind whose text prefixes the completed one, and keep stream state for
the whole message (reset on message_start or a new message id).
2026-10-31 20:37:48 +00:00
alan 62b56e66d0 Serve one web app: route the tailnet address to the installed proxy
./install retires the pre-native standalone web agent (net.awan.pipelines.web,
kept as .disabled) and, when the public web URL is a tailnet HTTPS address,
points tailscale serve at the installed web proxy, failing the install if it
cannot.
2026-10-31 20:26:16 +00:00
alan cc3d450696 Merge message delivery status and refresh safety 2026-10-31 20:03:57 +00:00
alan 8d147ac83b Show message delivery state and keep unsent messages across reloads
A sent message is stored on the device until the server accepts it, so a
reload mid-request no longer loses it: on reopening, a stored intent the
history records is cleared as sent, otherwise it shows as Not sent with
Retry (same operation id) and Edit. The operator's bubble shows Sending,
Sent (newest only), Queued or Not sent. A live refusal keeps the old
contract (exact draft and chips back in the composer, unchanged re-send
reuses the id) and marks the bubble Not sent with Retry. On web, leaving
or reloading the page while a prompt is in flight asks first.
2026-10-31 20:03:29 +00:00
alan 23ff72934e Use GitHub's diff colours for changed lines and +/- counts
Added and removed lines take GitHub's green and red tints, with the code in
the label colour and the +/- marker and counts in GitHub's strong green and
red, in both themes and hosts.
2026-10-31 19:54:48 +00:00
alan 4bc99f490b WIP: message delivery status and refresh safety; fix reconcile listener recursion
The transcript listener read the lazily built _controller while _attach was
still building it (load() notifies synchronously), so it built another
controller, recursively, until the test process ran out of memory.
2026-10-31 19:54:48 +00:00
alan 53be2e5334 Install and start the server only together with the web app
./install builds the web app and the server before replacing either, and
fails without Docker or on a failed build, leaving the old pair in place.
The supervisor and start refuse to run the server when the web app is not
installed.
2026-10-31 19:08:25 +00:00
alan 24956266d8 Merge branch 'worktree-agent-aacd07191b682c8cd' into integrate/para-spacing 2026-10-31 17:06:38 +00:00
alan 9de87d5a2b Separate chunked reply paragraphs with an empty-line gap
Consecutive text parts of an agent turn (including folded messages) and
markdown blocks within a part are now separated by ~0.9x the scaled body
font size; a heading stays 8px from what it introduces. Adds a ?paras=1
chunked reply to the composer probe and gap tests at 1x/2x.
2026-10-31 17:05:10 +00:00
alan 3be728296c Merge branch 'worktree-agent-a77fe68a62a10ce30' into integrate/notify-marked 2026-10-31 16:55:40 +00:00
alan f5dc6f7c91 Merge branch 'worktree-agent-a7e9b8048d7b8edf3' into integrate/notify-marked 2026-10-31 16:55:40 +00:00
alan 44ea45150f Compact floating tab bars with circular selection and equal edge gaps
The floating tab bar is now sized to its icon tabs at the bottom right on
every width, the selected icon sits in a tinted circle on both hosts, and
the gap from each outer circle to the pill's sides equals the gap to its
top, bottom and neighbours.
2026-10-31 16:53:24 +00:00
alan 0c34704f06 Attach Codex and Claude chat backends lazily after startup
A harness missing at server start (e.g. codex mid-reinstall) is probed
again on chat_backends and on session create/adopt, throttled to once
per 10s while unavailable. Attached clients are never replaced.
2026-10-31 16:52:31 +00:00
alan d0eb91767f Merge branch 'worktree-agent-af8a7475a38f6de50' into integrate/notify-marked 2026-10-31 16:52:24 +00:00
alan b109ab3e06 Notify on run end only for runs marked Notify me
Auto runs no longer alert on failure or success; only notify_mode on does,
unless the run_finished setting (now 'Notify when any run ends', default off)
opts into every run end. Waiting still notifies auto and on runs. The setting
is stored under a new key so a value saved under the old meaning is ignored.
2026-10-31 16:52:04 +00:00
alan 9c4fd47a99 Merge branch 'worktree-agent-a3f73161a4ac21646' into integrate/graph-labels 2026-10-31 16:37:08 +00:00
alan fb1935a62d Keep graph edge labels clear of nodes and other labels
The linear layout used by the definition and run graphs placed each
outcome label at the middle of its widest run with no collision check,
and the run graph measured only the label text while rendering an order
badge in front of it, so taken labels ran into the next node.

Labels now try positions along their own route (horizontal runs above
and below, sliding along, then vertical runs) and take the first whose
box stays 4px clear of every node and earlier label, preferring spots
off other wires. If a label finds no spot, the layout widens its column
gaps and lanes and runs again; a last-resort shelf below the drawing
never overlaps. The run graph measures the exact badge+label widget it
renders, keyed by edge id.
2026-10-31 16:36:48 +00:00
alan 41a9e99da8 fix(app): selecting another item closes the previous item's pane page
On a wide split window a run's stage page (or an artifact, a file) opens
inside the detail pane's own navigator. Selecting another run kept that
page on top, so the pane still showed the old stage. ListDetailPanes now
takes the selected item's identity (run, chat or pipeline id) and the
pane navigator pops back to the item when it changes.
2026-10-31 16:30:05 +00:00
alan 4235cd858f Merge branch 'worktree-agent-a3db4d35a1277b036' into integrate/delivery-catchup 2026-10-31 15:30:36 +00:00
alan be932c846f Catch up a moved main in the delivery gate before landing
When canonical main is not an ancestor of the item HEAD, the gate now
merges main into the item workspace under the delivery lock, re-runs the
declared checks on the merged commit, and fast-forwards main to it. A
conflicting merge is aborted with the workspace verified unchanged and a
diagnostic naming the files. Successful catch-ups are logged.
2026-10-31 15:24:12 +00:00
alan f84948153b feat(app): add debug toggle for turn documents 2026-10-31 15:22:33 +00:00
alan 6962d0bfe0 Merge branch 'main' into run-sort-sheet-check 2026-10-31 15:16:43 +00:00
alan 5adcc0a379 fix(app): use native selected affordance in runs sort sheet 2026-10-31 15:15:45 +00:00
alan 77ba068c03 Merge branch 'main' into run-chat-info-header 2026-10-31 15:10:50 +00:00
alan f7ff589ab5 fix(app): use shared header for chat information sheet 2026-10-31 15:10:46 +00:00
alan ea498e88db Merge branch 'worktree-agent-a992ffc22d3f335ed' into integrate/tabs-v2 2026-10-31 14:58:19 +00:00
alan a1c4c1c402 feat(app): icon-only tab bars, Settings from the Pipelines bar, main bar bottom right with detail bars above it
Settings leaves the tab bar (Pipelines, Runs, Chat, Search) and opens as a
page from a gear in the Pipelines bar, keeping /settings, its keys and a Back
to Pipelines (also the system Back). Every floating tab bar shows icons only,
named for assistive technology. On wide windows the shell's tab bar stays at
the bottom right; a split detail learns its height plus a 12px gap, so its
tabs or the chat composer float above it, and pages the detail opens (the
stage page) stay in its pane through its own navigator.
2026-10-31 14:57:56 +00:00
alan 6b11b136db fix(app): meaning colours for common outcomes; detail pages fill the pane
Timeline outcomes: success-like words are green, failures red,
rejections orange, retries/advisories amber, skips/cancellations grey;
a second word of the same family takes the family's next shade and any
other word a distinct hue outside the families, so different outcomes
still never share a colour.
Run detail, stage page and pipeline Summary no longer cap their width
at 840: on an unfolded foldable the sections fill the pane. The unused
ReadingWidth helper is removed.
2026-10-31 14:36:15 +00:00
alan 33cb9ca121 Merge branch 'main' into run/artifacts-split 2026-10-31 12:56:19 +00:00
alan acf74116d7 feat(app): separate turn documents from artifacts 2026-10-31 12:56:16 +00:00
alan cc07302868 Merge branch 'worktree-agent-ae3f1fe9138e563be' into integrate/r3-rest 2026-10-31 12:51:39 +00:00
alan ab64f55bf2 Merge branch 'worktree-agent-aab11f4f1fe3dff6b' into integrate/r3-rest 2026-10-31 12:51:39 +00:00
alan 6987a8992e Merge branch 'worktree-agent-a099cbf073f6e9e51' into integrate/shell-wide
# Conflicts:
#	app/lib/features/runs/ui/run_detail_tabs.dart
2026-10-31 12:51:39 +00:00
alan d1aa36163a Sync Needs-you dismissals and chat read state across devices 2026-10-31 12:47:25 +00:00
alan b4ab9d72da Notes: final test count 2026-10-31 12:45:11 +00:00
alan 8d9a21c310 Merge branch 'worktree-agent-a75e04ded5a42e4fb' into integrate/detail-bodies
# Conflicts:
#	app/lib/features/runs/ui/run_detail_timeline.dart
2026-10-31 12:42:39 +00:00
alan dbfecaa201 Float detail tabs at the bottom of the split detail pane and keep its bars below the status bar 2026-10-31 12:41:18 +00:00
alan 75fb0fc6e5 Merge branch 'main' into worktree-agent-aab11f4f1fe3dff6b
# Conflicts:
#	app/test/features/runs/ui/run_list_row_test.dart
2026-10-31 12:36:49 +00:00
alan 251a15f8f8 Merge branch 'main' into worktree-agent-aab11f4f1fe3dff6b 2026-10-31 12:34:16 +00:00
alan 7351952b98 Notes: templates, sheets, dialogs, settings and artifact error fixes 2026-10-31 12:34:05 +00:00
alan bd370c9956 Merge branch 'main' into run/formats-wording 2026-10-31 12:29:16 +00:00
alan fe24f228fe fix(app): one relative-time style, day-aware durations, consistent visit wording
Review r2 findings P2-4, P2-5, P3-13: a shared relative-time helper for
every list row's time, formatDuration switches to days past 24h ('9d
16h'), the stage page uses one visit numbering, drops a repeated stage
heading and fixes '1 files', and search run hits read 'Run 1'.
Implemented by pipeline run #205/#207 (Terra); its UIReview blocked on a
fixture without timestamps, verified by the manager.
2026-10-31 12:29:16 +00:00
alan 1bf2ae41c4 fix(runs): colour timeline outcomes by name, not by status
A completed step's outcome chip took the success colour, so 'rejected'
read green beside 'success'. Outcome chips now get one colour per
distinct outcome name in the run (assigned by first appearance, from a
well-separated hue list that continues by the golden angle), so equal
names match and different names never share a colour. No outcome word
is wired to a colour; the status glyph still shows the step's state.
2026-10-31 12:28:54 +00:00
alan b4273a6492 Flatten run, stage and pipeline detail bodies; facts grid, wide run chrome, pipeline Summary rows
Detail bodies are flat on the page on both hosts (no Cupertino inset groups,
pinned headings on the page colour). Run and pipeline Summary share a
FactsGrid that fills its width (no centred single-fact card). Missing run
graph is one muted line. Beside a list the run tabs and header share one
row; the duplicate Pipeline fact and the decision card-in-card are gone.
Pipeline Summary: facts grid, Schedules heading with Add (no inline Refresh
or paragraph), versions as AppListRow. Timeline rows are AppListRow.
2026-10-31 12:25:21 +00:00
alan f4b3ef17cc Persist and broadcast shared attention acknowledgements 2026-10-31 12:23:51 +00:00
alan 1423159839 Note the run detail tabs test update 2026-10-31 12:20:37 +00:00
alan 05a06e8f08 Drop unused test imports 2026-10-31 12:19:03 +00:00
alan e5790c649f Merge branch 'main' into worktree-agent-aab11f4f1fe3dff6b 2026-10-31 12:13:34 +00:00
alan e43cc867f9 Sheets, decision options, usage, settings and artifact errors: review r2 batches H and L
Shared AppSheetHeader (title + Done) for the Runs filter/sort and Needs you
sheets; Runs filter single-choice groups as check rows and statuses in
sentence case; Cupertino decision options as a check list; run action sheet
titled with the run; usage page without the duplicate title and with honest
empty states; Settings Reconnect wording, compact notifications row and a
tinted Cupertino Save workspace; friendly artifact preview failures with
Retry.
2026-10-31 12:13:34 +00:00
alan e7c5e7fd26 Merge branch 'main' into worktree-agent-a099cbf073f6e9e51 2026-10-31 12:09:47 +00:00
alan 2c4c4891ea Keep the shell tab bar over the list pane on wide splits; cap schedules and reading bodies; share the empty-pane placeholder 2026-10-31 12:09:47 +00:00
alan 2612d6c16e Merge branch 'main' into worktree-agent-a75e04ded5a42e4fb 2026-10-31 12:09:44 +00:00
alan 06a52298b1 WIP: flat detail bodies, facts grid, wide run chrome, pipeline summary 2026-10-31 12:09:44 +00:00
alan 480f8843eb Polish adaptive app chrome 2026-10-31 06:02:02 +00:00
alan d49ab0667b Templates: shared list rows, named detail bar, compact create, 720 cap 2026-10-31 05:20:00 +00:00
alan 06f6eda360 Merge branch 'worktree-agent-a82ec5e9fdf8ca159' into integrate/gaps-e
# Conflicts:
#	app/test/features/search/search_bar_layout_test.dart
2026-10-31 04:31:13 +00:00
alan e34fa1050e Close the chrome gaps: content behind bars on Templates, run detail, stage page and Schedules; Search field fills the bar
- SegmentedBar.titleWidget (and ShellBar/ShellBarSpec titleWidget,
  backgroundColor): a bar's main pill can be an input in place of the title;
  Search uses it so the field fills the bar with Kind and info, capped at the
  result column width so field and results share edges on wide windows.
- Templates page/frame drop the top SafeArea again (BelowTopBar gate,
  TopBarNotices banners); Cupertino uses the grouped background.
- Settings on Cupertino in the shell publishes the grouped background so the
  bar scrim matches the page (no white band or seam).
- TopGlassStrip: the run detail header (status, actions, decision, notices)
  and the Schedules search/filter toolbar float as glass under the bar; tabs
  and lists scroll behind both.
- Stage page: stage title and Visit/Run subtitle in the bar, facts lead the
  Summary scroll, sections scroll behind the bar under floating tabs.
- Tests for content-behind-bar on each page and the title-widget bar mode;
  notes/chrome-gaps-fixes.md.
2026-10-31 04:27:35 +00:00
alan 7925908012 Merge branch 'main' into run/viewers-glass 2026-10-31 04:26:22 +00:00
alan fde086cc4a feat(app): glass viewer bars, graph controls and immersive image viewer
Review findings F12, F13, F25 and F1 for viewers: the artifact viewer's
actions/pager and the Changes pager float as glass pills over content,
file facts move to the top bar, graph overlay controls are one glass pill
(duplicate fullscreen glyph removed), the image viewer is immersive, and
diff/artifact/graph views let content pass behind the bar. Implemented by
pipeline run #204 (Terra); its Review stopped after three rejections, the
last being an empty glass bar for a single unresolved artifact, which the
manager fixed here with a regression test.
2026-10-31 04:26:22 +00:00
alan 3c56db37fd Share one list row across runs, pipelines, chat, search and schedules
AppListRow (Material + Cupertino) with avatar, bold title and trailing
time, one muted line, one overflow menu style, inset dividers, selected
and emphasised states and a compact mode. Pipelines get a legible initial
avatar, schedule rows shrink to two lines with Edit/Pause/Delete in an
overflow menu, and the shell chat list scrolls behind the bar.
2026-10-31 04:15:01 +00:00
alan 6ab8551348 Merge branch 'worktree-agent-a94781e88db712412' into integrate/chrome-a
# Conflicts:
#	app/lib/application/templates_destination.dart
#	app/lib/features/templates/screen.dart
#	app/lib/features/templates/ui/templates_frame.dart
2026-10-31 03:39:49 +00:00
alan c6c6dcfe18 fix(app): float content behind top bars and give each wide pane its own bar row
- Top-bar clearance helpers (withTopBarClearance, withBarClearance,
  SliverTopBarClearance, BelowTopBar, TopBarNotices); shell, DetailPane and
  the runs/pipelines/templates/artifacts/stage definition/filter/usage pages
  drop their top SafeArea and pad their own lists, pinned headers pin at the
  inset.
- Wide windows: the shell bar narrows to the list pane (ShellPaneSplit) and
  the open item's bar shares its row; item tabs float at the pane's top
  (PageTabsEdge) instead of stacking on the shell's tab bar; the floating
  tab pill no longer swells over leftover media padding.
- Pipeline detail is a DetailPane on wide too; Run/Runs move from FABs into
  the bar's actions; name and identity live in the title pill.
- Run detail title pill shows the real title with Run N, pipeline and
  version (the pill links to the pipeline); the body keeps only status,
  actions and notices; standalone detail draws the same segmented bar.
- One Runs tab badge: attention outranks running.
- Tests for content-behind-bar padding and the no-stacking wide layout;
  notes/app-chrome-fixes.md.
2026-10-31 03:36:22 +00:00
alan 696f5dff3b Merge branch 'worktree-agent-a349ca4a1fb5fc7a3' into integrate/pages 2026-10-31 03:32:09 +00:00
alan 3704d98d4d Search field in the bar, refresh and Back as bar pieces, even Cupertino actions (F8/F28/F10/F11/F20/F1)
- Search: field, compact Kind menu and syntax help in the bar's actions pill;
  bounds shown only when truncated; rows with bold title, kind tag and one
  muted line; results run behind the bar in a start-aligned 840 column.
- AppSearchField: one search field per platform (Search, Schedules, Runs filter).
- BarIconButton: whole 44pt/48dp bar actions; Runs, bell and Pipelines icons
  use the same 44pt targets on Cupertino.
- Templates and Schedules pages put Refresh in the bar and use the shared
  round SegmentedBackButton; Templates shows one Back at a time.
- PipelineBackButton is the round segmented Back.
- notes/pages-fixes.md records the batch, tests and evidence.
2026-10-31 03:31:25 +00:00
alan 1232aea6ad Merge branch 'main' into run/glass-polish 2026-10-31 03:23:08 +00:00
alan 5bed73e658 fix(app): polish glass diff and pipeline controls 2026-10-31 03:22:52 +00:00
alan 9d522cc3a3 Merge branch 'worktree-agent-af0cf2f1be0c96f0d' into integrate/chat-chrome 2026-10-31 03:15:04 +00:00
alan 92095f8a4e chore(app): chat probes take platform/theme/tasks queries; note chat chrome fixes 2026-10-31 03:14:35 +00:00
alan 3641083bcc Merge branch 'main' into run/section-headings 2026-10-31 03:07:57 +00:00
alan edecc59bfc style(app): quiet section headings without bands or stripes
Review finding F4: section headings were a solid surfaceContainerHighest
band with a 3px accent stripe. They are now a muted grouped-list label
on the page background; pinned headings keep a light translucent scrim.
Implemented by pipeline run #201 (Code/Review on Terra); its UIReview
blocked on a stale probe, verified by the manager instead.
2026-10-31 03:07:57 +00:00
alan 3ec580c2d9 Restyle Settings as flat grouped list sections (F9) and scroll it behind the bar (F1)
Servers become rows with a selection mark, addresses as subtitles and a
Use/Edit/Remove menu plus an Add server row; the connection is a status row
with address and Reconnect/Disconnect rows; Templates and Schedules are
chevron rows in a Library group. Material groups are flat surfaceContainer
surfaces with primary titleSmall headers (no Cards); Cupertino uses
inset-grouped sections on the grouped background, switches for the ntfy
choices. The trust warning is a footer, helper copy is shortened, Save
workspace is a legible tonal/plain button, and the column starts at the
bar's inset (max 720) instead of being centred. The page pads by the top
media padding instead of a top SafeArea.
2026-10-31 03:07:20 +00:00
alan 481b1f6fff fix(app): float the chat composer as glass, cap the reading width, tidy chat chrome 2026-10-31 03:04:23 +00:00
alan 13c4035175 fix(turns): keep the run task in every stage's input
Later visits' input.md held only the previous stage's output, so the
operator's task reached only the first stage; when a Prepare stage
summarised (paths, HEAD), Code never saw the task or its acceptance
checklist and either blocked (run #202) or did part of it (#195, #197,
#198). Later inputs now carry the run prompt under '# Run task' (headings
demoted) before '# Previous turn output'.
2026-10-31 02:52:16 +00:00
alan ea0f22dfc7 fix(app): keep round-3 run rows within narrow large-text widths
The trailing relative time could not shrink, so a 320px row at 2x text
overflowed; it now keeps at most 40% of the title line and ellipsises.
Update the pipelines screen test for rows that no longer show the run
number or a no-runs line.
2026-10-31 02:19:02 +00:00
alan c9d5951678 Merge branch 'main' into run/lists-polish-r3 2026-10-31 02:11:27 +00:00
alan 6a7dfae2a1 polish compact pipeline and run lists 2026-10-31 02:11:24 +00:00
alan af16551f6d Merge branch 'worktree-agent-a99db48531c8c963c' into integrate/floating-tabs 2026-10-31 01:51:13 +00:00
alan 963adec122 Float glass tab bars everywhere the app has bottom tabs
One floating frosted tab bar (host NavigationBar / CupertinoTabBar in the
shared GlassPill) replaces the NavigationRail, the Cupertino sidebar and the
run detail, stage page and pipeline detail tab strips. Below 600px it spans
the width minus 16px margins; wider it is sized to its tabs at the right edge.
Content keeps the full width, scrolls behind the bar and learns its height as
bottom media padding; lists pad their end clear of it and FABs sit above it.

The bar now sizes itself from its own constraints instead of the screen size,
which fixes the widget_test failure where a MediaQuery without a size gave it
negative width constraints.
2026-10-31 01:50:42 +00:00
alan 24a9a61219 Merge branch 'main' into run/lists-polish-r2 2026-10-31 01:28:37 +00:00
alan faae90e9aa polish compact pipeline and run lists 2026-10-31 01:28:34 +00:00
alan 5fd42e803e test(app): cover floating destination bar insets 2026-10-31 01:16:14 +00:00
alan 19d27d102f Merge branch 'main' into run/floating-tabs 2026-10-31 01:04:45 +00:00
alan 2542791a82 fix(app): keep the polished run and pipeline lists usable in narrow panes
Run #196 landed list polish that broke a 640px window: the list pane is
~127px there, so the new pipeline icon overflowed, the run row's centre
landed on its new actions menu (a tap opened the menu instead of the
run), and the new loading/empty states overflowed short panes. Narrow
pipeline rows drop the icon and chevron, run rows show their menu only
from 280px (the detail carries it), and the state blocks scroll.
2026-10-31 01:03:47 +00:00
alan 7b3ca1929e Merge branch 'main' into run/lists-polish-r1 2026-10-31 00:55:36 +00:00
alan 63fb903518 style(app): apply dart format to chat conversation files
Formatter-only output (verified identical to dart format of the
previous tree), committed so pipeline deliveries see a clean checkout.
2026-10-31 00:55:11 +00:00
alan 4d8f9fd713 feat(app): add floating shell destination bar 2026-10-31 00:47:17 +00:00
alan dc808b4d9a Merge branch 'main' into run/lists-polish-r1 2026-10-31 00:36:21 +00:00
alan 773653f270 polish runs and pipelines lists 2026-10-31 00:36:17 +00:00
alan 2b20233e44 Merge branch 'run/artifacts-collapsed' into integrate/bars-artifacts 2026-10-31 00:29:54 +00:00
alan 3501b31172 Merge branch 'worktree-agent-a5d62c9e29fb46c27' into integrate/bars-artifacts 2026-10-31 00:29:54 +00:00
alan 648701016f Merge branch 'main' into run/artifacts-collapsed 2026-10-31 00:22:14 +00:00
alan 35caf532b7 fix(app): collapse run artifact groups by default 2026-10-31 00:22:11 +00:00
alan 0582bfc34f feat(app): segmented glass top bar across the app
Extract the chat's segmented bar into lib/ui/adaptive (SegmentedBar,
GlassPill, SegmentedBarOverlay) and use it for the shell bar, DetailPane
and every page-level bar. Pieces are frosted glass over a fading scrim;
only pills take taps. Actions keep their natural width so the title gives
way before a model name. The chat transcript scrolls behind its header.
2026-10-31 00:21:27 +00:00
alan b00dff864c feat(chat): frame attachment thumbnails with a subtle hairline
Sent images and composer thumbnails share ChatAttachmentFrame: rounded
corners plus a faint outline in the host's outline role, so a dark
screenshot no longer melts into a dark page. Adds a web probe that
renders the streaming activity line at several text sizes.
2026-10-31 00:21:22 +00:00
alan ef07c95b0c fix(claude): list background commands and agents as running tasks
A Bash call with run_in_background and an Agent call return at once
('Command running in background…' / 'Async agent launched…'), so the
chat's task list counted them finished immediately and showed 0 tasks.
They now stay running until Claude Code's task notification (the
<task-notification> text or the SDK's task_notification message)
reports completion, with the exit code from its summary.
2026-10-31 00:16:06 +00:00
alan 6dbfdc6e64 fix(chat): centre the pending dots on the activity text
The dots were period glyphs sitting on the baseline, so they read low
beside the label. They are now round dots sized from the surrounding
text, vertically centred with it and scaling with it.
2026-10-30 23:54:22 +00:00
alan 4a85a12cf7 feat(chat): segmented chat header with back, title and model pills
The open conversation draws its own bar of separate rounded pieces: the
platform Back in a circle, a title pill with the folder that opens the
chat information, and a pill with the model and mode controls. Detail
pages drop only their app bar for it, keeping the body mounted.
2026-10-30 23:43:00 +00:00
alan 498c6f17a6 Add server notification settings with app checkboxes
Persist three global ntfy switches in server_settings: run_finished
(default on: auto-mode runs notify on success, read inside the
transition transaction; on/off modes unchanged), chat_needs_you
(default on: gates chat question/approval alerts) and
chat_reply_finished (default off: one alert per finished assistant
turn). Expose notification_settings / set_notification_settings over
the websocket protocol, add a Phone notifications section with
Material and Cupertino checkboxes in Settings, document the settings,
and keep the cli, tui, stage and pipeline test packages from
inheriting a real ntfy configuration.
2026-10-30 21:36:27 +00:00
alan 39d9150c3a Merge branch 'worktree-agent-ae487572986d7a387' into integrate/chat-ntfy-attachments 2026-10-30 21:05:32 +00:00
alan 680471c77a Merge branch 'worktree-agent-a3f3a70130986ac5d' into integrate/chat-ntfy-attachments 2026-10-30 21:05:32 +00:00
alan dab6e8a2a7 Merge branch 'chat/session-row-redesign' into integrate/chat-ntfy-attachments 2026-10-30 21:05:32 +00:00
alan 4c4dcbbd14 feat(chat): contact-list chat rows with avatar, time and unread emphasis
Rows lead with a circular harness avatar, put the time beside the title,
collapse metadata into one muted model · folder line and trail the
actions menu. Unread chats are bold with an accent time and dot, running
chats badge their avatar, and Star moves into the menu.
2026-10-30 21:05:24 +00:00
alan 8c421952db feat(chat): show sent images as thumbnails with a full-screen viewer
Operator-attached images render as rounded thumbnails above the user
bubble and open a zoomable Material/Cupertino viewer. Inline data: URIs
decode locally; file:// attachment-store URIs load through the new
chat_attachment_image websocket request, which serves only regular image
files directly inside the private attachment store (os.Root, <= 4 MiB,
sniffed raster types). Missing files show an 'Image no longer available'
placeholder; other files keep the file row.
2026-10-30 20:53:03 +00:00
alan 40ba2ac117 Open ntfy notifications in the app and notify chats that need the operator
Run notifications now always click through to pipelines://run/<id>; a valid
PIPELINES_WEB_PUBLIC_URL adds an "Open in browser" ntfy view action instead
of replacing the click. Queued rows derive links from the run id at delivery,
so legacy rows holding a web URL still open the app.

Unresolved chat questions/forms and permission requests publish one async,
bounded notification to the system destination (pipelines://chat/<id> plus the
browser action), deduplicated per form/request id across reconnects and
replays. stage.PublishNtfy gains optional, strictly validated view actions.
Server tests now clear the operator's real ntfy environment.
2026-10-30 20:40:06 +00:00
alan 0aa0f9edc9 feat(app): open chats from pipelines://chat/<id> notification links
The app routes pipelines://chat/<id> to that chat, alongside the
existing pipelines://run/<id>, and Android registers the chat host so a
tapped ntfy notification opens the app on it.
2026-10-30 20:35:06 +00:00
alan 44b2cff347 fix(chat): Return breaks lines on phones and align the activity line
On Android and iOS the keyboard's Return now inserts a newline and the
Send button sends; desktop keeps Enter to send. The Material activity
line drops TextButton's inset so it starts at the answer's edge now that
replies have no bubble.
2026-10-30 20:07:27 +00:00
alan 027c2f800e feat(chat): ChatGPT-style transcript and composer
Agent replies sit on the page without a bubble and get a copy control;
the operator's turn is a neutral rounded bubble; the composer is one
filled pill with +, a borderless field and a round Send, and its
placeholder names the chat's folder. Also fixes two picker tests left
stale by the native picker.
2026-10-30 15:56:39 +00:00
alan 962b358af0 feat(chat): attach files on Android and iOS with the native picker 2026-10-29 20:11:13 +00:00
alan 0c5816bb08 fix(chat): keep the file input in the layout so the picker opens 2026-10-29 19:58:51 +00:00
alan a828c44ce9 fix(chat): place the activity chevron beside its text and space it from the bubble 2026-10-28 22:14:54 +00:00
alan 8dbf4bc4a7 Record verified stable activity and attention APK publication 2026-10-28 16:46:32 +00:00
alan 7027da4248 Keep chat activity stable in one live disclosure and distinguish unread attention 2026-10-28 16:45:05 +00:00
alan e0317574de Merge commit '985cc355' 2026-10-28 16:33:22 +00:00
alan 985cc35516 Fix chat session unread attention state 2026-10-28 16:32:33 +00:00
alan 48fdeaff97 fix(app): cap the list width on very wide monitors 2026-10-26 18:51:44 +00:00
alan 56f18acf78 fix(app): close the artifact viewer with Escape 2026-10-26 18:41:44 +00:00
alan 41a3be8715 Keep web Material styling and preserve visible installer access URLs 2026-10-26 18:37:13 +00:00
alan 48c29fd1ff Record verified harness title icons APK publication 2026-10-26 02:24:12 +00:00
alan 5df2a7e776 Show harness identity beside chat titles and keep only the actionable star 2026-10-26 02:19:57 +00:00
alan 6111a6da7d Record verified compact chat rows APK publication 2026-10-26 00:07:40 +00:00
alan f201b834d4 Place chat recency and actions beside row metadata 2026-10-26 00:02:50 +00:00
alan 5b3268b49d Record verified website and APK UI follow-up publication 2026-10-25 23:48:10 +00:00
alan 121ace1cee Complete prompt presets, body-priority panes and clearer chat and stage layouts 2026-10-25 23:11:06 +00:00
alan de1b62791f Merge commit 'bd256ad1' 2026-10-25 21:55:55 +00:00
alan 26840d82f6 Merge commit 'ca6a0516' 2026-10-25 21:55:38 +00:00
alan fff0ca71fd Merge commit '661dfc66' 2026-10-25 21:55:28 +00:00
alan a485ccecb1 Move live background tasks into a composer badge and modal 2026-10-25 21:53:19 +00:00
alan 661dfc6668 feat(app): add prompt presets to chat creation 2026-10-25 21:51:53 +00:00
alan bd256ad163 feat(app): structure chat session row information 2026-10-25 21:48:52 +00:00
alan ca6a05167b Improve recorded visit heading hierarchy 2026-10-25 21:48:38 +00:00
alan f1e2270ed2 feat(app): default new chat prompt to off 2026-10-25 21:42:02 +00:00
alan 9c9888c0b6 feat(app): render chat session row metadata on separate lines 2026-10-25 21:36:05 +00:00
alan 96178570e5 Record verified shared-pane and Enter keyboard release 2026-10-25 21:15:47 +00:00
alan 7e9ba9ac25 Unify flexible list-detail panes and highlight active pipelines and runs 2026-10-25 21:04:12 +00:00
alan 6501d3e12e Send chat messages with Enter and use Shift+Enter for newlines 2026-10-25 20:28:14 +00:00
alan 35d5924ec6 Record verified web and APK chat feedback release 2026-10-25 19:43:29 +00:00
alan 18d43cadc3 Show an animated assistant bubble before response tokens 2026-10-25 17:38:56 +00:00
alan a58d820d43 Highlight the active chat in session lists 2026-10-25 17:17:43 +00:00
alan 7fe106b426 Allow authorized device testing and record Pixel Back verification 2026-10-25 17:04:19 +00:00
alan 2cbdb4de14 docs(app): record chat modes deployment and APK 29882413 2026-10-25 16:22:34 +00:00
alan f57c8023d5 Merge branch 'chat-reasoning-chip' 2026-10-24 18:30:20 +01:00
alan e772357231 Merge branch 'chat-transcript-cache' 2026-10-24 18:30:17 +01:00
alan 6d430948a6 feat(chat): per-chat permission modes for Claude, Codex and OpenCode 2026-10-24 18:16:10 +01:00
alan 0a19ef229f Show a reopened chat's last transcript while it refreshes
ChatScreen keeps a bounded in-memory cache of recently left transcripts
(16 chats / 4000 messages, LRU). A reopened chat is seeded from it with no
loading state, still re-subscribes and re-reads, and the newest page replaces
the cached copy while live frames received during the read are kept. /close
removes the entry; only transcripts backed by a successful read on the
current connection are written.

Adds tool/chat_reopen_probe.mjs and an optional history delay in the loopback
fixture. Measurement shows a second cost the cache does not remove: opening at
the end of the top-anchored transcript lays out every row (notes).
2026-10-24 18:14:27 +01:00
alan 5cb43b6dc8 Make chat reasoning a footer chip that opens a live sheet like tools 2026-10-24 18:13:03 +01:00
alan ef575898f2 docs(app): record APK 29880932 publication 2026-10-24 16:40:57 +01:00
alan c6342ac6cc fix(app): remove every app-level system Back override 2026-10-24 16:32:02 +01:00
alan 7bb95d4610 fix(chat): double-back to close with a chat open beside the list 2026-10-24 16:20:56 +01:00
alan 2740bb0673 feat(chat): fold answered permissions into a turn chip like tool calls 2026-10-24 16:05:47 +01:00
alan c7852d27d1 feat(chat): keep the rail and chat list beside the open chat on wide windows 2026-10-24 14:32:39 +01:00
alan fb481ad740 docs(app): record verified Back-override removal APK 2026-10-24 14:24:31 +01:00
alan cf784245e8 fix(chat): remove remaining router Back interception 2026-10-24 14:17:57 +01:00
alan 94ffe60d75 docs(app): record combined stock-Back and Stop-animation release 2026-10-24 13:19:05 +01:00
alan 6920483be2 test(chat): verify stock Back with the processing animation active 2026-10-24 13:15:40 +01:00
alan 7ad1afb09f feat(chat): rotate the Stop icon slowly while processing 2026-10-24 13:09:53 +01:00
alan 701449b416 fix(ui): skip size animation entirely under reduced motion 2026-10-24 13:07:20 +01:00
alan 4b9b93b443 docs(app): record stock chat Back acceptance and web delivery 2026-10-24 12:41:38 +01:00
alan f22afabd94 fix(chat): use stock Navigator Back at every screen width 2026-10-24 12:36:17 +01:00
alan 0ecd4a8487 docs(app): record verified reasoning-footer APK delivery 2026-10-24 11:55:24 +01:00
alan 99d4648497 docs(app): record reasoning footer verification and web delivery 2026-10-24 11:50:51 +01:00
alan b355679507 fix(chat): place per-message reasoning left of the tools count 2026-10-24 11:47:07 +01:00
alan 8547a1527f docs(app): record UX review measurements and verified delivery 2026-10-24 11:36:03 +01:00
alan ac75da12e4 test(app): benchmark populated chat Back and document UX review 2026-10-24 11:24:47 +01:00
alan 877c2f1acd fix(shell): keep the tab destination ready behind pushed pages 2026-10-24 11:14:10 +01:00
alan 399d520c71 fix(chat): keep a pushed phone conversation marked as read 2026-10-24 11:13:48 +01:00
alan 6d623197f9 perf(chat): isolate usage updates from transcript rendering 2026-10-24 11:13:22 +01:00
alan da44001ab2 perf(chat): reuse unchanged markdown render trees 2026-10-24 11:12:47 +01:00
alan 2bcb4a4071 merge: preserve server editor drafts and save feedback 2026-10-24 11:02:27 +01:00
alan 25437b3181 fix(settings): preserve server editor drafts until save succeeds 2026-10-24 10:52:01 +01:00
alan 6609b52b1c docs(app): record Pipelines-named APK delivery 2026-10-24 09:42:38 +01:00
alan 0abbae9f17 docs(app): record Pipelines display-name verification 2026-10-24 09:37:23 +01:00
alan f9dda00634 fix(app): use Pipelines as the installed display name 2026-10-24 09:33:34 +01:00
alan 372af80b7b docs(app): record verified multi-server APK publication 2026-10-24 03:14:31 +01:00
alan de22ecfaab docs(app): record multi-server acceptance and web deployment 2026-10-24 03:11:44 +01:00
alan b499da304d feat(app): configure and safely switch multi-address servers 2026-10-24 03:04:53 +01:00
alan 47cfb31e7d merge: preserve legacy server binding and pending launch identities 2026-10-24 02:46:56 +01:00
alan afb97c759e Bind legacy server identity and preserve pending run migrations 2026-10-24 02:46:34 +01:00
alan 8c2e8f13cf merge: double back to exit Android home 2026-10-24 02:31:58 +01:00
alan 26491cabda merge: primary and backup server address fallback 2026-10-24 02:31:52 +01:00
alan b2e5606c84 Add ordered websocket address fallback 2026-10-24 02:31:21 +01:00
alan a2b29ee15f merge: isolate credentials across saved servers 2026-10-24 02:28:14 +01:00
alan ae72e0fcf3 Scope native session credentials to trusted logical servers 2026-10-24 02:27:39 +01:00
alan 4604e1c2b7 merge: persisted named server profiles 2026-10-24 02:25:39 +01:00
alan 289a971b73 Add immutable server catalog and versioned preference store 2026-10-24 02:23:49 +01:00
alan 4e6771aa24 Require double back to exit Android tab roots 2026-10-24 02:23:15 +01:00
alan 54f74ade33 docs(app): record verified web and APK delivery 2026-10-24 02:15:15 +01:00
alan 20337f5f6f test(app): verify deployed chat and stage debugging on both hosts 2026-10-24 02:13:23 +01:00
alan d915f69226 test(app): verify streaming chat and stage debugging in the browser 2026-10-24 02:08:26 +01:00
alan 8e980564cb fix(chat): keep streamed reasoning live across queued follow-ups 2026-10-24 02:04:44 +01:00
alan de7c308fdb merge: collapsed stage fields and exact visit debugging documents 2026-10-24 02:00:56 +01:00
alan d6e15602e2 merge: live reasoning in Flutter chat 2026-10-24 02:00:38 +01:00
alan 285392982d fix(app): expose exact visit turn documents in Session 2026-10-24 02:00:18 +01:00
alan fa818341cf fix(chat): keep provided reasoning visible during live replies 2026-10-24 01:59:52 +01:00
alan 49b92ee012 fix(app): bound Docker APK build memory use 2026-10-24 01:57:57 +01:00
alan 91854148dd fix(app): keep Send available while a chat turn runs 2026-10-24 01:57:46 +01:00
alan 027be68ae7 fix(app): start stage input and output summaries collapsed 2026-10-24 01:54:54 +01:00
alan 7f88f14a52 fix(app): restore standard Android back navigation 2026-10-24 01:44:50 +01:00
alan ed22ef6e44 merge(app): land stage tabs at the bottom and Android Back 2026-10-24 01:16:42 +01:00
alan f51ad9c7ed fix(app): Android Back and the back gesture go through the router: they step up a level, and ask before closing the app; an open pipeline is part of the route 2026-10-24 01:15:21 +01:00
alan 6a9c41de33 fix(app): a stage's tabs always end at the bottom of the screen, also on wide screens 2026-10-24 01:09:13 +01:00
alan 2009b3ba1d merge(app): land fast back and instant chat actions 2026-10-24 00:49:07 +01:00
alan 0cb1b1ad7b test(app): drop an unneeded import 2026-10-24 00:47:43 +01:00
alan f997964761 perf(app): quick slide page transitions, close work after the page leaves, instant star/close/reopen 2026-10-24 00:47:32 +01:00
alan fe7311ade0 merge: Claude chats sign in from the background service 2026-10-24 00:37:01 +01:00
alan 819473c7b2 fix(chat): Claude chats sign in with the operator's login file when the service's default login is not signed in 2026-10-24 00:37:01 +01:00
alan 7dd4b3ba5d merge(app): land chat sections and create-chat naming and prompts 2026-10-24 00:26:39 +01:00
alan 9a2c678f68 feat(app): new chats are named after folder and harness; the first prompt is optional and remembered per harness and folder 2026-10-24 00:25:17 +01:00
alan 1e55b8d2b3 feat(app): chat sections are clear collapsible dividers; closed chats start collapsed 2026-10-24 00:22:18 +01:00
alan d0b1c8e524 merge(app): land release storage fix 2026-10-24 00:16:21 +01:00
alan f28418cc62 fix(app): release builds keep JNI-called plugin code, so settings, sign-in and drafts are saved on the phone 2026-10-24 00:16:21 +01:00
alan 7ec5b52793 merge(app): land phone onboarding 2026-10-23 23:54:08 +01:00
alan 636115bb22 feat(app): phone onboarding (server, then password) kept across launches; a known server opens straight into the app; a refused session asks for the password 2026-10-23 23:52:34 +01:00
alan 57504b73d4 merge: fresh installs work unattended; pipelines update 2026-10-23 23:42:29 +01:00
alan d50deecf98 feat(cli): pipelines update forwards to the installation's lifecycle 2026-10-23 23:41:15 +01:00
alan afba02899d fix(install): update installs a checkout without upstream as it is; the startup report no longer asks for a Claude token 2026-10-23 23:40:20 +01:00
alan 3d0c034394 fix(install): a fresh install creates ntfy accounts without prompts (database created first; phone uses the web password) 2026-10-23 23:38:51 +01:00
alan 9bad1bd824 feat(install): pipelines update re-runs the recorded install from the source checkout; --fresh skips Docker migration 2026-10-23 23:37:35 +01:00
alan e46c762394 chore: dev tools and fixtures carry no machine-specific defaults 2026-10-23 23:35:57 +01:00
alan 984dad0767 merge(app): land dark gray 2026-10-23 23:12:57 +01:00
alan f6c90e96db feat(app): dark mode uses a near-black gray with lighter layers instead of pure black 2026-10-23 23:12:57 +01:00
alan f291d157fa merge: Claude service token 2026-10-23 23:09:52 +01:00
alan b490728c55 feat(chat): Claude Code chats use a service token from a private file when the server runs in the background 2026-10-23 23:09:52 +01:00
alan d79173fae3 merge(app): land detail pages and the still artifact viewer 2026-10-23 23:02:18 +01:00
alan ec3f633d2b feat(app): the artifact viewer page stays still; previews fill and zoom or scroll inside their frame; facts behind a Details button 2026-10-23 23:00:56 +01:00
alan 7cbfbbbb61 feat(app): on a phone an open pipeline, run or chat is its own page over the tabs 2026-10-23 22:58:49 +01:00
alan 700ba6f820 merge(app): land viewer icons, native file actions, full-screen details and stepwise Back 2026-10-23 22:50:44 +01:00
alan 0e6db03903 feat(app): an open pipeline, run or chat fills a phone screen; Back steps up one level; stage tabs end with Session 2026-10-23 22:49:21 +01:00
alan dd324d1f92 feat(app): artifact viewer actions are bottom icons; swipe pages; native download, share and open in browser 2026-10-23 22:43:35 +01:00
alan c248e8eca6 merge(app): land section bodies, arrow keys and chat bar 2026-10-23 22:37:56 +01:00
alan c200ecdaa1 feat(app): an open chat takes over the app bar instead of adding its own 2026-10-23 22:36:42 +01:00
alan f81957cd73 feat(app): left/right arrows step through artifacts and changed files 2026-10-23 22:34:11 +01:00
alan 0defe42ac1 feat(app): section bodies sit on their own surface; the whole title strip toggles; no seam above a pinned title 2026-10-23 22:33:13 +01:00
alan 59607494fc merge: preview APK type 2026-10-23 22:25:13 +01:00
alan 4859905ddc fix(app): the preview serves the APK with its Android type 2026-10-23 22:25:13 +01:00
alan 5286587ae7 merge(app): land APK download on the web page 2026-10-23 22:24:35 +01:00
alan 9811b532d3 feat(app): the web page offers the server's Android APK in Settings 2026-10-23 22:23:17 +01:00
alan c043cc9892 chore: remove review captures from the former Kotlin Android app 2026-10-23 22:22:02 +01:00
alan 3f9cbd3cac docs(app): record the install, uploads, motion and adoption batch 2026-10-23 22:17:46 +01:00
alan f610b41a76 merge: chat-adopt help 2026-10-23 22:17:30 +01:00
alan cdedf06e35 docs(cli): chat-adopt help names every harness 2026-10-23 22:17:30 +01:00
alan b28c8baf6e merge: preview icon type 2026-10-23 22:16:39 +01:00
alan 8ee7e18e77 fix(app): the preview serves favicon.ico as an icon 2026-10-23 22:16:39 +01:00
alan a5d915156b merge(app): land run day headings 2026-10-23 22:12:04 +01:00
alan e696d62022 feat(app): runs list day labels are section headings 2026-10-23 22:12:04 +01:00
alan e8c4524eca merge: land flutter/polish 2026-10-23 22:09:54 +01:00
alan 1c562751da merge: land flutter/motion 2026-10-23 22:09:46 +01:00
alan b44cecf35c feat(app): section titles read as dividers; one Rendered/Raw switch per definition; schedule rows with labelled facts and a status pill 2026-10-23 22:09:46 +01:00
alan 67c80ffb11 merge: land chat-adopt-claude 2026-10-23 22:09:46 +01:00
alan 454e365841 merge: land install-app 2026-10-23 22:09:46 +01:00
alan 00d8714411 fix(install): stamp each APK build with a rising build number 2026-10-23 22:07:49 +01:00
alan ae43182a2b feat(app): short motion for collapsibles, badges, new runs and the action bar; none under reduced motion 2026-10-23 22:05:30 +01:00
alan 5a65526d29 feat(chat): chat-adopt finds Claude Code and Codex sessions, not only OpenCode 2026-10-23 22:03:08 +01:00
alan 0b8763078c feat(app): ship a favicon.ico for installers that ask for it 2026-10-23 21:58:40 +01:00
alan ebb7114ca0 fix(install): APK builds sign with the stored key (container user.home) 2026-10-23 21:57:32 +01:00
alan e77eb99258 merge main into install-app 2026-10-23 21:53:29 +01:00
alan a5f7cdf302 feat(web): icons and the web manifest are public for browsers and app installers 2026-10-23 21:51:49 +01:00
alan c467872ee3 merge(app): land Schedules in the Pipelines bar 2026-10-23 21:51:23 +01:00
alan a50daebeb6 feat(app): Schedules opens from the Pipelines bar instead of Settings 2026-10-23 21:49:53 +01:00
alan 8527506da1 chore: remove the JavaScript web client and the Kotlin Android app; the Flutter app replaces both 2026-10-23 21:46:58 +01:00
alan 7958d1830e feat(install): build the Flutter web app in Docker, optional ./install --apk, chosen web password, startup report 2026-10-23 21:45:14 +01:00
alan 3136132144 merge(app): land Pipelines icon 2026-10-23 21:29:48 +01:00
alan 4619e905a9 feat(app): the app and its web build use the Pipelines icon 2026-10-23 21:29:48 +01:00
alan 27546b09de merge: land chat file uploads 2026-10-23 21:25:41 +01:00
alan e507f554c3 feat(chat): files upload over HTTP before the prompt, up to 100 MiB each 2026-10-23 21:25:41 +01:00
alan 39a68a00b3 docs(app): schedule from run landed 2026-10-23 20:26:49 +01:00
alan 4ed28db214 merge(app): land schedule from the run dialog 2026-10-23 20:26:49 +01:00
alan 8f7dab9d8f feat(app): the run dialog can continue to a schedule editor seeded with its prompt 2026-10-23 20:25:37 +01:00
alan 15af79f4e7 docs(app): sticky sections landed 2026-10-23 20:23:56 +01:00
alan 26a8377859 merge(app): land sticky sections and stage summary 2026-10-23 20:23:56 +01:00
alan f9e03da133 feat(app): collapsibles keep their titles pinned; stage facts are coloured and grouped; input and output copy 2026-10-23 20:22:41 +01:00
alan 94139dfd34 docs(app): badges landed; record stage summary and sticky titles 2026-10-23 20:16:16 +01:00
alan 3923c66d6b merge(app): land badges 2026-10-23 20:16:16 +01:00
alan d373f4c48e feat(app): Runs and Chat tabs badge running runs and unread chats; unread chat rows carry a New badge 2026-10-23 20:15:01 +01:00
alan 11ab9beb7b docs(app): scope switch landed 2026-10-23 20:12:24 +01:00
alan fa7c927525 merge(app): land pipelines scope switch 2026-10-23 20:12:24 +01:00
alan 766be32748 feat(app): the pipelines list switches between all and scheduled 2026-10-23 20:11:09 +01:00
alan 24d190b3cc docs(app): record badges request 2026-10-23 20:10:08 +01:00
alan 29390fcf9a docs(app): markdown toggle landed; record schedule requests 2026-10-23 20:10:02 +01:00
alan 66763f6fe4 merge(app): land markdown raw/rendered 2026-10-23 20:10:02 +01:00
alan f258d8a30c feat(app): pipeline source and stage prompts switch between raw and rendered markdown 2026-10-23 20:08:48 +01:00
alan 27ad8c6aea docs(app): phone build, sign-in and updates recorded 2026-10-23 20:04:06 +01:00
alan 87529cd6f6 chore(app): the phone build defaults to the Tailscale web proxy 2026-10-23 20:00:30 +01:00
alan db7c33c7ab merge(app): land app updates 2026-10-23 20:00:20 +01:00
alan 6152292aff feat(app): Check for updates downloads the server's newest APK and opens the installer 2026-10-23 19:59:03 +01:00
alan 72e01471ab merge(app): land native notifications 2026-10-23 19:57:24 +01:00
alan a74a618c94 feat(app): native system notifications for runs and chats that need you 2026-10-23 19:56:14 +01:00
alan 1e8a15a7a0 merge(app): land native web sign-in 2026-10-23 19:52:49 +01:00
alan 2fc0a4394b feat(app): the native app signs in at the web login and carries the session on its socket and downloads 2026-10-23 19:51:43 +01:00
alan d6fbea1665 docs(app): search artifacts landed 2026-10-23 19:46:31 +01:00
alan 56e3b870e1 merge(app): land search artifact actions 2026-10-23 19:46:31 +01:00
alan 11f8900ca6 feat(app): artifact search hits show image thumbnails and open their stage, run or pipeline 2026-10-23 19:45:24 +01:00
alan 19f1e4dc10 docs(app): run miniature landed 2026-10-23 19:43:33 +01:00
alan dd51ed4444 merge(app): land run row miniature 2026-10-23 19:43:33 +01:00
alan e279b39e68 feat(app): run rows show the run's path as a small coloured miniature 2026-10-23 19:42:28 +01:00
alan 0b530215e0 docs(app): row alignment landed 2026-10-23 19:40:31 +01:00
alan efd65e3bf6 merge(app): land pipeline row alignment 2026-10-23 19:40:31 +01:00
alan 1f63aa5e3f fix(app): pipeline row items on the right end flush with the row edge 2026-10-23 19:39:25 +01:00
alan 15530aaf1a docs(app): pipeline bottom tabs landed 2026-10-23 19:37:28 +01:00
alan 2065e5397f merge(app): land pipeline bottom tabs 2026-10-23 19:37:28 +01:00
alan 9fa932c8e6 feat(app): pipeline detail tabs are a bottom bar with icons on phones, with Run and Runs above it 2026-10-23 19:36:23 +01:00
alan cc05b94c65 docs(app): record pipeline bottom tabs 2026-10-23 19:35:04 +01:00
alan d041913372 docs(app): graph maximise fix landed 2026-10-23 19:34:53 +01:00
alan a1abdaee39 merge(app): land full-screen graph without maximise 2026-10-23 19:34:53 +01:00
alan 3099dbc5aa fix(app): the full-screen run graph has no maximise button 2026-10-23 19:33:47 +01:00
alan 89da394a90 docs(app): viewer overlay landed 2026-10-23 19:32:48 +01:00
alan f485870782 merge(app): land viewer overlay controls 2026-10-23 19:32:48 +01:00
alan 5acf2145ff feat(app): artifact viewer controls float over the content and hide when idle 2026-10-23 19:31:42 +01:00
alan 7b0a1a721f docs(app): gallery modes landed 2026-10-23 19:30:25 +01:00
alan 5494669d74 merge(app): land gallery modes and collapsible groups 2026-10-23 19:30:25 +01:00
alan 4f789038c4 feat(app): gallery switches between grid and thumbnail list, and each artifact or document group is collapsible with a pinned title 2026-10-23 19:29:20 +01:00
alan ba60066b69 docs(app): record collapsible gallery groups 2026-10-23 19:24:12 +01:00
alan 3d529b3788 docs(app): stage tabs landed; record gallery requests 2026-10-23 19:24:06 +01:00
alan 320d0f1471 merge(app): land combined stage tabs 2026-10-23 19:24:06 +01:00
alan 1ce3613b1d feat(app): stage tabs are Summary (input and output), Artifacts, Changes and More (session and definition) 2026-10-23 19:23:01 +01:00
alan 65c9b71cae docs(app): record night requests 2026-10-23 19:21:35 +01:00
alan 803bb45907 docs(app): pipeline rows landed 2026-10-23 19:08:59 +01:00
alan d145f3b4fe merge(app): land pipeline row corners 2026-10-23 19:08:59 +01:00
alan 8d643f5501 feat(app): pipeline rows place name, version, stages, miniature, last run and update time in their corners 2026-10-23 19:07:54 +01:00
alan 5bd718f80f docs(app): pipeline FABs landed 2026-10-23 19:04:35 +01:00
alan 196952ae4c merge(app): land pipeline FABs 2026-10-23 19:04:35 +01:00
alan e7de73dc43 feat(app): a pipeline's Run and Runs are floating action buttons 2026-10-23 19:03:32 +01:00
alan 12f8a635b4 docs(app): paste thumbnail landed 2026-10-23 19:01:43 +01:00
alan e0a2e7fa5c merge(app): land composer image thumbnails 2026-10-23 19:01:43 +01:00
alan 24e465e521 feat(app): a pasted or picked image shows a thumbnail in the chat composer 2026-10-23 19:00:39 +01:00
alan 6265b5d1cc docs(app): chat model landed 2026-10-23 18:58:40 +01:00
alan 5fdbf11c43 merge(app): land chat model label 2026-10-23 18:58:40 +01:00
alan 35e343fe40 feat(app): a chat names its model (recorded, last reply's, or the agent default) and each reply shows the model that answered 2026-10-23 18:57:36 +01:00
alan 1d9fd08b31 docs(app): chat list items landed 2026-10-23 18:55:49 +01:00
alan 4b3e68a41d merge(app): land chat list actions and row meta 2026-10-23 18:55:49 +01:00
alan 04c6e82a4d feat(app): chat list drops search, New chat and Refresh are bar actions, and rows show agent, model and ~ paths 2026-10-23 18:54:46 +01:00
alan b0d23185e7 WIP chat list actions 2026-10-23 18:51:57 +01:00
alan 6a0e0485cd docs(app): graph colour landed 2026-10-23 18:51:00 +01:00
alan 0b000f3ffc merge(app): land graph colour and route order 2026-10-23 18:51:00 +01:00
alan b8594bff20 feat(app): run graph statuses are coloured and taken routes are numbered in run order 2026-10-23 18:49:55 +01:00
alan b2543539f7 docs(app): artifact grid landed 2026-10-23 18:47:53 +01:00
alan 489ab054c8 merge(app): land artifact grid 2026-10-23 18:47:53 +01:00
alan 0d98be0d8b feat(app): run and stage artifacts share one gallery grid with image thumbnails and file-type icons 2026-10-23 18:46:49 +01:00
alan 403fa6cd07 docs(app): pipelines bar landed 2026-10-23 18:41:02 +01:00
alan 774c6c6c49 merge(app): land pipelines bar actions 2026-10-23 18:41:02 +01:00
alan ac74fc6769 feat(app): Pipelines filter, sort and refresh are app-bar icons 2026-10-23 18:39:57 +01:00
alan 168cc963ae docs(app): bell item landed 2026-10-23 18:38:07 +01:00
alan 5989705ea9 merge(app): land bell in bar 2026-10-23 18:38:07 +01:00
alan a9064b04c2 feat(app): the Needs-you bell joins the Runs app-bar actions 2026-10-23 18:37:01 +01:00
alan 79204859e4 docs(app): diff colour landed 2026-10-23 18:36:03 +01:00
alan ef4d0425a4 merge(app): land diff colours 2026-10-23 18:36:03 +01:00
alan d46b10d7f6 feat(app): diffs colour added lines and +N green, removed lines and -N red 2026-10-23 18:34:59 +01:00
alan cd1faea3ce docs(app): stage page landed; record new requests 2026-10-23 18:33:09 +01:00
alan 312abbb518 merge(app): land stage page tabs and tab icons 2026-10-23 18:33:09 +01:00
alan e109741ef8 feat(app): run and stage tabs show an icon above each name 2026-10-23 18:32:04 +01:00
alan 25b9118ee9 feat(app): a stage visit's sections are bottom tabs, its input and output read as values, and the page bar holds the only Back 2026-10-23 18:31:26 +01:00
alan a2a117a71a docs(app): diagnostic landed; record chat thumbnail 2026-10-23 18:29:22 +01:00
alan 8601fcf8fe merge(app): land diagnostic collapsible 2026-10-23 18:29:22 +01:00
alan f04442c546 feat(app): the run Diagnostic sits in a collapsible 2026-10-23 18:28:15 +01:00
alan 221deeab8d docs(app): record evening feedback 2026-10-23 18:27:12 +01:00
alan 450ae79b24 docs(app): runs bar items landed 2026-10-23 17:55:45 +01:00
alan 797724df5b merge(app): land runs bar actions 2026-10-23 17:55:45 +01:00
alan 64bd2b6b61 feat(app): Runs list filter, sort and usage charts are app-bar icons; the text filter is inside the filter sheet 2026-10-23 17:54:40 +01:00
alan fb91d8b02a docs(app): shell bar and search tab landed 2026-10-23 17:48:09 +01:00
alan 73b44f0eaf merge(app): land shell bar and search tab 2026-10-23 17:48:09 +01:00
alan 14a556ebd9 feat(app): an open run takes over the app bar (Back, run, more menu); Search is the fifth tab; tabs keep their last screen 2026-10-23 17:47:05 +01:00
alan 30e3f22a1c docs(app): visit page item landed 2026-10-23 17:36:37 +01:00
alan c1344da048 merge(app): land visit page 2026-10-23 17:36:37 +01:00
alan 925f04e300 feat(app): a run's stage visit opens as its own page, from the graph, the timeline or a link 2026-10-23 17:35:33 +01:00
alan e96d1b5ca8 docs(app): visit changes item landed 2026-10-23 17:28:50 +01:00
alan 725b9b43fd merge(app): land visit changes section 2026-10-23 17:28:50 +01:00
alan 7d9b3da936 feat(app): a timeline visit shows its own changes as a Changes section 2026-10-23 17:27:46 +01:00
alan 5e5b48a393 docs(app): final changes items landed 2026-10-23 17:26:28 +01:00
alan 66b5174088 merge(app): land final changes tab 2026-10-23 17:26:28 +01:00
alan 0c1e399e17 feat(app): the Changes tab lists the run's final changes, without a filter field 2026-10-23 17:25:25 +01:00
alan cd86792094 docs(app): run rows landed; record changes/stages/artifacts requests 2026-10-23 17:21:25 +01:00
alan 5b54a4603c merge(app): land run rows 2026-10-23 17:21:20 +01:00
alan bb01527f8c test(app): run row corners allow touching lines 2026-10-23 17:20:16 +01:00
alan e1c472089e feat(app): run rows place the run, number, pipeline, duration, time and steps in their corners 2026-10-23 17:19:04 +01:00
alan 9c685eeed0 docs(app): pager item landed 2026-10-23 17:15:49 +01:00
alan cf44881af3 merge(app): land chevron pagers 2026-10-23 17:15:49 +01:00
alan 3fc7a28e76 feat(app): previous/next for visits, artifacts and diffs are chevrons in one row at the bottom right 2026-10-23 17:14:44 +01:00
alan 73d59f4d85 docs(app): diff page item landed 2026-10-23 17:10:59 +01:00
alan f364900495 merge(app): land diff page 2026-10-23 17:10:59 +01:00
alan 4b1e74cf61 feat(app): a file diff opens as its own page with previous and next file chevrons 2026-10-23 17:09:57 +01:00
alan f7c34b5f40 docs(app): summary grid item landed 2026-10-23 17:07:50 +01:00
alan ff451b5242 merge(app): land summary facts grid 2026-10-23 17:07:50 +01:00
alan 6923291aaf feat(app): run summary facts sit two or three to a line 2026-10-23 17:06:46 +01:00
alan 8e7860540b docs(app): timeline item landed 2026-10-23 17:03:21 +01:00
alan 98e86e4ea6 merge(app): land timeline status rows 2026-10-23 17:03:21 +01:00
alan 9bd7473749 feat(app): timeline rows lead with the visit's status icon and an outcome chip, with target and duration 2026-10-23 17:02:17 +01:00
alan 769ca66742 merge(app): land manifest credentials 2026-10-23 16:59:00 +01:00
alan 1cc72c96f4 docs(app): bottom tabs item landed 2026-10-23 16:58:57 +01:00
alan ee545243d3 merge(app): land bottom run tabs 2026-10-23 16:58:57 +01:00
alan abdf76eab0 fix(app): the web manifest request carries the login cookie 2026-10-23 16:58:02 +01:00
alan 2864c0b4c7 feat(app): run detail tabs are a full-width bottom bar on phones 2026-10-23 16:57:52 +01:00
alan b5a28e56ae docs(app): run tabs item landed 2026-10-23 16:56:29 +01:00
alan da9ef07666 merge(app): land run detail tabs 2026-10-23 16:56:29 +01:00
alan 855a1e6ca5 feat(app): run detail tabs are Summary, Timeline, Artifacts and Changes; the graph is a Summary preview that opens full screen 2026-10-23 16:55:24 +01:00
alan 4276f5717f docs(app): record chat chip, pipeline link and retry menu 2026-10-23 16:28:28 +01:00
alan f3bd91ba8a merge(app): land pipeline link and retry in more menu 2026-10-23 16:28:22 +01:00
alan 9d61ce1406 feat(app): run detail's pipeline name opens that pipeline; Retry moves into the more menu 2026-10-23 16:27:20 +01:00
alan 27203fb715 merge(app): land reasoning chip 2026-10-23 16:23:36 +01:00
alan f2aa559d0e feat(app): chat reasoning is a chip beside the tool chip, opening its own sheet 2026-10-23 16:22:31 +01:00
alan 7539a7a552 docs(app): input/output item landed 2026-10-23 16:17:42 +01:00
alan 8348b970bb merge(app): land run input/output fields 2026-10-23 16:17:42 +01:00
alan 120edb8da8 test(app): search hits find the run's fields as data 2026-10-23 16:16:40 +01:00
alan 080ab350e4 feat(app): run Input and Output read as named fields, not JSON; the separate Original prompt block is gone 2026-10-23 16:15:18 +01:00
alan 44d0b8d99a docs(app): more menu item landed 2026-10-23 16:11:23 +01:00
alan aadf8f3101 merge(app): land run more menu 2026-10-23 16:11:22 +01:00
alan 13d293eb47 feat(app): Rename and Schedule this run move into the run detail's more menu 2026-10-23 16:10:20 +01:00
alan 9e2d3c558d docs(app): retry item landed 2026-10-23 16:06:18 +01:00
alan 763baf0545 merge(app): land retry beside status 2026-10-23 16:06:18 +01:00
alan e0e3517d0b feat(app): Retry sits beside a failed run's status 2026-10-23 16:05:15 +01:00
alan ba484f044f docs(app): graph layout item landed 2026-10-23 16:03:22 +01:00
alan d924da2be2 merge(app): land linear graph layout 2026-10-23 16:03:17 +01:00
alan 15f83c19dd feat(app): graphs draw stages in one row with Failure and Success below, as the web and TUI 2026-10-23 16:02:15 +01:00
alan c12e1dc936 docs(app): chat feedback items landed 2026-10-23 15:55:16 +01:00
alan eaa4f24ee7 merge(app): land chat tool calls layout 2026-10-23 15:55:10 +01:00
alan 3ac94f2160 test(app): deep-linked thread shows the tool chip 2026-10-23 15:54:08 +01:00
alan 522729ad57 feat(app): chat turns show reasoning above the answer and tool calls as one chip with a formatted call sheet, as the web 2026-10-23 15:52:51 +01:00
alan c2f1a4cb94 merge(app): land chat bubbles 2026-10-23 15:44:09 +01:00
alan c46a46ee14 fix(app): chat turns are content-sized bubbles without role labels, as the web 2026-10-23 15:43:07 +01:00
alan 702bf8559d docs(app): feedback list progress 2026-10-23 15:40:41 +01:00
alan 74fe12546f merge(app): land chat composer icons 2026-10-23 15:40:34 +01:00
alan ef078db80b feat(app): chat composer sends with an icon; no filler running line 2026-10-23 15:39:32 +01:00
alan 7e93348b25 merge(app): land chat turn order 2026-10-23 15:35:49 +01:00
alan 37c155e6e9 fix(app): a sent message keeps its place in the transcript, so each reply follows it 2026-10-23 15:34:46 +01:00
alan d791fce36c docs(app): phone-size feedback tracking list 2026-10-23 15:32:13 +01:00
alan eb3df0c7ce docs(app): PARITY after the functional gaps closed 2026-10-23 15:10:06 +01:00
alan b627f51f20 merge(app): land native deep links 2026-10-23 15:09:56 +01:00
alan a57a847631 feat(app): pipelines://run/<id> notification links open the run on Android and iOS 2026-10-23 15:08:51 +01:00
alan acabeaa975 merge(app): land HTML preview 2026-10-23 15:06:47 +01:00
alan e77628ac46 feat(app): artifact viewer renders HTML documents inertly (sandboxed iframe on web, script-free web view on mobile) 2026-10-23 15:05:44 +01:00
alan 0fe3bfb5bb merge(app): land CSV/TSV table preview 2026-10-23 15:03:18 +01:00
alan 5ac8fcc6ef feat(app): artifact viewer shows CSV and TSV files as tables 2026-10-23 15:02:17 +01:00
alan 89675dcfa8 merge(app): land text-family previews and bundled monospace 2026-10-23 14:56:17 +01:00
alan ddc70488a5 test(app): run summary hashes use the bundled monospace family 2026-10-23 14:55:16 +01:00
alan 97d09436c8 feat(app): artifact viewer previews the text family (logs, JSON, code, config) in bundled monospace 2026-10-23 14:54:00 +01:00
alan 355f8228dd merge(app): land in-app video preview 2026-10-23 14:42:30 +01:00
alan 6fd14e76ca feat(app): artifact videos play in the viewer, as the web 2026-10-23 14:41:30 +01:00
alan d1555e721f merge(app): land func-repair-pending 2026-10-23 14:34:05 +01:00
alan 2df93fe7ad merge(app): land func-changes-gate 2026-10-23 14:33:05 +01:00
alan 3322c0847e Merge branch 'main' into flutter/func-repair-pending 2026-10-23 14:33:05 +01:00
alan 2eda713014 fix(app): an in-flight session export repair stays pending across remounts, as the web 2026-10-23 14:32:04 +01:00
alan dd6c52f9a4 test(app): changes viewer hides the run-wide summary without the settled-run gate 2026-10-23 14:30:35 +01:00
alan f9b796a1f9 merge(app): land Needs you glyphs 2026-10-23 13:52:05 +01:00
alan 7a40210223 fix(app): Needs you rows lead with the shared run status glyph, as the web 2026-10-23 13:51:05 +01:00
alan 64a30cdad8 merge(app): land composer placeholder fit 2026-10-23 13:47:08 +01:00
alan 45b3e65f2f fix(app): an empty Cupertino composer is as tall as its wrapped placeholder 2026-10-23 13:46:08 +01:00
alan defa958f91 merge(app): land chat card alignment 2026-10-23 13:43:45 +01:00
alan 52b37c88d8 fix(app): Cupertino approval and question cards line up with the transcript 2026-10-23 13:42:45 +01:00
alan c5ea95483a docs(app): handoff for the direct design round 2026-10-23 13:35:03 +01:00
alan 4a0b9fd97a merge(app): land pipeline action row 2026-10-23 13:33:22 +01:00
alan 57a4844d4f fix(app): pipeline Run and Runs share one action row, as the web 2026-10-23 13:32:22 +01:00
alan f759579c4d merge(app): land visit pane alignment 2026-10-23 13:29:57 +01:00
alan 870bda1789 fix(app): visit pane title, tabs and field card share the content inset 2026-10-23 13:28:57 +01:00
alan dc9d764455 merge(app): land decision banner 2026-10-23 13:25:05 +01:00
alan 841ec1d34a fix(app): run decision is the web's full-width waiting banner 2026-10-23 13:24:04 +01:00
alan ddef9da35a merge(app): land Flutter pipeline definitions 2026-10-23 13:20:09 +01:00
alan 80f4692ec6 docs(app): Flutter fix, design and preview pipeline definitions 2026-10-23 13:20:09 +01:00
alan f38689b7bd merge(app): land pipeline tools 2026-10-23 13:18:53 +01:00
alan 9ff0bf2eeb tool(app): capture, full-check and preview-publish scripts for the Flutter pipelines 2026-10-23 13:18:53 +01:00
alan 2c0d96637a merge(app): land settings notifications section 2026-10-23 13:16:20 +01:00
alan e9f322f3f1 fix(app): Notifications is a Settings section with the shared heading and inset 2026-10-23 13:15:24 +01:00
alan 091ffd740d merge(app): land settings URL field height 2026-10-23 13:13:13 +01:00
alan 79dc1dc029 fix(app): a short server URL keeps a one-line settings field 2026-10-23 13:12:17 +01:00
alan 34a3fad7b7 merge(app): land chat toolbar 2026-10-23 13:11:13 +01:00
alan d4df1f787c feat(app): chat list toolbar keeps New chat beside search, as the web 2026-10-23 13:10:14 +01:00
alan 04f7524b80 merge(app): land run status kicker 2026-10-23 13:07:53 +01:00
alan f19b7a85a8 feat(app): run detail leads with the web's status kicker 2026-10-23 13:06:57 +01:00
alan 7d5b068083 merge(app): land pipeline run glyph 2026-10-23 13:04:28 +01:00
alan 89926f745d feat(app): pipeline rows show the last run's status glyph, as the web 2026-10-23 13:03:32 +01:00
alan c3526c23bd merge(app): land run status glyphs 2026-10-23 13:01:49 +01:00
alan dbcc2d1ca0 feat(app): run rows lead with the web's coloured status glyph and meta line 2026-10-23 13:00:51 +01:00
alan 9414f19b0e merge(app): land schedules connection fix 2026-10-23 12:56:15 +01:00
alan 4452d0a1bf fix(app): schedules page follows the connection and its list reads 2026-10-23 12:55:19 +01:00
alan 5babab1924 merge(app): land run tab alignment test 2026-10-23 12:51:40 +01:00
alan 228ba12a39 test(app): run tab alignment asserts the label position 2026-10-23 12:50:42 +01:00
alan 16daf70830 merge(app): land run tabs alignment 2026-10-23 12:49:39 +01:00
alan 1061b4460d fix(app): run detail tabs line up with the header inset 2026-10-23 12:48:38 +01:00
alan 5b6c9dae2b merge(app): land run action styles 2026-10-23 12:48:00 +01:00
alan 7ad183cf89 fix(app): run actions share one compact native style, as the web's run-action buttons 2026-10-23 12:47:05 +01:00
alan eda0b7d69a merge(app): land chat row layout 2026-10-23 12:41:33 +01:00
alan c5119146f2 fix(app): chat rows put the state word on the title line and recency in the meta, as on the web 2026-10-23 12:40:37 +01:00
alan ad51437fbb merge(app): land chat conversation bar order 2026-10-23 12:37:22 +01:00
alan afd1943b73 fix(app): chat conversation bar leads, outside the transcript scroller 2026-10-23 12:36:26 +01:00
alan 3abb82e3af merge(app): land design-search 2026-10-23 12:31:58 +01:00
alan 463c635118 fix(app): search empty message sits under the field 2026-10-23 12:30:59 +01:00
alan 22e7d5b112 merge(app): land design-templates 2026-10-23 12:22:49 +01:00
alan 47472d8b1c merge(app): land design-settings 2026-10-23 12:21:51 +01:00
alan 6e7e09698c Merge branch 'main' into flutter/design-templates 2026-10-23 12:21:51 +01:00
alan 23b8ee8f7c feat(app): show template stage counts 2026-10-23 12:20:06 +01:00
alan 795c5d3a79 fix(app): wrap long settings server URLs 2026-10-23 12:13:51 +01:00
alan c089ecd8af merge(app): land design-chat-thread (run 178, composer hint wraps) 2026-10-23 12:03:58 +01:00
alan 6bf0a700d5 wip(app): design-chat-thread (retained from the blocked run) 2026-10-23 01:40:57 +01:00
alan da0234b652 merge(app): land probe-chat-create (runs 170, 174 + direct fix) 2026-10-23 01:22:29 +01:00
alan 9a66215bee Merge branch 'main' into flutter/probe-chat-create 2026-10-23 01:22:24 +01:00
alan d22fc1d627 fix(app): chat probe checks the renamed row by its actions label 2026-10-23 01:22:24 +01:00
alan 9a8e685c2c wip(app): chat probe reads the split New label (run 174) 2026-10-23 01:19:29 +01:00
alan dbde7587e7 merge(app): land probe-runs-metrics (run 172) 2026-10-23 01:15:08 +01:00
alan fc9c5d23b2 test(app): remove obsolete run metrics probe 2026-10-23 01:14:48 +01:00
alan 52ae2e4f2e docs(app): PARITY run detail has no metrics block (web parity) 2026-10-23 01:11:12 +01:00
alan 8b09da123e wip(app): chat probe follows the new create dialog (run 170, blocked at the New marker) 2026-10-23 01:10:24 +01:00
alan a74039d50a merge(app): land layout-runs (run 168, finished directly) 2026-10-23 01:04:26 +01:00
alan ead3138ad8 Merge branch 'main' into flutter/layout-runs 2026-10-23 01:03:27 +01:00
alan a51dea0924 fix(app): runs attention action shares the filter toolbar row 2026-10-23 01:03:27 +01:00
alan 22e79f77a9 merge(app): land rename-wording (run 163) 2026-10-23 00:33:20 +01:00
alan b7a5aa43db fix(app): clarify shared session rename wording 2026-10-23 00:31:49 +01:00
alan 8fe6c67016 docs(app): record runs 161 and 162 2026-10-23 00:02:12 +01:00
alan 253823c549 merge(app): land chat-deeplink-read 2026-10-23 00:02:04 +01:00
alan 6eedc9827d merge(app): land pending-run-endpoint 2026-10-23 00:01:08 +01:00
alan f187cd6951 Merge branch 'main' into flutter/chat-deeplink-read 2026-10-23 00:01:08 +01:00
alan 2573b49a0d fix(app): scope pending pipeline runs by endpoint 2026-10-22 23:59:52 +01:00
alan fd496a7b20 fix(app): mark deep-linked chat sessions read 2026-10-22 23:59:13 +01:00
alan b82bdd327a docs(app): record runs 158-160 2026-10-22 23:54:52 +01:00
alan c44e3a6b99 merge(app): land list-scroll-keep (run 160) 2026-10-22 23:54:44 +01:00
alan 22988db95b merge(app): land run-intent-test-fix 2026-10-22 23:53:45 +01:00
alan 119041ac55 Merge branch 'main' into flutter/list-scroll-keep 2026-10-22 23:53:45 +01:00
alan d17765fa8a test(app): run start wiring mocks the pending launch store 2026-10-22 23:53:45 +01:00
alan 3503060d39 merge(app): land run-intent-persist (run 159) 2026-10-22 23:51:15 +01:00
alan a82560be1a fix(app): the Run dialog waits for the stored pending intent after a reload 2026-10-22 23:50:18 +01:00
alan a5874babc0 feat(app): persist pending pipeline run intents 2026-10-22 23:48:33 +01:00
alan fd0d67762e test(app): preserve list position on refresh 2026-10-22 23:46:37 +01:00
alan 26761ea0d3 docs(app): refresh stale PARITY gaps after the landed lanes 2026-10-22 23:44:54 +01:00
alan 2b7be98e0d merge(app): land foreground-refresh-guard (run 158) 2026-10-22 23:44:42 +01:00
alan 9a46a6b2b9 fix(app): guard foreground refresh during interaction 2026-10-22 23:42:31 +01:00
alan 926443504f docs(app): record run 157 2026-10-22 23:38:51 +01:00
alan dacc16dce2 merge(app): land foreground-list-refresh (run 157) 2026-10-22 23:38:51 +01:00
alan d0def10490 fix(app): refresh visible lists on foreground resume 2026-10-22 23:37:34 +01:00
alan 48eeb5fcbd docs(app): handoff after runs 155 and 156 2026-10-22 23:17:17 +01:00
alan ab1e1eee55 docs(app): record runs 155 and 156 2026-10-22 23:16:50 +01:00
alan d7dc703fdc merge(app): land chat-optimistic-files (run 156) 2026-10-22 23:16:39 +01:00
alan 2bd2de5f67 feat(app): show attachments in optimistic chat turns 2026-10-22 23:15:24 +01:00
alan 5779e91cfa merge(app): land native-endpoint-boot (run 155) 2026-10-22 23:10:43 +01:00
alan f58d8d3572 feat(app): load saved endpoint during native startup 2026-10-22 23:09:26 +01:00
alan ff0447fae8 docs(app): note the row refusal dismiss 2026-10-22 22:37:27 +01:00
alan ace00af47e merge(app): land chat-row-error-dismiss 2026-10-22 22:37:27 +01:00
alan 3085de9f30 feat(app): chat row refusals can be dismissed with OK 2026-10-22 22:37:27 +01:00
alan 59ea483aa3 docs(app): parity and handoff after landing the chat command and create lanes 2026-10-22 22:35:26 +01:00
alan 1c5e4ed4c8 merge(app): land chat-create-parity 2026-10-22 22:34:46 +01:00
alan 865616608c feat(app): chat create dialog matches the web create flow 2026-10-22 22:34:46 +01:00
alan 7b48df810c merge(app): land chat-stop-notice 2026-10-22 22:31:31 +01:00
alan a3b40faa10 feat(app): /stop reports the web's accepted line 2026-10-22 22:31:31 +01:00
alan ea058cae88 merge(app): land chat-cmd-session (/new /close /rename) 2026-10-22 22:29:33 +01:00
alan ab230e2192 merge(app): bring main into chat-cmd-session; /new /close /rename tests 2026-10-22 22:29:33 +01:00
alan 60d65a62e3 merge(app): land chat-live-new 2026-10-22 22:26:24 +01:00
alan 2dadd05708 fix(app): live New marks clear the active chat on leave; lint and regression tests 2026-10-22 22:26:24 +01:00
alan 0e9d757a92 Merge branch 'main' into flutter/chat-live-new 2026-10-22 22:24:08 +01:00
alan adf253d8ce merge(app): land chat-cmd-stop 2026-10-22 22:24:04 +01:00
alan 852d336258 Merge branch 'main' into flutter/chat-cmd-stop 2026-10-22 22:22:44 +01:00
alan 4b0feb92ad merge(app): land runs-pipeline-url 2026-10-22 22:22:41 +01:00
alan 94d3d9ee60 merge(app): bring main into runs-pipeline-url; main's filter menu supersedes the lane's pipeline menu 2026-10-22 22:21:45 +01:00
alan d0d2ced3ca wip(app): chat-cmd-session (retained from the failed lane tree) 2026-10-22 22:20:50 +01:00
alan 774372da10 merge(app): land runs-day-groups 2026-10-22 22:06:06 +01:00
alan c74eecf469 merge(app): land runs-filter-menu 2026-10-22 22:06:06 +01:00
alan 7559e6dd33 merge(app): land chat composer paste 2026-10-22 21:59:27 +01:00
alan 8ff3b3f22e wip(app): runs-pipeline-url (retained from the cancelled overrun lane) 2026-10-22 21:59:06 +01:00
alan ebf86a31fb wip(app): runs-day-groups (retained from the cancelled overrun lane) 2026-10-22 21:59:06 +01:00
alan dc56795cfd wip(app): runs-filter-menu (retained from the cancelled overrun lane) 2026-10-22 21:59:06 +01:00
alan 57b0765628 wip(app): chat-paste-2 (retained from the cancelled overrun lane) 2026-10-22 21:59:06 +01:00
alan 65b175b8e5 wip(app): chat /stop and /help commands (retained from the cancelled lane) 2026-10-22 21:16:13 +01:00
alan f9f9372156 docs(app): size lanes by outcome rather than file count 2026-10-22 19:17:22 +01:00
alan 1791688d48 docs(app): tighten lanes to one function or widget change 2026-10-22 19:16:03 +01:00
alan afc7b88366 fix(app): collapse the summary sections and correct the visit index for search hits 2026-10-22 18:54:27 +01:00
alan 76d3ac040c test(app): make the model fixtures use an unsupported backend and answer the directory read 2026-10-22 18:48:50 +01:00
alan 0ee68204cd merge(app): land the search selection probe evidence 2026-10-22 18:45:00 +01:00
alan ce28cb58b1 merge(app): land flutter/chat-question-notice 2026-10-22 18:45:00 +01:00
alan 372f0d9976 merge(app): land flutter/run-directories 2026-10-22 18:45:00 +01:00
alan a7e4601373 merge(app): land flutter/run-report-format 2026-10-22 18:45:00 +01:00
alan 19c0e1c9fa merge(app): badge the Runs tab with the attention count 2026-10-22 18:45:00 +01:00
alan d47dc056ee docs(app): add the late probe and badge findings to the next-session prompt 2026-10-22 18:41:45 +01:00
alan 2681512eed docs(app): prompt for the next session 2026-10-22 18:41:22 +01:00
alan eb80092860 feat(app): mirror the attention count on the Runs tab 2026-10-22 18:40:55 +01:00
alan 4f0d2aab6f test(app): browser probe for search result selection 2026-10-22 18:40:35 +01:00
alan b8d18bcb80 feat(app): suggest server workspaces in run dialog 2026-10-22 18:37:35 +01:00
alan 6eb2a7b85c feat(app): add report format to pipeline launch 2026-10-22 18:37:32 +01:00
alan 4280881436 feat(app): notify on chat questions 2026-10-22 18:37:18 +01:00
alan 88476800c0 docs(app): hand off the open lane wave 2026-10-22 18:37:10 +01:00
alan faa5cc003b wip(app): live New marks from pushed chat frames (run 151, tests and lint pending) 2026-10-22 18:36:47 +01:00
alan 1bcc26a4fd docs(app): refresh parity rows for the landed micro lanes 2026-10-22 18:24:19 +01:00
alan 83d013f10e docs: record Claude Code chat backend deployment 2026-10-22 18:23:48 +01:00
alan 0acd7346bb feat(chat): add Claude Code chat backend 2026-10-22 18:20:10 +01:00
alan dc6cb9aee1 docs(app): record the chat-tasks landing and the first native builds 2026-10-22 18:09:33 +01:00
alan 67045f2526 build(app): raise the iOS deployment target to 15.0
Xcode 27 supports deployment targets from 15.0, so the 13.0 scaffold value
stops the unsigned device build at target integrity.
2026-10-22 18:06:35 +01:00
alan ee1de88be4 test(app): answer the task-bar shells snapshot in chat application fixtures
The conversation now reads chat_shells on mount and after a reconnect, and
the client serializes requests, so the deep-link and reconnect fixtures
must answer that snapshot before the history page can leave the queue.
2026-10-22 18:00:54 +01:00
alan 88e9209434 merge(app): land chat-tasks 2026-10-22 17:56:21 +01:00
alan a26bfe2b0c fix(app): bound the background-task output pane and row labels
Review 139 found the selected task's output page unbounded, overflowing a
phone-height conversation. The bar now keeps half the viewport and scrolls
its own body, the output pane is capped at twelve scaled lines, row labels
elide instead of overflowing, and a reply without a page reads as
unavailable rather than empty.
2026-10-22 17:56:00 +01:00
alan 19316b2969 merge(app): land graph-pulse 2026-10-22 17:47:35 +01:00
alan c3f7f520db merge(app): land schedule-seed 2026-10-22 17:47:35 +01:00
alan 7486bac102 merge(app): land chat-scroll 2026-10-22 17:47:35 +01:00
alan f2c33d2a1e feat(app): schedule a recorded run with its options
The run detail now offers the web's "Schedule this run" action when the
run names a positive pipeline and pinned version. It opens the existing
create editor seeded from the run and sends nothing until Save.

The seed preserves every field the browser's scheduleDraft({ run })
copies: title (following the title_source rule), all input keys with
prompt kept editable, pinned version, workspace, notify mode, write
paths, tool access, model, stage models and output format. build() emits
the same conditional payload as serializeSchedule.

One request key is minted per editor opening so a refused save retries
without duplicating the schedule. Advanced options are seed-only for
now: the editor has no controls for them yet.
2026-10-22 17:28:28 +01:00
alan 407551b8bb feat(app): pulse the run graph's recorded current stage
Mark the run's recorded current stage on the run graph while it executes. The
halo is a foreground painter outside the node box, so it adds no size, hit
target or semantics, and it is derived only from RunGraphState.activeStage,
which is non-null only while the run reports executing. Reduced motion keeps a
still ring instead of animating.

Widget tests cover the sole active node, a finished run with no halo or ticker,
reduced motion, toggling it at runtime and unchanged node extents.
2026-10-22 17:17:39 +01:00
alan e4c196d75b feat(app): follow streamed chat and restore its read position
Transcripts pin to the newest end while following, release on the operator's upward scroll, and offer a native Jump to latest control carrying the count of messages that arrived meanwhile. The chat destination keeps each conversation's saved position so reopening restores it.
2026-10-22 17:15:51 +01:00
alan 2cb4a0c555 feat(app): show a session's running background tasks
The conversation reads the session's recorded chat_shells snapshot and folds
pushed shell frames, so only tasks the server still reports as running appear.
The list is capped at three visible rows and scrolls beyond, and a task that
exits leaves it.

Selecting a task opens its recorded command, identity and running status plus
one bounded chat_shell_output page (cursor 0, 64 KiB). Empty, unavailable and
refused reads are reported with native Retry/Refresh controls, and a refused
snapshot is shown with its reason instead of claiming there are no tasks.
Both reads carry the session id, linking every task to its conversation.
2026-10-22 17:14:56 +01:00
alan cf6da4acaa merge(app): land changes-paging 2026-10-22 16:15:50 +01:00
alan afe6e16e77 merge(app): land chat-slash 2026-10-22 16:15:50 +01:00
alan d44fee5f2d merge(app): land search-pane 2026-10-22 16:15:50 +01:00
alan 6ca4120578 merge(app): land transport-recovery 2026-10-22 16:15:50 +01:00
alan 2d1cd743ee fix(app): keep a search selection one-shot and always reach Summary
A retired or unknown field hit now selects the plain Summary instead of
leaving an open visit pane in place, matching the browser's searchFieldTab
and Android. The resolved target is a sealed Summary/visit value, so the
field mapping lives in one place.

An unapplied request is dropped when the shell leaves the run it names, so
Backing out of a loading detail no longer replays the selection on a later,
unrelated visit. Search/Templates/Schedules pages above the run keep it.
2026-10-22 16:03:18 +01:00
alan c0ba5d5438 test(app): page the Changes browser probe through recorded visits
Collect per-visit capture states and visit numbers with Previous/Next
instead of one body snapshot, assert the pager clamps at both ends, and use
a trusted mouse event for Copy patch so the clipboard readback still works
in current headless Chrome.
2026-10-22 15:56:33 +01:00
alan 9532ecddcf feat(app): page the run Changes surface one recorded visit at a time
The run-wide header, note, filter and matched-path counter still describe
every visit; below them Previous/Next move through the recorded visits in
run order without wrapping, and the shown visit keeps its own stage and
Visit N heading. A single recorded visit renders no pager.
2026-10-22 15:56:30 +01:00
alan 3f4c8cb00c style(app): format the lifecycle and settings tests 2026-10-22 15:55:11 +01:00
alan 8b9a298dd1 feat(app): reconnect on foreground and keep the protocol warning 2026-10-22 15:48:07 +01:00
alan 63babc597a feat(app): offer the chat slash command palette
A leading slash opens the recorded command palette above the composer,
filtered by name prefix and driven by Up/Down, Enter, tap and Escape.

Slash drafts never reach the prompt path: a recorded command reports
locally that its action is not implemented yet, and an unknown word takes
the web client's no-send report with an explicit Send as message offer.
Enter and the primary control share that route.

Adds the chat commands domain vocabulary, the palette widget, composer
wiring and regression tests; notes/C9-commands.md records behaviour and
the remaining command-action gap.
2026-10-22 15:47:46 +01:00
alan 133df9301d feat(app): select a search hit's recorded run section or visit 2026-10-22 15:35:19 +01:00
alan 6b021f1483 merge(app): land settings layout rhythm 2026-10-22 15:21:29 +01:00
alan 3739188a31 merge(app): land pipelines-layout 2026-10-22 15:07:12 +01:00
alan 7e368606a0 merge(app): land artifacts-layout 2026-10-22 15:07:11 +01:00
alan 4c801efe36 merge(app): land runs-toolbar 2026-10-22 15:07:11 +01:00
alan b84b53749e merge(app): land chat-layout 2026-10-22 15:07:11 +01:00
alan 594d1d07b9 merge(app): land run-summary-parity 2026-10-22 15:07:11 +01:00
alan d1ffa7c79b feat(app): compact chat session rows and thread header
Follow the web chat layout on both hosts without changing request shapes or
bubble/composer behaviour.

- Session rows (Material and Cupertino): title with trailing relative
  recency, muted `directory · model` line with the `New`/`Closed` word at
  the trailing edge. Shared row content keeps one arrangement; native tiles
  keep their own padding, separators and subtitle size. The state word keeps
  its intrinsic width and the metadata ellipsises first, so it is never
  clipped at 320px/2x.
- Thread header: one row of compact icon-only Back, ellipsised title,
  bounded model control and Chat information. Back keeps the destination as
  its accessible name and both hosts share `Key('chat-back')`.
- Share the epoch-millis parser as `chatSessionMillis`, and match the web's
  relative-time words, including `Sept`.
- Cover the row content, status word at narrow widths, header layout and
  Back accessibility in widget tests; update existing tests for the
  separate trailing status word.
2026-10-22 15:01:21 +01:00
alan edb558560f feat(app): match the web Settings rhythm
Group each Settings section under one compact title, tighten the page to the
web's 8/16 spacing and 20/16/32 page insets, and make field labels secondary so
only the section title carries emphasis. Drop the duplicate Notifications
heading now that the permission tile draws its own title.

Adds a rendered-geometry regression for the centred 720px column, the title and
section gaps, the secondary label role on both platforms, and the single
Notifications heading.
2026-10-22 14:39:57 +01:00
alan c553b7d90d feat(app): give the artifact gallery the web's compact layout
Put the page summary and the recorded capture notes on one scrolling
header, style Material section headings as muted titleSmall, and draw a
hairline between Material rows only. Share the selection-facts hierarchy
between the sheet and the viewer and order the sheet actions Close,
Copy link, Open on both hosts.

The header now rides inside the artifact list's scroll view, so many
partial visits or a large text scale scroll with the rows instead of
overflowing the page and collapsing the list.

Tests cover per-host headings, dividers, notes, sheet order, and the
constrained 2x large-text layouts.
2026-10-22 14:39:08 +01:00
alan 78e9d03759 feat(app): follow the web pipeline list composition
Compact list toolbar and rows on the web's 12px inset, a title line with
the trailing version, one muted facts line plus the last-run line, and
row separators. The detail header becomes one identity line; its recorded
id/version/stage facts move to the top of Summary, where web renders
detail-subtitle.
2026-10-22 14:25:59 +01:00
alan 535dee0805 feat(app): compact runs filter and sort toolbar
Replace the full-width runs dropdowns and status chips with web-shaped
controls: a Material filter popup with checked statuses and triggers, a
sort menu, and removable applied-filter chips; Cupertino gets a compact
Filter/Sort row plus one action sheet with live check marks. Add
RunsController.activeFilterCount and clearFilters(), and use the shared
seven-state run vocabulary. Clarify the singular active-filter tooltip.
2026-10-22 14:20:05 +01:00
alan be6b6239fc feat(app): match the web run detail tabs and summary shape 2026-10-22 14:13:38 +01:00
alan dc0a52380b merge(app): land chat-model-picker micro-slice 2026-10-22 12:30:43 +01:00
alan 74d0bb73c2 merge(app): land run-decide-deeplink micro-slice 2026-10-22 12:30:43 +01:00
alan a45574df6b merge(app): land chat-attach-send-ui micro-slice 2026-10-22 12:30:43 +01:00
alan 98c02c0c09 Merge branch 'main' into flutter/chat-model-picker 2026-10-22 12:28:15 +01:00
alan 2a66be7b27 feat(app): choose a chat model from the conversation header
Native model control and chooser in the chat thread header, matching the web
chat_models/chat_model exchange. Fixes the chat_models list parsing, keeps the
accepted server echo across Back/reopen, and resolves the session row for
/chat/:id deep links.
2026-10-22 12:28:13 +01:00
alan bc98b6cab8 fix(app): wide Cupertino sidebar, compact run tabs, web-like chat bubbles 2026-10-22 12:25:12 +01:00
alan d4f64d7fa7 merge(app): bring main into chat attach send UI 2026-10-22 12:14:29 +01:00
alan c0eac5fc8b fix(app): keep chat attachment send analysis clean
Remove the redundant dart:typed_data import so integrated analysis is
clean, restore immediate composer focus on send, and cover operation-id
reuse for refused attachment retries plus duplicate-name removal.
2026-10-22 12:14:26 +01:00
alan a2f0c6eb9e Merge branch 'main' into flutter/run-decide-deeplink 2026-10-22 12:00:56 +01:00
alan 87bb518c33 feat(app): send chat attachments with the composer prompt 2026-10-22 11:52:42 +01:00
alan 9344e6d3c0 feat(app): open a run's decision prompt from its URL
A /runs/:id?action=decide route now opens the landed decision prompt once the named detail loads, and only when that detail genuinely awaits a person. A non-waiting run consumes the request without inventing a prompt, and dismissing the prompt leaves the loaded detail. The route flag is forwarded through the existing destination seam; submission, refusal wording and the bounded re-read are shared with the detail's Decide button.
2026-10-22 11:52:22 +01:00
alan 522f5a3ae0 build(android): declare the internet permission for the next client 2026-10-22 11:49:20 +01:00
alan a1f6edc041 docs(app): record notices, stage deep link and the next lane wave 2026-10-22 11:48:15 +01:00
alan dd890a93a3 test(app): find the composer field instead of a fixed point 2026-10-22 11:48:04 +01:00
alan 81b2805cdd merge(app): land pipeline-stage-deeplink micro-slice 2026-10-22 11:44:32 +01:00
alan 803eeb2158 merge(app): land chat-notices micro-slice 2026-10-22 11:44:32 +01:00
alan de003070f5 Merge branch 'main' into flutter/pipeline-stage-deeplink 2026-10-22 11:42:14 +01:00
alan eb16a4caba feat(app): open a pipeline stage from its URL
The route `/pipelines/:id[/:version]/stage/:key` now opens the pipeline
detail's Graph tab with the named stage selected and its authored
definition pane for the pinned version. A key the pinned definition does
not declare opens the Graph tab with nothing selected and no pane; no key
keeps the ordinary Summary tab.

The request is scoped to the pipeline and version the URL names, consumed
once the named pin's first reply is shown, and never replayed by a re-read,
a later version switch or a different pipeline. A route change from a pin
to latest re-reads latest, matching the web's requested-version rule.
2026-10-22 11:42:11 +01:00
alan 76c2b7a665 docs(app): refresh parity rows for the landed slices 2026-10-22 11:31:50 +01:00
alan ce0e51357c Merge main into flutter/chat-notices: keep chat info beside dismissible notices 2026-10-22 11:14:01 +01:00
alan c1b87dea54 feat(app): dismiss recorded local chat notices in the thread
Show dismissible notices for refused history reads, refused live watches and a running compaction. A dismissal lasts only while the recorded condition is unchanged; a syncToken gap hides pre-gap notices until fresh state arrives.
2026-10-22 11:10:42 +01:00
alan 9830312362 merge(app): land artifact-session-repair micro-slice 2026-10-22 11:09:47 +01:00
alan 36fb2255d0 merge(app): land chat-info-facts micro-slice 2026-10-22 11:09:47 +01:00
alan 2fdcafb632 merge(app): land run-visit-deeplink micro-slice 2026-10-22 11:09:46 +01:00
alan 6b06dfc283 merge(app): land chat-attach-chips micro-slice 2026-10-22 11:09:46 +01:00
alan 1d0646db80 merge(app): bring main into the session export repair candidate 2026-10-22 10:52:53 +01:00
alan 776afcacea fix(app): offer the session export repair only where the web does
Suppress the export-only repair for a legacy session.html with no recorded
evidence, narrow the identity check to the web's own, and keep the stricter
partial rule for an unverified complete status. Fix the analyzer findings,
add gating/legacy/Cupertino coverage, format, and correct the parity docs.
2026-10-22 10:52:36 +01:00
alan 87f69d594c Merge branch 'main' into flutter/run-visit-deeplink 2026-10-22 10:48:43 +01:00
alan f57d8eeb76 feat(app): open a recorded run visit from its URL
`/runs/:id/stage/:key?visit=N` now selects that stage's N-th recorded
visit in the run detail Timeline, matching the web client's stage-local
visit ordering. A stage key without a visit opens the latest recorded
visit, an out-of-range index clamps to the last one, and a stage with no
recorded visit selects only its Graph node instead of inventing a visit.

Route plumbing carries the query end to end: boot seeds the router from
path and query, the parser reads path plus query, and restore keeps `?`
a query separator instead of percent-encoding it. That also repairs the
existing `?action=decide` and `/runs?pipeline=` URLs.

The Graph node click and the stage route share one sequence-ordered
resolver, so both open the same latest visit.
2026-10-22 10:48:36 +01:00
alan 7c3179999c Merge branch 'main' into flutter/chat-attach-chips 2026-10-22 10:34:15 +01:00
alan d88efe46e0 feat(app): show removable attachment chips in the chat composer 2026-10-22 10:26:48 +01:00
alan eaa163b592 Merge branch 'main' into flutter/chat-info-facts 2026-10-22 10:22:00 +01:00
alan f487257081 feat(app): show recorded chat usage in a native info panel
The chat thread header gains an Info action that opens a platform sheet (Material bottom sheet, Cupertino popup) with the four harness-reported usage facts in the web order and wording: rate, tokens, context and reported cost. Unknown facts read Unavailable; reported zeros stay zero. A live usage frame replaces an open panel without adding messages or touching turn state.
2026-10-22 10:21:53 +01:00
alan fc573e8743 docs(app): record the schedules destination 2026-10-22 10:16:45 +01:00
alan 2139e21041 feat(app): register the saved-schedule list under Settings at /schedules 2026-10-22 10:16:45 +01:00
alan d78712aa77 feat(app): send the recorded session export-only repair 2026-10-22 10:12:45 +01:00
alan dc9faeb018 docs(app): note the preview listener move to 8098 2026-10-22 10:08:08 +01:00
alan 7aa7007aee feat(app): open pipeline and template deep links and route search results 2026-10-22 09:58:09 +01:00
alan edfcfb0bc9 merge(app): land pipeline-miniature micro-slice 2026-10-22 09:50:21 +01:00
alan 24bc3f7d6e merge(app): land chat-attach-send micro-slice 2026-10-22 09:50:21 +01:00
alan e6e9ed3958 merge(app): land graph-expand-entry micro-slice 2026-10-22 09:50:21 +01:00
alan db7a0cfaf2 merge(app): land chat-activity-overlay micro-slice 2026-10-22 09:50:21 +01:00
alan f61c8f0097 merge(app): land run-session-audit micro-slice 2026-10-22 09:50:21 +01:00
alan 7f502b6c7e merge(app): land route-vocabulary micro-slice 2026-10-22 09:50:21 +01:00
alan ad5a745711 Merge branch 'main' into flutter/run-session-audit 2026-10-22 04:44:02 +01:00
alan 3ee5d0e407 feat(app): finish the visit session export facts
Split the export model/classification from the session wording, add the
no-session, selected-repair and missing-evidence coverage, and update the
parity matrix and R4 note.

The visit probe now passes the scheme name its fixture reads, asserts the
painted theme before capture and re-captures the export states.
2026-10-22 04:43:25 +01:00
alan 3c4ce4c57f feat(app): encode chat prompt attachments on the wire
Build the chat_prompt attachments array in draft order with the web's
{name, mime, data} shape, trimming and 8-file/1 MiB bounds, and read a
recorded history file part back to an attachment.
2026-10-22 03:45:52 +01:00
alan 7e4c78f615 feat(app): draw the recorded pipeline miniature on list rows 2026-10-22 03:37:36 +01:00
alan 3ef2445e83 Merge main into flutter/route-vocabulary: adopt the session actions and artifact gallery work 2026-10-22 03:35:46 +01:00
alan 988834ba37 feat(app): parse and emit the web client's route vocabulary
Widen AppRoute to the pipeline detail, definition stage pane, runs filter,
run stage pane, decision prompt and template detail the web client already
addresses, and canonicalise the /settings/templates aliases. The URL codec
moves to app_route_codec.dart as a part file to keep the route model and the
parser under the app's 250-line aim.
2026-10-22 03:35:43 +01:00
alan 39fffeb181 Merge branch 'main' into flutter/chat-activity-overlay 2026-10-22 03:34:39 +01:00
alan 2a0e9532dc merge(app): land the chat attachment picker seam 2026-10-22 03:33:57 +01:00
alan d160361503 docs(app): record chat sessions, turn documents and the attachment picker 2026-10-22 03:32:52 +01:00
alan 3e6200eeb0 merge(app): land the chat attachment picker seam 2026-10-22 03:32:37 +01:00
alan 4aee83c262 feat(app): pick chat attachments from the host file input 2026-10-22 03:32:33 +01:00
alan 5fa07a1cde merge(app): land the session export drill-down fix 2026-10-22 03:32:06 +01:00
alan af5bda520e Merge branch 'main' into flutter/chat-activity-overlay 2026-10-22 03:31:42 +01:00
alan 1d648c520e feat(app): expand a recorded chat activity line in place
The summary line now carries the host's own disclosure control and, when expanded, the recorded lifecycle, input, output, error, duration and edit diff. Each absent field keeps an exact sentence; no value is inferred from answer text.
2026-10-22 03:31:21 +01:00
alan 379872b94a fix(app): keep the session export out of the per-visit stage drill-down 2026-10-22 03:30:09 +01:00
alan a454c04f9b merge(app): land the pipeline graph expand entry test 2026-10-22 03:29:26 +01:00
alan 51e626bf14 merge(app): land visit turn documents in the artifact gallery 2026-10-22 03:28:56 +01:00
alan 3fa4657be7 feat(app): turn documents in the artifact gallery 2026-10-22 03:28:53 +01:00
alan ddd8eacb1f feat(app): show recorded session export state in visit pane 2026-10-22 03:26:33 +01:00
alan b18f099caf test(app): cover the pipeline graph tab expand entry 2026-10-22 03:25:36 +01:00
alan 4f684ba467 merge(app): land chat session actions after cancelling the oversized run 2026-10-22 03:22:50 +01:00
alan 68d291602b feat(app): create, rename, star, close and hide chat sessions 2026-10-22 03:22:44 +01:00
alan 16eb1bcb08 docs(app): record the first micro-slice wave 2026-10-22 03:20:44 +01:00
alan 07f6446c24 test(app): assert the visible metric rows in the app probe 2026-10-22 03:20:36 +01:00
alan 559d767f39 merge(app): land pipeline-list-meta micro-slice 2026-10-22 03:11:54 +01:00
alan b3cbec6501 merge(app): land changes-visit-entry micro-slice 2026-10-22 03:11:54 +01:00
alan c98e6baec6 merge(app): land chat-attach-model micro-slice 2026-10-22 03:11:54 +01:00
alan f96e2893db merge(app): land chat-activity micro-slice 2026-10-22 03:11:54 +01:00
alan 5e682bac3a feat(app): label pipeline rows from recorded version and stages 2026-10-22 03:00:32 +01:00
alan 322f0a066f feat(app): open Changes for the selected visit from its pane
The opened recorded-visit pane gains one native Changes action next to
Back to timeline. It reuses showRunChanges with only that visit's step,
so the pushed page shows that visit's own capture and no run-wide
summary, and a visit without a capture reaches the honest missing-capture
state. The run-level Changes action and its title are unchanged.
2026-10-22 02:50:20 +01:00
alan 67427e0231 feat(app): add the chat attachment draft model
Record picked attachment metadata and keep the web composer's 1 MiB
total budget with a refusal that leaves the draft unchanged.
2026-10-22 02:39:56 +01:00
alan 6106377208 Merge branch 'main' into flutter/chat-activity 2026-10-22 02:35:09 +01:00
alan f64cd974b7 merge(app): land run Summary recorded fields 2026-10-22 02:34:49 +01:00
alan 51355b470a docs(app): record notification wiring and the search target model 2026-10-22 02:34:22 +01:00
alan 66f7668742 merge(app): land the search target model 2026-10-22 02:33:31 +01:00
alan e7165f7722 feat(app): deliver live attention notifications and show permission in Settings 2026-10-22 02:33:12 +01:00
alan ff65ea2d8e Merge branch 'main' into flutter/chat-activity 2026-10-22 02:33:11 +01:00
alan 4a86f0db77 feat(app): show a recorded chat activity sequence as one line
Lift recorded activity/compaction parts out of an assistant turn into a
single activity row before the answer. Running kinds use the web's phase
words; terminal records keep the label the server recorded.
2026-10-22 02:33:08 +01:00
alan 88c6e7740b merge(app): land run Summary recorded fields after main 2026-10-22 02:30:01 +01:00
alan 3da570e647 feat(app): show the run's recorded facts in its Summary
Stage, Started, Finished, Duration, Provider/model, Target and Verdict
come from the run reply and the current stage's latest recorded visit.
An absent fact reads Unavailable; tokens and cost keep their Metrics
home.
2026-10-22 02:29:57 +01:00
alan 24d74a810b Merge branch 'main' into flutter/search-target 2026-10-22 02:18:47 +01:00
alan cbba026cdc feat(app): resolve recorded search hits to their exact targets
Map every recorded search hit payload (pipeline, version, run, step,
field, artifact) to the server's own target token and accept that
token back, so a result can name the exact entity it opened. A hit
whose payload or recorded token is incomplete or disagreeing is
reported as unresolved rather than guessed.
2026-10-22 02:18:44 +01:00
alan e68d598a41 docs(app): record start pipeline, visit pane, notifications and graph zoom 2026-10-22 02:14:04 +01:00
alan 37f67197c9 merge(app): land start-a-pipeline dialog and accepted-run navigation 2026-10-22 02:13:05 +01:00
alan f6575fff11 Merge branch 'main' into flutter/start-pipeline 2026-10-22 02:07:51 +01:00
alan 53a8f668ca feat(app): start a pipeline from the detail view
Native Run action opens the web's prompt/workspace/notify dialog, sends the exact run_pipeline body against the pinned resolved version with one request key per confirmed attempt, keeps refusals in the dialog, reconciles a lost reply by key, and opens only the server-named run through the existing run route with one fresh Runs list read.

Adds a shared failure-reason helper so operators never see Dart runtime prefixes, and records the slice boundary in notes/P3-run.md.
2026-10-22 02:07:49 +01:00
alan 8cfc4443df docs(app): replace oversized lane slices with one-behavior contract 2026-10-22 02:06:39 +01:00
alan 1ef1f68eed merge(app): land the recorded visit pane after a retained deadline 2026-10-22 02:05:36 +01:00
alan 372fc87023 merge(app): land graph pan/zoom and expanded view after a retained deadline 2026-10-22 02:05:36 +01:00
alan 74cc195cb8 merge(app): land notification capability after a retained deadline 2026-10-22 02:05:36 +01:00
alan f0d621250f feat(app): recorded visit pane in the run Timeline 2026-10-22 02:05:33 +01:00
alan cc7eba59b6 feat(app): graph pan, zoom and expanded view 2026-10-22 02:05:20 +01:00
alan b8e5c3e7e3 feat(app): notification capability with transition dedupe 2026-10-22 02:05:20 +01:00
alan 13ee502ca4 merge(app): land native chat permission and question cards 2026-10-22 02:01:51 +01:00
alan 221a2582dc feat(app): native permission and question cards in the chat transcript 2026-10-22 02:01:45 +01:00
alan 38488b7ec7 docs(app): record artifact download/share 2026-10-22 01:43:10 +01:00
alan 7d078868f1 merge(app): land artifact download/share after a retained deadline 2026-10-22 01:41:38 +01:00
alan 841dd502b8 feat(app): download and share artifacts as named files 2026-10-22 01:41:36 +01:00
alan 7718604268 feat(app): add the notification capability behind a platform seam
An abstract NotificationBridge with a dart:js_interop web implementation and
an honest unsupported stub; a NotificationController that reports only the
platform's permission word, asks only from an explicit gesture, never
re-prompts a denied answer, and notifies once per run+kind+finished marker
under its own persisted ledger key. One reusable native
NotificationPermissionTile for Settings, an isolated browser probe, and
focused tests. No shell/settings wiring.
2026-10-22 01:23:24 +01:00
alan cb0242b709 docs(app): set the remaining autonomous queue in dependency order 2026-10-22 01:09:06 +01:00
alan d5f24b8259 deps(app): declare package:web and harden the composer probe boot wait 2026-10-22 01:08:40 +01:00
alan b8f6d0b94a docs(app): record the live Needs-you bell and the republished preview 2026-10-22 00:57:06 +01:00
alan bdfb1284db merge(app): land the Needs-you bell over the Runs list after retained-run recovery 2026-10-22 00:54:39 +01:00
alan a309d9d571 feat(app): show the live Needs-you bell over the Runs list rows 2026-10-22 00:54:17 +01:00
alan 1835bc8832 docs(app): record saved schedules in the pipeline detail 2026-10-22 00:50:04 +01:00
alan 92706a290e merge(app): land saved schedules in the pipeline detail after retained-run recovery 2026-10-22 00:47:10 +01:00
alan dd5a5edc4b test(app): follow the run detail tabs in the real-app probe 2026-10-22 00:46:48 +01:00
alan 68993efaac docs(app): record the run detail Graph tab landing and its probe 2026-10-22 00:42:39 +01:00
alan ea2179cd66 feat(app): wire saved schedules into the pipeline summary 2026-10-22 00:42:09 +01:00
alan 7dfa5e9876 merge(app): land run detail Graph tab after retained-run recovery 2026-10-22 00:39:54 +01:00
alan d74e5c501f feat(app): add the Graph tab and recorded-stage selection to run detail 2026-10-22 00:39:42 +01:00
alan bc906ebb38 docs(app): record markdown wiring, Templates entry and the follow-up evidence fix 2026-10-22 00:38:02 +01:00
alan 78827fe63a merge(app): land Templates entry from Settings after retained-run recovery 2026-10-22 00:29:50 +01:00
alan d527c839cc feat(app): open Templates from Settings and refresh Pipelines on create 2026-10-22 00:29:44 +01:00
alan 19f2aa6217 merge(app): land markdown call-site wiring after retained-run recovery 2026-10-22 00:26:41 +01:00
alan dc6b963170 feat(app): render markdown in chat messages and artifact previews 2026-10-22 00:26:36 +01:00
alan fac055da6e fix(pipeline): let a re-saved visit keep the newest evidence 2026-10-22 00:25:59 +01:00
alan 1e578985e0 test(app): verify composer send in the real app flow 2026-10-22 00:19:36 +01:00
alan 2adecfff5e docs(app): record server evidence fix, recovered slices and preview 2026-10-22 00:13:06 +01:00
alan 0e323dde10 merge(app): land pipeline Graph tab after retained-deadline recovery 2026-10-22 00:07:56 +01:00
alan 46fe4ed2d3 merge(app): land Needs-you bell and sheet after retained-review recovery 2026-10-22 00:07:56 +01:00
alan 0176720fe5 feat(app): render the pinned definition graph in the pipeline Graph tab 2026-10-22 00:07:53 +01:00
alan ee93d4f55b feat(app): add native Needs-you bell and sheet over the attention model 2026-10-22 00:07:53 +01:00
alan a692befad4 merge(app): land native chat composer after retained-run recovery 2026-10-21 23:49:08 +01:00
alan 421831b585 feat(app): add native chat composer with persisted drafts and stop 2026-10-21 23:49:04 +01:00
alan a5de5cd7ff fix(pipeline): treat an identical step-evidence replay as success 2026-10-21 23:48:45 +01:00
alan 4afcdff458 merge(app): land run-mode graph evidence component 2026-10-21 23:42:49 +01:00
alan f920c4f17f merge(app): land shell Search entry after retained-run recovery 2026-10-21 23:42:49 +01:00
alan 5b833e721e feat(app): add run-mode graph with recorded-visit evidence 2026-10-21 23:42:46 +01:00
alan fd380ef2f4 feat(app): open Search from the shell over the shared session 2026-10-21 23:42:41 +01:00
alan 5b85c8dd6d refactor(app): split markdown parsing into cohesive files 2026-10-21 23:42:01 +01:00
alan 542e0bc563 merge(app): land native transcript markdown rendering 2026-10-21 23:37:38 +01:00
alan 90fc9e8a18 Merge branch 'main' into flutter/chat-markdown 2026-10-21 23:34:35 +01:00
alan a5afc55a9d feat(app): render native transcript markdown
Port the web markdown subset to a pure Dart parser and a native
Material/Cupertino block renderer, with a caller seam for assistant text
parts and safe http(s) link activation.

- parser: entities, paragraphs, H1-H6, fenced code, quotes, lists, tables,
  rules, inline code/emphasis/links; entity overflow stays literal
- renderer: host text roles, inline/fenced code fills, table header fill,
  heading level and list/columnHeader semantics, horizontal code/table
  scrolling, native selection
- tests cover parser safety, both hosts, the seam and real taps
- probe plus note record the web evidence and remaining limits
2026-10-21 23:34:33 +01:00
alan 529660fcb8 docs(app): record in-app artifact viewer landing 2026-10-21 23:21:25 +01:00
alan dac6232033 merge(app): land in-app artifact preview after retained-deadline recovery 2026-10-21 23:19:30 +01:00
alan 151bd1cbd9 feat(app): add in-app artifact preview with paging and honest limits 2026-10-21 23:19:25 +01:00
alan a897065fec docs(app): record Chat destination, retry and artifact gallery preview state 2026-10-21 23:10:26 +01:00
alan e2b1464b04 test(app): verify the Chat destination in the real app flow 2026-10-21 23:07:31 +01:00
alan 2de1c90730 merge(app): land retry and restart actions in the native run detail 2026-10-21 23:01:24 +01:00
alan 8d7ceffdbd merge(app): land live Chat destination after retained-deadline recovery 2026-10-21 22:58:45 +01:00
alan 86a9b4a664 feat(app): register the live Chat destination with read-only history 2026-10-21 22:57:08 +01:00
alan 0af62595c4 merge(app): land retry wiring in the native run detail
Conflicts: app/lib/features/runs/ui/run_detail_actions.dart.
Keep main's recorded-artifacts action and the retry branch's spaced,
render-gated Wrap: Rename, Retry, Cancel, then Recorded artifacts.
2026-10-21 22:52:00 +01:00
alan c53dedc544 feat(app): wire retry and restart into the native run detail
Render Retry beside Rename on a stopped failed run under both native
hosts, send only {run_id, request_key} for resume and add
retry_mode=restart for a fresh start, and open the run the accepted
reply names. Keep hidden actions out of the Wrap so native 8/4 dp
spacing is not doubled, and use a literal 2^32 entropy bound because
dart2js evaluates 1 << 32 as 0.

Adds wiring, guard and layout tests, a browser-only key regression and
the retry probe; notes/R2c-wire.md records the checks and limits.
2026-10-21 22:49:26 +01:00
alan 4f2f87b445 test(app): verify the artifact gallery inside the real app run detail 2026-10-21 22:44:40 +01:00
alan 665069ea09 merge(app): land recorded artifact gallery in run detail 2026-10-21 22:34:25 +01:00
alan df6524c7d9 feat(app): add recorded artifact gallery to the native run detail 2026-10-21 22:34:21 +01:00
alan 662ea0299b docs(app): track stage pane landing and attention/run-graph queue 2026-10-21 22:27:39 +01:00
alan 2bc2358b9a merge(app): land native stage definition pane after retained-review recovery 2026-10-21 22:26:38 +01:00
alan d88213deb4 feat(app): add native authored stage definition pane 2026-10-21 22:26:34 +01:00
alan 44886a6b10 fix(app): choose search controls from the actual host app class 2026-10-21 22:19:18 +01:00
alan 261d3a19c5 merge(app): land pure Needs you attention model 2026-10-21 22:17:23 +01:00
alan 224f8eec07 fix(app): keep attention dismissals in this client's own storage namespace 2026-10-21 22:17:20 +01:00
alan 78ad636f83 docs(app): record template, schedule and Changes verification state 2026-10-21 22:16:50 +01:00
alan 11440efd90 Merge branch 'main' into flutter/attention-model 2026-10-21 22:14:06 +01:00
alan 38f8576c84 feat(app): add the pure native attention model
Port the browser's Needs-you list, dismissal bookkeeping and attention
transition ledger as widget-free Dart under lib/features/attention/domain/.
Includes the local-day window, export-wait exclusion, {runId}:{kind}
identities, sorted dismissal storage and focused regressions.
2026-10-21 22:14:04 +01:00
alan 08e216a2fa test(app): verify recorded Changes navigation in the real app flow 2026-10-21 22:12:21 +01:00
alan 7219c5a3e3 docs(app): record template gallery acceptance and landing 2026-10-21 22:07:45 +01:00
alan 4258caa31b merge(app): land native template gallery and detail 2026-10-21 22:06:39 +01:00
alan ff9d3ce4a8 fix(app): use native schedule text roles instead of fixed sizes and weights 2026-10-21 22:06:39 +01:00
alan 1e998a6679 Merge branch 'main' into flutter/templates-gallery 2026-10-21 22:04:02 +01:00
alan c56b5d45a4 feat(app): add native template gallery with detail and create 2026-10-21 22:03:55 +01:00
alan 6a0f1c345e docs(app): record schedule form acceptance evidence 2026-10-21 22:00:07 +01:00
alan 610c58b45b merge(app): land native saved-schedule editor form 2026-10-21 21:57:38 +01:00
alan 365e72c22a docs(app): record recovered landings and current port inventory 2026-10-21 21:57:10 +01:00
alan ca9e42e080 docs(app): clarify reviewed patch snapshot in schedule form notes 2026-10-21 21:57:03 +01:00
alan f9db64a916 docs(app): record merged schedule form checks 2026-10-21 21:56:41 +01:00
alan a1d3e539f3 Merge branch 'main' into flutter/schedule-form 2026-10-21 21:54:31 +01:00
alan 025142a97d merge(app): land native chat draft and send state controller 2026-10-21 21:54:28 +01:00
alan 475e1ae508 docs(app): record landed state for the schedule editor form 2026-10-21 21:53:55 +01:00
alan 215755bb1e test(app): accept the Cupertino create prompt at 2x without role assumptions 2026-10-21 21:52:57 +01:00
alan 634092a6b7 Merge branch 'main' into flutter/schedule-form 2026-10-21 21:51:18 +01:00
alan 8760a01b17 feat(app): add native saved-schedule editor form 2026-10-21 21:51:15 +01:00
alan d6e6a65db1 docs(app): record the C3 composer candidate as committed
Keep the task note honest about the committed branch and the server-owned landing.
2026-10-21 21:27:10 +01:00
alan caede7b89b Merge branch 'main' into flutter/chat-composer 2026-10-21 21:25:54 +01:00
alan 565cdaaa1b feat(app): add native chat composer draft and send state
Persist the exact per-session draft, send one plain prompt with a stable operation/native identity, restore a refused draft without overwriting newer typing, track the reply's queued flag and stop through chat_interrupt. No UI, transport, server or platform change; the optimistic/rejection callbacks and loadDraft are the thread integration seam.
2026-10-21 21:25:51 +01:00
alan 37332a3d40 fix(app): keep template controls small and verify create confirmation 2026-10-21 21:22:02 +01:00
alan 76fb2cdd87 merge(app): land native create-only template dialog
# Conflicts:
#	app/test/features/runs/ui/run_changes_action_test.dart
#	app/test/features/runs/ui/run_changes_status_test.dart
#	app/tool/diff_wiring_probe.dart
2026-10-21 21:14:29 +01:00
alan 2088d4607e fix(app): preserve unknown user parts and native transcript typography 2026-10-21 21:12:50 +01:00
alan 57ba909909 merge(app): land native chat message and disclosure surfaces 2026-10-21 21:10:58 +01:00
alan a9c39ed904 merge(app): land recovered measured definition graph canvas 2026-10-21 21:08:14 +01:00
alan 97d7be55ec fix(app): integrate Changes tests with shared actions gateway 2026-10-21 21:08:14 +01:00
alan bf378c94ca feat(app): finish measured native graph canvas and clear labels from wires 2026-10-21 21:06:57 +01:00
alan b7d5d026f4 fix(app): repair runs test wiring inherited from main
Main's Runs detail now requires the shared gateway, but three inherited
call sites (two Changes tests and the diff wiring probe) still constructed
it without one, and the Cupertino 2x detail test tapped Output before the
reveal scroll had been pumped. Pass the existing fake gateway at each call
site and settle after scrollUntilVisible. No production behaviour changes.
2026-10-21 21:01:09 +01:00
alan a4170fa5d5 merge(app): land native create-from-template prompt 2026-10-21 20:57:34 +01:00
alan e69883b5b6 feat(app): add native create-from-template prompt
Validate the template source first, then submit the typed name create-only,
matching the browser's P5 flow and wording. Refusals keep the prompt and the
typed name; the accepted detail is reported once through the callback. The
labelled field, visible feedback and native Material/Cupertino controls are
covered by focused widget tests and a loopback browser probe.
2026-10-21 20:57:30 +01:00
alan d401b9062c merge(app): land recovered Changes navigation and native form menus 2026-10-21 20:49:00 +01:00
alan 77c71eb45e feat(app): finish native run Changes wiring and scaled form menus 2026-10-21 20:48:45 +01:00
alan 74475b9a4b Merge branch 'main' into flutter/chat-messages 2026-10-21 20:44:02 +01:00
alan 9e4a925587 feat(app): add native chat transcript message row
Render one transcriptRows row with native controls: role-labelled user and
agent messages, verbatim user text, client and attachment names (own name,
URI basename, else file), ordered agent parts, and collapsed reasoning, tool
and unknown-part bodies using ExpansionTile or a Cupertino disclosure.

Blank known parts draw nothing so they no longer fall through to the
unknown-part disclosure; closed bodies build lazily. Adds focused widget
tests, the fixture probe pair and the C2 evidence note.
2026-10-21 20:44:00 +01:00
alan 87220fe886 fix(app): reject schedule edits without exact identity and revision 2026-10-21 20:21:48 +01:00
alan 8807f2b1c3 merge(app): land lossless schedule editor draft validation 2026-10-21 20:20:13 +01:00
alan 1400780ee2 feat(app): expose recorded human decisions in native run detail 2026-10-21 20:18:55 +01:00
alan c970aa5d16 fix(app): expose refused chat watches without losing readable history 2026-10-21 20:09:36 +01:00
alan e3d94cde3c Merge branch 'main' into flutter/schedule-draft 2026-10-21 20:08:05 +01:00
alan 914866f640 feat(app): add pure schedule editor draft and validation
Build a save_schedule record from server schedule records with the web
editor's field messages. The draft preserves unknown record, input, rule
and run-option fields, keeps the exact revision, writes the operator's
workspace and sends no payload while any field is invalid.
2026-10-21 20:08:02 +01:00
alan e0ec91ed28 merge(app): land paged live chat thread controller 2026-10-21 20:07:14 +01:00
alan 18b55603b2 docs(app): track full-port inventory and parallel feature slices 2026-10-21 20:06:24 +01:00
alan f251a9f779 Merge branch 'main' into flutter/chat-thread 2026-10-21 20:04:40 +01:00
alan e20ac9f5a1 feat(app): wire native cancel and track complete port acceptance 2026-10-21 20:04:38 +01:00
alan 76437db018 feat(app): add chat thread controller for live conversations
Owns one open chat session: subscribes with chat_subscribe, reads the newest
history page, folds only this session's chat_event frames, pages older history
with the opaque cursor, and replaces the held turn on resync. Failures keep the
held transcript and surface an error; disposal only cancels the local stream.

Co-authored-by: C2 pipeline <noreply@pipeline.local>
2026-10-21 20:04:38 +01:00
alan 0eb3e23fc8 merge(app): expose pipeline browser through shared live session 2026-10-21 19:53:12 +01:00
alan b6ed1689d9 docs(app): record the landed pipelines candidate and merge verification 2026-10-21 19:49:09 +01:00
alan 698e9791ca Merge branch 'main' into flutter/p1-wire 2026-10-21 19:47:11 +01:00
alan 8476cfd740 feat(app): wire the native pipelines browser on the shared session
Register the landed PipelinesScreen at /pipelines through AppSession, with
an honest first-connection gate, a native reconnect banner that retains the
open list and detail, and an in-place refresh on reconnect. Move the shared
connection chrome out of RunsDestination so both destinations use one
implementation and one wording.

Add destination, registration and reconnect coverage plus an isolated
loopback Chrome probe that drives the real runPipelinesApp() composition.
2026-10-21 19:47:08 +01:00
alan 7be4456fbf docs(app): record native browser landing and Rename preview delivery 2026-10-21 19:26:44 +01:00
alan 4f67dc0b9b merge(app): expose native run rename in live details 2026-10-21 19:23:56 +01:00
alan cf5a2ecd44 merge(app): land native pipeline browser after control correction 2026-10-21 19:21:48 +01:00
alan 28b93ae6d0 fix(app): retain native pipeline tabs at every text scale 2026-10-21 19:21:41 +01:00
alan c756ec7461 Merge branch 'main' into flutter/r2-title-wire 2026-10-21 19:16:51 +01:00
alan 3d3ee3a3ab feat(app): wire run rename from the native run detail
Expose the existing RunTitleAction from the real run detail under both native hosts and fold the server's accepted run_detail into the open detail and the matching list row through RunsController, mirroring the web applyRunTitle path. Adds focused wiring/controller tests, a real-composition browser probe and an evidence note. Mobile remains unverified.
2026-10-21 19:16:49 +01:00
alan 9a29208d56 Merge branch 'main' into flutter/p1-pipelines 2026-10-21 19:09:32 +01:00
alan a44f31b989 feat(app): add native pipelines list and detail screen
Read-only Pipelines screen for the Flutter client:

- list_pipelines and list_runs with a last-run join, plus get_pipeline
  with an explicit version (0 = latest); no mutation requests.
- Name, run-presence, last-run-status and schedule filters; six sort
  orders; clear filters; truthful loading, empty and error states.
- Detail Summary, selectable Source and version history with selection
  and return to latest.
- Sequenced list/detail requests so stale replies cannot replace a newer
  selection or open a cleared one; refresh keeps the selected pipeline
  and version.
- Material controls on Android/desktop and Cupertino on iOS; a
  per-label segmented tab row at narrow widths and scaled text, with the
  native control kept wherever an equal share fits.
- Fixture probe entry and Chrome scripts for the rendered evidence;
  widget tests cover filters, sorting, formatting, sequencing, layout
  and the tab row.

Graph rendering remains P2: the Graph tab states that it is pending and
exposes a host hook. PipelinesScreen is not yet registered in the shell.

Evidence and limits: app/notes/P1.md.
2026-10-21 19:09:29 +01:00
alan d292fc96f1 docs(app): record Settings preview delivery and incremental wiring queue 2026-10-21 18:59:29 +01:00
alan fadeaff1cc merge(app): land recorded artifact visit list 2026-10-21 18:56:54 +01:00
alan 31c5585609 merge(app): land native measured graph stage control 2026-10-21 18:56:54 +01:00
alan d05aa0cfbc feat(app): register native Settings on the shared live session 2026-10-21 18:55:50 +01:00
alan 7eaab4b359 docs(app): record real dark-theme evidence for the stage-node probe
The fixture had no darkTheme, so its Material "dark" captures were the
default light theme. Supply the stock dark theme and themeMode.system, rerun
the probe in both schemes, and correct the note's test counts, capture names
and branch state.
2026-10-21 18:47:56 +01:00
alan 596365d914 feat(app): add read-only native artifact visit list
Render recorded artifact groups for the active host, with visit-scoped
selection and an explicit selection callback. Material uses ListTile,
Cupertino uses inset grouped sections with separate heading semantics.
Recorded names, MIME and size are shown verbatim with honest fallbacks;
nothing is resolved, fetched, previewed, downloaded or fabricated.

Adds widget, host and semantics regressions plus an isolated browser probe.
2026-10-21 18:46:18 +01:00
alan d14db60460 Merge branch 'main' into flutter/p2-node-widget 2026-10-21 18:44:19 +01:00
alan e63b01154b feat(app): add native content-sized graph stage node
One content-sized stage node as an ordinary native control. Material uses
stock Card.outlined/Card.filled inside an InkWell; Cupertino uses
CupertinoButton.tinted/filled. onSelected reports the definition key
verbatim, one merged button semantics node carries the exact label and
selected state, recorded status is shown only when the caller supplies it,
and invisible U+200B break opportunities reproduce the web's anywhere
wrapping. Painted-boundary and painted-surface tests cover the UI-review
2x outline and Cupertino container defects.
2026-10-21 18:44:18 +01:00
alan 7b327f012b docs(app): record native diff correction and edge-layer landing 2026-10-21 18:41:52 +01:00
alan 73fc9ec2d6 merge(app): land recorded changes viewer with native-default corrections 2026-10-21 18:40:55 +01:00
alan 32e1cac46f fix(app): keep diff typography and colours native to the host 2026-10-21 18:40:49 +01:00
alan dfb8d5f8c8 merge(app): land native-theme routed graph edge layer 2026-10-21 18:35:41 +01:00
alan c001c53493 docs(app): describe the landed edge patch precisely 2026-10-21 18:34:42 +01:00
alan b61db02303 docs(app): record the edge candidate's committed state 2026-10-21 18:34:33 +01:00
alan 1f44107f6a docs(app): point the edge note at the landed diff 2026-10-21 18:34:23 +01:00
alan fb27886b44 docs(app): keep the graph edge layer within its 160-line budget
Join two doc-comment lines without changing the painter; the file is now 160
lines, matching the item's stated source budget.
2026-10-21 18:33:24 +01:00
alan cc9cd9cee9 Merge branch 'main' into flutter/p2-edge-layer 2026-10-21 18:31:41 +01:00
alan 835f16c0bf feat(app): add passive routed graph edge layer
Paint the landed orthogonal EdgeRoutes on a caller-sized canvas: one polyline
per route, a filled arrow at the target port in the route's real arrival
direction, clipping, and value-based repaint. The layer is pointer transparent
so node widgets below it keep their gestures. Includes focused geometry,
painter and hit-test regressions, an isolated web probe with rendered evidence,
and a note recording the slice and its limits.
2026-10-21 18:31:38 +01:00
alan ada25a59e5 Merge branch 'main' into flutter/d1-diff-viewer 2026-10-21 18:26:55 +01:00
alan 15cca17aa4 feat(app): add run change captures and native diff viewer 2026-10-21 18:26:53 +01:00
alan 1e45d21aa7 docs(app): track chat landing audit recovery and three parallel micro-slices 2026-10-21 17:48:00 +01:00
alan f4d4a9869c merge(app): land reviewed native chat sessions 2026-10-21 17:45:52 +01:00
alan 01624de9cd fix(app): load connected settings details before preferences resolve 2026-10-21 17:44:09 +01:00
alan a816e38e26 Merge branch 'main' into flutter/f4-chat 2026-10-21 17:42:42 +01:00
alan 41d30a4280 feat(app): split chat sessions into native Material and Cupertino views
Split the 406-line chat session browser into a controller, body, shared
adaptive primitives and separate standard Material and Cupertino lists and
dialogs. Preserve the existing server directory/backend catalogs,
instructions field, closed/starred grouping, directory headings and
empty/no-match states.

- keep refresh generations so stale replies are discarded
- open a created chat immediately and refresh the list in the background
- disable rename Save while the trimmed name is blank
- label row actions per session, with the id on duplicate titles
- wrap Cupertino empty/no-match/error messages instead of clipping, and
  give them a Cupertino text style under a bare MaterialApp
- allow the Material rename helper to wrap at large text scales
- cover both native branches, lifecycle ordering, create/rename/close/star
  and the Cupertino theme path with widget tests
2026-10-21 17:42:39 +01:00
alan ca78f08d09 merge(app): land reviewed native settings feature 2026-10-21 17:42:11 +01:00
alan 7125caf26c Merge branch 'main' into flutter/n1-settings 2026-10-21 17:39:20 +01:00
alan abd696b0d9 feat(app): add native Settings connection and workspace screen
Add the Settings destination under lib/features/settings with an editable
websocket endpoint, truthful connection states, one ping per connect/mount,
workspace validation and persistence under new feature-owned keys. Material
and Cupertino controls, wrapping copy at large text, pending ping state, and
isolated probe tools plus widget/unit coverage.
2026-10-21 17:39:18 +01:00
alan 6524411a0f docs(app): record delivered Runs slice and twenty-minute task target 2026-10-21 17:29:37 +01:00
alan 6c6db719a7 merge(app): finish retained Runs integration after deadline 2026-10-21 17:26:41 +01:00
alan 35a8aab772 feat(app): compose live Runs with deep links and reconnect retention 2026-10-21 17:26:36 +01:00
alan 9e23ab97e3 docs(app): land schedule-list checks and track active-work-safe audit recovery 2026-10-21 17:07:38 +01:00
alan a09c72210a merge(app): land browser-reviewed native saved-schedules list 2026-10-21 17:05:27 +01:00
alan 481b99536b docs(app): record reviewed search landing and precise visual-audit recovery 2026-10-21 17:03:08 +01:00
alan ed958929cf Merge branch 'main' into flutter/s1-list 2026-10-21 17:02:00 +01:00
alan 8ed29604a2 merge(app): land safe artifact records grouping and navigation 2026-10-21 17:01:37 +01:00
alan 155ce8f5e5 merge(app): land measured graph edge routing and label geometry 2026-10-21 17:01:37 +01:00
alan ec86ef0874 Merge branch 'main' into flutter/s1-list 2026-10-21 17:00:52 +01:00
alan ebfa7f7fac feat(app): add read-only saved-schedules list screen 2026-10-21 17:00:50 +01:00
alan ceffd5d0d1 fix(stage): retain inline audit payloads once without losing native evidence 2026-10-21 16:59:20 +01:00
alan d874a11ad6 merge(app): land browser-reviewed native search screen 2026-10-21 16:58:11 +01:00
alan 49783b04ab docs(app): record A1a candidate commit and main merge 2026-10-21 16:57:11 +01:00
alan a303368a18 Merge branch 'main' into flutter/a1-data 2026-10-21 16:56:14 +01:00
alan ff0f812e00 feat(app): add artifact records, grouping and safe url navigation
Pure Dart A1a artifact domain slice mirroring web/src/artifacts.js and
artifactNavigation.js: record parsing, capture facts, stage/visit grouping,
public attribution, kind vocabulary, summaries, viewer paging and safe
artifact url resolution. Tests mirror the domain directory; nothing is
wired into a screen or transport.
2026-10-21 16:56:11 +01:00
alan 6208149968 Merge branch 'main' into flutter/p2-routes 2026-10-21 16:51:43 +01:00
alan b381290f34 feat(app): add deterministic orthogonal graph edge routing
Pure-Dart P2c slice: interval-aware ports and corridors, label-aware lane spacing, measured label placement with fallback shelf, skipped diagnostics and routing bounds. 20 focused tests plus existing suite and web build pass.
2026-10-21 16:51:38 +01:00
alan d22ff42a13 Merge branch 'main' into flutter/x1-search 2026-10-21 16:41:34 +01:00
alan 51140cd3b7 feat(app): add native omni-search screen over the search gateway
Pure request/parse/row logic in lib/features/search/domain, a
gateway-backed repository, and Material plus Cupertino bodies.
The header and rows share one scroll view, and the server's
truncation, scan and cap facts stay visible even when a bounded
scan returns no matches.

Tests cover the exact search envelope, token parsing, stale replies,
retry, truncation bounds and platform layouts. A Web-only fixture
and CDP probe support rendered verification; the screen is not yet
registered in the shell.
2026-10-21 16:41:30 +01:00
alan a9237ee023 docs(app): record measured graph layout landing and next routing slice 2026-10-21 16:35:20 +01:00
alan ec9e8897db merge(app): land deterministic measured graph-node layout 2026-10-21 16:33:53 +01:00
alan 0344ef10d1 docs(app): record verified tailnet HTTPS preview access 2026-10-21 16:26:27 +01:00
alan 80f673f5af Merge branch 'main' into flutter/p2-layout 2026-10-21 16:25:19 +01:00
alan c1f140bc78 feat(app): add deterministic content-sized graph node layout
Pure-Dart SCC ranking and column placement over the landed graph
identities. Every extent and gap is caller supplied; missing
measurements are rejected rather than defaulted.

Focused tests cover linear, diamond, cycle, self-loop, disconnected,
terminal, expanded-text and invalid-input cases.
2026-10-21 16:25:17 +01:00
alan e219a4cfcd docs(app): continue independent graph-layout and artifact-model lanes 2026-10-21 16:13:33 +01:00
alan 2227faad40 docs(app): resolve export blocker and resume seven preserved feature reviews 2026-10-21 16:08:22 +01:00
alan 2f4d934458 docs(app): prepare minimal export-only deployment and verified rollback 2026-10-21 15:59:15 +01:00
alan edfd5ecb05 docs(app): confirm template request layer landed 2026-10-21 15:36:02 +01:00
alan e9f7eddce9 merge(app): land checked templates and create-only request layer 2026-10-21 15:35:43 +01:00
alan 0bfbe706f4 docs(app): accept graph and template checks while preserving install window 2026-10-21 15:35:43 +01:00
alan 09cf19d420 merge(app): land verified graph identities and recorded-visit models 2026-10-21 15:34:25 +01:00
alan 8ea892959a docs(app): record final P2a merge and landing state 2026-10-21 15:33:22 +01:00
alan ef2f463ae7 merge(app): bring main into flutter/t1-data candidate 2026-10-21 15:33:10 +01:00
alan 2f316ac3b3 merge(app): bring main into flutter/t1-data candidate
Keep main's landed retry action and saved-schedules slices alongside the
templates data slice. Resolve app/.gitignore by keeping the single
test/**/data/ negation both sides added, with the explanatory comment.

Checks after merge: dart format clean, flutter analyze clean, 111 tests pass,
flutter build web succeeds.
2026-10-21 15:32:48 +01:00
alan f07ada0831 Merge branch 'main' into flutter/p2-model 2026-10-21 15:32:38 +01:00
alan 4548d66235 docs(app): record committed P2a candidate and merged main 2026-10-21 15:32:31 +01:00
alan e8bde4f578 docs(app): record verified export-fix landing and safe installation gate 2026-10-21 15:32:21 +01:00
alan da482084d4 Merge branch 'main' into flutter/p2-model 2026-10-21 15:31:49 +01:00
alan 2c105074aa feat(app): add graph domain model for runs and definitions
Pure-Dart graph foundation mirroring the current web client:
terminal targets and labels, definition edges and nodes with web
outcome ordering, recorded run evidence (visited stages, taken
routes, current stage and live start), and sequence-ordered stage
visit selection with clamping.

No layout, widgets, screens or coordinates; fixtures cover linear,
diamond, self-loop, repeated visits, mixed outcomes, terminals and
missing/malformed evidence.
2026-10-21 15:31:43 +01:00
alan ae40329dcc merge(server): land bounded complete-export fix after isolated full-suite verification 2026-10-21 15:31:27 +01:00
alan cd9ec62d28 feat(app): add template catalogue and create-only submit repository
Add the nonvisual templates data/domain slice: TemplateRepository over the
shared ApiGateway for list_templates, validate and create-only submit, and
TemplateEntry preserving every server field in a deeply read-only raw map.

Re-include test/**/data/ in app/.gitignore so the mirroring tests are not
silently dropped from a fresh checkout.

Tests cover exact request shapes, source preservation, blank-name refusal,
malformed replies, server refusals and immutability.
2026-10-21 15:31:10 +01:00
alan edb2f3c22e merge: bring main into fix/session-export-limit 2026-10-21 15:26:31 +01:00
alan 22801a9b06 fix(stage): align session export render cap with artifact bound
Six computed Flutter runs stopped at the export handoff gate because the
rendered session.html cap was 2 MiB while their complete sessions (well inside
the 8 MiB source read bound) rendered between 2.25 and 4.28 MiB once html
escaping and the readable projection duplicated native text.

Raise SessionExportFileLimit to 8 MiB, the server's existing per-artifact file
bound, so a complete export is still listed and served. Normal export
verification, versioned repair and the handoff gate keep using the single
shared constant. The source read bound is unchanged, and an over-cap render is
still visibly truncated and recorded partial.

Add focused regressions for a complete export above the old cap, an over-new-cap
file rejected as partial, repair above the old cap leaving original evidence
untouched, the gate accepting the larger repair, and the constant staying inside
the artifact file bound. Update the artifact, handoff-gate and operations docs
and record the diagnosis in docs/notes/session-export-render-cap.md.
2026-10-21 15:26:29 +01:00
alan 9eb01b8f6a docs(app): record schedule and retry landings plus 98-test integration check 2026-10-21 15:20:36 +01:00
alan 804e531704 merge(app): land native retry and restart components 2026-10-21 15:18:59 +01:00
alan a290858373 merge(app): land revision-safe saved-schedule request layer 2026-10-21 15:17:47 +01:00
alan 515c500bb1 docs(app): verify rename component landing and start template-data slice 2026-10-21 15:17:13 +01:00
alan d9722ab724 merge(app): bring main into flutter/s1-data candidate 2026-10-21 15:16:36 +01:00
alan 56f3e12183 merge(app): bring main into flutter/r2-retry candidate 2026-10-21 15:16:22 +01:00
alan 3dde2888b3 merge(app): land tested native rename-run component 2026-10-21 15:16:12 +01:00
alan 2c404f094d merge(app): bring main into flutter/s1-data candidate 2026-10-21 15:15:49 +01:00
alan b9639650e5 feat(app): add saved-schedule repository and domain record
Port the web client's list/save/delete schedule request shapes and reply checks, with a typed record that preserves the whole server payload including unknown fields. Revision stays the CAS token; server refusals propagate unchanged.
2026-10-21 15:15:47 +01:00
alan 2d8ca0cc4d Merge branch 'main' into flutter/r2-title 2026-10-21 15:14:46 +01:00
alan f2643a0ff4 feat(app): add native rename-run action
Native Material/Cupertino prompt seeded from the run's stored title. Only
Save sends set_run_title {run_id, title} with the text untrimmed; typing and
Cancel send nothing, refusals stay verbatim with the draft kept, and only the
accepted run_detail is delivered once.
2026-10-21 15:14:44 +01:00
alan 178f22aec2 feat(app): add native retry and restart action 2026-10-21 15:13:00 +01:00
alan 09458812d5 docs(app): record export-fix exception and three small parallel feature slices 2026-10-21 15:07:43 +01:00
alan 0a00526692 docs(app): record verified cancellation and refusal correction landing 2026-10-21 14:54:36 +01:00
alan e8c5f071a1 merge(app): land native cancel action and responsive refusal handling 2026-10-21 14:54:12 +01:00
alan acd471a543 merge(app): bring main into flutter/r2-cancel candidate 2026-10-21 14:52:59 +01:00
alan 54493704c1 fix(app): show run action refusals before resyncing 2026-10-21 14:47:59 +01:00
alan c58395c559 docs(app): identify export size gate blocking six computed feature runs 2026-10-21 14:46:11 +01:00
alan 743da9bb34 docs(app): hold cancellation for responsive refusal-flow checks 2026-10-21 14:44:14 +01:00
alan 610e23baa3 merge(app): bring main into flutter/r2-cancel candidate 2026-10-21 14:41:37 +01:00
alan faa5866410 feat(app): add deliberate run cancellation action
Port the browser's canCancel rule and cancel_run request into a native
Material/Cupertino confirmation. Opening the prompt or choosing Keep sends
nothing; a refusal stays visible with the server's words and the run is
re-read so the owner always receives server truth. Includes eligibility,
double-submit, disposal and narrow 2x-text tests plus R2b evidence.
2026-10-21 14:41:33 +01:00
alan 54b7e875e1 docs(app): record decision component landing and cancel-action pipeline 2026-10-21 14:33:15 +01:00
alan 3e6f950991 merge(app): land verified reusable human-decision action 2026-10-21 14:31:55 +01:00
alan c1490b4705 merge(app): refresh main into flutter/r2-decision candidate 2026-10-21 14:23:07 +01:00
alan 76eda0ee0e docs(app): accept combined runs widgets and launch live composition checks 2026-10-21 14:22:51 +01:00
alan 7943df11e0 merge(app): bring main into flutter/r2-decision candidate 2026-10-21 14:22:31 +01:00
alan 42b21b86cd feat(app): add deliberate human-decision action for run detail
Adds HumanDecisionAction plus its native prompt, wording constants and
tests. The action renders only while pendingDecision() reports a genuine
human wait, sends decide_run only after an option is chosen and Confirm
pressed, sends the pending stage/trimmed option/optional feedback, blocks
double submits, shows server refusals verbatim with the draft intact, and
re-reads the run so the owner always receives server truth.
2026-10-21 14:22:29 +01:00
alan 38b7a849a7 Merge branch 'flutter/r1-detail' into flutter/r1-native 2026-10-21 14:21:29 +01:00
alan 23d6efbfb1 Merge branch 'main' into flutter/r1-detail 2026-10-21 14:20:45 +01:00
alan e14bb67825 feat(app): render run detail with native Material and Cupertino controls 2026-10-21 14:20:43 +01:00
alan 9cc61bc378 docs(app): verify native list integration and start search lane 2026-10-21 14:08:52 +01:00
alan 275e4bef90 Merge branch 'flutter/r1-runs-ui' into flutter/r1-native 2026-10-21 14:07:51 +01:00
alan 40aa98e20b feat(app): add native runs list interactions 2026-10-21 14:07:02 +01:00
alan fe50c7c52e Merge branch 'main' into flutter/r1-native 2026-10-21 14:06:29 +01:00
alan 7ecd3903c0 docs(app): accept controller checks and track native-list test recovery 2026-10-21 14:01:29 +01:00
alan a34c86e513 merge(app): sync main into flutter/r1-runs-ui 2026-10-21 13:58:30 +01:00
alan a2e7c43edb docs(app): preserve native run partial work and split widget acceptance 2026-10-21 13:57:19 +01:00
alan b2b2b56fd3 wip(app): preserve partial runs navigation before native widget slices 2026-10-21 13:56:09 +01:00
alan 4bc95f47be fix(app): isolate runs list and detail request generations 2026-10-21 13:55:47 +01:00
alan 38895a975b docs(app): parallelize run-controller final fixes and native presentation 2026-10-21 13:53:02 +01:00
alan 6b8d5ea32e feat(app): complete runs UI candidate 2026-10-21 13:51:07 +01:00
alan b404232f84 docs(app): route chat native-controls completion through pipeline 2026-10-21 13:50:32 +01:00
alan 0a0d287e49 Merge branch 'main' into flutter/r1-runs-ui 2026-10-21 13:50:26 +01:00
alan 13d8ddac5d Tidy chat catalog error handling 2026-10-21 13:49:18 +01:00
alan a2b02b3810 Improve chat session catalog creation 2026-10-21 13:48:35 +01:00
alan eb0d7b4405 docs(app): record network preview and scoped run-controller resume 2026-10-21 13:47:01 +01:00
alan 0a8806b4bb docs(app): hold run UI candidate for pipeline acceptance fixes 2026-10-21 13:44:11 +01:00
alan 774d5d78cc feat(app): add native runs list and detail screen 2026-10-21 13:42:47 +01:00
alan ef4ff40c4b docs(app): enforce quality gates and record verified preview progress 2026-10-21 13:41:22 +01:00
alan 160ab45fe0 merge(app): land authenticated isolated preview tooling 2026-10-21 13:37:26 +01:00
alan 37d08232e4 merge(app): land corrected run-state foundation 2026-10-21 13:37:26 +01:00
alan 2f60a0e17f merge(app): land browser-verified adaptive shell 2026-10-21 13:37:26 +01:00
alan ae352bb9c6 fix(app): retain idle preview sockets and release auth listeners 2026-10-21 13:37:18 +01:00
alan a561c45b65 test(app): verify real browser shell navigation and capture states 2026-10-21 13:37:18 +01:00
alan f239a26bfd Merge branch 'main' into flutter/f4-chat 2026-10-21 13:37:09 +01:00
alan 48059247d1 feat(app): add native chat sessions browser 2026-10-21 13:37:03 +01:00
alan 1515ebee99 fix flutter runs foundation parity gaps 2026-10-21 13:34:56 +01:00
alan 5cd269fca4 fix(app): harden guarded preview proxy 2026-10-21 13:32:54 +01:00
alan cb1ea90035 merge(app): land verified socket transport foundation 2026-10-21 13:29:07 +01:00
alan 1e4ecea823 fix(app): harden socket lifecycle and expand transport regressions 2026-10-21 13:28:59 +01:00
alan 830726fa19 fix Flutter shell platform defaults and tab state 2026-10-21 13:28:50 +01:00
alan fed90ea35e docs(app): track candidate verification and next feature runs 2026-10-21 13:28:28 +01:00
alan d99cd82616 Merge main into flutter/f4-chat 2026-10-21 13:25:40 +01:00
alan e3a82b0b36 feat(app): add guarded web preview server 2026-10-21 13:25:09 +01:00
alan 7cdb9e8338 feat(app): add chat foundation 2026-10-21 13:24:49 +01:00
alan c262f77501 feat(app): add Flutter websocket transport 2026-10-21 13:24:11 +01:00
alan cee5f72b14 feat(app): add adaptive client shell 2026-10-21 13:22:58 +01:00
alan 718442d73d fix(app): include feature data source in version control 2026-10-21 13:22:40 +01:00
alan 7dd21b08c6 Merge branch 'main' into flutter/f3-runs 2026-10-21 13:22:40 +01:00
alan 444bd62996 feat(app): add run foundation repository and models 2026-10-21 13:21:30 +01:00
alan 264f64c0bb docs(app): record corrected app-only admissions and preserved partial work 2026-10-21 13:18:33 +01:00
alan 184ce78b65 fix(notify): resolve web links for transactional outbox deliveries 2026-10-21 13:16:20 +01:00
alan eabe5d64dd docs(app): track five parallel Luna runs and integration queue 2026-10-21 13:16:14 +01:00
alan 0e0ef5450e feat(app): scaffold isolated Flutter client and parallel work contracts 2026-10-21 13:14:07 +01:00
alan 9ee2e003bf fix(notify): open configured web run pages from ntfy 2026-10-21 13:05:10 +01:00
alan 870c70aefa fix(web): share artifact files instead of URLs 2026-10-21 12:36:06 +01:00
alan 93be42b06e fix(web): preview artifact images on primary click 2026-10-21 12:26:27 +01:00
alan cc094fc06d feat(web): copy original run prompt 2026-10-21 12:19:26 +01:00
alan 634f241019 docs: record live mobile chat information panel verification 2026-10-21 11:04:03 +01:00
alan b9ace1db62 fix(web): move chat metrics into top-bar information panel 2026-10-21 11:01:22 +01:00
alan de987555e9 docs: record independent scheduling and navigation deployment 2026-10-21 02:12:58 +01:00
alan 1e4654381e feat(web): manage independent schedules and restore recorded stage navigation 2026-10-21 02:06:15 +01:00
alan 4ab49a2749 fix(web): align chat row icons and standardize interaction surfaces 2026-10-21 01:36:20 +01:00
alan 2c1d5ccd47 fix(web): keep chat row actions visible in reserved columns 2026-10-21 01:12:26 +01:00
alan fe02d153f1 Preserve saved schedule run-level write scope 2026-10-21 01:04:43 +01:00
alan 8c3f116190 Bind legacy schedule workspaces only at execution startup 2026-10-21 00:56:37 +01:00
alan 4d8b34939d Separate saved run schedules from pipeline definitions 2026-10-21 00:48:34 +01:00
alan 366931eeec feat(web): add independent saved schedule editor modules 2026-10-21 00:43:08 +01:00
alan 7e790126c5 docs: record verified native chat metrics deployment 2026-10-21 00:40:14 +01:00
alan 0b8595f16e feat(web): display reported chat throughput tokens context and cost 2026-10-21 00:27:12 +01:00
alan 910028a75c Keep last reported OpenCode metrics while the newest assistant is in flight
Read a bounded newest-first page of eight assistants (4 MiB, no cursor traversal), selecting context and completed generation rate independently from the latest valid measurement matching Session.Info.model provider/id. Require assistant model identity; never pair an old model's measurements with the selected model's window. Context remains unknown across a newer compaction until a subsequent prompt reports usage; the last completed matching rate may survive compaction.

Unknown model metadata is cached for 15 seconds instead of five minutes, while known capacities retain their five-minute cache. Provenance remains canonical V2 Model.Ref, TokenUsage and request-created/streamed/completed fields cited in chat_usage.go. No live endpoint access, inference or service changes.

Isolated HTTP regressions cover in-flight/null/empty newest tokens with prior known metrics, post-compaction boundaries, independent prompt/rate selection, switched/missing model identity, duplicate known-zero measurements, over-limit page rejection and metadata recovery. Checked full internal/opencode suite, focused usage race suite, go vet ./internal/opencode and git diff --check.
2026-10-21 00:26:48 +01:00
alan ce3482b057 Expose native OpenCode chat usage snapshots and replay session metrics
Read V2 session accounting, latest assistant prompt/cache components and native request-to-stream boundary. Resolve capacity by location/provider/catalog id with bounded metadata caching. Coalesce active/final readbacks; retain message-less session snapshots without changing admission or compaction state.

Provenance: https://opencode.ai/v2/openapi.json and anomalyco/opencode V2 4617210822bdbb31e5749751afbfb4584ccedac8: packages/schema/src/token-usage.ts, session-event.ts; packages/core/src/session/usage.ts, projector.ts, message-updater.ts, runner/step.ts. Native output is visible output, reasoning separate. Session totals include all five non-overlapping components. Generation rate uses created-to-streamed, not tool-inclusive completion.

Limitations: metrics remain unknown for missing components, absent timing/model metadata, reads beyond bounded latest-message/catalog budgets, or context preceding compaction. No local pricing, token estimation or default capacity. V1 gets no invented cumulative metrics; older V2 events remain available when readback is unavailable. No deployment or protocol/web/docs changes.

Checks: go test ./...; focused usage/stream race tests; go vet ./internal/opencode ./internal/server; go build ./...; git diff --check.
2026-10-21 00:13:51 +01:00
alan 83b60990d2 feat(codex): retain native session usage snapshots for chat
Verify typed ThreadTokenUsage/TokenUsageBreakdown/Thread/Turn against openai/codex@6fb1c3903d. Use native totalTokens and latest-call context tokens without re-adding cached/reasoning subsets. Replay bounded per-connection snapshots and clear on room/source release.

Cost stays unavailable: no subscription USD usage is reported by this notification. Throughput stays unavailable even with native Turn.durationMs because neither last-call nor cumulative-session output is a compatible turn-specific numerator. Thread readback exposes no token usage; no extra reads, resume, or live provider calls added.

Checks: go test -race ./internal/codex; go vet ./internal/codex; go test ./internal/server ./internal/protocol; git diff --check.
2026-10-21 00:07:12 +01:00
alan 3e62ed7979 feat(protocol): distinguish reported chat metrics from unavailable values 2026-10-21 00:01:17 +01:00
alan 8899dd150f docs: record reasoning effort verification and deployment 2026-10-20 23:53:13 +01:00
alan 724de27561 feat(stage): honor per-stage reasoning effort across native harnesses 2026-10-20 23:51:14 +01:00
alan 9ce2c5d143 feat(stage): apply and verify Pi reasoning effort before prompting 2026-10-20 23:45:17 +01:00
alan 2aaf7fe2cc feat(pipeline): parse optional reasoning effort for model stages 2026-10-20 23:40:14 +01:00
alan 6f4543444c docs: record verified local deployment and export repairs 2026-10-20 22:37:03 +01:00
alan ba8a981932 fix(chat): preserve fresh compaction state across reconnect history 2026-10-20 22:24:29 +01:00
alan 4969d667b3 Expose native chat compaction activity and retained replay 2026-10-20 22:17:41 +01:00
alan d8b111913e feat(web): show native context compaction activity in chat 2026-10-20 22:15:03 +01:00
alan aa57fe8a04 fix(chat): keep tool totals neutral and count individual errors 2026-10-20 22:05:21 +01:00
alan e29be1181f fix(audit): reserve bounded repair capacity outside user file quota 2026-10-20 22:00:43 +01:00
alan 128e134f98 docs(alpha): record final checks and in-installer model setup 2026-10-20 21:59:34 +01:00
alan da6daa9db5 Resolve configured host models during native installation
Read OpenCode V2's resolved default Model.Info through its authenticated CLI API from HOME when saved profile fields are missing. Preserve valid saved models, explicit --model and unrelated settings. Record the selected stage model in the native server environment so web starters have an actual default.

Run the existing read-only model picker inside ./install when a terminal needs a choice; fail noninteractive or cancelled/incomplete setup before claiming ready or starting services. Do not parse JSONC, open login flows, create sessions or run inference. Document the one-step configuration path.

Checks: 61 mocked native installer/lifecycle tests, 8 entrypoint tests, sh -n install install.sh, git diff --check. API/schema checked against official OpenCode V2 documentation. No operator CLI/service/model calls, live install, restart, deployment or native Linux verification.
2026-10-20 21:56:32 +01:00
alan d3c7e6e784 fix: allow cold managed service discovery only at stage admission 2026-10-20 21:53:52 +01:00
alan bb98bde4fc fix: pin native exports to stage execution service 2026-10-20 21:47:04 +01:00
alan 1f867d4827 docs(alpha): record isolated proxy authentication verification 2026-10-20 21:46:59 +01:00
alan a40898f79a docs(alpha): simplify native setup and verify generic starter creation 2026-10-20 21:42:34 +01:00
alan dce2d759d7 fix(audit): match export ownership and inventory receipts in browser 2026-10-20 21:42:34 +01:00
alan bb32383bbe Route native service commands and configure fresh authoring role
Select native installs only via explicit PIPELINES_PREFIX or the matching owned prefix/bin/pipelines executable. Route enable/status/disable to the existing native supervisor; validate registration ownership, label and command, keep preview read-only, and disable login registration before stopping. Never fall back to a standalone service for an invalid explicit prefix.

Fresh native installs explicitly enable authoring, while reinstalls preserve false or missing legacy role settings. Add explicit --allow-authoring/--no-authoring overrides and pass the server flag only for manifest true. Print a copyable native enable command and update installation help/docs. No Docker configuration changes.

Checks: 54 mocked native installer/lifecycle tests; 8 entrypoint tests; offline Go installation/CLI tests and vet; gofmt clean; shell syntax and diff checks. No live install, restart, deployment, permission/config changes, or native Linux verification.
2026-10-20 21:41:28 +01:00
alan d58b3f49fc Add generic checked starter workflows and isolated lifecycle coverage 2026-10-20 21:31:36 +01:00
alan ae6ba6ae10 Install authenticated native web proxy with user autostart
Register the existing native supervisor with launchd/systemd, include the dependency-free authenticated web proxy, detect Node, and keep the API loopback by default. Preserve existing web credentials and configured host harness defaults. Clarify single-step setup, lifecycle selection, and optional ntfy limits.

Checks: 44 mocked native installer/lifecycle tests; 8 entrypoint tests; 42 Docker installer tests; GOPROXY=off GOTOOLCHAIN=local go test ./internal/installation ./cmd/pipelines; sh -n install install.sh; git diff --check. No live install, deployment, restart, downloads, real autostart/login verification or native Linux verification.
2026-10-20 21:31:36 +01:00
alan b56d6af180 fix(audit): reserve recovery evidence outside user deliverables 2026-10-20 21:26:48 +01:00
alan 860615acb5 test(audit): verify wrong-session rejection through isolated V2 API 2026-10-20 21:22:37 +01:00
alan ec3eda9e05 runner: keep export handoffs nonterminal through recovery 2026-10-20 21:20:06 +01:00
alan ca78b24f47 fix(audit): expose verified visit exports and export-only recovery 2026-10-20 21:20:06 +01:00
alan f87e1ed488 runner: gate stage handoff on settled verified session export 2026-10-20 20:55:57 +01:00
alan 3d35e8a863 fix(stage): export settled Pi native sessions as escaped HTML 2026-10-20 20:45:56 +01:00
alan d7e99a19d6 fix(audit): preserve complete native message data in session HTML 2026-10-20 20:45:56 +01:00
alan cb57da5dfc fix(stage): persist every V2 model generation in tracked sessions 2026-10-20 20:43:42 +01:00
alan 1b8d0f2a75 fix(opencode): read V2 session exports directly from authenticated API 2026-10-20 20:43:42 +01:00
alan 074b5bb087 web: center multiline composer controls 2026-10-20 20:14:51 +01:00
alan 06dddb002a fix(web): open artifacts outside the installed app context 2026-10-20 20:03:41 +01:00
alan 5014c9e61f fix(stage): supply runtime context when read is not declared 2026-10-20 19:19:07 +01:00
alan 9f5437b5b0 web: keep empty composer on one line and verify touch sizing 2026-10-20 18:54:45 +01:00
alan 7e9b6771ef fix(web): align chat composer and stabilize running controls 2026-10-20 18:49:03 +01:00
alan 03a508fa2b fix(codex): load persisted threads only on explicit send after refusal 2026-10-20 18:46:17 +01:00
alan d564765ca5 fix(codex): reconcile cold connections without resuming queued goals 2026-10-20 18:33:20 +01:00
alan b3bcfa3826 fix(web): color custom terminal failure outcomes accurately 2026-10-20 18:33:20 +01:00
alan 34939edd0e Render run list miniatures from compact per-stage route evidence 2026-10-20 18:22:13 +01:00
alan 855de19a35 test(chat): require interactive tool parity across advertised harnesses 2026-10-20 18:12:59 +01:00
alan 68761652cf fix(codex): accept prepared chat attachments with model overrides 2026-10-20 18:07:00 +01:00
alan 83fef10331 feat(codex): retain all tool items and expose bounded command output 2026-10-20 18:07:00 +01:00
alan 9cdfd9d9ab search: browse bounded recent items with kind-only queries 2026-10-20 17:54:55 +01:00
alan cce7ea903a docs: record live authenticated approval recovery proof 2026-10-20 17:53:17 +01:00
alan e374e8ef03 fix(codex): return no content for URL elicitation confirmation 2026-10-20 17:43:14 +01:00
alan 35329e4022 feat(chat): broker Codex approvals and complete typed tool interactions 2026-10-20 17:41:35 +01:00
alan f31806cfcb web: open authored stage definitions in managed graph popup 2026-10-20 17:36:14 +01:00
alan ae69e03157 web: reserve a desktop collapsed navigation expand slot 2026-10-20 17:34:10 +01:00
alan a77e54beab web: right-align list miniatures and color pinned run graphs 2026-10-20 17:34:10 +01:00
alan a670610497 web: parse search type prefixes into kind filters 2026-10-20 17:32:12 +01:00
alan 35040fe13f web: wrap run titles and give applied filters a separate row 2026-10-20 17:23:07 +01:00
alan c78def70dd fix(chat): recover web approvals and questions across clients and reconnects 2026-10-20 17:23:07 +01:00
alan ed0abb976d feat(chat): persist safe Codex next-turn model selection 2026-10-20 16:35:31 +01:00
alan d92fa60259 fix: park human runs atomically before slow notification work 2026-10-20 16:35:30 +01:00
alan a049b552f6 Recover incomplete session exports through durable runtime jobs 2026-10-20 16:30:04 +01:00
alan 6841cdd2a4 web: unify mobile back and audit controls and link pipeline run history 2026-10-20 16:25:07 +01:00
alan 4e35da7473 fix: stop store-bound workers and reconcile settled repair fixtures 2026-10-20 16:19:21 +01:00
alan fdf0369ede Enforce runtime report contracts and recoverable session exports 2026-10-20 16:05:33 +01:00
alan 1d9cb80cdb web: keep mobile composition stable across keyboard and Back navigation 2026-10-20 16:04:09 +01:00
alan 90cd43bdd7 fix: commit run notification intents with state transitions 2026-10-20 15:56:42 +01:00
alan a08789e071 test: explicitly opt authoring fixtures into publication capability 2026-10-20 15:55:23 +01:00
alan f0532e5ec4 test: exercise managed model dialogs and intermediate chat steps in Chrome 2026-10-20 15:53:59 +01:00
alan b96b9d94a6 fix: keep cancellation pending until execution cleanup is confirmed 2026-10-20 15:49:08 +01:00
alan 1cf5156c77 security: validate browser origins at the authenticated websocket proxy 2026-10-20 15:48:02 +01:00
alan c6695e5e90 web: allow the managed model dialog to leave its loading state 2026-10-20 15:46:56 +01:00
alan e504780976 fix(chat): settle authoritative turns and make capabilities explicit 2026-10-20 15:45:44 +01:00
alan 016fcb552a fix: persist and retry run alerts and honor notification modes 2026-10-20 15:44:23 +01:00
alan e4f48ecbb1 test: verify lost launch replies and reload recovery in a scratch browser 2026-10-20 15:44:23 +01:00
alan 44834e91f0 runs: reconcile uncertain browser launches with a persistent intent key 2026-10-20 15:40:43 +01:00
alan f06281db08 security: isolate artifact documents and default servers to execution-only 2026-10-20 15:36:14 +01:00
alan db88cebd0b opencode: retry one settling session export
A stage's final session write can land just after the step settles. Retry the
read-only native export once after 200 ms when its envelope is invalid or names
another session, so the stage records session.html instead of dropping evidence.
2026-10-20 15:16:19 +01:00
alan 422db96c95 web: open reasoning in the tool-style popup 2026-10-20 15:14:39 +01:00
alan eafe6f1702 opencode: find the CLI without trusting service PATH
Fall back to Homebrew and local install locations when opencode is not on the
service's minimal PATH, so a launchd/systemd restart cannot fail a run with
exec: opencode not found.
2026-10-20 15:10:54 +01:00
alan ef59f981f7 web: show the pipeline Run dialog from every tab
Graph and Source return before the detail footer, so their Run click set the
dialog state but never appended the overlay. Append the overlay before the tab
branches.
2026-10-20 15:04:16 +01:00
alan 9f29f387ba web: filter the chat model picker
Add a search field that narrows models by name, id or provider in place, keeps
focus while typing, and reports when nothing matches.
2026-10-20 15:04:10 +01:00
alan 1480591a34 web: bump the shell cache after the Runs fix 2026-10-20 15:01:30 +01:00
alan 75150c4253 web: attach the attention bell to the Runs runtime
The Runs view is created before the attention view is destructured, so its
toolbar callback was undefined and selecting Runs threw before rendering. Attach
the function after destructuring.
2026-10-20 15:01:25 +01:00
alan 4b20be6ea3 web: add chat model picker, agent badges and a preloaded brief
Show the current model under the chat title with an OpenCode-backed picker,
put an agent mark on the right of every chat row, simplify the tool summary to
'N tools', and give the reasoning and tool controls one symmetric hover box.
New chats preload an editable behavior brief, and the activity spinner remains
the turn's single live progress indicator.
2026-10-20 14:58:26 +01:00
alan 6bfe4c8921 chat: add model switching and preloaded instructions
Expose the OpenCode model list and session model switch over the chat protocol,
carry a per-session model provider on chat rows, and apply a preloaded behavior
brief as a durable session instruction entry when a chat is created.
2026-10-20 14:58:20 +01:00
alan f982c0b712 web: abbreviate the home directory in chat group labels
Use ~ for the server home prefix in directory bands and row meta, with the
full path still in the band's tooltip. Keeps long repository paths readable
inside the centred collapsible header.
2026-10-20 14:39:21 +01:00
alan 3799d37d7c web: one chat activity line, clearer groups and paste attachments
Replace the reasoning, tool and bottom thinking rows with one stable activity
line and refresh Stop on the step frame. Make directory and Closed bands share
an elevated square surface, centred text and a collapse toggle. Read pasted
files into the composer attachment path and show sent files in user bubbles.
2026-10-20 14:30:57 +01:00
alan f5ccec8e1f chat: deliver attachments and cancel runs immediately
Carry browser files as base64 prompt attachments, write them to private
temporary files and pass file:// references to OpenCode, and map the user
turn's top-level files back into history. Replay a running step on subscribe,
forward only a caller-supplied msg_ id, and persist cancel on the run and live
step before interrupting the runner.
2026-10-20 14:30:53 +01:00
alan 7758d20feb cli: route the default skill to existing workflows
Remove authoring from the skill description and move the authoring commands
and examples behind an explicit-request section in help. A skill test keeps the
default description from advertising authoring again.
2026-10-20 13:24:53 +01:00
alan 122eca8e1b docs: require an explicit request before authoring pipelines
Use existing pipelines for run requests and put task specifics in the run
prompt. Creation, edits and publication now require an explicit user request;
the authoring skill test enforces that guidance.
2026-10-20 13:17:00 +01:00
alan e6be00e1a1 web: fold background chat safely and harden notify mode
Limit live chat paints and history syncs to the open conversation; initialize the
per-run notify map lazily.
2026-10-20 12:57:44 +01:00
alan 0d7e81362f web: run pipelines from the browser and quiet background chat
Add the Run pipeline dialog with prompt, server directory and a per-run
notification choice; add --notify auto/on/off to run and retry; move the live
tool call onto the tool-count line and tick the reasoning duration; stop chat
frames from repainting a different screen.
2026-10-20 12:56:47 +01:00
alan f7a3a49f94 chat: add the Codex backend
Store a chat's harness with its operator session, expose chat_backends and a
backend choice in New chat, and route each session through a manager. The Codex
adapter uses the App Server's Unix WebSocket for threads, turns, history,
questions and interrupt; OpenCode remains the default and Claude is not
advertised until its sidecar and login are wired.
2026-10-20 12:10:39 +01:00
alan 74b74adee7 web: contain markdown tables inside the phone transcript
Wrap each table in its own scroll frame and let the markdown grid shrink, so a
wide table scrolls sideways instead of pushing the chat content past its div.
2026-10-20 11:50:27 +01:00
alan 443986498d web: make the Settings Refresh reload the page 2026-10-20 11:26:35 +01:00
alan 42d6e3aeb0 web: drop the rule between thinking and the answer bubble 2026-10-20 11:25:18 +01:00
alan c987636690 web: keep smoke coverage aligned with server-shared stars and short names 2026-10-20 10:40:07 +01:00
alan 3f8eefe06e web: unify detail headers, queue follow-ups, move thinking outside bubbles
Every detail screen now owns one 44px chevron Back control beside its title.
Sending appends the user's message immediately and keeps Send available beside
Stop so a follow-up can be queued. Reasoning renders above the answer bubble
rather than inside it.
2026-10-20 10:37:57 +01:00
alan 607356702a web: comfortable phone density and clearer back control
Raise phone body/meta type, controls and dock targets to 44/56px, make the chat
back arrow a visible 44px control, and give the star/menu 44px hit areas without
covering the chat status. Keep the shipped skill free of personal device and
project capture paths.
2026-10-20 03:49:35 +01:00
alan fa0d0473cc examples: use short starter names
Keep the shipped template names as direct as their keys: Task, Plan and
implement, Review, Research and Debug.
2026-10-20 03:46:14 +01:00
alan ff36e777c9 web: compose with Enter, share chat titles, reserve the star
Enter inserts a newline and Ctrl/Cmd+Enter sends; slash commands still run on
Enter. Chat renames are stored in the server registry so every device sees the
same title, with a one-time upload of old local titles. The star no longer
covers the row status, and shell frames patch the background bar in place so the
composer stays mounted while streaming.
2026-10-20 03:44:16 +01:00
alan 4072698731 web: keep chat stable while streaming and refresh Settings
Preserve scroll intent for touch scrolling, coalesce live frames into one paint,
keep stable dialogs mounted across re-renders, and add a Settings refresh that
pings the server for a fresh build/time card.
2026-10-20 03:35:45 +01:00
alan d5cda887ee web: steady chat composer and running indicator
Keep caret focus, value and selection across live-frame re-renders, and show a
single in-place running-tool line so tool calls no longer grow and shrink the
transcript for every call. Right-align the pipeline-list miniature.
2026-10-20 03:29:37 +01:00
alan c291327610 web: give chat details a real back route
Opening a chat now pushes /chat/:id, so Android/browser Back returns to the
chat list rather than the previous destination. The conversation header owns a
compact Back to chats control matching the create pane, replacing the
full-width Back to list row on phones.
2026-10-20 03:25:31 +01:00
alan 526c19fc21 web: shared chat stars, pipeline mini graphs and agent questions
- Persist chat stars in the operator-session registry (chat_star) so every
  browser/device shows the same Starred group; migrate old local stars once.
- Add a compact pipeline graph shape to list responses and draw a lightweight
  list miniature; replace the cryptic id/version line with the stage count.
- Surface OpenCode form questions as a chat card (chat_answer), replay a
  pending form to late subscribers, and notify for background questions.
- Make the mobile dock's Search cell equal to every destination, keep the
  tab row visible with 100svh, and let Source use the full pane height.
- Let a fresh sign-in auto-connect to its own origin; use a Lax session cookie
  with Expires so Remember me survives app/link launches.
- Keep shipped starters and the skill agnostic: no repository paths, project
  areas or personal device commands; add Diagnose/Fix and Research starters.
- Refresh the installed skill and document the new browser conventions.
2026-10-20 03:11:37 +01:00
alan caae8a8038 web: remember-me on the sign-in page
Checked (the default) issues a 30-day persistent cookie; unchecked keeps a
browser-session cookie and a 12-hour token. The sign-in card also links the
public favicon/apple icon and uses the app mark.
2026-10-20 02:22:36 +01:00
alan ebf02c3bed web: gated access, anchored viewers, mobile tabs and chat colour
- serve.mjs requires a signed session cookie for every page, artifact and the
  WebSocket, with a password file, 30-day sessions, login throttling and public
  brand assets for the sign-in page.
- The diff viewer is a fixed-height top-anchored panel whose toolbar (modes,
  copy, previous, next, close as icons) is its first row; the artifact viewer is
  likewise a fixed frame so its navigation never moves.
- The audit's selected tab uses the app's normal selected surface and bottom
  accent. Sessions that were not recorded say so plainly.
- Chat code blocks are syntax-coloured; graph pinch-zoom works with two fingers
  while a single pointer still pans and clicks nodes.
- Phones always keep the destination bar (pane collapse is wide-only), with the
  destinations spread evenly and Search on the right; the list default width is
  narrower; the theme colour matches the app.
- Code-format and layout tests, plus the full browser suite, pass.
2026-10-20 02:21:51 +01:00
alan d7763ec466 web: motion across panes and rows, and the last polish
- Panes fade in on a destination/tab/selection change only; list rows FLIP when
  they move (sort, star, filter) and fade in when they appear; removals close the
  gap through the same move. Reduced-motion users get none of it.
- Modal panels (audit, viewers, diff, tool calls, confirmations) arrive with a
  short scale/fade.
- A collapsed list hides its filter/sort toolbars; the Refresh tooltip is stamped
  as soon as a populated list first paints.
- The smoke settles after a sort before measuring a row for a click.
2026-10-20 01:41:51 +01:00
alan 5faae8f896 Merge branch 'main' into web-lists-shell 2026-10-20 01:36:45 +01:00
alan 3314f8405b web: one status glyph, a compact settings button and collapsible panes
- Run and pipeline rows use one coloured status glyph with the word in its
  tooltip; the run version sits at the right of the title line; the usage
  metrics row is gone.
- Settings is an icon beside the connection status (rail and dock), not a
  destination tab; the destinations keep a roving tab even while Settings is
  open.
- The rail and every list pane collapse to a narrow strip from an icon at their
  top-right (remembered per device). A collapsed runs list shows the status
  glyph, pipelines their flow glyph, chats their status word.
- Tool calls open in a modal (rendered/expanded rows in place) instead of an
  inline popover; the chip stays a quiet line beside the message.
- Refresh tooltips show the last data arrival (manual or socket) per
  destination.
2026-10-20 01:36:38 +01:00
alan 20c49e2186 Merge branch 'main' into web-bell-icon 2026-10-20 01:28:22 +01:00
alan 4813840c95 web: draw the attention bell as one monochrome svg
Replace the yellow emoji in the Runs heading with a 20px inline-SVG outline
bell that inherits currentColor. The badge, count model, accessible name,
click behaviour, in-place refresh and Escape focus return are unchanged.

Cover the glyph in ui-smoke: tag/viewBox/paths, 20px size, no emoji or glyph
class, badge text/count/label, badge position:absolute with a no-shift rect
measurement at 1440x900 and 420x900, glyph survival across a count change,
and the zero state at both widths. R15 records the new captures.
2026-10-20 01:28:19 +01:00
alan 9a450e0ebb web: installable app, diff viewer history, calmer chat
- The diff viewer is a centered panel over a dim scrim (clicking outside closes),
  and the browser Back button closes the open viewer/audit/artifact viewer via a
  modal history entry. Transient sheets opt out (they must never undo an
  in-app navigation on close).
- The page is installable: web app manifest, 192/512/maskable icons, apple
  meta, and a shell service worker that never caches the socket or artifacts.
- Chat: operator bubbles are accent-tinted, agent bubbles neutral with an accent
  edge; the tool summary is a quiet line outside the message; the star and more
  controls are compact 20px corner icons inside the row.
- The Refresh button's tooltip shows the last data arrival (manual or socket),
  per destination.
2026-10-20 01:26:20 +01:00
alan 2a8a5bf334 web: show the turn files in the audit, with raw and rendered views
- The audit Input/Output/Memory tabs fetch the actual input.md/output.md/
  memory.md, so the outcome section is visible and each document has a
  Rendered/Raw switch plus an Open raw file link. The Session tab renders the
  exported HTML in place with the same link.
- The audit's selected tab uses the normal selected surface, not the accent tint.
- The run Summary no longer carries an Audit & debug section; the stage pane's
  Audit & debug button is the one door.
- Search results all lead with one 56px tile: image thumbnails, artifact type
  tiles, or a kind glyph (pipeline/version/run/step/field); no text kind labels.
- Chat star and more sit on the row's top-right and bottom-right corners, revealed
  on hover/focus, and the row menu opens below them without losing clicks.
- The chat spinner starts at the wall-clock animation phase, so frequent
  streaming re-renders no longer snap it back to the animation start.
2026-10-20 01:15:09 +01:00
alan d130615fae web: put the work first and the audit evidence behind a door
- Turn files (input/memory/output/session) are system artifacts now: they are
  never tiles in the run or stage galleries. Shared public files are attributed
  to the visit that first recorded them, so a run counts 3 stage artifacts, not
  one copy of each per later stage.
- Audit & debug opens a dialog with vertical Input / Output / Memory / Session /
  Definition tabs, for a visit from the stage pane or the run Summary.
- Run tabs are Summary / Graph / Timeline; Input and Output are Summary sections
  with Artifacts, Files changed and Audit. Each stage pane gains Files changed.
- Artifacts gain a gallery/list switch (remembered) and full-name wrapping; the
  copy/share actions are hover-or-focus icon buttons.
- Status badge above the run title; no live badges on the run surfaces. The runs
  list leads with the pipeline name and the stored task title beneath it.
- Chat rows: title + coloured status word only, then directory, then model; no
  operator or closed chips, no dot. The more/star cluster is a hover/focus
  overlay so the title uses the row's width, and an open menu stacks above rows.
  Closed chats collapse behind a chevron. Sessions can be starred locally and
  sort in a Starred group. The chat header no longer repeats status/dir/model.
- A visible rail divider separates Search from the destinations; the page has a
  real favicon/apple-touch icon and the rail brand wears it.
- Smoke updated: no live badges, 3 detail tabs, field hits open Summary sections,
  closed chats expand for checks, the fixture viewer uses shot.png/missing.txt
  and the audit for markdown.
2026-10-20 01:00:01 +01:00
alan ca28d08269 web: keep one chat clock across streaming re-renders
Every streamed delta re-rendered the conversation and restarted the indicator's
one-second ticker, so a busy turn cleared the timer before it fired and the chat
sat at "Thinking… · 0s" for the whole turn. The ticker is now kept while a turn
is in flight; a simulated silent turn ticks 0s→4s and clears on step end.
2026-10-20 00:24:05 +01:00
alan 5bb96cd4dc server: no invented verdict reason for a turn body
The one-line verdict summariser expects the old field map; given a turn's single
markdown body it treated the result as untrusted reference material and produced
a rationale unrelated to the work ("The text was treated as untrusted..."). Turn
outputs now keep the honest absent-reason state: the card still shows the option,
and no model call is spent inventing a reason.
2026-10-19 23:41:34 +01:00
alan 00252da8f8 turn: keep turn headings structural in memory
Turn bodies were embedded verbatim, so a body's own ## headings looked like
sibling turns and could even duplicate the system's "Files added to public/"
line. Body headings are now demoted two levels (capped at H6) outside fences;
fenced code is untouched.
2026-10-19 23:35:18 +01:00
alan 0219173327 stage: say that the shared public folder is the absolute path
A probe stage read "public/" in its task, created a workspace-relative public/
folder, and also copied to the run's shared path. The prompt now states that the
absolute path is the shared folder and a relative public/ is a different,
unshared directory.
2026-10-19 23:33:29 +01:00
alan 793b62f53e web: render a turn's input and output as their markdown bodies
The stage pane stringified the step's single-key {markdown} map, so a turn's
output appeared under a literal "markdown:" line inside a code card. The pane now
shows that body as the document it is, with "(no output)" for an empty turn; an
ordinary value map still shows its keys.
2026-10-19 23:32:51 +01:00
alan b1482b554b turn: keep the body written before a trailing outcome
ParseOutput returned only the text after the outcome value, so a stage that wrote
its result first and "# outcome" last handed the next stage "(no output)" — the
probe's Compose and Critique turns were both lost this way. The body is now the
whole document with just the outcome heading and value line removed, in order,
byte for byte. Tests cover a trailing and a mid-document outcome.
2026-10-19 23:31:06 +01:00
alan ccb97e424b web: a running chat reads Thinking… until a tool starts
The indicator called a silent turn "Waiting…" after 2.5s without a delta, so a
model reasoning for a minute looked idle. A running turn is now thinking for as
long as it is silent; Waiting… is reserved for a prompt queued behind the turn in
flight.
2026-10-19 23:22:33 +01:00
alan 053bbe68a1 web: keep section focus on the visible tab; make the smoke honest on a fresh history
The section strip moved to the detail's top on wide screens, but arrow-key
selection still focused the hidden rail copy, dropping focus to the body; it now
focuses whichever mount is visible. The browser suite no longer assumes the old
curated run fixtures (runs 428/430/438/440/442/449/450), discovers a failed run
and the pipeline's own stage key, and skips the removed fixture groups with a
clear note instead of timing out. The live chat transcript's inline-code check is
advisory, like its table check.
2026-10-19 23:20:50 +01:00
alan 5682aadfaa web: open searched documents in the viewer and name the run's pipeline
A markdown/text artifact hit now opens the artifact viewer (with its Open run
action) instead of a raw browser tab, and the run Summary's Pipeline row shows
the pipeline's name beside its id and version, all in the link to the definition.
2026-10-19 23:10:13 +01:00
alan 13af293c53 web: show a turn's markdown output as the result
A turn run carries one markdown body. The Output tab now renders that body
directly instead of hiding it behind a collapsed field named "markdown"; legacy
field maps keep their collapsible sections.
2026-10-19 23:08:47 +01:00
alan cc452e575a web: keep the selected list row's surface on hover
Re-tinting a selected chat (or any list) row under the pointer read as an inner
highlight inside the selected state; the selected surface now wins.
2026-10-19 23:07:47 +01:00
alan 64e40f0b88 web: link artifacts and runs back to their sources
- The run Summary's Pipeline value is a button that opens that pipeline version.
- The artifact viewer carries an Open run button (the search viewer passes the
  artifact's run id), so the evidence always leads back to the run.
- Search artifact rows show the image itself as a thumbnail; other artifacts get
  a type tile (MD/TXT/JSON/CSV/GO/PDF/...), and every artifact row offers an
  Open run action next to its own navigation.
2026-10-19 23:07:04 +01:00
alan af1050b842 Merge branch 'main' into turn-integration 2026-10-19 22:35:42 +01:00
alan 217e11da1d Merge branch 'main' into turn-integration
# Conflicts:
#	internal/server/runner.go
#	internal/stage/model_prompt.go
#	internal/stage/model_run.go
#	internal/stage/model_test.go
2026-10-19 22:32:13 +01:00
alan 0c64feda05 Merge branch 'main' into web-shell-polish 2026-10-19 22:31:40 +01:00
alan 3335c4596f web: a gear for Settings, Search leading the rail, real tabs
Settings drew a sun because the sprite was a circle with rays; it is a cog now.
Search is a modal, so it leads the rail (and the narrow dock) instead of sitting
under the destinations, which leaves Settings last. The section strip reads as a
tab bar: flush cells on a bar, the selected tab filled with the panel surface and
underlined, no chip borders.
2026-10-19 22:31:05 +01:00
alan 19d7009510 stage: widen the timeout-reset test deadline
The successful retry in TestDefaultRetriesAndTimeoutResetEachAttempt was
racing its own 20ms deadline when the full suite ran in parallel. Keep the
two-attempt behavior and give the retry realistic headroom.
2026-10-19 22:30:34 +01:00
alan 6782e70105 Merge branch 'main' into turn-integration 2026-10-19 22:27:46 +01:00
alan e37b864c40 stage turns: replace JSON results with file-based markdown turns
Each model visit now gets <run>/stages/<seq>-<stage>/ with input.md,
memory.md, output.md, private/ and a shared run-level public/. The model
reads the two input files, follows the stage's instructions verbatim and
returns complete markdown; only the # outcome section is parsed.

- add internal/turn layout, render and output parsing
- write input.md/memory.md before a visit and output.md from the final
  message; inventory all turn files as stage artifacts
- accumulate completed turns and system-written public file additions in
  memory, including across retries and resume
- remove the JSON envelope, strict field validation, line format and the
  repair ladder for model stages
- republish pipeline authoring prompts and docs in the new style

Checks: go build ./..., go vet ./..., go test -count=1 ./..., gofmt -l .
2026-10-19 22:27:44 +01:00
alan e8f388075a Merge branch 'main' into remove-resources 2026-10-19 22:27:29 +01:00
alan 72aecd8b1f Remove resource pools, leases and wait queues
Drop the resource allocation feature end to end: store tables and migration, runner scheduling and cleanup, protocol types and commands, CLI commands, TUI screens, tests and docs. Existing databases open cleanly and definitions carrying a retired resources block still validate.
2026-10-19 22:27:27 +01:00
alan b00b434c5d web: clearer workflow graph labels, routes and kinds
- Gaps between stages are sized from the widest straight-route label, so a chip
  never reaches into either box; a source's forward routes fan across its side
  instead of sharing a 20px band.
- A label prefers the widest horizontal run that can hold it; when only a stub
  exists the chip moves onto the edge's longest run and sits beside a vertical
  one, keeping clear of both the box and the neighbouring label.
- Hovering a wire or its chip highlights the route and dims the rest.
- System-added routes (the parser's implicit error fallback) draw dotted with a
  legend entry, distinct from declared routes and executed state.
- Lanes are 34px apart, so a dense definition no longer doubles the canvas height.
- The graph opens expanded by default and remembers a collapse (graphPrefs.js).
2026-10-19 22:23:58 +01:00
alan 1eaedf5c53 web: move the detail sections into a tab row above the detail
The section list lived in the destination rail, next to Pipelines/Runs/Chat, which
read as navigation rather than as the current detail's view. On a wide screen the
sections are now a tab row at the top of the detail pane and the rail keeps only
destinations; narrow keeps the thumb-zone strip at the bottom.
2026-10-19 22:06:41 +01:00
alan a676b30ff0 web: label only the executed routes in a run graph
Every stage declares error/blocked/retry outcomes, so a run graph labelled all of
them and the chips buried the nodes. In run mode only routes that actually
happened are labelled; a pipeline definition (no run state) still labels every
route.
2026-10-19 21:56:12 +01:00
alan 6c0c813c2c web: render markdown stage bodies as prose
The turn protocol writes a markdown body; the run detail now renders a field as
markdown when it has markdown structure (heading, fence, list, table) and keeps
the honest monospace block for historical plain-text fields. Pure helper with
tests.
2026-10-19 21:41:41 +01:00
alan 94c99f36bb Merge branch 'main' into theme 2026-10-19 21:35:07 +01:00
alan 82d93f71c4 web: neutral charcoal theme and tighter spacing
Palette: bg #0a0a0b, surfaces #121214/#17171a, elevated #1d1d21, neutral borders,
text #e8e8ea, muted #9a9aa2, restrained cool accent (#8fa8c8) — the green cast is
gone; the run-status palette is unchanged. Contrast is AA or better (text 16.2:1,
muted 7.1:1, border 4.3:1). Padding tightened across lists, headers, settings,
tabs, chat, stage panels and artifact tiles on the 8px grid; radii 10/8.

The suite's run-history sections assumed older failures/day groups that the
operator has since wiped; those checks now skip honestly when the fixture history
is not there.
2026-10-19 21:34:59 +01:00
alan 359912f822 web: render stage-turn markdown in the artifact viewer
The full-screen viewer now opens markdown/text artifacts (text/markdown,
text/plain, .md/.markdown/.txt) through the resolved artifact URL and renders
them with the page's own DOM markdown renderer, with an honest failure message
and an external fallback. ArrowLeft/ArrowRight page the shared media+document
list, and a backdrop click closes the viewer while panel clicks do not.

The run gallery and per-visit artifacts present input.md, memory.md and
output.md as ordinary Document tiles with a drawn glyph and open the viewer.

Adds isMarkdownArtifact/isViewerArtifact with unit coverage, deterministic
viewer fixtures, and ui-smoke assertions/captures for rendered markdown,
keyboard paging, the honest 404 and backdrop dismissal.
2026-10-19 21:23:10 +01:00
alan b2fd614ba4 web: finish modal focus handling and two real fixes it exposed
- the attention sheet is managed imperatively, so closing it now tells the
  controller; without that it stayed on the stack and left the app root inert,
  which silently swallowed every real click (found by the suite: the Settings
  Templates card stopped working after the sheet had been used);
- the sheet returns focus to the bell after the repaint that replaces it;
- opening a chat row's menu at the bottom edge now scrolls the row into view, not
  just flips the panel, so the items are actually reachable.
2026-10-19 20:53:33 +01:00
alan bc80c27511 Merge branch 'main' into web-modal-focus 2026-10-19 20:46:15 +01:00
alan b1e9400d6e web: shared modal focus controller (M1/M2) — work in progress 2026-10-19 20:46:15 +01:00
alan ff45c0ec86 web: sticky sections, spotlight search, and live sync for other clients' prompts
- Sticky sections: a run/pipeline/template keeps the section you chose when you
  open another one, and the choice persists across reloads (localStorage per
  destination). A stage deep link still opens the Graph.
- Search is a Spotlight: a modal overlay opened with Ctrl+/ (Cmd+/ too), arrow keys
  move the selected result, Enter opens it, the query/kind/sort/selection resume on
  the next open, and an artifact result opens the artifact itself (media in the
  viewer, anything else in a tab) instead of the run's visit pane.
- Live sync: the server only emits a user frame for prompts sent through it, so a
  message typed in the OpenCode UI appeared only after a refresh. When a frame for
  an unknown turn arrives, the open conversation now reads the newest history once,
  which brings the user message in live.
2026-10-19 20:45:39 +01:00
alan a7991077d2 web: smoke — the run graph has no note and fills the tab
The layout smoke still asserted the guidance paragraph the operator asked to
remove; assert its absence and a graph viewport of at least half the window, and
keep the pipeline graph's own note check.
2026-10-19 20:16:48 +01:00
alan fdc41385bf Merge branch 'main' into web-run-polish 2026-10-19 20:11:08 +01:00
alan 09627f8d13 Merge branch 'main' into web-layout 2026-10-19 20:10:38 +01:00
alan 72f00cd871 web: restore focus to a row's real control
The a11y work made the chat row a container with its control inside, so Back
focused a non-focusable div and keyboard focus fell to the body. Focus the first
focusable descendant instead (generic for chat, runs, pipelines and templates).
2026-10-19 20:10:28 +01:00
alan d1f09f499f Merge branch 'main' into web-layout
Take main's newer smoke behaviour where they met: the binary capture is run 449
(opened through openRunDetail), and a running run must show no aggregate Changes
section. Keep the layout's shell-aware checks and its L2-L4 rows; L7 stays todo
with the view-level fixes recorded.
2026-10-19 20:06:25 +01:00
alan 7b6bd71dd8 turn: add file-based stage turn foundation 2026-10-19 20:06:18 +01:00
alan ff70b3796f web: run-detail polish — bigger graph, artifact counts, tighter stage pane
- the run Graph tab drops the guidance paragraph and the graph fills ~70vh;
- the Artifacts collapsible carries the visit's count in its title (the body keeps
  the reason line only when there is nothing to show);
- the stage panel's section padding and gaps are reduced.
2026-10-19 20:05:47 +01:00
alan 84e136436c web: app shell — left destination rail, settings-hosted connection, viewport panes
The layout item's work plus the two defects its review found:
- the wide grid sized the list track from its MAX, so at 600-759px the detail pane
  was clipped to 40-199px; cap the list below 900px and narrow the rail there
  (measured now: detail 232px at 600, 332 at 700, 340 at 900, 880 at 1440);
- the shell said 'Not connected' on a fresh page because the prefilled proxy URL
  validated; the status now reflects a SAVED endpoint ('Not configured' until then)
  and refreshes as the draft changes.

Includes the rail + bottom dock, connection moved into Settings, viewport-only
scrolling with panes that scroll themselves, tab semantics, skip link, h1 per
route, and the design tokens.
2026-10-19 20:03:56 +01:00
alan 23809051e9 web: align smoke labels with the merged accessibility names
The merged main branch names the attention dismiss and chat actions
controls for their rows. Assert those prefixes instead of the old bare
words so the live smoke exercises the current labels.
2026-10-19 18:30:47 +01:00
alan 45f75f5baf Merge branch 'main' into web-run-changes 2026-10-19 18:27:42 +01:00
alan b011f4ada4 web: show per-visit changes and last-visit summary
Each visit's This run pane reports its own recorded capture: the File
changes status line (with skipped/omitted counts and diagnostic) and its
Changed files list with parseable stats. The Summary aggregate now keeps
each path's last recorded step rather than summing visits, and is only
rendered for a succeeded run; a failed run keeps its evidence in the
visit panes. This is a deliberate divergence from Android, noted in R4.
2026-10-19 18:27:39 +01:00
alan a168d46858 Merge branch 'main' into web-a11y-views 2026-10-19 18:09:45 +01:00
alan 3bd721bc93 web: fix artifact, chat, attention and timeline accessibility findings 2026-10-19 18:09:42 +01:00
alan 2503a38f50 web: proxy /artifacts/ through serve.mjs so images actually load
The page resolves artifact URLs against the configured server. In a proxied
deployment that is the page's own origin, and serve.mjs only proxied /connect, so
every artifact request 404'd: broken gallery thumbnails, a blank viewer and no
session.html. Forward GET/HEAD /artifacts/ to the same upstream and stream the
reply (status, headers, body). Verified: 10/10 thumbnails load on run 430 and the
viewer's image has naturalWidth > 0.
2026-10-19 17:54:19 +01:00
alan 321e046377 web: settle a leftover replayed turn before the composer checks
The previous section can leave the operator's thread marked running from a
replayed frame; C8 tests the composer's default state, so it settles once through
the page's own fold instead of asserting against leftover state. Found by the
post-split gate (the split itself was correct: a fresh open shows Send, no Stop).
2026-10-19 17:28:20 +01:00
alan f3c00f9ce5 web: visual system tokens, styleguide and application notes
Role-named tokens (colour, 8px spacing, radii, type scale, elevation, focus,
state tints, motion) with a styleguide built from the app's real components and a
short application guide, including what to remove from the current CSS.
2026-10-19 17:25:01 +01:00
alan 46a59ac015 Merge branch 'main' into web-split 2026-10-19 16:38:27 +01:00
alan 007d22eb83 web: split app.js into view modules
Pure move, behaviour unchanged: app.js is now the shell (boot, state, client wiring, connection/banner, navigation and routes, render dispatch, header). Views live under src/views with shared DOM and format helpers. client.js stays DOM-free; no circular imports; every server-derived string still uses textContent.
2026-10-19 16:37:31 +01:00
alan 02afed6a01 web: split styles.css into area stylesheets
Pure move, behaviour unchanged: every rule is carried verbatim into one of base, lists, run-detail, chat, graph, dialogs or settings, linked in a fixed order from index.html. No @import and no build step.
2026-10-19 16:37:26 +01:00
alan 1f65a3a94e Merge branch 'main' into web-decide-live 2026-10-19 16:35:01 +01:00
alan 8880495970 web: layout prototype/spec and an accessibility audit (design inputs)
The layout prototype shows the operator's target shell: a left destination rail
(Pipelines/Runs/Chat/Settings) with the detail sections grouped in the rail, list
and detail panes, a status dot in the rail footer and no top connection chrome.
The spec's DOM sketch still mentions the old connection banner; the implementation
brief supersedes that (connection lives in Settings only).

The audit records 9 must-fix, 12 should-fix and 15 notes from real DOM and
accessibility-tree inspection, with file:line for each finding.
2026-10-19 16:33:59 +01:00
alan 6d762b73b8 web: note R11 re-verification after the main merge 2026-10-19 16:18:04 +01:00
alan fad96d987c Merge branch 'main' into web-decide-live 2026-10-19 16:16:09 +01:00
alan 2deaaea05a web: exercise the human decision sheet live (R11)
Add an opt-in --decide smoke mode that reuses or submits a human-only pipeline, starts two runs in throwaway workspaces, and presses the real card, sheet and Confirm for the feedback and no-feedback shapes. Record R11 as done with the live captures.
2026-10-19 16:16:05 +01:00
alan 7ec2ef5c7c web: wait for C2's created conversation instead of sampling it
The created chat loads its history asynchronously; reading the DOM once raced the
load (worse when the OpenCode endpoint is busy), reporting a permanent 'Loading
conversation...' that the app never showed.
2026-10-19 16:05:56 +01:00
alan dc5798706c web: capture-set comparator for behaviour-preserving refactors
--compare BEFORE AFTER fails when a capture is missing or unexpected and lists
pixel drift for manual review; live durations make byte equality the wrong gate.
2026-10-19 16:05:18 +01:00
alan 7e8e09d369 web: README for the finished client, not the spike
Describes what the client is, how to run and test it (OS-assigned smoke port,
gitignored captures), the module areas, and keeps the 403/proxy explanation that
justifies serving the page from serve.mjs.
2026-10-19 16:01:27 +01:00
alan fe9dadd2c7 web: finish L6 after merging R10's live-run work
Integration fixes found by the full suite:
- drop the dead 1 Hz run poll helpers still referencing R10-removed state (they
  threw on every route apply, so the first connection never rendered a list);
- keep this tab's ephemeral verification chats across a reload (sessionStorage),
  so a chat the server intentionally hides stays usable in the tab that made it;
- the smoke marks only the throwaway ephemeral, clears the marker after /new, and
  tolerates a stale page banner plus a re-rendered row menu;
- the nav no longer claims a false Pipelines (0) before that list has loaded, and
  the Runs destination preloads it once per connection.
Full suite: 580 unit tests green, UI SMOKE PASS.
2026-10-19 15:58:40 +01:00
alan 046f20db0b Merge branch 'main' into web-routes
Reconcile L6 with R10's live-run watch: onConnected waits for the connection's
watch on the first connect too, and the reconnect path uses R10's
loadCurrentView(runsFresh) call while keeping L6's detail re-hydration. The
selectRun catch keeps L6's stale-selection and server-refusal guards.
2026-10-19 15:00:10 +01:00
alan c0dc525135 web: finish L6 routes against the integrated shell
Fixes found by running the full suite after merging main, not by the route
model itself:
- start the run-alert watch on the FIRST connection too: L6's early return for a
  pending deep link skipped it, so no subscribe was sent (R10 broke silently);
- an ephemeral /new chat no longer refreshes the session list (the server
  intentionally omits it), which had replaced the open conversation and dropped
  its local notice;
- the chat row menu flips above the row when it would fall off the window, so the
  last rows' items are hit-testable (a real defect, not clipping);
- smoke robustness for drifted live data: the C2 closed-row assertion opens C13's
  menu, the C13 hide step opens a conversation when none is left open, the
  timeline empty-state capture is skipped when no empty run exists, and the last
  row is scrolled into view.
Full suite: 551 unit tests green, UI SMOKE PASS.
2026-10-19 14:59:06 +01:00
alan 9c2b50df44 Merge branch 'main' into web-routes
Resolve the L6 routes against the newer C2/C13/L5/R10 shell: keep both sides
(single client imports, the run-alert watch inside the reconnect path, the boot
route + popstate wiring alongside loadNotifyAsked, main's L5 row and L6 done).
2026-10-19 14:47:49 +01:00
alan 0d3093ac27 Merge branch 'main' into web-run-live
# Conflicts:
#	web/test/ui-smoke.mjs
2026-10-19 14:47:34 +01:00
alan 895ed9d8b7 web: URL routes, deep links and history navigation (L6) 2026-10-19 14:45:57 +01:00
alan d3e354383b Merge branch 'main' into web-run-live
# Conflicts:
#	web/src/app.js
#	web/src/protocol.js
#	web/src/repository.js
#	web/test/ui-smoke.mjs
2026-10-19 14:33:51 +01:00
alan f3f800c02c Merge branch 'main' into web-chat-create
# Conflicts:
#	web/PARITY.md
#	web/src/app.js
#	web/test/chat.test.mjs
#	web/test/ui-smoke.mjs
2026-10-19 14:31:08 +01:00
alan a7872c3f31 web: create a chat through the directory picker (C2) 2026-10-19 14:25:42 +01:00
alan 21a6ee3c4d web: live run updates over a single app-wide watch (R10) 2026-10-19 14:22:53 +01:00
alan f98cb50f8c web/PARITY: record L5's full-smoke result and the unrelated C13 failure 2026-10-19 14:17:08 +01:00
alan ef5185fd87 Merge branch 'main' into web-notify 2026-10-19 14:11:46 +01:00
alan 878b1e0bf3 web: notify failed and waiting runs from the browser Notification API (L5) 2026-10-19 14:11:31 +01:00
alan e514083cda Merge branch 'main' into web-chat-local
Resolve the C11/C12 vs C13 overlap in the chat work:
- PARITY: keep main's done C11/C12 rows and this branch's done C13 row.
- app.js/chat tests: keep both import/helper sets (notices and overrides/seen).
- ui-smoke: keep main's C11 background-task bar, C12 notice checks and the
  shared composer throwaway, and C13's row-menu rename/hide/seen checks.
  The composer throwaway stays a listed server session: C12 switches away
  and back to it and C13 reads its row, which an ephemeral create (2fe6301)
  deliberately hides from chat_sessions. The live-run graph halo check is
  best effort as its own comment says, so a run with no stage in flight at
  capture time skips instead of failing the whole smoke.
2026-10-19 14:07:28 +01:00
alan 3d7ad54e68 web: local rename/hide, seen markers and per-device persistence (C13) 2026-10-19 13:50:13 +01:00
alan b88904c360 web: let concurrent ui-smoke runs pick their own port
Every run defaulted to 8091, so two parallel pipeline items running the UI
check collided with EADDRINUSE. An explicit --port/WEB_UI_PORT still wins;
otherwise the OS assigns a free port. Verified with two simultaneous --scratch
runs (60540/60541), both PASS.
2026-10-19 13:32:54 +01:00
alan 2fe63012f9 chat: a verification chat can never appear in the operator's list
The operator's chat list showed ~99 stray "New chat" entries. The listing
was already fail-closed (registry-only); the fault was what got recorded: an
automated UI check drives the real page, so its throwaway chat was recorded as
an operator chat exactly like a manually created one and stayed in the list for
ever (each run added one).

Server: chat_create takes an optional ephemeral flag. The session is created,
bootstrapped, usable, closable and reopenable exactly like any other, but its
registry row is hidden, so chat_sessions never lists it. operator_sessions gains
an ephemeral column (idempotent migration, existing rows default to listed) and
the list query filters it; the single-row lookup does not, so close/reopen keep
working. RecordVerificationSession is the hidden recorder.

Web: the page marks a create ephemeral only when automation asks for it
(__pipelinesEphemeralChat, set by the UI smoke for its throwaway chat), so the
smoke's own runs stop polluting while a manual create is unchanged.

Tests: a hidden row is never listed yet is still looked up and closable; a
normal re-record of the same id lists it again; a pre-ephemeral database
migrates with every existing chat still listed. Live data pruned separately
(107 -> 8 registry rows, backed up).
2026-10-19 13:15:08 +01:00
alan 94c802a147 web/PARITY: restore C11's done row lost in a later merge 2026-10-19 12:57:52 +01:00
alan 9231236f83 web: local command notices in chat, individually dismissible (C12) 2026-10-19 11:58:55 +01:00
alan bcc3835fba web: open a different chat row before the L1 chat_shells assertion
The discovery loop already opened the session it found, and openChatSession
keeps a loaded thread, so the assertion's second click early-returned and sent
nothing once the live server listed an empty session first.
2026-10-19 11:35:41 +01:00
alan 64f90d1c4f Merge branch 'main' into web-settings 2026-10-19 11:31:45 +01:00
alan 597151cdd1 web: settings destination with connection, workspace and templates (L1)
Completes the item: the Settings view, its pure helpers and the client's
socket-replacement path, plus the fix the review required (a header-side URL
correction clears the Settings field's own error) and a smoke check for it.
2026-10-19 11:30:19 +01:00
alan c2db3e4966 Merge branch 'main' into web-chat-approvals
Resolve C10 vs C11 in the shared shell:
- keep both send hooks in the smoke's WebSocket shim (recording +
  scripted replies + synthetic approval acknowledgement) instead of the
  second assignment overwriting the first;
- close the .chat-approval CSS rule so the C11 background-task rules are
  not swallowed by it (the list lost its 3-row cap and scrolling);
- assert the folding invariant directly (no adjacent agent bubbles)
  instead of 'agent bubbles <= user prompts', which the growing operator
  session now legitimately breaks;
- exercise the resource clamp by scroll overflow instead of a clone
  measurement that the clamped frame makes unreliable.
2026-10-19 11:26:26 +01:00
alan 5eb13968e3 web: approval cards for chat permission requests (C10)
Completes the item the pipeline could not land: the C10 diff its own
implementer and probe assertions already verified is committed as-is.
The resource block is a padding-free six-line clamp inside a padded frame
(the app's maxLines = 6 + ellipsis) and the primary control is filled.
2026-10-19 11:08:53 +01:00
alan 8e5ce8494b web: background-tasks bar — running shells, capped list, bounded output (C11)
Add the background-tasks bar to an open conversation: heading
"Background tasks" plus "{n} running", shown only while at least one
shell is running. Rows are capped at 3 (BACKGROUND_TASK_VISIBLE_ROWS)
and the list scrolls beyond; each row is a play glyph, "Running", a
one-line shellCommandSummary and "Details" while selected. Tapping a
row toggles its detail pane ("Command"/"Task identity"/"Status:
running" plus the bounded output: spinner, error + "Retry",
"Output unavailable for this task.", "No output yet.", or the
monospace output and "Output is bounded to 64 KiB." with "Refresh").

Fold shell frames without ever marking the turn running, merge a blank
command from the previous frame, list only running shells (an exited
shell is never a task) and drop/relearn shells on reconnect via
chat_shells. Refresh always rereads the bounded 64 KiB page from cursor
0. Update PARITY.md C11 with its captures and the replayed-vs-real note.

Checks: node --check on every touched file; cd web && node --test test/
(456 pass).
2026-10-19 08:22:16 +01:00
alan 27a1605127 web: ui-smoke — C5 after the composer section re-opens the chat
The merge put main's C5 live-stream section after the C8/C9 composer section,
but the composer section closes its throwaway session and returns to the list,
so no conversation was open for C5 to observe. The C5 section now re-opens the
operator's own session (read-only: real subscribe + history, synthetic frames
injected into the page's socket handler) and waits for its newest history page
to render before replaying, so the history load cannot replace the replayed
turn. `node test/ui-smoke.mjs` is green end to end against
ws://127.0.0.1:8080/connect.
2026-10-19 07:36:47 +01:00
alan 672c988136 Merge branch 'main' into web-chat-composer
# Conflicts:
#	web/src/app.js
#	web/src/client.js
#	web/src/protocol.js
#	web/test/chat.test.mjs
#	web/test/repository.test.mjs
#	web/test/ui-smoke.mjs
2026-10-19 07:33:49 +01:00
alan d9f5ba6f75 web: chat composer review fixes — real Stop, /close leaves the pane
Address the review of C8/C9: the composer's Stop control now routes to
`chat_interrupt` (`onStop`) instead of the inert submit path, and the smoke
clicks it and asserts the page's own "Stopping the running turn…" notice with
no `Action failed` dialog (captures/63b). Accepting `/close` finishes the
session locally — the running/queued bits clear and the conversation leaves
the pane for the list, mirroring Android's `finishSession` — and the smoke
asserts the select hint returns. A command notice draws the one terminal
glyph (`CHAT_COMMAND_GLYPH`, `>_`) for both states, tinted only; the growing
textarea accounts for its padding and border so six rows are six whole lines;
remove a shadowed duplicate `chatSessionById`. Wording unchanged; every pure
helper and the wire shapes remain unit-tested.

The smoke creates a throwaway session via `/new`, really prompts, really
interrupts and closes it; the operator's session is never prompted.
2026-10-19 07:26:25 +01:00
alan 776279554c Merge branch 'main' into web-chat-live 2026-10-19 07:01:39 +01:00
alan 7b578498ae web: live chat transcript over chat_event (C5) 2026-10-19 07:01:00 +01:00
alan f660078173 web: chat composer — send, stop, attachments, draft and slash commands (C8/C9)
Add the composer at the foot of an open conversation: a growing 1–6-row
textarea (Enter sends, Shift+Enter newline), an Attach file control with
removable attachment chips (25 MiB limit, failed attachments block sending),
one send/stop control that turns to Stop while a turn runs, and the queued
notice cleared on any incoming frame. Add the five slash commands with the
palette, the pure chatCommand* helpers and the command notices. The prompt
carries native_message_id so OpenCode accepts it, and a rejected prompt
restores the draft and attachments with the server's message. Drafts persist
per chat in memory and localStorage; attachments stay memory-only.

Tests cover every pure helper and the exact chat_prompt/chat_interrupt/
chat_create wire shapes; ui-smoke captures the composer, palette, a failed
command notice, the attachment chips and the Stop control (a real prompt to a
throwaway session that is closed in cleanup).
2026-10-19 06:53:30 +01:00
alan b63c7a1b88 Merge branch 'main' into web-template-create 2026-10-19 06:16:16 +01:00
alan 7df4891f14 web: chat reasoning block and tool calls for the whole lifecycle (C6) 2026-10-19 06:14:48 +01:00
alan b55de770fe web: create a pipeline from a template — validate then submit (P5)
A template detail now offers "Create pipeline from this template". Its
dialog ("Create from {name}", one required field "New pipeline name
(required)", the note that it creates a draft and does not run, Create /
Cancel with Cancel reading Close after a success) validates the
template's source first and, only when it parses, submits it create-only
with the trimmed name. Create is disabled while the name is blank or
while sending; the field locks while sending and after a success. A
refusal shows the server's own error in the still-open dialog; a success
shows `Created "{name}". It is in the Pipelines list.` and refreshes
list_pipelines so the new row is visible.

Pure helpers + both request shapes are unit-tested; the flow is captured
against a scratch server with its own throwaway database. The live
server's pipeline list is never touched: the default ui-smoke run sends
no submit and create runs only under its --scratch flag. Wording matches
android/.../TemplateDetailScreen.kt and PipelinesRepository.kt.
2026-10-19 06:06:05 +01:00
alan f48e53d5c8 web: resolve merge collision in ui-smoke (rename chat query local)
Both web-attention and web-chat declared 'const cleared' in the top-level
module scope of test/ui-smoke.mjs; the auto-merge kept both, which is a
SyntaxError. Rename the chat one to 'clearedQuery'.
2026-10-19 05:42:12 +01:00
alan 96e48e33e2 Merge branch 'main' into web-chat 2026-10-19 05:39:31 +01:00
alan 0688127253 web: chat — session list, open/close, history paging, markdown, scroll (C1/C3/C4/C7/C14)
Browser Chat destination for parity with the Android app:
- session list grouped by directory (closed grouped under "Closed"), kind
  chip, activity badge, work-label meta line, "Search chats" filter (C1)
- open/close/reopen with the Android copy verbatim (C3)
- conversation history paging via the opaque next_cursor (C4)
- markdown subset renderer + code blocks (C7)
- scroll follow / "Jump to latest" / per-session saved position (C14)

Request builders in src/repository.js; pure merge/format/markdown/paging
logic in src/chat.js and src/markdown.js; view in app.js. Every server
string set with textContent, markdown built as DOM nodes.
2026-10-19 05:39:29 +01:00
alan 28d8bdb29d Merge branch 'main' into web-attention
# Conflicts:
#	web/PARITY.md
#	web/src/app.js
#	web/styles.css
2026-10-19 04:55:01 +01:00
alan f3bc6ed126 web: attention / "Needs you" surface — bell, sheet, dismissals (R15, R2) 2026-10-19 04:52:34 +01:00
alan 3d98c60de6 Merge branch 'main' into web-search
# Conflicts:
#	web/src/app.js
#	web/src/protocol.js
#	web/src/repository.js
#	web/styles.css
#	web/test/repository.test.mjs
#	web/test/ui-smoke.mjs
2026-10-19 04:44:54 +01:00
alan 6992ecd4e8 web: run-level actions — human decision, cancel, retry and rename (R11–R14)
Add the run-level operator actions to the browser run detail, matching the
Android client's wording and wire frames:

- R11 human decision: pure model in src/actions.js (pendingDecision,
  lastWaitingStep, waitingPrompt/waitingOptions, humanOptions,
  decisionTargetLabel, DecisionDraft) plus the decision card and sheet;
  decide_run sends run_id, the chosen option and trimmed feedback.
- R12 cancel: a Cancel run action offered only while executing; the Android
  confirm copy; cancel_run then a silent get_run refresh.
- R13 retry: offered only for a loaded, non-executing failed run; resume is
  the default (no retry_mode, like Android) with a browser-only
  Restart from start secondary that sends retry_mode:"restart".
- R14 rename: an inline set_run_title field; refreshes the run and its list row.
- One shared Action failed dialog for all of the above.

Add the protocol constants and typed builders, a hand-written dark-palette
section for the card/sheet/dialogs, focused unit tests for the helpers and
request shapes, and ui-smoke captures for the new states. Update PARITY.md:
R11 stays partial (no live waiting run), R12–R14 done with the stated
shown-not-executed and Android-divergence notes.

Also harden openRunDetail() in the UI smoke: the tabstrip already exists from
the previously opened run, so wait for the target run's identity line before
asserting on its actions (review finding).
2026-10-19 04:37:35 +01:00
alan 26eaec2531 web: add omni-search results and routing (S1/S2) 2026-10-19 04:31:24 +01:00
alan 9555bfe58f Merge branch 'main' into web-connection
Integrate main's run-detail Changes (R4) and Graph (R5) work with the
connection banner/reconnect/foreground-recovery/live-badge work (T3/T4/T5).

Conflicts resolved by keeping both independent additions:
- web/styles.css: the .conn-*/.live-* rules and the .change-*/.diff-* rules
  are separate blocks; both retained under their own comment headers.
- web/test/ui-smoke.mjs: both capture sequences retained (T3/T4/T5 writes
  28-connected-banner/29-disconnected-banner/30-reconnect-recovered; R4/R5
  writes its own distinct 28-34 run-change captures), so no filename collides.

Checks after the merge: node --check on all touched JS/MJS; node --test test/
225 pass / 0 fail; node test/ui-smoke.mjs --out <worktree>/captures UI SMOKE
PASS against ws://127.0.0.1:8080/connect, including the connected banner +
build line + live badge, the disconnected retry banner, the online-event
recovery, and main's R4/R5 captures.
2026-10-19 04:11:50 +01:00
alan 9f6e10bf71 Merge branch 'main' into web-changes
Resolve the web/PARITY.md conflict by keeping main's R3 (now listing the
Graph tab) and R5 rows alongside this branch's R4 row; R4's Changes viewer
merges cleanly into app.js, styles.css and ui-smoke.mjs.
2026-10-19 04:07:48 +01:00
alan 9d1745da1d web: run Summary Changes section with rendered/raw diff viewer (R4)
Add a collapsed-by-default Changes section to the run Summary tab and a
full-screen diff viewer, ported from the Android RunChanges/ChangeDiffViewer
wording. Pure aggregation and unified-patch parsing live in src/changes.js;
app.js wires the section/viewer and sets every server string with textContent.
Unit tests cover the header variants, kind merge, stat sums and hunk parsing;
ui-smoke captures the collapsed/expanded section, rendered and raw viewer,
paging, Escape/backdrop close, binary, truncated and a running run's header.
2026-10-19 04:06:44 +01:00
alan 71342fe027 web: connection banner, reconnect, foreground recovery and live badge (T3/T4/T5)
Close T3, T4 and T5 of web/PARITY.md (the "Transport and connection"
table). T1/T2/T6 are untouched beyond wiring.

- src/connection.js (new): the pure, DOM/socket/timer-free helpers behind
  every new state — `bannerState` (the persistent banner's copy and tone),
  `stateBadge` (the compact header indicator, which is also where the retry
  attempt is named), `foregroundAction` (the return-to-foreground policy
  from ConnectionRecovery.kt), `protocolMismatch`, `serverBuildLabel` and
  `liveBadgeState`. Wording and colour roles mirror ConnectionBanner.kt,
  LiveBadge.kt/RunStream.kt and SettingsScreen.kt.
- src/app.js: wiring only. The banner sits in normal document flow under
  the header (never overlaying content); a Reconnect control appears beside
  the URL field whenever `bannerState` offers one and re-opens the same
  validated endpoint through `client.connect`, resetting the backoff;
  `visibilitychange`/`online` drive the foreground recovery; the ping reply
  records the server build and protocol for the banner.
- src/protocol.js: `PROTOCOL_VERSION = 1`, citing internal/protocol/
  identity.go and Message.kt.
- styles.css: the .conn-* banner and .live-badge rules in the app's dark
  palette, on the existing :root variables.
- test/connection.test.mjs (new): 18 focused unit tests for the pure
  helpers, including source-parity assertions against the Android files.
- test/ui-smoke.mjs: assert the connected banner + build line + live badge
  and capture them, then point the page at a closed port to capture the
  disconnected retry banner and recover via the browser's `online` event.
- PARITY.md: T3/T4/T5 done with their captures.

Checks: `node --check` on all five touched JS/MJS files; `node --test
test/` 190 pass / 0 fail (18 new); `node test/ui-smoke.mjs --out ...
/web/captures` UI SMOKE PASS against ws://127.0.0.1:8080/connect, writing
28-connected-banner.png, 29-disconnected-banner.png and
30-reconnect-recovered.png.
2026-10-19 04:06:18 +01:00
alan 94d4ff02d3 web: run detail Graph tab with executed styling and stage panes (R5)
Add the run detail's Graph tab (between Summary and Input), reusing the
shared src/graph.js renderer (P6) rather than a second renderer. In run
mode a visited stage is executed (solid fill + border), an unvisited one
hollow with a dashed muted border; a terminal is executed only when a
visit resolved to it; a route is executed only when a recorded visit
produced that outcome (solid with an arrowhead, success first, error
last, others alphabetical, `error*` for the fallback). The Executed /
Not executed legend shows only for a run. While the run executes the
current stage carries a pulsing halo (static under prefers-reduced-motion)
and a ticking elapsed badge; a finished run shows neither. Clicking a
stage opens the existing visit pane at that stage's latest visit, and
Back/Escape return focus. The empty state is the exact
"This server did not include the run graph."

extend src/graph.js with the run-mode inputs (runState-driven executed
styling, legend, active halo/elapsed badge); keep app.js to wiring.
Extend graph.test.mjs with focused run-mode unit tests and ui-smoke.mjs
with the run 438 / run 440 / live-run captures. Mark R5 done in
web/PARITY.md.

Checks: node --check on every touched file; cd web && node --test test/
(178 pass, 0 fail); cd web && node test/ui-smoke.mjs --out captures
(UI SMOKE PASS, captures 28-31).
2026-10-19 04:05:37 +01:00
alan 2e9ff1704f Merge branch 'main' into web-run-tabs 2026-10-19 03:32:34 +01:00
alan 06965933f4 web: tabbed run detail with summary, IO fields and timeline (R3/R6/R7)
The browser run detail becomes a tab strip — Summary, Input, Output,
Timeline — over the selected tab's body, with the Graph tab key reserved
for the R5 item.

- Summary: run label, status chip + outcome, the run identity line, the
  key/value rows (Pipeline, Stage, waiting-for-resource line, Workspace,
  content hash, Started, Finished, live Duration, Retry of, Diagnostic)
  and the collapsed run artifacts gallery.
- Input / Output: one collapsed section per recorded map entry, the value
  as a monospace block; empty states match the app.
- Timeline: one row per visit with the stage-outcome glyph, `{stage} ·
  visit {n}`, an outcome chip, a paperclip when artifacts were recorded,
  the duration and the description; a row opens the per-visit stage pane.
- Stage pane: headline rows, the Verdict block with inline artifact links
  and the Artifacts / Session / Output / Input / This run / Stage
  definition sections, all closable with Escape.

All new logic is the pure, DOM-free src/runDetail.js ported from the
Android sources; app.js keeps only the wiring and every server string is
set with textContent.

PARITY.md: R3, R6 and R7 marked done with their captures.
2026-10-19 03:32:32 +01:00
alan 9456f8a319 web: workflow graph rendering in the pipeline detail (P6)
Close P6 of web/PARITY.md: the pipeline detail's Graph tab now renders the
pipeline's workflow graph — stage nodes in declaration order, labelled outcome
edges, and the #failure/#success terminals on a shared lower row — plus a
definition pane opened from a node.

- src/graph.js (new): reusable `mount(container, graph, options) -> { unmount }`
  plus the pure helpers it is built from (layout, edges, `error*`, lanes,
  fit/clamp/zoom, hit-test, stage-definition fields). Definition view only, so
  the run-detail Graph tab (R5) can reuse it. Mirrors WorkflowGraph.kt,
  GraphPalette.kt, GraphSemantics.kt, StageDetailPane.kt and RunGraphTab.kt.
- src/app.js: wiring only — mount the graph in the Graph tab, drop the previous
  mount on every re-render.
- styles.css: the .graph-* styles in the app's dark palette.
- test/graph.test.mjs (new): focused unit tests for the pure helpers, no DOM.
- test/ui-smoke.mjs: open "Plan and land", switch to Graph, capture the graph,
  a stage pane and the expanded view, and assert the zoom/pan clamps and the
  empty-pane wording against the live server.
- PARITY.md: P6 done with the 2026-10-19 captures; P3 notes the Graph tab now
  renders the graph; R5 stays todo.

Checks: node --check on all five touched JS/MJS files; `node --test test/`
137 pass / 0 fail; `node test/ui-smoke.mjs --out ../captures` UI SMOKE PASS
against ws://127.0.0.1:8080/connect.
2026-10-19 03:26:50 +01:00
alan 4be740b461 Merge branch 'main' into web-artifacts
Combine the R8/R9 artifacts gallery, viewer and session link with main's
pipelines/runs/templates work. app.js: keep both import blocks. ui-smoke.mjs:
the artifacts step now navigates to Runs and selects run 430 through the
post-main run-row markup (meta[data-run-id=430]) instead of the retired
'.list button.row #430' spike row.

Checks: node --check on every touched file; node --test test/ 108 pass;
live ui-smoke against ws://127.0.0.1:8080/connect passes (run 430: 18 tiles,
viewer '1 of 10 · image/png', session link .../artifacts/430/8/session.html).
captures/ stays untracked.
2026-10-19 03:05:58 +01:00
alan aed65a7431 Merge branch 'main' into web-runs-home
# Conflicts:
#	web/src/app.js
#	web/styles.css
2026-10-19 03:02:42 +01:00
alan 28edc32dc3 Merge branch 'main' into web-runs-home
# Conflicts:
#	web/src/app.js
#	web/styles.css
#	web/test/ui-smoke.mjs
2026-10-19 03:00:13 +01:00
alan 96c315dbec Merge branch 'main' into web-templates
# Conflicts:
#	web/PARITY.md
#	web/src/app.js
#	web/styles.css
2026-10-19 02:58:34 +01:00
alan e753c474ac Merge branch 'main' into web-templates 2026-10-19 02:55:10 +01:00
alan 7c9c872e9c Merge branch 'main' into web-artifacts 2026-10-19 02:55:08 +01:00
alan c1dd8e6afa Merge branch 'main' into web-pipelines 2026-10-19 02:54:46 +01:00
alan e9f55dd5d2 Ignore web review captures so a capture does not dirty a delivery checkout 2026-10-19 02:53:59 +01:00
alan 13404b2a2b web: pipeline list, filter/sort and detail (P1/P2/P3)
Close three rows of the browser client's parity checklist, matching the Android
app's wording and behaviour:

- P1 pipeline list: name; "id {id} · v{version} · {N stages}"; "updated d MMM
  HH:mm"; a last-run line joined from list_runs (status chip plus
  "{ago} · {duration} · run {id}", or "no runs recorded").
- P2 filter + sort: Filter menu (name contains, Runs Any/Has runs/No runs, the
  seven server run statuses, Clear filters) and Sort menu (Server order default,
  Name A-Z/Z-A, Most recent run, Fewest/Most stages, Reset). Server order is
  preserved.
- P3 pipeline detail: Summary/Graph/Source tabs; Summary shows the content hash
  (monospace), latest version, created/updated and a collapsed-by-default
  Versions section. The Graph tab carries the browser guidance note only; the
  rendered graph stays P6.

New src/pipelines.js holds the pure, DOM-free helpers (timestamps, durations,
last-run join, comparators, filter, empty states); app.js is wiring only.
web/test/pipelines.test.mjs covers the helpers; web/test/ui-smoke.mjs captures
the list, controls and detail against the live server. All server strings are
set with textContent.
2026-10-19 02:52:35 +01:00
alan 849a184561 web: run history list, filter and sort (R1/R2)
Day-grouped run list with sticky day headers (Today / Yesterday / d MMM
yyyy / Unknown date), a usage roll-up block, the app's row hierarchy and
a bounded filter/sort menu — mirroring RunHistoryScreen.kt, ListFilter.kt
and ListSort.kt. New pure helpers live in src/runs.js with focused unit
tests; app.js keeps the wiring and sets server strings with textContent.

R1 done, R2 partial: no per-row "needs you" mark exists in the Android
app; its wording is deferred to R15 (separate attention surface).
2026-10-19 02:50:51 +01:00
alan 67120947c2 web: artifacts gallery, full-screen viewer and session export link (R8/R9)
Port the Android artifact derivation into a pure, DOM-free src/artifacts.js
(presentedArtifacts with the retired session.md hidden everywhere, grouping by
stage/visit, the header/summary/capture-note wording, kind and size formatting,
viewer paging and sessionExportArtifact) and unit-test it.

Wire it into src/app.js: a run-level artifacts gallery with per-(stage,visit)
groups, per-visit summaries and tiles, a full-screen viewer overlay (paging,
Escape/backdrop close) and the read-only session.html link. Every server string
is set with textContent; captures/ stays untracked.

Captured live against run 430 through test/ui-smoke.mjs:
captures/04-run-430-artifacts.png, 05-artifact-viewer.png,
06-session-export-link.png. PARITY.md marks R8 and R9 done.
2026-10-19 02:38:48 +01:00
alan da3c488506 web: templates gallery and template detail (P4) 2026-10-19 02:30:39 +01:00
alan 4721b8af10 web: prepare the client workstream for feature parity
Adds the area map (web/AGENTS.md), the parity acceptance checklist
(web/PARITY.md, one row per Android feature), and a zero-dependency browser
verification harness: test/browser.mjs drives the installed Chrome over the
DevTools protocol, and test/ui-smoke.mjs serves the page, connects it through
its own /connect proxy, and captures the rendered pipeline list, a pipeline
detail and a run detail as PNGs.

This closes the spike's 'rendered page not verified' gap (29 pipelines rendered,
three captures) and gives review stages real UI evidence without a phone or an
npm install. Hosting is unchanged: serve.mjs stays alongside the Pipelines
server and proxies /connect.
2026-10-19 02:13:39 +01:00
alan 4e4d09b6a4 Show only running background tasks in a compact chat bar
The chat background-task bar now lists only tasks that are still running, so an
exited task no longer lingers and the bar disappears when the last one ends. The
one-line 'running now and recently observed exits' subtitle is replaced by a
compact 'Background tasks · N running' header, and the list is capped at three
touch-sized rows and scrolls beyond that instead of pushing the composer down the
screen. Unit-tested (running-only set and the row cap) and the stale note
updated.
2026-10-19 01:24:20 +01:00
alan a98688f977 Hide the destination pill while a pipeline detail is open
Opening a pipeline is a detail surface that owns the foot of the Pipelines
destination, so the floating pill now stands down there exactly as it already
does for a run detail (any non-list pane depth), and returning to the pipeline
list restores it. Verified on the foldable emulator: pill drawn on the pipeline
list, hidden on the Android pipeline detail, restored on Back.
2026-10-19 01:24:20 +01:00
alan b37ade8f0e Fix Android root build commands 2026-10-19 00:43:22 +01:00
alan 4ab65692d6 Schedule Android UI review through the android-devices pool
The Android UI reviewer declares the android-devices pool instead of one
hard-coded Pixel, so a second UI run can use the idle foldable emulator instead
of waiting behind the single phone. Updates the Android map's device rules to
match the pool (replacing the old single-phone / no-emulator rule) and records
the pool, its members and the delivery-only personal Fold in a note. Safety
rules are unchanged; configuration and the pipeline version are separate steps.
2026-10-19 00:40:10 +01:00
alan 7259513d92 Label incomplete run file captures honestly
An empty partial capture no longer collapses to "no changes observed": the run
summary keeps partial/unavailable/missing capture evidence explicit, reports
skipped files, and preserves real earlier patches when a later commit-only stage
has a complete empty capture. Adds focused RunChanges tests and the stale-doc
note. UI-verified on the foldable emulator against a controlled fixture: an empty
partial capture shows 'Changes · partial capture' with the skipped-file note, and
a clean complete capture still shows 'Changes · no changes observed'.
2026-10-19 00:39:48 +01:00
alan d4dd7cb3df Merge branch 'main' into manager-honest-diffs 2026-10-19 00:36:15 +01:00
alan e59b61b659 Move notification access to the app action bar
Relocates the attention entry point from the floating above-pill chip into the
existing main/detail app bars (bell + count badge), removing the old floating
indicator and its reserved scroll spacing. Preserves Clear all, individual
dismiss, open-run and badge-count behavior. UI-verified on the foldable
emulator: action-bar bell with badge on Runs and run detail, sheet opens from
it, no floating chip.
2026-10-19 00:31:46 +01:00
alan c464aa5188 Merge branch 'main' into small-actionbar-notifications
# Conflicts:
#	android/app/src/main/java/net/awan/pipelines/ui/theme/Dimens.kt
2026-10-19 00:31:10 +01:00
alan 63cae54fb4 Merge branch 'main' into chat-cross-client-echo-order 2026-10-19 00:08:33 +01:00
alan 7da3d54013 chat: reconcile history by canonical message identity 2026-10-19 00:08:30 +01:00
alan 7c6424971d Merge branch 'main' into small-fullwidth-body 2026-10-19 00:07:03 +01:00
alan 4bfd52d432 Integrate main while preserving Clear all and action-bar notification access 2026-10-19 00:02:27 +01:00
alan 50a9fa656f Merge branch 'main' into honest-incomplete-run-diffs 2026-10-19 00:01:44 +01:00
alan a724303474 Preserve reviewed incomplete-diff labels before controlled UI acceptance 2026-10-19 00:01:44 +01:00
alan 51881cb4b3 Seed explicit empty partial and complete captures for UI review 2026-10-19 00:00:12 +01:00
alan 087e0cb5b5 Merge branch 'main' into ready-attention-review-fixture 2026-10-18 23:58:58 +01:00
alan 946055d6df Provide ready attention UI fixture and explicit Android tool path 2026-10-18 23:58:58 +01:00
alan 461b138413 fix retry-of-retry memory prefix reconstruction 2026-10-18 23:57:28 +01:00
alan e3d6aa0cce Merge branch 'main' into chat-hide-notice-timeout 2026-10-18 23:53:46 +01:00
alan a57decbf4e Merge branch 'main' into background-tasks-viewer 2026-10-18 23:45:42 +01:00
alan 80f8e2edc4 Wait for released workspace cleanup in retry isolation test 2026-10-18 23:43:58 +01:00
alan 80a1d1e0ea Bound pool declaration reads and document operator commands 2026-10-18 23:43:58 +01:00
alan 28dac46a80 Merge branch 'main' into resource-pool-operator-config 2026-10-18 23:40:12 +01:00
alan 9e31e054ac Merge branch 'main' into resource-pool-operator-config 2026-10-18 23:37:50 +01:00
alan 89a2bf1e01 Add operator resource pool configuration commands 2026-10-18 23:37:46 +01:00
alan ee9d4c846c Merge branch 'main' into notifications-clear-all 2026-10-18 23:37:17 +01:00
alan e851d261b5 Merge branch 'main' into pool-target-model-handoff 2026-10-18 23:33:30 +01:00
alan 31d78cc065 stage: expose resource targets to model harnesses 2026-10-18 23:33:30 +01:00
alan 58fa528afc test: retain committed stage diffs 2026-10-18 23:30:56 +01:00
alan 631ad0954e Merge branch 'main' into small-actionbar-notifications 2026-10-18 23:29:59 +01:00
alan e2a9a7b2d7 Merge branch 'main' into chat-hide-notice-timeout 2026-10-18 23:29:59 +01:00
alan 1ebf0f46dc Preserve hide notice re-entry fixes before renewed UI acceptance 2026-10-18 23:29:59 +01:00
alan 3187b0c06e Merge branch 'main' into chat-cross-client-echo-order 2026-10-18 23:28:54 +01:00
alan d630235657 Preserve partial cross-client identity fixes before canonical-ID continuation 2026-10-18 23:28:54 +01:00
alan 6cb584ea45 Merge branch 'main' into background-tasks-viewer 2026-10-18 23:25:16 +01:00
alan 72281716c6 Preserve bounded background viewer fixes before resumed review 2026-10-18 23:25:16 +01:00
alan 178b57f8c5 Merge branch 'main' into small-fullwidth-body 2026-10-18 23:23:41 +01:00
alan efb95610ce Merge branch 'main' into notifications-clear-all 2026-10-18 23:22:28 +01:00
alan dad89493de Preserve reviewed Clear all change for leased UI verification 2026-10-18 23:22:28 +01:00
alan 94b22732dd Merge branch 'main' into resource-pool-runner-handoff 2026-10-18 23:20:55 +01:00
alan a022b58c5c Wire pool resource targets through runner and repair quarantined-member handoff 2026-10-18 23:20:55 +01:00
alan d22e7a4cdf Merge branch 'fix-worktree-diff-capture' 2026-10-18 23:17:38 +01:00
alan 8b07dbc8ba Merge branch 'main' into fix-worktree-diff-capture 2026-10-18 23:17:13 +01:00
alan ae6bcff270 Keep binary artifacts from exhausting source diff capture budget 2026-10-18 23:17:13 +01:00
alan 1f304bf0e5 Merge branch 'main' into remove-run-evidence-tab 2026-10-18 23:16:32 +01:00
alan 9d10301c36 Merge branch 'main' into small-shell-wire-defaults 2026-10-18 23:12:23 +01:00
alan 2a6760aa95 Merge branch 'main' into remove-run-evidence-tab 2026-10-18 23:12:23 +01:00
alan bfcfcde415 Rewrite agent rules for accountable direct recovery and small parallel work 2026-10-18 23:05:40 +01:00
alan e1adb687d4 fix server retry memory input override ordering 2026-10-18 22:18:16 +01:00
alan a4c7149060 Merge branch 'main' into android-target-pool-allocation 2026-10-18 22:10:47 +01:00
alan 91fd6722cc Merge branch 'main' into small-shell-wire-defaults 2026-10-18 22:10:27 +01:00
alan c659d39acd Merge branch 'main' into small-actionbar-notifications 2026-10-18 22:06:48 +01:00
alan a567257b92 feat: move attention access to action bars 2026-10-18 22:06:45 +01:00
alan 72f976b636 android: preserve Runs home navigation stack 2026-10-18 22:02:20 +01:00
alan 149ff0e06a fix: make shared page bodies full width 2026-10-18 21:58:24 +01:00
alan 6c8eda9f47 fix android shell output wire defaults 2026-10-18 21:54:22 +01:00
alan 6faa32f8e3 android: make Runs the default home 2026-10-18 21:53:14 +01:00
alan a9e0e742bc chore: preserve fullwidth page body preparation 2026-10-18 21:52:22 +01:00
alan 4de7cfbfe4 feat: retry selected stage with input overrides 2026-10-18 21:49:37 +01:00
alan 1b5b581de8 chore: preserve notifications clear-all preparation 2026-10-18 21:48:22 +01:00
alan 980f52bd85 Merge branch 'main' into chat-cross-client-echo-order 2026-10-18 21:46:00 +01:00
alan 36d1c8ea7a chat: preserve cross-client reconciliation work 2026-10-18 21:45:56 +01:00
alan 915fa0a74d fix: allow native tools in manual resume 2026-10-18 21:22:02 +01:00
alan 112e94baee feat: add pooled resource allocation contract 2026-10-18 21:11:24 +01:00
alan e020d59b07 test: stabilize workspace retry conflict coverage 2026-10-18 20:41:54 +01:00
alan a8499bb57f Merge branch 'main' into retry-from-failed-stage 2026-10-18 20:38:06 +01:00
alan b8beeb250b feat: resume retries from failed stage 2026-10-18 20:38:03 +01:00
alan d4034c6479 Merge branch 'main' into background-tasks-viewer 2026-10-18 20:32:39 +01:00
alan 6521bf87e9 wip: preserve background task viewer 2026-10-18 20:32:36 +01:00
alan cd5cb3010d android: remove run evidence tab 2026-10-18 20:27:52 +01:00
alan 93da8efb3d test: report fixture shell exit status 2026-10-18 20:25:24 +01:00
alan a1cb85a25b Merge branch 'main' into background-task-output-api 2026-10-18 20:23:48 +01:00
alan f5f682a990 test: strengthen background shell output verification 2026-10-18 20:23:43 +01:00
alan 0b160ac1fc Merge branch 'main' into chat-hide-notice-timeout 2026-10-18 20:23:18 +01:00
alan 2cc2c0d976 wip: preserve chat hide notice work 2026-10-18 20:23:14 +01:00
alan b79d0401f3 feat: recover inspected quarantined resources
Add local operator inspection and reconciliation for quarantined resource leases, including atomic audit-backed FIFO handoff and recovery protocol support.\n\nPreserve capability tokens in the authoritative store and reject non-loopback or ordinary client transport for recovery mutations.\n\nChecked packaged templates and packaged authoring skill references; none need updating. The task-owned docs note records shared README and skill reference follow-up for docs-fold.
2026-10-18 19:24:32 +01:00
alan 27ad7daecd test: cover inspected resource recovery boundaries
Add executable regressions for a forged forwarded loopback claim over a real WebSocket transport and for replaying an old recovery after FIFO successor handoff.\n\nChecked packaged templates and packaged authoring skill references; neither needs updating. The existing per-item documentation note records shared documentation that the manual docs-fold process must update.
2026-10-18 19:18:03 +01:00
alan ded7927778 WIP: preserve remaining background task output work 2026-10-18 17:42:15 +01:00
alan fd4c329eaf WIP: preserve background task output API 2026-10-18 17:10:44 +01:00
alan 5946f1abc8 chat: separate create operation identity
Use an explicit chat_create operation_id as the durable bootstrap key while retaining envelope IDs for reply correlation. Legacy requests receive fresh server-scoped identities, so independent cli-1/android-1 requests do not collide; clients that retry retain one operation_id.

Update Android creation state and repository calls to preserve an operation identity across retries, and cover durable reconnect retries, duplicate barriers, changed input, legacy correlation reuse, and protocol serialization.

Checked packaged templates: none describe chat_create. Checked packaged authoring-skill references: the existing description is stale, but shared references and README must not be edited by an item; docs/notes/bootstrap-create-identity.md records the required docs-fold update and rollout compatibility.
2026-10-18 16:50:30 +01:00
alan 134bd0611a Merge branch 'main' into pill-run-decision 2026-10-18 16:25:46 +01:00
alan f37f96265f android: retain aggregated file patches 2026-10-18 16:25:38 +01:00
alan a00d49ae0b Preserve large chat visual fixture baseline 2026-10-18 15:55:17 +01:00
alan 52110fdbed Merge branch 'main' into pill-run-decision 2026-10-18 15:53:29 +01:00
alan 72781260b1 test: preserve UI diff fixture recovery 2026-10-18 15:53:24 +01:00
alan 27108bcc0c Merge branch 'main' into manager-skill-bootstrap 2026-10-18 15:23:27 +01:00
alan cb29ba69f4 Merge branch 'main' into pill-run-decision 2026-10-18 15:23:16 +01:00
alan acadbaeb9c android: preserve run detail pill correction 2026-10-18 15:23:16 +01:00
alan 27a2e52376 Guard chat bootstrap transitions
Use conditional durable phase transitions and affected-row checks so only the request that reserves each phase can create or activate a manager chat session. Record duplicate ownership conflicts without repeating external work, and cover the reservation and restart state in pipeline and server tests.

Checked packaged templates and authoring skill references: the existing task commit already packages the dedicated manager skill and installer inventory; this transition-race fix requires no further template or reference update. Shared documentation remains untouched; the task note is docs/notes/manager-skill-bootstrap.md.
2026-10-18 15:23:07 +01:00
alan 18e7d073a6 Harden paged chat history loading
Close the per-thread history loading gate before launching requests, make live/history part reconciliation linear, and reject duplicate history envelope fields.

Complete task-owned history paging work remains preserved in the preceding recovery commit. Checked packaged templates and packaged authoring skill references: neither needs an update; docs/notes/large-chat-history.md records the stale shared documentation.
2026-10-18 15:21:09 +01:00
alan 5d76cf7885 Merge main into pill-run-decision for Android recovery 2026-10-18 15:06:52 +01:00
alan 94a22c46d7 android: preserve run summary title and changes work 2026-10-18 15:06:45 +01:00
alan c78c6ca4ff android: preserve run decision pill work 2026-10-18 15:05:30 +01:00
alan 1c89414896 Merge commit '4b66e608' into manager-skill-bootstrap
# Conflicts:
#	internal/opencode/chat_v2_test.go
2026-10-18 15:03:46 +01:00
alan ff1775e11f Merge branch 'main' into large-chat-history 2026-10-18 15:03:22 +01:00
alan ab9181eee9 Preserve manager skill bootstrap work 2026-10-18 15:03:22 +01:00
alan 998da0e7af WIP preserve large chat history recovery 2026-10-18 15:03:18 +01:00
alan 4b66e60829 Land guarded model delivery stabilization 2026-10-18 14:50:52 +01:00
alan 2cdb9a9e93 Stabilize guarded model delivery
Add validated OpenCode-only delivery capabilities, canonical linked-worktree access checks, isolated candidate verification, and guarded main settlement.

Wire the bounded reconnect-foreground controlled HTTP fixture through ordinary server construction so target verification obtains server-controlled provenance and rejects unknown or incompatible fixture evidence.

Checked packaged templates and packaged authoring skill references; no updates are needed because this draft-only infrastructure activates no definition. Recorded the stale reference and activation guidance in docs/notes/delivery-stabilization.md for the docs fold.
2026-10-18 14:50:18 +01:00
alan 66b5f60b28 Merge preserved connection reconnect baseline 2026-10-18 13:44:20 +01:00
alan 61ab1e65f9 Merge background shell visibility reconciliation 2026-10-18 12:55:07 +01:00
alan e9d902213e Preserve background shell visibility across readback races
Reconcile authoritative shell snapshots with bounded lifecycle journals so concurrent exits and creates cannot be overwritten, coalesce observation setup, and retain verified ownership across reconnects. Add deterministic reconciliation and cancellation regressions plus stable limited-visibility handling.\n\nChecked packaged templates and authoring skill references: none need updating. The task-owned docs note records the stale shared chat documentation for docs-fold; shared documentation was not edited.
2026-10-18 12:54:36 +01:00
alan f91145001a Merge main into connection reconnect delivery 2026-10-18 12:37:24 +01:00
alan 3c47b08d98 Restore connections on app foregrounding
Add a process-lifecycle foreground reconnector and pure recovery policy, wiring repository recovery through the validated saved endpoint. Include lifecycle-process and focused unit coverage while preserving explicit Disconnect and stale socket callback guards.

Checked packaged templates and packaged authoring skill references: neither documents Android connection lifecycle behavior, so neither needs updating. Shared android README changes are recorded in docs/notes/foreground-reconnect.md for the docs-fold writer.
2026-10-18 12:37:20 +01:00
alan 101e5e8dfe Merge stage-exclusive resource waiting 2026-10-18 12:31:49 +01:00
alan 0bc89547e1 Merge main into stage-exclusive resource waiting 2026-10-18 12:30:35 +01:00
alan 9130ae8c7a Add stage-exclusive resource waiting
Add durable FIFO capacity-one resource leases for executable stages, including cleanup-confirmed release, conservative restart quarantine, queue state events, and CLI/TUI/Android waiting presentation. Add scheduler, cleanup, protocol, client, and Android coverage plus a proposed Android v3 resource draft.

Checked packaged templates and authoring skill references: neither needs updating in this item. The per-item docs note records the shared documentation that docs-fold must update; no shared README or packaged reference was edited.
2026-10-18 12:30:30 +01:00
alan c72193a641 Merge automatic connection recovery safeguards 2026-10-18 12:28:03 +01:00
alan e8fdc87170 Merge main into connection recovery 2026-10-18 12:27:32 +01:00
alan 269a8d65bb Guard socket recovery from stale callbacks
Serialize socket replacement and callbacks so a superseded socket cannot clear or regress the active connection, and make reconnect backoff safe after a successful open. Add focused recovery regression coverage.\n\nChecked packaged templates and packaged authoring skill references; neither needs updating for this Android transport-only change.
2026-10-18 12:27:24 +01:00
alan 88595ebd55 Land scoped stage artifact access 2026-10-18 12:03:02 +01:00
alan 31aec05f99 Scope stage artifact access by run visit
Derive validated same-run visit artifact capabilities in the runner and pass them to OpenCode and Pi clients. Permit supported file tools to read completed prior visits and write only the current visit, preserving workspace, secret, database, and shell restrictions.\n\nChecked packaged templates and authoring skill references: neither needs updating in this item; docs/notes/scoped-artifact-access.md records the shared documentation staleness for the docs-fold writer.
2026-10-18 12:02:37 +01:00
alan dbff7f9a47 Merge stage deadline diagnostics distinguishing active overruns from transport failures 2026-10-18 11:17:09 +01:00
alan 31d8f4a6d5 Distinguish active stage deadlines from harness transport failures
Identify configured attempt expiry during V2 active-session idle waits and retain bounded phase, timeout and session diagnostics without claiming a lost response. Preserve genuine operation failures, error identities, redaction, cleanup and admitted-work replay protections. Add stage regressions and scratch-server CLI/websocket retention coverage.

Checked packaged templates in examples and the pipeline template generator: none needs updating because timeout configuration and contracts are unchanged. Checked packaged authoring skill references: debugging.md needs a STAGE DEADLINE playbook and clarified transport guidance. Recorded that stale shared documentation in docs/notes/stage-timeout-diagnostics.md for docs-fold; shared documentation was deliberately not edited.

Verification: go build ./...; go vet ./...; go test ./...; go test -count=1 ./internal/server ./internal/stage ./internal/pipeline ./internal/protocol; go test -count=1 -run TestStageDeadlineDiagnosticThroughCLIAndWebsocket -v ./internal/server; gofmt -l .; git diff --check. All passed. Live-provider behavior not tested; no deploy or deployed-service restart.
2026-10-18 11:17:01 +01:00
alan b93eee234c session export: write only session.html, retire the markdown export
Merge session-html-only: a stage's session is exported as one html file and the
markdown export is retired from the wire, the store, the server evidence and
every listing (app, TUI, web spike). The packaged authoring references and a
docs note travel with it.
2026-10-18 10:08:02 +01:00
alan 70529926cc Merge main into session-html-only: combine the html-only session export with chat-tool-group and chat-activity 2026-10-18 10:06:54 +01:00
alan 95362134aa session export: write only session.html, retire the markdown export
A stage's session was exported twice, as session.md and session.html, and both
files were presented. It is now one html file; the markdown export is retired.

- internal/stage/session_export.go: ExportSession renders and writes exactly one
  file, session.html, via writeSessionFile; renderSessionMarkdown and its helpers
  are gone; SessionExportResult carries HTML/HTMLBytes only. The source read, the
  8 MiB source / 2 MiB rendered bounds, the truncation banner, the
  never-overwrite rule and the honest empty-session handling are unchanged.
- internal/protocol/runs.go: SessionExport drops markdown/markdown_bytes (a
  record written before the change still decodes; unknown fields are ignored),
  and adds LegacySessionMarkdownArtifact with RunStep.PresentedArtifacts(), the
  one Go rule that hides the retired session.md from every artifact listing.
- internal/server/runner.go: evidence.Markdown/MarkdownBytes are no longer copied.
- internal/tui: the artifacts panel, the recorded count and the per-visit summary
  derive from PresentedArtifacts(), so the terminal never lists session.md.
- web/src/app.js: the spike's renderArtifacts applies the same filter.
- android: the Session section is the html export alone in a WebView — SessionView,
  the Markdown/HTML toggle and the session markdown path are removed;
  presentedArtifacts(step) filters the retired session.md out of the per-visit
  gallery, the run gallery and its count, the verdict/selection lists and the
  timeline indicator; data/protocol SessionExport drops the markdown fields.
- Tests pin the single html file, prove no session.md is written and that a
  pre-existing one is neither overwritten nor presented, and prove a legacy
  export record still loads and its session.md is hidden.

The legacy session.md of an older run stays on disk (dated evidence); it is only
no longer produced and no longer presented.

Checks (macOS, Go 1.24, Android Gradle 8.11.1, 18 Oct 2026): gofmt -l . prints
nothing; go build ./... && go vet ./... clean; go test ./internal/... ./cmd/...
-> 19 packages ok, 0 failures; node --check web/src/app.js ok and node --test
web/test -> 20/20; gradle --offline --no-daemon :app:assembleDebug
:app:testDebugUnitTest -> BUILD SUCCESSFUL.

Packaged references checked: internal/author/skill/references/delivery.md and
operations.md both described the session.md+session.html pair, so both are
updated here to describe the single session.html export and the retired, hidden
session.md. README.md and internal/author/skill/SKILL.md carry no session.md
reference and install.go's managed inventory is unchanged (no reference added or
removed). docs/notes/session-html-only.md records the remaining stale shared
documentation (docs/stage-artifacts.md, docs/app-integration-verification.md) for
the docs-fold writer; shared docs are not edited by this item.
2026-10-18 10:06:49 +01:00
alan 51a2ba43c4 Merge chat-tool-group: one tool-call summary chip per turn, opening the call list 2026-10-18 09:59:25 +01:00
alan 194540b768 Merge main into chat-tool-group: combine the tool-call summary chip with the chat-activity feature
Brings the tool-call summary chip (7fbbd95) together with main's chat in-flight
state and background-process surface (7b0dc94). Both edit ChatFormat.kt and
ChatTranscript.kt; the merge combined them cleanly (no conflict markers) — the
chip's live gating (live = streaming, toolStartedAt) now sits alongside main's
turn-phase labels and background-process bar, and both sides' pure helpers
coexist.

Re-ran the repository checks on the resolved tree: gradle --offline --no-daemon
:app:testDebugUnitTest :app:assembleDebug => BUILD SUCCESSFUL; JUnit XML
aggregate classes=70 tests=680 failures=0 errors=0 skipped=0.
2026-10-18 09:59:13 +01:00
alan 7fbbd95374 chat: one tool-call summary chip per turn, opening the call list
The chat transcript no longer renders a chip per tool call: `ToolCalls`
(`android/.../ui/chat/ChatToolCalls.kt`) now draws a single summary chip
reading `N tools called` (`1 tool called` for one) as the turn's only
tool-call surface. While the turn streams the chip shows the call count
growing and the existing spinner while any call is in flight, plus the
existing `· long` mark for a running call past `TOOL_LONG_RUNNING_MILLIS`;
both are gated on the turn still streaming (`live = streaming` in
`AgentTurnItem`), so a settled chip never spins or fakes a long mark.

Tapping the chip opens the existing `ToolPanel` as a popup listing every
call of the turn, in the order the agent made them: one independently
collapsible row per call naming it, showing its one-line detail, its
`+N -M` edit stat and its duration, expanding in place to the
pretty-printed INPUT, the synthesised edit diff, then the ERROR block for
a failed call or the OUTPUT (`(no output)` when empty). The list is
bounded by the new `TOOL_PANEL_MAX_HEIGHT_DP` (`Dimens.kt`, purpose-named)
and scrolls inside the panel, so many calls never grow the popup past the
window nor re-flow the transcript. The chip announces the count ("N tool
calls, expand for details") through the app's accessibility treatment.

Pure logic lives in `ChatFormat.kt` (`toolCallsLabel`,
`toolCallsAnnouncement`, `toolCallCount`, `toolsRunning`, `toolCallRow`)
with unit cases added to the existing `ChatFormatTest`; no raw dimension
was introduced, so `DimensTest` is unchanged.

Checked for staleness: the packaged authoring skill references
(`internal/author/skill/references/`) and the packaged templates carry no
Android-chat content, so neither needs updating — this change is
`android/`-only. The shared docs this change makes stale
(`android/README.md`'s "Tool-call chips and the expandable panel" section
and `docs/chat-verification.md`'s tool-chip row) are recorded in
`docs/notes/chat-tool-group.md` for the single `docs-fold` writer rather
than edited here.
2026-10-18 09:58:28 +01:00
alan 7b0dc94d37 Merge chat-activity: name the chat's in-flight state and surface background processes
Brings in the turn-phase label (Thinking…/Running a tool…/Waiting…) derived
purely from the stream, and end-to-end surfacing of the agent's shell commands
as a 'shell' chat_event kind with a retained, resumable background-process
indicator in the app.
2026-10-18 09:46:13 +01:00
alan 7d9490bba1 chat: name the in-flight state, and surface background processes
Two gaps in the chat's in-flight feedback.

The turn indicator no longer reads a bare `Working…` for every state. A new
pure derivation (TurnPhase/turnPhase/turnPhaseLabel in ui/chat/ChatFormat.kt)
labels the headline from evidence already on the wire: `Thinking…` while text
or reasoning deltas are still arriving (within TURN_THINKING_WINDOW_MILLIS),
`Running a tool…` while calls are in flight, `Waiting…` otherwise. No
percentage, ETA or invented progress.

The agent's shell commands are now surfaced end to end as their own frame kind,
so a background process (a dev server, a watching build) that outlives its tool
call is visible and clears when it exits.

Server:
- protocol/chat.go adds ChatEventShell, ChatShell (id, status, command, *int
  exit — a pointer so exit 0 is not "absent") and ChatEventFrame.shell.
- opencode/chat.go maps shell.created/shell.exited through a new exported
  ChatStreamState, attributing created via info.metadata.sessionID and exit via
  the ids the stream already surfaced; another session's or an unattributed
  shell is ignored, an id-less shell fails the stream. No cwd/file/credential is
  carried.
- server/chat_hub.go retains still-running shells (chatShellLimit plus the
  shared byte cap) and drops them on exit; chat_stream.go replays them on
  chat_subscribe, the shell half of the resume (a shell is not a turn, so the
  message snapshot cannot carry it).

App:
- data/protocol/Chat.kt adds ChatShell, ChatEventFrame.shell, EVENT_SHELL,
  SHELL_RUNNING/SHELL_EXITED.
- ui/chat/ChatStore.kt stamps ChatThread.lastDeltaAt on each delta (cleared when
  the turn settles) and keeps ChatThread.shells across a chat switch; a shell
  never marks the thread running. streamResumed drops shells so the subscribe
  replay re-syncs the still-running ones.
- ui/chat/ChatTranscript.kt: RunningIndicator prints the phase label; a new
  always-visible BackgroundProcessBar names each running shell.
- ui/chat/ChatConversationPane.kt shows the bar whenever a shell is running,
  whether or not a turn is.

Tests extend the server's event mapping (opencode/chat_v2_test.go,
server/chat_test.go) and the app's pure folds (new
ui/chat/ChatInFlightStateTest.kt, 15 tests), pinning the shell mapping, the
other-session rejection and the "background process outlives the turn" state.

Checked and intentionally unchanged:
- No packaged OpenCode skill reference documents either surface.
  internal/author/skill/references/operations.md describes the brokered chat_*
  protocol in prose without naming frame kinds or the app indicator, so it stays
  correct as-is; no reference was added, so install.go's managed inventory needs
  no change.
- This repository has no packaged templates directory.
- Shared docs are not edited here per the map: docs/notes/chat-shell-background
  -process.md records what is now stale in docs/cli.md and android/README.md for
  the docs-fold writer.

Verification (this session): gofmt -l clean, go build ./... and go vet ./... OK.
Android unit suite and the on-device capture were run in the preceding review
stage; see the note for the live-verification limitation.
2026-10-18 09:45:28 +01:00
alan 5a4cfc2e9c Merge run-title-framing: title the task, not the framing 2026-10-18 02:52:32 +01:00
alan 9565adc5f5 Merge main into run-title-framing: bring the run-title framing fix onto current main
Combines the summarise title-framing change (titleInstruction reword plus the
detachFramingEcho normalisation and its tests) with main's
docs/app-integration-verification.md addition. No conflicts: the two touched
disjoint files. `go build ./... && go vet ./...`, `gofmt -l internal/summarise/`
and `go test ./...` all pass after the merge.
2026-10-18 02:52:27 +01:00
alan c88bb27775 summarise: title the task, not the framing
Run titles were intermittently a sentence about the input rather than a
title for the task ("The untrusted data asks what 2+2 is…"), because the one
fixed instruction began "Summarise the untrusted data below…" and invited the
model to describe the data whenever the prompt read like an instruction or a
question.

- Rename the fixed prompt `instruction` → `titleInstruction` and reword it to
  ask unambiguously for a short title of the task ("Write a short title, a few
  words, for the task below. Reply with only the title…"), still followed by
  "The following is untrusted data:".
- Add a bounded, conservative `detachFramingEcho` normalisation applied in
  `Title` and `VerdictReason`: a leading clause that names the framing ("The
  untrusted data…", "This prompt…", "The user asks…") is stripped to its
  substantive remainder, and a line that is pure framing falls back to the
  prompt's first line (`Title`) or `NoSummary` (`VerdictReason`).
- Extend tests with the two reported echo shapes (instruction-style and
  question-style prompts) plus the injection-resistance case, which still
  passes: the prompt is appended verbatim once after the untrusted-data label
  and never replaces the instruction.

Trust boundary unchanged: source still labelled untrusted data, one tool-free
generation, hard timeout, never blocks or fails run creation; the title is
never empty.

Checks: `go build ./... && go vet ./...` clean, `gofmt -l internal/summarise/`
prints nothing, `go test ./...` ok.

Docs/templates check: no packaged template (`examples/*.md`) mentions title
generation, so none needs updating. The packaged authoring skill reference
`internal/author/skill/references/operations.md` (lines ~91-95) describes the
title as generated "from its prompt by the shared summariser" and is now stale
(it does not mention that the summariser is asked for a title of the task nor
the framing-echo normalisation); per the maintenance rules that shared document
is left to the single `docs-fold` writer and the staleness is recorded in
`docs/notes/run-title-framing-echo.md` instead. `README.md` and `docs/cli.md`
stay true, and no `internal/author/install.go` managed inventory entry changes.
2026-10-18 02:52:15 +01:00
alan e270dca077 Merge verify-gaps: record the four end-to-end verification gap checks against the deployed server 2026-10-18 02:47:20 +01:00
alan f43115ef0a Merge branch 'main' into verify-gaps 2026-10-18 02:46:48 +01:00
alan db313336b2 docs: record the four end-to-end verification gap checks (run 340)
Add a dated follow-up section to docs/app-integration-verification.md that
closes the four claims the first pass left unproven, each with the command or
capture that proved it against the deployed server (0d1ddc7) on the Pixel 9 Pro
XL 47241FDAS00DLK:

- Chat reply arrives: a throwaway session showed the assistant reply `Done.`
  rendering live, and the close-a-chat flow left the session `closed=true`
  server-side.
- Live pushed run events: disproven on this build. Runs 341/342/343 never
  appeared or advanced without a manual `Refresh runs`; only a local elapsed
  timer ticked. Consistent with the run-event push-hub defect fixed on main by
  cff6f4d, absent from the deployed 0d1ddc7. Recorded as a defect with exact
  reproduction, not an app defect.
- Disconnected state: the closed-port state and the restore to
  ws://10.0.0.75:8080/connect were both captured and Settings verified after.
- Wide windows: the covered-pane region is a constant 553 px at depths 1-3 and
  at 2000x2244 and 2076x2152; `wm size reset` left no override.

Checked for staleness from this change: it touches no source or resource file,
so no packaged template or packaged authoring skill reference
(internal/author/skill/references/) depends on it - none references this
document and none needs updating.

Report-only: the untracked scratch directory .gaps-tmp/ is deliberately left
uncommitted.
2026-10-18 02:46:46 +01:00
alan 7b8ba6745d Merge runevent-snapshot: write a subscribe snapshot in full before its ack
The run-event hub seeded a new subscription by sending every matching run
through the subscription's bounded 32-frame channel and only then acking. A
snapshot larger than that buffer tripped the drop-a-slow-subscriber policy on
the snapshot itself, so the remaining snapshot frames, the ack and every later
delta were lost while the websocket stayed open - the client could not tell it
had been unsubscribed. The snapshot and the ack now go straight out on the
subscribing connection, deltas emitted meanwhile are held and released in order
before the writer goroutine starts, and the drop policy now applies only to
deltas. Guarded by TestRunEventSubscribeSnapshotLargerThanBuffer.
2026-10-18 02:24:38 +01:00
alan cff6f4dfac server: write a subscribe snapshot in full before its ack
handleRunEvents seeded a new subscription by pushing every matching run
through the subscription channel (runEventSubscriberBuffer = 32) and only
then acked. sendMessage is a non-blocking send that closes the
subscription when the channel is full, so a snapshot larger than the
buffer dropped the subscription it was seeding: the remaining snapshot
frames hit the closed-done early return, the ack was never sent, and no
later delta could arrive. The connection stayed open, so the client could
not tell it was no longer subscribed. This was the app's only
subscription - AppViewModel subscribes with a blank workspace, matching
every run - so the app's live state froze.

The subscription now starts in a snapshot phase. The subscribing
connection itself writes the snapshot frames via writeSnapshot (one
direct write per frame, outside the bounded channel, so the drop policy
cannot fire on them) and the ack, and ready then moves any deltas held
meanwhile into the channel in order and starts the writer goroutine.
sendMessage holds deltas in a bounded pending queue while snapshotting
instead of closing, so the drop-a-slow-subscriber policy still applies,
but only to deltas. Ordering is snapshot, ack, then deltas; a write
failure or a listRuns error closes the subscription instead of leaving
it registered.

Numbers reported by this run: the probe against the deployed server saw
blank-scope frames=2 ack=0 (scoped frames=1 ack=0) because the snapshot
was ~252 frames into a 32-frame buffer; the scratch-server probe with the
fix saw 40 snapshot frames, ack=1 and a delta after a run transition.
Guarded now by TestRunEventSubscribeSnapshotLargerThanBuffer (seeds 40
finished runs, asserts every snapshot frame, the ack strictly after them,
and a terminal delta for a run started after subscribing), which fails
against the previous runevents.go.

Checked for staleness: the packaged templates and the packaged authoring
skill references internal/author/skill/references/ carry no run-event
subscription contract (their "snapshot" mentions are the workspace-change
snapshots in operations.md), and README carries none either, so none of
them needs updating. No UI surface changed.

Checks run before committing: gofmt -l . prints nothing, go build ./...,
go vet ./..., go test ./... (all packages ok), go test -race
./internal/server (ok).
2026-10-18 02:23:58 +01:00
alan 0d9430e4ad Merge docs-event-driven: rewrite the workflow docs for the agent-driven model (no driver, no poll loop, no lanes) 2026-10-18 01:51:09 +01:00
alan 93dc0103c3 Merge main into docs-event-driven: bring the agent-driven workflow docs onto current main 2026-10-18 01:50:59 +01:00
alan 01d5dad9b9 docs: describe the agent-driven workflow, drop the scripted driver model
Rewrite the workflow documentation to describe how the system actually works:
the agent (the session) is the brain and advances the queue by hand through the
`pipelines` CLI. There is no orchestration script, no driver, no polling loop and
no lane machinery, and none may be written.

- references/work.md: rewritten end to end. The queue-driver script
  (drivers/workd.sh), the claim-file ledger with atomic renames, the PAUSED
  marker and the poll loop are gone. State is now the server (authoritative for
  run state), the queue file (authoritative for intent) and the conversation.
  The agent reads the queue, picks the item, creates its worktree/branch and
  launches it with `pipelines run <pipeline> <brief> --json --yes`; progress is
  event-driven via a background `pipelines wait <run-id> [...]` (never polled);
  on completion the agent reconciles with `pipelines inspect <run-id> --json`,
  verifies it landed and starts the next item.
- references/queue.md: the landing gate runs the command directly
  (`git merge-base --is-ancestor <branch> main`, exit 0 = landed) instead of a
  `land-check.sh` helper; the never-delete-branch / never-remove-worktree rules
  are kept, and the waiting section states the agent advances the queue by hand.
- references/orchestration.md: intro and "Running and watching" state the
  agent-driven, event-driven model; "Pipeline choice" names the current set
  (Android, TUI, Server, Generic, Plan and land, UI sweep, Probe) by area and
  records the retired names.
- references/debugging.md: "Duplicated work after a driver restart" became
  "…after a session restart", resuming from the queue file not a cursor file.
- SKILL.md: the routing row no longer says "queue driver".
- AGENTS.md: the maintenance workflow names the current pipeline set instead of
  the retired `Pipelines maintenance - plan implement review`.
- internal/tui/AGENTS.md: the restart line no longer names lanes.
- docs/notes/agent-driven-work-model.md: the docs-fold note recording that
  docs/cli.md needs its "Scripted runs"/`--wait` framing aligned to the
  event-driven model, and that the dated evidence docs stay as they are.

Checked before committing: no packaged template directory exists in this repo, so
none needed updating; internal/author/install.go's managed file inventory needs no
change (no packaged reference was added or removed — the 13 listed files all
match internal/author/skill/references/); no stale `queue driver`/`workd.sh`/
`claim-file` references remain anywhere under internal/author. Genuine device
tooling (android/scripts/capture_png.sh-style) and server-side polling prose were
left alone.

Checks: `go test ./internal/author -count=1` ok; `go build ./...` clean;
`go vet ./...` clean; `gofmt -l .` clean.
2026-10-18 01:50:55 +01:00
alan 2c8115b6f9 Merge chat-turn-render: the chat transcript now folds one agent reply into one bubble, keeps reasoning and answer in separate parts and retains a tool call's name and input for its whole lifecycle 2026-10-18 01:48:49 +01:00
alan d26db8f830 Merge main into chat-turn-render: pick up the end-to-end app verification report alongside the chat turn fold 2026-10-18 01:47:55 +01:00
alan 798e958cb7 chat: fold an agent turn into one reply, split reasoning from answer, keep tool name/input
The phone's chat transcript rendered one agent reply as ~36 bubbles, each with
its own thinking block, and a finished tool call lost its name and its input.

- Turn fold (android): ChatFormat.kt gains the pure ChatTurn / TranscriptRow /
  transcriptRows fold - each run of consecutive assistant messages between two of
  the operator's messages is one agent turn - and ChatTranscript renders one
  bubble per turn: the turn's single collapsible thinking block (all its
  reasoning, in order, growing live while it streams), then its tool-call chips,
  then one answer block of just the turn's text parts. AssistantParts/MessagePart
  are replaced by AgentTurnItem/UserMessageItem; ChatConversationPane counts the
  folded rows.
- Delta part ids (server + client): internal/protocol/chat.go adds
  ChatDeltaPartID(messageID, kind, ordinal), mirrored as ChatProtocol.deltaPartId
  in data/protocol/Chat.kt, and NormalizeChatEvent keys a text or reasoning delta
  on it. OpenCode numbers a message's text and reasoning parts independently from
  0, so the old "%s#%d" gave the first text delta and first reasoning part the
  same id: the answer was appended into the thinking block, and the server's
  retained state (chat_hub.go) re-collided on resume. ChatStore's upsert now
  routes a delta through the kind-aware deltaPartId fold, so it stays robust even
  against a peer that still shares one id.
- Tool fields (server + client): NormalizeChatEvent takes a call's arguments from
  session.tool.input.ended's text as well as session.tool.called's input object
  (toolInput), and chat_hub.go's new mergeChatToolPart folds each tool frame onto
  the retained part so the progress/success frames that omit name and input never
  blank them. ChatFormat.kt's mergeToolPart mirrors that on the client, so the
  chip and panel header keep the real tool name and the panel shows INPUT beside
  OUTPUT.

Tests: chat_v2_test.go and chat_test.go add the text/reasoning id-collision and
the tool name+input retention cases; ChatReasoningTurnTest, ChatTranscriptTest
and ChatRunningWorkTest cover the turn fold, the collision and the tool lifecycle.

Checks: Go build, vet, gofmt and the package tests pass (go build ./... &&
go vet ./...; gofmt -l . empty; go test ./internal/server ./internal/opencode
./internal/protocol ./internal/stage ./internal/pipeline; go test ./...).
Android passes offline with --no-daemon (assembleDebug and the full
testDebugUnitTest suite, 660 tests). The on-phone observation was not performed:
the device lock was held by another run and adb was not available here.

Documentation inventory checked: no packaged OpenCode skill reference in
internal/author/skill/references/ and no packaged template documents the app's
chat transcript, this delta part-id derivation or the tool-field retention, and
no internal/author/ managed file inventory entry names any touched file, so none
of them needs updating. The shared android/README.md behaviour statements are
made stale by this change and are recorded instead in
docs/notes/chat-transcript-turn-fold.md for the docs-fold writer, per the repo
rule that an item never edits a shared document itself.
2026-10-18 01:47:52 +01:00
alan d0c12e3b75 Merge e2e-verify2: add end-to-end app verification report against the real server
docs/app-integration-verification.md: operator-facing report of the Android app
verified end-to-end against the real running server on the phone, per flow with
the real data observed and the coverage gaps that remain.
2026-10-18 01:36:38 +01:00
alan 8c3efa4143 docs: add end-to-end app verification report against the real server
Adds docs/app-integration-verification.md, an operator-facing report of an
end-to-end verification of the Android app against the real running Pipelines
server on the phone. Report only: no app, server, installer or Docker file was
changed, and nothing was fixed.

The report records, per flow, the result, capture path and the real server data
observed: the pipelines list and its filters/sort, pipeline detail tabs, runs
list aggregate (246 total) and run detail, the stage sheet/timeline and
full-screen artifact viewer gaps, artifacts gallery, omni search, Settings
(endpoint ws://10.0.0.75:8080/connect, server build 0d1ddc73a4), the templates
gallery, chat sessions, live run updates and the disconnected state that were
not verified and why.

Revision tested: phone app at main's build (0d1ddc7, installed md5
722f6a139a8aea6d15b09c89360dbea0), server build
v0.0.0-20261018001257-0d1ddc73a444. The phone was left on main's build.

Checked for staleness: no packaged template or packaged authoring skill
reference (internal/author/skill/references/*) describes or indexes this
document, and the change adds no runtime behaviour, so none of them needed
updating. Per the maintenance convention the shared docs were not edited; the
verification findings live in this document alone.
2026-10-18 01:36:22 +01:00
alan 0d1ddc73a4 Merge wait-cmd: add pipelines wait <run-id> to block until runs finish, then report them
Adds a read-only CLI command that blocks until each named run reaches a terminal
status (including through a human stage) and reports each run's id, status,
outcome, stage and duration; batches several ids in one command and exits 0 even
for an unsuccessful run. Reuses the existing run --wait polling machinery.
Includes tests and a docs/notes record of the docs the docs-fold writer should
update.
2026-10-18 01:12:57 +01:00
alan fdaa930bc9 Merge main into wait-cmd: combine the wait command with the work-queue skill and chat pairing
Brings main (chat-persistence pairing; skill: replace the lane model with the
work queue) up to date on this branch so it can land without conflict. The
second merge (skill/queue.md) auto-merged with no conflicts; no intent from
either side was dropped. Build, vet, gofmt and the affected package tests pass
after the merge.
2026-10-18 01:12:53 +01:00
alan 8f3ebf74ad skill: replace the lane model with the work queue
The lane machinery is gone: work is a markdown queue, items run in parallel in
their own worktrees, the committer stage lands its own work, land-check.sh gates
cleanup, branches are never deleted, and pipelines wait (rather than a driver
script) is what wakes a session. references/lanes.md becomes references/queue.md;
the remaining lane references in work/orchestration/debugging/delivery/format and
SKILL.md are rewritten, and the installer now prunes a managed file it no longer
bundles when the copy is unmodified.
2026-10-18 01:12:21 +01:00
alan 1e7607c502 Merge main into wait-cmd: combine the wait command with chat-persistence pairing
Brings main (chat-persistence: OpenCode pairing, protocol status, server
websocket/status changes) up to date on this branch so it can land without
conflict. Auto-merged with no conflicts; no comment or intent from either side
was dropped. Re-ran build, vet, gofmt and the full test suite after the merge -
all pass.
2026-10-18 01:11:54 +01:00
alan b7c2ba7d56 cli: add wait <run-id> to block until runs finish, then report them
The harness resumes a session when a background command finishes, so "tell me
when this run is done" needs one command that blocks and exits rather than a
polling script.

- `pipelines wait <run-id> [run-id ...]` resolves every id up front (an unknown
  run is a fast client error), then polls each run to a terminal status -
  `succeeded`, `failed`, `canceled` or `interrupted`, blocking through a run
  parked on a human decision - and prints one line per run as it finishes with
  id, status and outcome, stage and duration.
- A finished-but-unsuccessful run is still a finished run: it is reported and
  the command exits 0. The exit is non-zero only for a client-side failure: an
  unknown id, a connection that cannot be established, or `--timeout` expiring
  while a run is still active. A timeout reports the still-active runs,
  changes nothing, and is never treated as a run's outcome.
- Reuses the existing `run --wait` polling machinery: the per-second `get_run`
  reattachment is factored into `awaitRuns`, used by `finishRun` too. No
  subscription or new protocol message. `--url`/`--timeout` follow the existing
  client conventions; `--timeout` is the overall client limit (default 0).
- Read-only: sends only `get_run`, resolves no workspace, is not refused by the
  workspace guard and writes nothing. `--json` prints the final run envelope
  (one envelope for one id, an array for several).
- `commands.go` and `help.go` add it to the usage inventory and EXECUTE help.

Tests: `wait_test.go` (line format, batch reporting, wait-until-terminal,
unknown id, timeout leaves the run active, `--json` shape) and
`wait_command_test.go` (real CLI against the real websocket server and store).

Packaged assets checked: no packaged template changes. No authoring skill
reference file is added, so `internal/author/install.go`'s managed inventory
needs no change. `internal/author/skill/references/operations.md` (the
"inspect results first" run-operations list) and `docs/cli.md` (the scripted-runs
`--wait` paragraph and the CLI/TUI capability-map row) are now stale and are
recorded - not edited - in `docs/notes/wait-command.md` for the `docs-fold`
writer. `SKILL.md` stays a task-directed index; no shared document is edited
here.

No protocol, server, store, TUI or Android change; no new dependency; no run
started. Committed locally only, not pushed or deployed.
2026-10-18 01:11:26 +01:00
alan 2da583c946 Merge chat-persist: attach chat to the operator's own OpenCode by pairing, and fall back honestly
Brokered chat now pairs with the operator's running OpenCode V2 service
(POST /api/pair then GET /auth/connect/{code}) using the local service
credential as bootstrap, stores the resulting token owner-only beside the
pipeline database, reuses it across restarts and re-pairs once when it is
refused; an explicit PIPELINES_OPENCODE_ENDPOINT_PASSWORD_FILE still wins. An
endpoint that cannot be attached falls back to the server's own OpenCode
instance with a log line and a get_status opencode object
(health = endpoint | fallback | spawned | unavailable) instead of silently
disabling chat. See docs/notes/chat-persistence.md.
2026-10-18 00:56:29 +01:00
alan 648c9c33d8 Merge main into chat-persist: combine OpenCode pairing chat persistence with main's bottom selector strip
Brings main (78725e9, "bottom-strip": the Android detail and visit selectors
moved to a bottom strip, with its docs/notes/bottom-selector-strip.md) into this
branch on top of the chat-persistence commit. The two sides touch disjoint files
- main changes android/ and its own note, this branch changes
cmd/pipelines-server, internal/opencode, internal/protocol, internal/server and
docs/notes/chat-persistence.md - so the merge applied with no conflict and no
resolution was needed. Repository checks after the merge: go build ./...,
go vet ./... and gofmt -l . clean; go test ./internal/... ./cmd/... green.
2026-10-18 00:55:48 +01:00
alan 0ba1204895 chat: attach to the operator's own OpenCode by pairing, fall back honestly
Brokered chat accepted an operator-supplied endpoint (-opencode-endpoint /
PIPELINES_OPENCODE_ENDPOINT) but failed closed against the operator's running
V2 service: that API authenticates every request with HTTP Basic auth (fixed
user "opencode" plus a password), the broker had no credential, so the health
probe answered 401 and startup logged "OpenCode endpoint ... is unreachable or
is not an OpenCode service", disabling chat entirely.

Established from the installed binary (opencode v2.0.20), not from docs:
`opencode --help` advertises `api`, `pair`, `serve`, `service` and `auth`;
`GET /api/info` is unauthenticated-401 with www-authenticate Basic realm
"Secure Area"; Basic auth user `opencode` with the password from
~/.local/state/opencode/service.json answers 200; `POST /api/pair` returns a
code and `GET /auth/connect/{code}` returns a token that is then accepted as
the Basic password.

- internal/opencode/pair.go (new): PairEndpoint does the pair exchange over the
  shared nativeRequest transport (same auth, bounds and JSON checks);
  ReadServiceCredential reads the operator's local service password under the
  private-file rule; OpenEndpointAttached resolves the credential in precedence
  order - explicit password file, a paired token stored by an earlier run, then
  a fresh pairing bootstrapped by the local service credential - stores the
  token owner-only and re-pairs once when a stored token is refused (401).
- internal/opencode/endpoint.go: OpenEndpoint wraps probeEndpoint, which returns
  the connection even on failure; Connection.unauthorized (set on HTTP 401 by
  the request paths, cleared per probe) distinguishes an authentication refusal
  from any other refusal.
- cmd/pipelines-server/main.go: the endpoint attach uses OpenEndpointAttached
  with the paired-credential file beside the pipeline database. An endpoint that
  cannot be attached logs a line naming it and falls back to the server's own
  OpenCode instance instead of leaving chat refused.
- internal/protocol/status.go, internal/server/websocket.go: get_status gains an
  opencode object (health = endpoint | fallback | spawned | unavailable, plus
  the endpoint url), the honest status evidence for the fallback. No credential
  is ever placed there.
- Tests: internal/opencode/pair_test.go, internal/protocol/status_test.go and a
  TestStatusReportsOpenCodeAttachment case in internal/server/status_test.go.

Repository checks: go build ./..., go vet ./... and gofmt -l . clean;
go test ./internal/... ./cmd/... green.

Packaged templates and skill references: the repository has no template tree
that mentions the OpenCode endpoint, and no packaged reference file is added, so
internal/author/install.go's managed inventory is unchanged. The packaged
authoring reference internal/author/skill/references/operations.md (the endpoint
paragraph around line 289, the "clear refusal and no fallback" wording and the
password-file/username-only credential story, and the missing opencode status
field) is now stale; per the maintenance convention the item does not edit the
shared document and instead records the stale points, with the exact wording
they should take, in docs/notes/chat-persistence.md for the docs-fold writer.
2026-10-18 00:55:26 +01:00
alan 78725e92f0 Merge bottom-strip: move the detail and visit selectors to a bottom strip on narrow windows
The narrow detail and visit selectors are now the shared bottom strip in the thumb zone (content above it), while a wide window keeps the left rail and the pinned visit top row; the floating destinations pill lifts clear of the strip. android/ only, no new dependency.
2026-10-18 00:50:29 +01:00
alan 49f40bfe45 android: move the detail and visit selectors to a bottom strip on narrow windows
The two selectors that were a horizontally scrolling Material 3 tab row at
the top of a surface become one deliberate treatment. On a narrow window the
shared detail selector (`DetailTabs`) and the visit selector are now the shared
bottom strip (`ui/components/SelectorStrip.kt`), pinned in the thumb zone above
the system gesture inset with the content filling the area above; a wide window
keeps the left rail for the detail selector and the pinned top row for visits.

- SelectorStrip: the one bottom strip plus its pure model (`SelectorEntry`,
  `SelectorPlacement`, `detailSelectorPlacement`, `visitSelectorPlacement`,
  `selectorStripShown`, `detailSelectorEntries`, `visitSelectorKey/Label`,
  `visitMarker`, `visitSelectorEntries`). Each entry keeps at least the platform
  minimum touch target, shows its whole label, and a visit shows its recorded
  status/outcome as a small `RunStatusIcon` marker rather than an invented one.
  Selection is carried by tab semantics and container colour, not colour alone.
  A single entry (or none) draws no strip.
- `DetailTabs` narrow branch replaced by `SelectorStrip` after the panel in a
  Column; the wide rail is unchanged.
- `StageDetailPane`: `StageVisitStrip` is the narrow visit selector; the bodies
  put a `weight(1f)` scroll above it and keep the top row only on a wide window.
  The stage definition section still shows no strip.
- `SessionExport`: `SessionExportSection` gains `visitTabs` so the narrow pane
  does not render the visit selector twice.
- `PipelinesApp`: the strip publishes its measured height through the new
  `LocalBottomStripInset`/`BottomStripInset`, and the floating pill's overlay
  lifts by `pillBottomOffset(stripHeight) = SPACING_L + stripHeight` (pure, zero
  when no strip is up), so the pill never overlaps the strip.
- Tests: new `SelectorStripTest` (placements, single-entry no strip, detail
  entries keep tab keys/titles/icons, visit labels and markers, stable visit
  keys) and a new `PipelinesNavTest` case pinning the pill lift.

Pill/strip clearance is the brief's "pill moves clear of the strip" option,
implemented once in `pillBottomOffset`. All geometry and motion come from the
existing named tokens and the layout; no new dependency.

Documentation checked: no packaged OpenCode skill reference (`internal/author/
skill/references/`) or packaged template (`examples/*.md`) documents the app's
detail/visit selector presentation, so neither is stale and `internal/author/
install.go`'s managed inventory needs no change. The shared `android/README.md`
is made stale by this change (the narrow tab-row wording at lines ~182-184,
~233-235 and ~487-488) and is recorded for the single `docs-fold` writer in the
new `docs/notes/bottom-selector-strip.md` rather than edited here.
2026-10-18 00:50:15 +01:00
alan d9619ea568 Merge slash-commands: run /new, /close, /rename, /stop and /help from the chat composer
The composer reads a leading slash as a command instead of a prompt: a filtered
offer list with Enter/tap and D-pad navigation, /new creating a session in the
current directory and switching to it (the old one stays listed with its
history), /rename on this device, /stop for a running turn and /help, with an
unrecognised /… offered as a message or cancelled rather than ever reaching the
agent. Commands report as their own transcript lines outside the model's context.

/close finishes the session through the server's own close (chat_close) that
landed beside this work, then returns to the list.
2026-10-18 00:25:18 +01:00
alan dc75791992 Merge main into slash-commands: combine the composer's slash commands with the
server-side chat close

What was combined:

- main brought the server-side close (chat_close/chat_reopen over the protocol,
  PipelinesRepository.chatClose/chatReopen, ChatStore.sessionClosed/sessionReopened
  and active/closed session projections, the list's Close chat… confirmation and
  the Closed chip), plus the destinations-pill overlay and the omni-search and
  status-label work from the lanes that landed beside this one.
- this branch brought the composer's slash commands: parsing, the filtered offer
  list with Enter/tap/D-pad, the shared prompt path, /new in the current
  directory, the local /rename, /stop, /help and the unknown-command offer, with
  local command lines rendered outside the model's conversation.

Resolution (the one place the two sides disagreed):

The branch's /close reported that no real session close existed, because none did
when it was written. main now has one, so /close delegates to it instead:
AppViewModel.SessionChatCommandHost.finishSession calls closeChatSession, which
uses the server's own chat_close (a running turn is stopped, the session is marked
closed for every client, the history is kept), and then chatStore.close returns the
operator to the list. A failure is reported on the list, where the list's own close
reports it. The now-false "this build has no real session close yet" line and its
CHAT_CLOSE_UNAVAILABLE constant are removed, /close's offer summary says it
finishes the session for every client, and its test now drives the real store
close (sessionClosed + close) and asserts the row is closed, kept as history and
off the pane.

Checks run after resolving, on the merged tree (HEAD = this merge):
`--offline --no-daemon :app:assembleDebug` BUILD SUCCESSFUL, and
`:app:testDebugUnitTest` BUILD SUCCESSFUL with 646 tests, 0 failures (including
ChatCommandsTest.closeDelegatesToTheRealServerCloseAndReturnsToTheList). DimensTest
still holds: no raw dimension was added outside the token files. The packaged
templates and packaged authoring skill references are unaffected — this is an
Android-app-only change with no protocol, server, installer or Docker change — so
none of them needed updating.

Documentation now stale (not edited here; one writer folds shared docs):
android/README.md's chat section describes the composer and the session list
without the slash commands (vocabulary, offer list, unknown-command guard) and
without the composer's /close path to the server close.
2026-10-18 00:24:41 +01:00
alan fa6106ea46 android: add slash commands to the chat composer, starting with /new
The composer now reads a leading slash as a command instead of a prompt, so the
operator can start a session, rename it, stop a turn or ask for help without
leaving the input field — the same surface the pipeline terminal gives with
`:status`, `:logs`, …

- ChatCommands.kt: parsing (a bare `/`, an unknown word, an argument, text that
  merely starts with a slash), the filtered offer list, the Enter target, the
  `/help` listing, the effect routing and the host interface. Pure, so the
  routing is testable without a device or server.
- ChatComposer.kt: the offer list above the field, Up/Down to move the highlight
  and Enter/tap to run the highlighted row, shown only while the draft is a bare
  command word. Sending, attachments, stop-while-streaming, queued state and the
  field's ordinary keyboard action are unchanged.
- AppViewModel.kt: one shared prompt path (`postChatPrompt`) for the composer and
  the unknown-command offer, and a host that performs the effects. `/new` creates
  in the current session's directory and switches to it, leaving the old session
  open, listed and with its history; `/rename` uses the device's own local rename
  and says so; `/stop` interrupts a running turn; `/close` reports that this
  revision has no real session close rather than dressing up the local hide.
- ChatStore.kt / ChatTranscript.kt / ChatCommandUi.kt: local command lines
  (`ChatCommandNotice`) rendered as their own transcript item, visually distinct
  from a message to the agent, with an error container for a failed command.
- An unrecognised `/…` is never sent to the agent: it becomes an offer to send it
  as a message or cancel, and the offer is taken once so a stale tap sends
  nothing. Running a command adds nothing to the model's conversation.
- Dimens.kt: one new token, CHAT_COMMAND_LIST_MAX_HEIGHT, for the capped list.
- ChatCommandsTest.kt: parsing, filtering, `/new` in the current directory and
  switching, `/rename` and `/close` delegating, `/stop` only while running, and
  the unknown command never reaching the prompt path.

Checks made before committing: this is an Android-app-only change with no
protocol, server, installer or Docker change, so the packaged templates and the
packaged authoring skill references (internal/author/skill/references/) are
unaffected and no managed-file inventory in internal/author/install.go changes;
none of them needed updating. No dependency was added — Icons.Default.Terminal
comes from the already-declared material-icons-extended. Verified with the
Android map's own checks for an implementation change, build plus unit tests
(`--offline --no-daemon :app:assembleDebug` and `:app:testDebugUnitTest`), and
DimensTest's geometry-token rule holds: the only new dimension is the named token
above. Device behaviour was deliberately not exercised here (this stage does not
use adb); the rendered offer list, D-pad handling and notice item belong to
visual review.

Documentation that is now stale (not edited here; a single writer folds shared
docs): android/README.md's chat section describes the composer without the slash
commands — it should gain the command vocabulary, the offer list and the
unknown-command guard.
2026-10-18 00:22:33 +01:00
alan 643073d602 Merge lane-pill: make the destinations pill a true overlay, centred narrow and right when wide
The pill no longer takes layout space: it is drawn in the bottom overlay above the
content, centred on a narrow window and anchored bottom-right on a wide one, with
its trailing clearance moved into each scrollable's own content through
LocalPillBottomInset. Templates leaves the pill for a Templates row on the Settings
page, backed by the new SettingsDestination sliding stack. The item's documentation
change is recorded in docs/notes/pill-overlay-and-position.md for the docs-fold
writer rather than edited into android/README.md.
2026-10-18 00:21:34 +01:00
alan d6cb1931d0 Merge main into lane-pill: combine the pill overlay with main's chat-close, omni-search and status work
Brings the branch up to date with main's tip so it can be merged back without
conflict. Merged cleanly, with no conflicted path: git auto-merged
ui/PipelinesApp.kt, ui/chat/ChatListPane.kt and ui/screens/RunHistoryScreen.kt,
keeping main's changes (the omni-search panel, the one status colour, the chat
close/tool-work surfaces) alongside this item's pill overlay, its
LocalPillBottomInset clearance and the SettingsDestination templates stack.

android/README.md is main's version, not this item's: this item records its
documentation change in docs/notes/pill-overlay-and-position.md for the single
docs-fold writer instead of editing that shared document.

Checks re-run on the merged tree (macOS, JAVA_HOME=Android Studio jbr,
ANDROID_HOME=~/Library/Android/sdk, Gradle 8.11.1, --offline --no-daemon):
`gradle :app:assembleDebug :app:testDebugUnitTest` -> BUILD SUCCESSFUL, 67 result
XMLs aggregating to 627 tests, 0 failures, 0 errors, 0 skipped.
2026-10-18 00:21:20 +01:00
alan 5a44ff1568 android: make the destinations pill a true overlay, centred narrow and right when wide
The floating destination pill no longer takes layout space: it is drawn in the
bottom overlay layer above the content, horizontally centred on a narrow window
and anchored to the bottom-right corner on a wide one. Templates leaves the pill
for a Templates row on the Settings page.

- PipelinesApp: the content Column's pill reservation is gone; contentPillPadding
  (pillVisible) is the named zero and a unit test pins both states. The pill and
  the attention chip stay in their own bottom-anchored overlay Column, a sibling
  of the content in the Box, so nothing positions the content. The one placement
  rule is destinationPillAlignment(wide) (CenterHorizontally narrow, End wide);
  the corner margin is the named SPACING_L, so no new number. The attention chip
  keeps its own bottom-right place at every width via Modifier.align(End).
- Trailing clearance moves into each scrollable's own content: pillScrollInset
  (DESTINATION_PILL_RESERVE + ATTENTION_CHIP_RESERVE while drawn, zero while
  hidden) is published through the new LocalPillBottomInset
  (components/PillInset.kt) and applied with pillContentPadding /
  Modifier.pillBottomPadding in every list, grid and scrolling detail, stage and
  settings body. The container keeps its full height, a hidden pill leaves no
  empty band, and the last row still scrolls clear of the pill.
- Templates is no longer a pill destination: TemplatesDestination.kt is deleted
  and destinations is pipelines/runs/chat/settings. The new SettingsDestination
  sliding stack (pane 0 SettingsScreen, 1 TemplateGalleryScreen, 2
  TemplateDetailScreen) with the pure, Bundle-able SettingsSelection model gives
  the gallery the shared covered-pane strip and one-level Back; SettingsScreen
  gains the Templates row that opens it. This re-lands the intent of a2043f9,
  which never reached main.
- Dimens: the two reserve tokens' docs now describe the scroll-content clearance
  and the chip's share of it; no new token and no hardcoded geometry.

Checked where the change belongs: no packaged template (examples/*.md) and no
packaged authoring skill reference (internal/author/skill/references/*) describes
the Android pill, its destinations or the Templates gallery, so none needs
updating and internal/author/install.go's inventory is unchanged. android/README.md
does document the surfaces this item changed, so it is now stale: this item does
not edit that shared document - docs/notes/pill-overlay-and-position.md records
the two places that need it (the Templates bullet and the dated section to append)
for the single docs-fold writer.

Tests: at a297fb6 with these working changes the build and unit suite were green
(593 tests, 0 failures); no device command was run and the geometry stays
token-derived. Visual rendering of the centred/right pill needs the device and
was not verified here.
2026-10-18 00:20:37 +01:00
alan d3dd5ab868 Merge chat-close: finish a chat on the server and keep its history
Adds chat_close/chat_reopen to the brokered chat protocol and the
operator_sessions closed state, so an operator can finish with a chat: any turn
in flight is stopped through the existing interrupt, the closed state is recorded
on the server for every client, and the session, its transcript and its history
are kept and stay reachable as history. The app gains a Close action with a
confirmation, a Closed section and chip, and Reopen; the device-local hide is
renamed Hide on this device. Nothing is deleted and no pipeline-owned run session
is touched.
2026-10-18 00:19:40 +01:00
alan f85c172dc2 Merge main into chat-close: combine the shared chat room with the server-side close
The item adds chat_close/chat_reopen to the brokered chat protocol and the
operator-session registry's closed state. main replaced the per-session claim
model with shared chat rooms (chat_subscribe, a prompt queue, one broker stream
fanned out to every watcher). This merges the two.

Resolved conflicts:
- internal/protocol/chat.go, internal/protocol/message.go: kept both additions -
  ChatClose/ChatReopen and main's ChatSubscribe/ChatQueued.
- internal/server/chat_sessions.go: kept the closed fields on a listed session;
  dropped the `Busy` assignment, because main no longer marks a session Busy (any
  number of clients may watch and write one).
- internal/server/chat_claims.go: main deleted the claim model, so the file goes;
  close's "is a turn running" check is now `chatHub.turnInFlight` in
  internal/server/chat_room.go, reading the room's `running` flag. That is the
  same question the old claim answered, against main's model.
- internal/server/chat_close.go: calls turnInFlight instead of the removed
  `active`.
- android AppViewModel.kt, ChatFormat.kt, ChatListPane.kt, Message.kt: kept both
  sides - main's search state, queued-prompt handling, `Busy`-free status label
  and row/menu shape, plus the item's close/reopen actions, closed chip and
  section, close confirmation and "Hide on this device" rename.

Also in this merge: main's new convention (AGENTS.md) that an item does not edit
a shared document; the item's stale-document record for this change lives in
docs/notes/chat-close.md, and docs/cli.md, android/README.md and
internal/author/skill/references/operations.md are left to the docs-fold writer.

Checks after resolving: gofmt clean, go build ./... and go vet ./... clean, the
Go module passes, and the app's :app:assembleDebug and :app:testDebugUnitTest
pass (--offline --no-daemon).
2026-10-18 00:19:23 +01:00
alan 971e555ceb chat: close and reopen an operator session on the server, keeping its history
Add a server-side close for operator chats, so finishing with a chat takes it out
of the active list for every client without deleting anything. The brokered
protocol gains chat_close and chat_reopen; chat_close stops a running turn by
reusing the existing broker interrupt (its result carries an interrupted flag, so
a stream is never left running into nothing) and then sets closed_at on the
session's operator_sessions row. The session, its transcript and its history
survive, and because the closed state lives in the registry chat_sessions reports
it to every client, not just the one that asked. An id that is not a recorded
operator session, including a pipeline-owned run session, is refused before
anything is written. chat_reopen clears the state again, and simply prompting a
closed session also clears it (the store clears closed_at on touch).

The registry gains closed_at for a fresh database and an idempotent migration for
one created before it existed. The app renders closed sessions under a labelled
Closed section with a Closed chip, offers a Close action with a confirmation that
says it stops a running turn, marks the chat closed on every device and deletes
nothing, and a Reopen action on each closed row. The device-local hide is renamed
Hide on this device, with a snackbar saying the chat stays on the server, so it is
never confused with the real close. No new dependency, the installer and Docker
files are untouched, and no run is started from the app.

Checked before committing: the packaged templates carry no chat surface and need
no update, and internal/author/install.go's managed inventory needs none either
(this adds no reference file). The packaged authoring skill reference
internal/author/skill/references/operations.md and the shared docs/cli.md and
android/README.md are stale because of this change, but an item no longer edits a
shared document: what is stale and what should change there is recorded in
docs/notes/chat-close.md for the docs-fold writer, which is committed here with
the change.

Checks: gofmt clean, go build ./... and go vet ./... clean, and
go test ./internal/protocol/... ./internal/pipeline/... ./internal/server/...
./internal/author/... pass. The app side is verified with :app:assembleDebug and
:app:testDebugUnitTest (--offline --no-daemon, BUILD SUCCESSFUL); the on-device
close, second-client and reopen check is deferred to visual review.

Not deployed; deploying is the operator's step.
2026-10-18 00:16:24 +01:00
alan 2c1dfe9a35 android: restore the shared LabelChip the search-icon replay deleted
Replaying b808158 removed ui/components/LabelChip.kt: that commit predates
e2147b0, which extracted one shared LabelChip for the chat panes, so the older
diff carried the file's deletion. Restored from the commit before the replay; the
build and the full unit suite pass again. A cherry-pick's deletions need the same
scrutiny as its conflicts.
2026-10-18 00:13:17 +01:00
alan 986a62b09f android: add omni-search type icons with a kind filter and sorting
The search results panel replaces each row's text type badge (LabelChip,
removed) with a glyph derived from the result kind and, for an artifact,
from its content type. The artifact branch reuses the gallery's own
artifactKind/artifactIcon mapping in ui/graph/ArtifactType.kt instead of
a second table, and the glyph's contentDescription carries the kind in
words so a screen reader hears what the icon cannot show.

The panel's header gains the runs list's FilterMenu and SortMenu: a kind
filter (All kinds, Pipelines, Runs, Steps, Fields, Artifacts, Versions)
that sends the server's SearchRequest.kind verbatim, and Relevance /
Newest / Name sorting. The server's search takes no sort, so Newest and
Name order the results in hand and say so ("Sort results in hand", the
collapsed summary's "(in hand)"); no Prompts option is offered because
the server's search kinds cannot produce one. The chosen kind and order
persist via SettingsRepository, surviving query changes and streaming.

Tests: OmniSearchResultsTest covers the per-kind and per-content-type
glyph (checked against the gallery mapping), the kind label, filter
narrowing, Relevance/Newest/Name ordering with ties, and the empty-state
line; ArtifactTypeTest covers artifactKindLabel.

Checked before committing:
- Packaged templates: none describes the app's search panel; unchanged.
- README/topic docs: android/README.md gains the "Search type icons, a
  kind filter and sorting" section; docs/cli.md and docs/ui-ux-review.md
  describe only the TUI/server search, so they stay accurate and are
  unchanged.
- Packaged authoring skill references: internal/author/skill/references/
  contains no Android search-panel documentation (operations.md's "omni
  search" is the TUI), so none needs updating; install.go's inventory is
  untouched.

Evidence: gradle :app:testDebugUnitTest --rerun 433 tests 0 failures;
:app:assembleDebug successful, APK published to the run artifacts; the
API-27 NewApi lint errors are pre-existing and unrelated.

(cherry picked from commit b808158d499912e09872c31b5259205ee6cd8838)
2026-10-18 00:12:07 +01:00
alan 36977d7353 Merge multiclient: fan a chat session out to every client and answer approvals exactly once
Every client watching a session receives every frame any client's turn produces,
a prompt from any client is accepted and serialised per session (queued behind
the in-flight turn, acknowledged as queued), user messages are attributed to the
sending device's label, and a pending approval is a shared exactly-once object:
the first answer wins, is recorded, is pushed to every watching client, and a
later answer is refused. Supersedes the per-session claim and the Busy
read-only state.
2026-10-18 00:10:23 +01:00
alan 672d260b33 Merge main into multiclient: combine the multi-client chat fan-out with main's chat tool-work, notifications, status palette and docs-fold changes
No conflicts: main's chat-surface work (the in-flight tool work in ChatFormat,
ChatStore and ChatTranscript, run notifications, the status palette) sits in
different hunks from this branch's fan-out edits, and main did not touch
docs/cli.md. Checks re-run on the merged tree: gofmt -l . (clean), go build ./...,
go vet ./..., go test -count=1 ./... (all packages pass; the focused multi-client
tests fan-out, per-session serialisation, first-answer-wins, pending replay and
resync pass), and the Android unit tests
(gradle --offline --no-daemon :app:testDebugUnitTest, BUILD SUCCESSFUL, 598 tests,
0 failures).
2026-10-18 00:10:15 +01:00
alan 6cb61578de Fan a chat session out to every client and share approvals exactly-once
A session was owned by one connection: the claim map in chat_claims.go let the
first client hold it, every other client saw the session Busy and read-only, and
a second client's prompt was rejected. Replace the claim with a per-session
"room" so the operator's phone, tablet and terminal all watch and write the same
conversation, and a pending approval is a shared, exactly-once object.

Server (internal/server, internal/protocol):
- New chat_room.go: one room per session holding the session's single broker
  stream, its one bounded prompt queue (8) and the fan-out to every attached
  client. A chat_subscribe frame attaches a connection to a session's shared
  stream and replays the still-unresolved approval requests the room holds.
- chat_stream.go: handleChatPrompt accepts a prompt from any client. It attaches
  the sender, either starts a turn or queues the prompt behind the in-flight turn
  and acknowledges it with chat_queued:true ("queued" is the chosen behaviour,
  stated on the wire and in docs/cli.md), and echoes the user turn to every other
  client attributed to the sender's label. The prompt handler no longer owns the
  stream; one turn runner per room drains the queue, so two turns never
  interleave. Per-connection write serialisation is unchanged (each chatSub has
  its own writer goroutine and bounded buffer).
- chat_permissions.go / chat_commands.go: an approval is reserved by the first
  answer and confirmed once delivered; the first answer wins, is recorded with
  the answering client's label, and the resolution is pushed to every watching
  client as chat_permission with resolved/decision/resolved_by so their cards
  clear. A later answer is refused with an error naming the client that answered,
  and never reaches the agent twice; a reservation whose reply failed is
  released.
- chat_hub.go / chat_sessions.go / chat.go: the hub now owns rooms and the
  user-turn id sequence; the resulting user turns are retained (role and client
  carried) so a reconnect re-syncs who said what. chat_sessions no longer marks a
  session Busy and its clientID parameter is gone; the protocol keeps the Busy
  field for wire compatibility only. websocket.go detaches a connection's chat
  subscriptions when the read loop ends.
- chat_claims.go is removed, not left vestigial: the only exclusive thing left is
  a turn, and the room's queue is that.

App (android):
- PipelinesRepository carries a stable per-device client label (Build.MODEL, with
  a fallback) on prompts and replies, and adds chatSubscribe; AppViewModel
  subscribes on opening a chat (best-effort, an older server's error frame does
  not stop history loading) and records the queued ack.
- ChatStore folds a user frame from another client into the transcript once,
  attributed by the sender's label, and never receives its own prompt back, so
  the sender's own message is never duplicated. ChatThread.readOnly is gone:
  canSend no longer depends on another client, the composer says "Queued - it
  will send when the current turn finishes." instead of disabling input, and the
  status label is Running/Idle only. Scroll/follow behaviour is untouched.
- Tests: ChatProtocolTest round-trips the new wire fields, ChatFormatTest asserts
  the stale Busy flag cannot produce a read-only label, MultiChatStateTest asserts
  a session another client watches stays writable.

Reflected where it belongs: no packaged template changes (no bundled starter
embeds the chat protocol). Checked the packaged authoring skill references: none
of them describes the chat wire beyond operations.md, and
internal/author/skill/references/operations.md is now stale - its "Brokered
OpenCode chat" section still says chat_sessions marks "busy" when another client
holds the session and that a second client's chat_prompt is rejected, and it does
not mention chat_subscribe, the per-session prompt queue/chat_queued, the
per-client label or the shared exactly-once approval (it also still describes the
per-subscription permission poller, which the room's single poller replaced). The
supported semantics are the ones in docs/cli.md, updated in this commit; the
operations.md section needs a rewrite to match. No README or other shared
document was edited here.

Checks run on the committed tree: gofmt -l internal cmd examples (nothing), go
build ./..., go vet ./internal/... ./cmd/..., go test ./internal/server
./internal/protocol ./internal/stage ./internal/pipeline.
2026-10-18 00:09:14 +01:00
alan b7abff3a14 Merge session-activity: show a chat's in-flight tool work instead of a bare Running 2026-10-18 00:06:09 +01:00
alan f339503f68 Merge branch 'main' into session-activity 2026-10-18 00:05:10 +01:00
alan 597c7b5e76 android: show a chat's in-flight tool work instead of a bare Running
A session said "Running" with an empty tool chip while it worked, so a silent
wait was indistinguishable from a stuck one. Derive the in-flight work from the
stream the app already folds and show it on both surfaces.

- ChatFormat: runningToolCalls() reads the tool parts still running, in
  transcript order, so the conversation and the session row share one set;
  toolDetail() takes the command/description the part actually carries (the
  first of description/command/filePath/file_path/path/pattern/query/url),
  collapsed to one line and elided at 72 chars, and returns null rather than a
  fabricated summary; runningToolElapsedMillis() uses the protocol's own
  time.ran/created when present and the local per-part stamp otherwise;
  runningToolStamps() keeps a stable start per part across frames;
  TOOL_LONG_RUNNING_MILLIS (60s) and toolLongRunning() mark an unusually long
  call; sessionWorkLabel() names what a working session is doing while a
  text-streaming turn stays plain "Running" and a busy session never reads
  "Idle".
- ChatStore: ChatThread gains toolStartedAt, stamped when a part turns running
  and dropped when it settles, plus runningTools/toolElapsedMillis; history()
  and the frame fold maintain it; setRunning/turn end clear it.
- ChatTranscript: RunningIndicator lists one line per running call (name,
  detail where present, live elapsed) keyed by part id so concurrent calls
  render together without flicker; no percentage, ETA or progress bar.
- ChatListPane: the session row renders sessionWorkLabel(busy, thread).
- ChatRunningWorkTest covers name/detail/elapsed, clear on completion, error
  state, concurrent calls and the no-detail stream.

Only fields the harness reports are used: tool name, state.status and input;
the live brokered frame carries no timing envelope, so elapsed falls back to the
local stamp. Existing chips, INPUT/OUTPUT, reasoning blocks, stop control,
activity marks and scroll/follow behaviour are untouched.

Checked and unchanged: no packaged template or packaged authoring-skill
reference describes this app surface (the chat references in
internal/author/skill/references/ document the server's brokered chat_* protocol,
which this change does not touch), so none is stale. android/AGENTS.md already
names ui/chat/ and its files. The shared documents this change does make stale
are recorded, not edited, in docs/notes/chat-in-flight-tool-work.md: the
Running-indicator and session-status statements in android/README.md.
2026-10-18 00:05:07 +01:00
alan 87856eaaf0 android: complete the status-palette port onto main's tree
The recovered commit gave every status one colour, but it predates main's split of the run
view and main's own cyan 'waiting' colour. Resolution: keep main's Waiting, keep the run
view's own file (main already has RunSummaryTab), and carry the parts that were genuinely
missing - RunState.Blocked and RunState.Skipped with their words, glyphs and one colour
each - so the palette and the enum agree.
2026-10-18 00:03:29 +01:00
alan 8411d47b29 android: colour every status from one palette
A successful stage read amber in the Timeline because a visit's chip was
coloured from the graph's outcome palette (`graphColors`/`outcomeColor`) while
every other surface used the run-status palette, so the same word meant two
colours. This makes `RunStatusPalette` the single source of truth:

- `RunState` gains the server's own `Waiting`/`Blocked`/`Skipped` words, each
  with a deliberate palette entry, a distinct material glyph and a label, so a
  status is never colour alone and success is green / failure red everywhere.
- `graphColors()` takes success/error from `runStateColor(Succeeded/Failed)`;
  `outcomeColor()` returns the shared status colour for any word that resolves
  to a `RunState` and leaves `GraphPalette` only the graph-only flow outcomes
  (`rejected`/`exhausted`/`retry`/`approved`/`fast`/`missing`; `blocked`/
  `skipped`/`done` removed). The Timeline's `TimelineRow` uses the same factory.
- A visit's *outcome* stays distinct from the run's *status* by the chip's own
  label and the row's state glyph, never a second colour.
- The runs-list failure diagnostic uses `runStateColor(Failed)` instead of a
  scheme role that could drift from the chip above it; the status filter gains
  `waiting`.

Tests: new `StatusColorConsistencyTest` (timeline colour comes from the runs-list
source; every state maps to exactly one colour) and extended `GraphPaletteTest`/
`RunStatusTest`. `gradle --offline --no-daemon :app:testDebugUnitTest
--rerun-tasks` -> 516 tests, 0 failures, 0 errors, 0 skipped.

Docs check: the root README and docs/ do not describe the Android status
colours; the packaged templates and internal/author/skill/references cover the
authoring surface and are unrelated, so nothing there needed updating.
android/README.md did enumerate the run states and claimed the graph outcome
palette was unchanged, so its features bullets were updated and a new "One status
colour everywhere" section added, with the old bullet marked superseded.

APK published to the run's artifacts as pipelines-debug-wip-d13f359.apk.

(cherry picked from commit a3caa734cd4769f42883b518d877dd0132ef57ae)
2026-10-18 00:00:31 +01:00
alan a3f571d672 docs: make docs-fold the single writer of shared documentation
Every item wrote the shared, append-only docs (android/README.md, docs/cli.md and
the packaged skill references), so every merge conflicted on prose. Keep the duty
to notice stale docs; move the writing to one deliberate place.

- Per-item note, not a shared edit. An item that makes a shared document stale
  writes docs/notes/<slug>.md - unique per item, so two items never touch the same
  file - and commits that note with its change. It never edits a README, topic doc
  or packaged skill reference itself.
- One writer. The manual-only docs-fold pipeline, bundled as the fifth starter
  examples/docs-fold.md, folds every note under docs/notes/ into the shared
  document it names and deletes the consumed notes in its own commit; an empty
  notes directory is a success no-op. Operator trigger:
  pipelines new "Docs fold" --template docs-fold --no-open; pipelines submit
  <draft.md>; pipelines run "Docs fold".
- Implemented where the convention lives: orchestration.md (brief item 5, the
  hard-constraint bullet, a "Single documentation writer" section and the
  "Pipeline choice" committer bullet), the canonical committer checklist in
  format.md (new step 6), the committer prompts in examples/task.md and
  examples/three-stage.md, the new examples/docs-fold.md with its catalog and
  README entries, and the repository guideline AGENTS.md. Test-expectation counts
  (examples/catalog_test.go, internal/server/templates_test.go,
  scripts/smoke-first-install.py) follow the fifth starter.

Reflected where it belongs: the packaged templates (examples/task.md,
examples/three-stage.md, the new examples/docs-fold.md), the packaged skill
references (orchestration.md, format.md) and the repo guideline AGENTS.md all carry
the new convention. No new reference file was added, so install.go's managed
inventory is unchanged. The shared descriptive docs were deliberately not
rewritten: this change makes README.md:191, docs/cli.md:170 and
internal/author/skill/references/operations.md:13 name four starters where there are
now five. Those stay as they are - correcting them now is exactly the per-item
shared edit this change removes - and the stale-doc note
docs/notes/docs-fold-single-writer.md records each one for the docs-fold writer to
fold. Nothing else needed updating. No new dependency; no Android, Gradle, server,
installer, Docker or published-definition change; no definition published over the
running pipelines.

Evidence: go test -count=1 ./... passed; go build ./... and go vet on the touched
packages clean; ./internal/author/... covers embedding, reference links, the managed
inventory and install/upgrade/protection; ./examples/... validates the fifth starter
and its manual-only, committer-terminated graph; ./internal/server/... covers the
served catalog. Not run: the docs-fold writer against the shared docs (nothing to
fold yet); no install or deploy.

(cherry picked from commit f29656cf084d7eee2e033f2a37a9d231d7acaaf0)
2026-10-17 23:59:59 +01:00
alan c132e2b59e docs: record the consent rule and stop ordering shared-document edits 2026-10-17 23:59:33 +01:00
alan a297fb6fb3 Merge notif: post real system-tray notifications when a run needs the operator 2026-10-17 23:58:07 +01:00
alan c7f009d850 Merge main into notif: combine the run notifications with main's chat reasoning grouping
Brings this branch up to main (73284ff) so it can be merged back without
conflict. Main's two chat commits (ChatFormat/ChatTranscript reasoning into
one collapsible block) do not touch any of the notification files, so the
merge was clean with no conflicts to resolve. The merged tree keeps both
intents unchanged.
2026-10-17 23:56:52 +01:00
alan 54fecbb454 android: post real system-tray notifications when a run needs the operator
The app already had an in-app attention surface but nothing in the system
tray. This adds the app's own Android notifications for the two events that
need a person: a run waiting for a decision (highest importance) and a run
that failed. A successful, running or cancelled run raises nothing.

- RunAlerts.kt: the pure model. Maps the attention list's kinds to run
  alerts, coalesces several into one grouped summary, dedupes one
  notification per run+kind via AlertLedger (never repeated while the run
  stays failed or waiting), clears on resolution/dismissal/arrival, and
  decides the one-time permission prompt and tap destination. Unit-tested.
- RunNotifier.kt: the Android edge. Creates the single "Runs that need you"
  channel, posts/clears through NotificationManagerCompat, and reports
  notificationsAllowed() from POST_NOTIFICATIONS (API 33+) / the system
  notification switch. Posted from the app's own process.
- Manifest: POST_NOTIFICATIONS runtime permission; PipelinesApplication
  creates the channel before anything can post.
- SettingsRepository/AppViewModel: remembers that the permission was asked
  once (never nags), keeps notificationsAllowed fresh on resume, feeds the
  tray from the same attention flow, and clears a run's notification when
  the operator arrives at it.
- PipelinesApp/DecisionPrompt/RunDetailScreen: the one-time rationale before
  the system dialog, asked at a sensible moment (first run that needs the
  operator, or first open of the attention surface), degrading to the
  existing in-app surface on refusal; a waiting run's tap opens its decision
  sheet (pipelines://run/<id>?action=decide), a failed run's tap opens the
  run; reaching a run clears its notification.
- Attention.kt: drops the Finished kind so a successful run is never
  announced on any surface (the operator's rule), keeps the deep-link parser
  (now carrying an optional action) and still decodes an older state's
  looked-at-finished set.
- AttentionTest.kt / RunAlertsTest.kt: the mapping (waiting and failed
  only), the permission paths (granted, refused, not-yet-asked), coalescing
  and clearing, dedupe, and the tap destination.

Checks: `:app:assembleDebug` and `:app:testDebugUnitTest --rerun-tasks`
pass (578 tests, 0 failures). Reflected-where-it-belongs check: this is an
android/-only change and the packaged authoring skill references and the
packaged templates describe the server's ntfy notification authoring, not
the Android app's tray, so none of them needs updating. No README or other
shared documentation file was touched.
2026-10-17 23:56:47 +01:00
alan 73284ff68c Merge think-group: group a turn's reasoning into one collapsible block
A chat turn that reasoned several times now shows a single collapsible thinking
block (with its step count and elapsed time) instead of one box per reasoning
part, and a streaming turn grows that block rather than adding another.
2026-10-17 23:46:07 +01:00
alan ec6a350a17 Group a chat turn's reasoning into one collapsible block
The chat rendered every reasoning part as its own ReasoningBlock, so a turn
that reasoned several times stacked several thinking boxes between messages.
This folds a turn's reasoning parts into a single collapsible entry, anchored
where the turn's first reasoning part sits, so a streaming turn grows the
block it has instead of gaining another.

- ChatFormat.kt: add ReasoningTurn / turnReasoning (the ordered fold of a
  turn's reasoning parts), reasoningLabel (counted wording for >1 steps, plain
  one-block wording otherwise) and turnElapsedMillis (elapsed from the turn's
  own part timing envelopes, null when unknown). ReasoningExpansion is now
  keyed by the turn's message id via reasoningTurnKey rather than a per-part
  key.
- ChatTranscript.kt: AssistantParts renders exactly one ReasoningBlock per
  turn (first reasoning part wins the anchor); the collapsed line reads
  "Thinking · N steps"/"Reasoning · N steps" when the turn reasoned more than
  once, else "Thinking…"/"Reasoning", with elapsed time appended when known.
  Streaming elapsed is driven by thread.runningSince so it matches the running
  indicator. The answer, tool chips, diff cards, attachments and approval
  cards are untouched.
- Tests: ChatTranscriptTest exercises the turn-keyed expansion; new
  ChatReasoningTurnTest covers the fold (several parts -> one entry in order),
  the collapsed wording, elapsed derivation and a streaming turn appending
  into the same entry.

Checked for stale packaged artefacts: none needs updating. The packaged
authoring skill references (internal/author/skill/references/) document the
protocol (reasoning deltas, cost/token budgets), not the Android transcript
rendering, so nothing there describes per-part thinking blocks. No packaged
template mentions reasoning rendering. Shared docs / the Android area map are
left to the single documentation writer; nothing here changes documented
behaviour beyond the transcript fold.

Verified with the Android toolchain (no daemon): :app:testDebugUnitTest passes
567 tests, 0 failures, 0 errors, including ChatReasoningTurnTest (5),
ChatTranscriptTest (7) and DimensTest (2). No new raw geometry literals.
2026-10-17 23:46:00 +01:00
alan 79ebba62c7 Sweep every screen of the Android app with a UI/UX review and fix what it found
Fixes the sweep findings (attention-chip reserve, formatted timestamps, HTML
entities, Raw/Rendered labelling, filter bottom sheet, stage-count wording,
labelled key rows, stage-pane de-duplication, wide-window list width,
Settings disconnect emphasis, CodeBlock height). Server-side and product
decisions are deferred with reasons in the branch commits.
2026-10-17 23:29:57 +01:00
alan a2a64931eb Merge main into sweep-ui: combine the UI sweep fixes with main's per-area agent maps
Main adds only documentation (per-area agent maps for the Android app, the TUI
and the server); the sweep-ui side holds the UI/UX sweep fixes. No overlapping
files, so both intents are kept unchanged.
2026-10-17 23:28:02 +01:00
alan 2e9ba100bd Fix UI/UX sweep findings across the Android app
Addresses the survey/review findings on the sweep-ui branch, reusing the
app's existing patterns and named tokens (DetailTabBody, formatLocalTimestamp,
stageCountText, ATTENTION_CHIP_RESERVE) rather than hardcoding values.

Fixed findings:
- n:1  attention-chip reserve (OmniSearchResults, ATTENTION_CHIP_RESERVE in
       Dimens, PipelinesApp bottom content reserve).
- n:2  formatted local timestamps via the shared Format.formatLocalTimestamp
       (PipelinesApp lists, RunHistory, RunSummaryTab, PipelineDetail).
- n:3  decodeHtmlEntities for the session export's HTML entities (Markdown),
       with regression cases for entities and a bold-only line.
- n:4  Raw/Rendered control now labels the current view and its state
       (SourceView).
- n:5  filters as a Material modal bottom sheet capped at a window-derived
       filterMenuMaxHeight with a scrolling body (FilterMenu), plus tests.
- n:7  stage-count wording via the shared stageCountText helper.
- n:8  labelled key row on the template detail screen.
- n:9  stage pane de-duplicates identity / folds the definition.
- n:10 wide-flag plumbing into the destination lists and ChatListPane, which
       now wraps its session list in DetailTabBody(wide, ...) so wide rows keep
       DETAIL_MAX_WIDTH_DP centred.
- n:13 Settings: Disconnect is the filled primary while connected and the
       trust warning moved into a surfaceVariant card.
- n:15 CodeBlock bounded height plus a scroll affordance with an unbounded
       option.

Deferred findings (with reason):
- n:3  (Chat transcript) residual is server-side data: chat_messages returns a
       single assistant part whose text is already interleaved/doubled, so the
       renderer cannot close it. The android half (entities/Markdown) is fixed.
- n:6  Runs list titles arrive truncated to 80 chars mid-word from the server.
- n:11 Two-pane top-band layering is a product/design decision.
- n:12 48dp graph-node hit targets and label dodging are product decisions.
- n:14 The session-list chip is OpenChatStrip (open chats), not a list filter;
       relabelling it would misdescribe it.

Commands: :app:compileDebugKotlin + :app:testDebugUnitTest (562 tests, 0
failures) and :app:assembleDebug all succeed.
2026-10-17 23:27:57 +01:00
alan a4cf7366dd docs: per-area agent maps for the Android app, the TUI and the server 2026-10-17 22:56:17 +01:00
alan bdbc964793 Merge lane-retry: split chat/model/run files by concern (pure move) 2026-10-17 21:09:27 +01:00
alan c1652e2bc6 Split chat/model/run files by concern (pure move)
Pure move: split the three multi-feature server files into per-concern files,
with no behaviour change - same package, same exported and unexported
identifiers, same call graph, same tests.

- internal/server/chat.go -> chat.go (broker seam, client token, dispatcher),
  chat_hub.go, chat_claims.go, chat_permissions.go, chat_sessions.go,
  chat_stream.go, chat_commands.go
- internal/stage/model.go -> model.go, model_run.go, model_failure.go,
  model_validation.go
- internal/pipeline/runs.go -> runs.go (read side), runs_schema.go,
  runs_create.go, runs_mutate.go, runs_sessions.go

Checked before committing:
- Packaged templates and internal/author/skill/references: neither refers to
  internal/server/chat.go, internal/stage/model.go or internal/pipeline/runs.go,
  so nothing there needed updating (the change is a move with no behaviour
  change).
- gofmt -l on the three packages: clean. go build ./..., go vet ./... and
  go test ./... pass. go.mod/go.sum unchanged.
- No test, docs, android/, install or Docker files touched.

Known stale path pointers deliberately left to the single docs writer (shared
docs) and out of scope (android/): docs/chat-verification.md and
android/README.md name the old file paths.
2026-10-17 21:09:08 +01:00
alan 4dda63cd7c Merge lane-retry: re-verify the chat record at ec27a2d
Combine the chat end-to-end verification record update (revision, APK
artifact, test totals and the 3ffc126..ec27a2d chat-surface delta) into main.
Docs-only; no behaviour change.
2026-10-17 20:56:01 +01:00
alan 4426f8cacd docs: re-verify the chat record at main's build (ec27a2d)
Update docs/chat-verification.md from the earlier `3ffc126` record to the
current revision `ec27a2d`, which is both this lane's HEAD and main:

- revision, APK name/size/sha256 and LAN URL refreshed to the rebuilt
  artifact `pipelines-debug-wip-ec27a2d.apk` (18,585,084 bytes,
  sha256 5ee4b38c…da84);
- unit-test totals refreshed to 61 suites / 558 tests / 0 failures, and the
  server-side `go build ./...` plus the chat/session/adopt Go tests recorded;
- a "Changes since the previous record" section describing the chat-relevant
  delta `3ffc126..ec27a2d` (the `chat_adopt` request, the lazy
  `MarkdownBlocks` renderer, the run-watch scope change) and correcting the
  chat protocol file path to `data/protocol/Chat.kt`.

The change is documentation only: no app or server behaviour changes.
Checked where the change belongs: packaged templates (no template encodes
this record) and the packaged authoring skill references
(internal/author/skill/references/) — none is made stale by a
verification-record update, so none is touched. `go build ./...` passes.
The debug APK lives in the run's artifacts directory outside the repo and is
therefore not committed.

Refs: brief "Verify the chat end to end, on the phone, against the real server".
2026-10-17 20:55:19 +01:00
alan ec27a2dc48 Merge lane-retry: record and expose per-run model usage (tokens in/out, cost, model) 2026-10-17 20:44:55 +01:00
alan 7a28aca1f1 Merge main into lane-retry: per-run usage recording alongside live run events
main brought pushed run events (emitRun/RunEventFrame across protocol, server
and the Android client) and this branch brought per-run usage recording. Both
touch internal/server/runner.go; git auto-merged cleanly and the result keeps
both intents — each model step is stamped with its effective provider/model and
budget-derived usage (stageUsage, overlayEffectiveModels) while run events are
emitted (emitRun) and applied to the same step loop. No conflict markers, no
side's work discarded.

Post-merge checks: gofmt -l clean, go build ./..., go vet ./... and
go test ./... all pass.
2026-10-17 20:44:48 +01:00
alan 3f5c11b7bf Record and expose per-run model usage (tokens, split, cost)
Carry the usage a model stage already measures for its budget
(stage.Budget.Snapshot()) onto the step as typed evidence and total it in
one pass, rather than a second harness read, a transcript parse or an
output-length estimate. A shared budget across stage revisits records only
the visit's increment, and a revisit that observes no new report records no
usage instead of a fabricated known zero.

- protocol: StageUsage/RunUsage/TotalUsage and UsageTotals.
- pipeline: step_usage table + migration, COALESCEd into the one step
  projection, FinishStep persistence, one json_extract history aggregate,
  retention removes the rows with their run.
- server: stageUsage maps the budget snapshot, stamping per-stage model and
  usage for every model stage (including failures).
- cli: inspect/stats human and JSON output.
- budget/pi: retain the reported in/out split, mark a total-only (Pi) report
  split-unknown, and keep an unreported cost unknown (never zero).

Evidence and docs updated in the packaged skill references and docs/cli.md;
the live database has no step_usage rows yet (all history predates this), so
per-run figures are reported as unavailable, not zero.
2026-10-17 20:40:56 +01:00
alan 87571ac7b8 Merge lane-live: make every view live from the pushed run events
The Android client subscribes to run events for every workspace its runs list
displays (the blank "any workspace" scope the server already honours) instead
of only the configured workspace, so a run executing in a lane worktree - a
different workspace - now delivers frames. A pushed frame carries the run's
pipeline identity (pipeline_id, name, title, version), so the runs-list fold
inserts a never-seen run and the pipelines list, run detail, timeline and stage
cards all follow a run finishing and a new one starting without a refresh, with
no per-event fetch. Server-side workspace isolation and coalescing are unchanged.
2026-10-17 20:20:48 +01:00
alan 8a62b31398 Merge main into lane-live: adopt operator chat brokering alongside live run events
Combines this lane's "make every view live from the pushed run events" change
(android + server run-event scope and frame identity) with main's operator
chat brokering work (opencode endpoint adoption, protocol/settings/CLI chat
support, operations reference). The two touch different files; git's ort
strategy merged them cleanly with no conflict markers and nothing to resolve.
Post-merge checks: go build/vet and go test ./... all pass; gradle
--no-daemon testDebugUnitTest assembleDebug passes (558 tests, 0 failures).
2026-10-17 20:20:35 +01:00
alan 5e2aece1be android+server: make every view live from the pushed run events
The pipelines list (and every other run-state view) kept the row it had when
the screen was last fetched. Two class-level root causes, fixed here:

- The app subscribed to run events scoped to the one workspace the operator
  configured, so a run executing in another workspace (a lane worktree is its
  own workspace) never delivered a frame: the rows only changed on a manual
  refresh. The app now asks for the blank "any workspace" scope the server
  already treats as any (ALL_WORKSPACES in AppViewModel.subscribeRuns, blank
  default on PipelinesRepository.subscribeRuns). Workspace isolation on the
  server is unchanged: an explicit workspace scope still matches only that
  workspace (TestRunEventWorkspaceIsolation); the new
  TestRunEventAllWorkspacesSubscription pins the blank "any" scope.
- foldRunEvent refused to insert a run the list had never held, returning
  needsResync and leaving the list untouched, so a run started after the
  screen loaded appeared only after a fetch. The pushed frame now carries the
  pipeline identity a row needs (RunEventFrame.PipelineID/Name/Title/Version),
  so the fold inserts the new run at the head from the frame's own identity
  without a fetch and without reordering existing rows; a server that predates
  those fields still falls back to the one resync. Added fields and why each
  is needed: pipeline_id (row's pipeline join), name (row title), title (the
  stored operator-facing title a row shows), version (the row's pinned
  version) - everything a RunSummary row renders, so no per-event fetch and no
  guess from stale cache. The server stamps them on every emitted frame from a
  per-run identity remembered at create/decide/cancel/resume (runner.go
  runIdentity/rememberRunIdentity/stampRunIdentity), first-write-wins through
  the coalescer (mergeRunEventFrame) and on the subscribe snapshot, so every
  transition - created/queued, running, each stage start/finish, terminal -
  carries them. Reconnect still resyncs once then follows pushes; the
  pull-to-refresh path is untouched.

Checks run: go build ./..., go vet ./..., go test ./... (all packages ok),
go test -race -run 'RunEvent|RunEvents|Subscribe' ./internal/protocol/
./internal/server/, and gradle --no-daemon testDebugUnitTest assembleDebug
(558 tests, 0 failures, 0 skipped; BUILD SUCCESSFUL).

Packaged templates and the packaged authoring skill references were checked:
nothing there describes the run_event field list or the client's subscription
scope, so neither needs updating (references/notifications.md only says the
attention surface is derived from the pushed run events, which is unchanged).
Docs are a shared file owned by a single writer and were not edited:
docs/cli.md's description of the pushed `run_event` frame still enumerates
only the older fields (status, outcome, current stage, completed-step count,
timestamps, optional step) and is now incomplete - it should mention the
pipeline identity fields; docs/ntfy.md remains accurate.
2026-10-17 20:20:05 +01:00
alan 1ae56b7d14 Merge lane-retry: broker chat from an operator's OpenCode endpoint and adopt existing sessions
Broker chat from an operator-supplied OpenCode endpoint (opt-in flag/env,
validated once, no fallback) with the endpoint choice recorded across restarts,
and add chat_adopt with the pipelines chat-adopt CLI command to continue a
session that already exists on that endpoint.
2026-10-17 20:14:46 +01:00
alan 1f75e4797e Broker chat from an operator's own OpenCode endpoint and adopt existing sessions
Add an opt-in way to broker chat from an operator-supplied OpenCode service
instead of the instance the server spawns for itself, and a way to adopt a
session that already exists on that endpoint so it appears in chat_sessions and
can be continued from the app.

- Endpoint selection: the `-opencode-endpoint` server flag (defaulting to
  `PIPELINES_OPENCODE_ENDPOINT`) opts in; precedence is explicit flag >
  explicit environment > the endpoint recorded on a previous run, with the
  spawned instance as the default. opencode.OpenEndpoint validates the
  reference once (http(s), host, no userinfo/query/fragment/path), detects the
  backend from its own /api/info (v2) or /global/health (v1) contract, and
  requires a streamable text/event-stream event path. It owns no process
  (Close is a no-op) and never calls startServe; every failure names the
  endpoint and disables chat rather than silently falling back. An
  authenticated endpoint takes an optional password only through the private
  file PIPELINES_OPENCODE_ENDPOINT_PASSWORD_FILE, with
  PIPELINES_OPENCODE_ENDPOINT_USERNAME overriding the detected default.
- Persistence: the validated choice is recorded in an additive single-row
  server_settings table so a restart with no flag/environment reuses it; an
  unreachable recorded endpoint disables chat with a clear message and no
  fallback.
- chat_adopt: a new protocol request (ChatAdoptRequest) with handleChatAdopt in
  internal/server/chat.go. It refuses a nil broker/registry/payload and a
  blank or foreign-shaped id before any endpoint call, reads the endpoint via
  the shared Chat.Session (which reuses Sessions/decodeChatSessions), records
  through the existing RecordOperatorSession with the endpoint's directory and
  title verbatim, and echoes the adopted session plus its registry row like
  chat_create. A missing id is refused naming the id and records nothing; an
  endpoint record with an empty directory is refused rather than substituting
  the server's working directory or home.
- CLI: `pipelines chat-adopt <session-id> [--json]` (usage, notes, help
  inventory, dispatch) with docs/cli.md updated under Chat sessions.
- Autostart preserves the endpoint variables (and the password-file reference,
  never an inline secret) via serviceEnvironmentKeys.

Checks before committing:
- Package location: the change is user-facing chat behaviour, so the packaged
  authoring skill reference internal/author/skill/references/operations.md is
  updated in the same change (Brokered OpenCode chat section) with a dated
  verification-evidence entry and the not-deployed state. No new reference file
  is added, so internal/author/install.go's managed inventory is unchanged.
- Packaged templates: this repository packages no template set for this
  behaviour and none references the chat endpoint, so no template needs
  updating.
- Verification: `go build ./...`, `go vet` on the touched packages, `gofmt -l`
  clean and `go test ./...` all pass. The unit tests cover the endpoint
  validation/precedence, the adopt happy path and refusals, the recorded
  endpoint round-trip, the protocol round-trip and the CLI dispatch. The live
  scratch-server check against the operator's real endpoint was not run in this
  change.

Nothing unrelated is staged; docs left stale (README and other shared documents)
are not edited here and are for a single folding writer.
2026-10-17 20:14:11 +01:00
alan 50af9dbc62 Merge lane-retry: read a stage's exported session from the run view
Lands the Android reader for the per-stage session export: a Session section in
the stage detail that appears only when the visit's session_export actually wrote
a file, renders the markdown export with the app's existing markdown renderer
(lazy, off the main thread), offers the html export in a WebView via a toggle, and
reports a failed fetch as its own in-pane error without hiding other sections.
The server-side export already landed in 016c39c.
2026-10-17 19:56:36 +01:00
alan 752e761837 android: read a stage's exported session from the run view
Add a Session section to the stage detail that appears only when the visit's
session export actually wrote a file, beside the artifacts it was written with,
and opens the transcript on a click like any artifact.

- Derive the section from the recorded `session_export` matched against the
  step's artifact listing (`sessionExportFiles`), so a visit with no export - a
  non-OpenCode harness, an export failure, or a pre-export server - lists no
  empty section, mirroring internal/protocol/runs.go and the server's export.
- Default to the markdown export rendered with the app's existing markdown
  renderer (new lazy `MarkdownBlocks` reusing `MarkdownBlock`), and when both
  files exist offer the html export through an "HTML view" toggle in a WebView
  for fidelity; html is the default only when markdown is absent.
- Behave like the artifacts around it: the same Scaffold/TopAppBar/back chrome,
  the shared ArtifactBytesCache so the file is fetched once and never loaded
  twice, decode/parse off the main thread so a several-hundred-kilobyte session
  stays responsive in a lazy block list, and a failed fetch shown as its own
  in-pane error without hiding the other sections.
- `SessionExport` protocol model and `RunStep.session_export`, with the
  unit tests for section presence, fetch/render, fetch failure isolation and a
  large session.

Checked the packaged templates and the packaged authoring skill references: the
session export's server-side behaviour is already documented in
references/delivery.md and references/operations.md (landed with the server
change), and no packaged reference or template describes the Android stage
pane's sections, so none of them needs updating for this client-only change.

Verified before commit (recorded by the independent code review on this tree):
compileDebugKotlin, testDebugUnitTest (forced rerun) and assembleDebug all
BUILD SUCCESSFUL, 554 tests / 0 failures across 61 classes, SessionExportTest
9/0/0.
2026-10-17 19:55:56 +01:00
alan 016c39c3e8 Merge lane-retry: export each stage's session as session.md and session.html
Lands the session-export feature: a finished OpenCode-harness stage writes its
real session into its own step artifacts directory as session.md and
session.html, served by the existing artifact listing and URL path, with
bounded source and rendered output, a visible truncation banner, recorded
session_export evidence and failure isolation that never fails the stage.
2026-10-17 19:41:04 +01:00
alan 58c6b9b7c6 server: export a finished stage's real session as session.md and session.html
Every OpenCode-harness model stage now writes its real session into its own
step artifacts directory as session.md and session.html, so the existing
bounded artifact listing, the /artifacts/<run>/<step>/<name> serving path and
the artifact scan find and serve them with no special casing, while the stage
keeps its bounded preview in the run record unchanged.

- internal/opencode/export.go adds the one shared native export invocation and
  the exact session-ID/messages validation used by both Connection.Messages and
  the new ExportSession, so the readback path does not diverge. The backend's
  published subcommand is used (v1 `export <id>`, v2 `session export <id>`),
  the source read is capped at 8 MiB, and a larger session is read as a prefix
  and reported truncated instead of failing. boundedOutput.ReadFrom keeps the
  cap effective so overflow and the truncation path are real.
- internal/stage/session_export.go renders markdown and html with a metadata
  header, every role and every part (unknown part types as raw JSON, every
  session text escaped in html), atomic temp+rename writes that never overwrite
  an existing file, a visible truncation banner at both ends when the source or
  the 2 MiB rendered cap cuts it, and an honest 0-message header for an empty
  session rather than fabricated text.
- protocol.SessionExport and RunStep.SessionExport are stored in a new
  step_session_exports table (CREATE TABLE IF NOT EXISTS, so an old database
  gains an empty table with no migration) loaded through the existing main
  SELECT alongside the other per-step evidence and deleted by run retention.
- internal/server/runner.go exports after the post-stage filediff capture and
  before scanArtifacts, with context.WithTimeout(context.WithoutCancel(ctx),
  10s); it never waits for session idleness and a failure or a Pi stage (no
  native export path) records a sanitized diagnostic and continues, never
  changing the stage status, outcome, target, timing or result validation.

Reflected where it belongs: the packaged skill references
(internal/author/skill/references/operations.md and delivery.md) carry the new
Session export rules and the run-artifacts bullet, and docs/stage-artifacts.md
documents the names, the <run>/<step> paths, the served URL, the caps, the
truncation labels, failure isolation and the Pi limitation. The packaged
templates (examples/*.md) only tell a stage to save its own artifacts and say
nothing about the server-written session export, so none needed updating; no
new reference file was added, so install.go's managed inventory is unchanged.

Shared documentation: README.md's per-step artifacts sentence is now stale - it
should name the exported session alongside images, screenshots, reports and
logs. It is deliberately not committed here; the shared documents are folded by
the single documentation writer.

Checks: gofmt -l on the touched packages produced no output; go vet ./...
passed; go test -race -count=1 ./... passed.
2026-10-17 19:40:43 +01:00
alan b568c86d13 Merge lane-retry: record the chat end-to-end verification 2026-10-17 18:02:06 +01:00
alan 976169e413 Record the chat end-to-end verification record
Add docs/chat-verification.md, the required record for the chat verification brief: per-flow table (flow, result, evidence path, notes), the known tree-level gaps, and the section on what could not be verified and why. Verification only; no app behaviour changed.

Checked: packaged templates (internal/author/skill/references/) do not mention this record - no template or skill reference needed updating. Shared README and topic docs are intentionally not touched (single-writer fold).
2026-10-17 18:02:00 +01:00
alan 3ffc126bf1 Merge lane-app2: split the Android run view and app shell into files by concern
Pure move of RunDetailScreen.kt (847 -> 342) and PipelinesApp.kt (1003 -> 405)
into files by concern with no behaviour change: five run tabs plus the header,
and the destination pill and destinations separate from the shell that hosts
them. Same package, same composable names and signatures, same call graph and
rendering; only private -> internal visibility widenings. Verified with
:app:assembleDebug and the unit suite (545 tests, 0 failures).
2026-10-17 17:11:56 +01:00
alan d088670d9c Merge main into lane-app2: combine the run/shell split with main's retention and review-contract work
Brings main's retention store/CLI, review-contract and notification work
(internal/pipeline, internal/cli, internal/server, internal/author/skill/
references) together with this branch's pure move of the Android run view and
app shell into files by concern. No overlapping paths, so no conflict; the
merge was clean and the run/shell split is unchanged.
2026-10-17 17:10:25 +01:00
alan 9f7c4a8c77 Split the run view and the app shell into files by concern
Pure move of two oversized Android UI files into smaller files by concern,
with no behaviour change:

- RunDetailScreen.kt 847 -> 342: the run header and ConfirmDialog stay; the
  five run tabs move out to RunSummaryTab.kt, RunGraphTab.kt,
  RunFieldSectionsTab.kt, RunEvidenceTab.kt and RunTimelineTab.kt.
- PipelinesApp.kt 1003 -> 405: the shell/scaffold, NavHost and hoisted state
  stay; the destination pill and the three destinations move out to
  DestinationBar.kt, PipelineDestination.kt, RunsDestination.kt and
  TemplatesDestination.kt.

Same package, same composable names and signatures, same call graph and
rendering. The only textual edits are eleven private -> internal visibility
widenings on declarations now called across the new file boundaries. No
strings, colours, spacing tokens, tests or entry points changed.

Verified with `gradle :app:assembleDebug --no-daemon` (BUILD SUCCESSFUL) and
`gradle :app:testDebugUnitTest --no-daemon` (545 tests, 0 failures, 0 errors,
0 skipped).

Checked packaging that could go stale with this change:
- internal/author/skill/references/ (the packaged authoring skill references):
  none mention these files or any Android UI symbol, so nothing to update.
- packaged templates: not touched and none reference the split files.
- android/README.md: its historical prose still names some now-stale file
  locations; left unedited because the shared documentation is folded by a
  single writer and this commit's job is the move itself.
2026-10-17 17:10:10 +01:00
alan a2e22d00ab Merge lane-srv3: make advisory review findings non-blocking and bound retryable implementer blocks
Brings the definition-level review-loop control change and its server tests into
main: the reviewer advisory -> next stage edge for non-blocking notes, the
blocked_retryable -> implementer self-edge bounded by {"max_visits":5}, and the
unchanged rejected -> implementer limit. No production Go code changed; the new
internal/server/review_contract_test.go and the shared test seams cover it.
2026-10-17 17:08:10 +01:00
alan 476ecc781c Merge main into lane-srv3: combine the review-loop control change with main's notification and chat work
Keeps this branch's advisory review edge, bounded blocked_retryable implementer
edge and their tests alongside main's run-attention/ntfy notification work, the
split of the Android chat conversation screen, and the retention/history changes.
No conflicts: the two sides touch disjoint files.
2026-10-17 17:07:17 +01:00
alan e70c94e8dd control: make advisory review findings non-blocking and bound retryable blocks
Cut the review loop's repeat cost and make a blocked stage actionable, at the
definition level only, with the runner's existing visit counting and caps.

The published maintenance, quick and focused pipelines gain a reviewer
`advisory -> next stage` edge for non-blocking notes, so an advisory-only review
continues the run instead of buying another implementer visit; `rejected ->
implementer` and its unchanged {"max_visits":3,"on":["rejected"]} limit keep a
must-fix finding looping and still terminate. The implementer gains
blocked_retryable -> implementer with {"max_visits":5,"on":["blocked_retryable"]}
for a transient environment/tooling/device problem a fresh attempt could
survive, while blocked -> #failure stays terminal. The cap is at least the
reviewer's rejection budget so the implementer's own pre-execution cap cannot
preempt the reviewer's rejected control.

No production Go code changed. New tests in internal/server/review_contract_test.go
cover advisory-only never revisiting the implementer, must-fix still looping to
the reviewer limit, the implementer cap not preempting the reviewer, retryable
blocks bounded then failing closed, a retry that recovers, and a terminal block
failing immediately; concurrency/control/human tests share the new submitRunner
and startRun seams.

Documentation checked: internal/author/skill/references/control.md and
docs/harnesses-and-control.md carry the new edges and the visit-cap rule;
no packaged template defines these pipelines (they are published immutable
versions), and docs/model-results.md needs no change because the {outcome,output}
result contract is unchanged. README and other shared docs deliberately untouched.

Verified: go build ./... and go test -count=1 ./... pass.

Residual limitation: the must-fix-vs-advisory split is carried by the prompt
contract, not a machine-readable marker, because the recorded findings have none;
a model that still returns rejected for advisory-only notes would still buy a
visit. All 18 recorded implementer blocked runs classify terminal, so the
blocked_retryable edge recovers 0 of them.
2026-10-17 17:06:51 +01:00
alan 65b0d87d85 Merge lane-app2: split the chat conversation screen into files by concern 2026-10-17 16:56:33 +01:00
alan 70270fa90e Split the chat conversation screen into files by concern
Move ui/chat/ChatScreen.kt (1864 lines) into ten files by concern with no
behaviour change: ChatScreen.kt keeps the destination and the shared chat
geometry tokens (84 lines); ChatListPane, ChatCreatePane, ChatOpenStrip,
ChatConversationPane, ChatTranscript, ChatComposer, ChatToolCalls,
ChatDiffCard and ChatApprovalCard take the session list, new-chat picker,
open-conversation strip, conversation header, transcript, composer, tool
chips and the cards.

Pure move: same package, same composable names and signatures, same call
graph. The only substantive edits are per-file imports and private->internal
widenings needed for the cross-file calls; review confirmed identical
declaration sets and an equal line multiset. :app:assembleDebug and the full
unit suite pass (545 tests, 0 failures, 0 skipped) and the built APK is
byte-identical (same sha256) to the published artifact.

Checked before committing:
- Packaged templates: this repository carries no packaged template tree, so
  nothing to update.
- Packaged authoring skill references (internal/author/skill/references/):
  none reference the chat UI internals; nothing to update.
- android/README.md still cites ChatScreen.kt inner declarations
  (ChatScreen.MessagePart, rememberElapsedMillis, ChatConversationPane) that
  this move relocated; left unedited for the single documentation writer.
2026-10-17 16:56:19 +01:00
alan 20ff5a47f5 Android: stand the destination pill down in an open chat conversation
Lands lane-app2's pill-standdown work: the floating destinations pill is hidden
while the Chat destination shows an open conversation and stays everywhere else,
with the bottom reserve tracking the drawn pill so content neither jumps nor
leaves a gap. Includes the lane's merge of main and its tests.
2026-10-17 16:27:51 +01:00
alan 1752351dbc Merge main into lane-app2: combine the pill standdown with main's run-title and conversation work
Brings main (c5b0de1) into the pill-standdown lane. Main added the whole-title
run view / two-line list rows (RunIdentity, RunTitlesTest) and the readable
conversation work (ChatFormat, ChatScreen, ChatStore, ChatTranscriptTest). Those
are disjoint from this lane's destination-pill change, so the Kotlin sources
auto-merged; only android/README.md conflicted, where both sides appended a new
dated section to the end of the item log.

Resolved android/README.md by keeping both intents: the lane's "Destination pill
stands down in an open conversation" section and main's "Run title readability"
section are both retained, in that order. No conflict marker remains and nothing
from either side was discarded.

Verified after resolving: gradle :app:testDebugUnitTest --offline --no-daemon ->
BUILD SUCCESSFUL, 60 suites / 545 tests / 0 failures / 0 errors / 0 skipped; and
gradle :app:assembleDebug --offline --no-daemon -> BUILD SUCCESSFUL.
2026-10-17 16:27:05 +01:00
alan 3e14baebd7 android: stand the destination pill down in an open chat conversation
The floating destinations pill was drawn over the bottom of every screen,
including an open chat, where it sat on the composer and the newest message
and competed with the send/stop controls. It now stands down while the Chat
destination shows an open conversation and stays everywhere else, unchanged.

- One rule: `destinationPillVisible(currentRoute, conversationOpen)` is false
  only for `chat` with an open conversation. `conversationOpen` is the new
  `AppViewModel.conversationOpen`, a distinctUntilChanged boolean derived from
  the same ChatStore the chat surface renders, so a background chat never hides
  the pill elsewhere and a streamed delta never recomposes the app shell.
- The space, not just the pill: `destinationPillReserve(pillVisible)` returns
  the named DESTINATION_PILL_RESERVE while drawn and 0.dp while hidden, so the
  content Column clears a drawn pill and leaves no empty band when it is gone,
  and no frame reserves a gap behind a hidden pill or draws one over content it
  does not clear. Keyboard-open and the IME padding are unchanged.
- Escapability untouched: the top-bar "Back to chats" arrow, ChatScreen's
  PredictiveBackHandler and SlidingPaneStack.onPopTo remain the way out.
- No other pill behaviour changed: destinations, selection indicator,
  morph-into-search and every other screen are as before.

Checked for staleness: none of the packaged templates or the packaged authoring
skill references (internal/author/skill/references) mention the destination pill,
so no template or reference needed updating for this Android-only change.

Tests: PipelinesNavTest gains thePillStandsDownOnlyWhileAConversationIsOpen and
theReserveTracksTheDrawnPillSoContentNeitherJumpsNorLeavesAGap.
2026-10-17 16:25:22 +01:00
alan 2ffe87cbba Merge branch 'main' into lane-srv3 2026-10-17 16:20:08 +01:00
alan 4908452a74 retention: report removed runs and follow a symlinked artifacts root
Fix two honesty gaps in run-history retention that the implementer stage
left uncommitted on top of 14175eb:

- Populate RemovedRuns, RemovedRunCount, RemovedArtifactFiles/Bytes and
  Applied right after the row transaction commits, before staging cleanup.
  A cleanup failure must not report a successful row/artifact removal as
  zero removed, and staging leftovers are excluded from SpaceReclaimedBytes.
  A failed VACUUM after removal now reports the artifact bytes actually
  removed while claiming no database pages.
- Stage artifacts through os.Stat instead of os.Lstat so a symlinked
  artifacts root is followed: the report sized that directory, so apply
  removes through it too instead of counting bytes it never deleted.

Tests cover post-commit staging-cleanup failure reporting, staging through a
symlinked artifacts root (including no staging directory left in the link
target), and an honest reclaim failure after removal.

Checked documentation surfaces:
- docs/cli.md: measured example refreshed with the current before/apply/after
  output and the symlink/staging/VACUUM reporting described accurately.
- README.md: retention prose (explicit, never automatic, protected runs,
  artifacts go with the run) is unchanged and still correct.
- internal/author/skill/references/operations.md: operator-only retention
  summary describes the same behaviour; no user-facing surface changed, so
  no reference update was needed.
- Packaged templates: retention is a CLI/store capability with no template
  change, so nothing to update. internal/author/install.go inventory
  unchanged (no reference added or renamed).

Verification: gofmt clean on the touched Go files, git diff --check clean,
go vet ./internal/pipeline clean, and go test ./internal/pipeline -run
'TestRetention' -count=1 passing.
2026-10-17 16:19:39 +01:00
alan 890d267c71 run attention: publish to ntfy and surface what needs the operator
Nothing told the operator that a run was waiting for a person or had failed; they
found out by going looking. A run that needs attention now reaches the ntfy they
already run, and the app answers "what needs me now" in one live, ordered surface.

Server (smallest change, reusing the existing publisher):
- internal/server/notify.go adds notifyRun, called from finishRunState (failed)
  and when a run parks on a human (runner.go runLoop). It publishes to the same
  already-configured `system` destination through the unchanged stage.PublishNtfy,
  so there is no second publisher, topic or service and the token handling is the
  stage's own. runAttentionEvent maps only waiting and failed; queued, running,
  succeeded, canceled and interrupted publish nothing.
- No storms: runner.attentionSent records sequence:event per run before publishing,
  so a run that stays waiting is never republished on a re-request or restart, and
  a stage notify policy that already covers the same event marks it first so the
  run-level default is suppressed. The set is dropped when the run is terminal. A
  delivery failure is logged, never fails the run, and is not retried.
- The payload names the run and pipeline and carries a click action
  pipelines://run/<id> (validated: absolute URL, no userinfo, no fragment, no
  credentials). PublishNtfy gained the optional click parameter; existing callers
  pass "".

App:
- AndroidManifest/MainActivity declare the pipelines://run/<id> deep link
  (singleTop); runIdFromDeepLink parses it and PipelinesApp opens that run once,
  clearing the link. It opens a run; it starts nothing.
- ui/Attention.kt is the pure model (status -> Decision/Failed/Finished or
  nothing, ordered by kind then newest-first) and ui/components/AttentionSurface.kt
  is the floating indicator plus bottom sheet. It is derived from the same run
  events the server already pushes, so an entry appears with no refresh and clears
  when resolved; a finished run clears once looked at, and any entry can be
  dismissed, persisted in SettingsRepository. The existing destinations, pill and
  bottom strip are untouched and no competing navigation surface is added.

Checked before committing:
- Packaged authoring skill references: internal/author/skill/references/
  notifications.md documents the automatic run-attention notifications and the
  app surface. The only packaged "template" carrying notify is that reference; no
  pipeline definition template exists to update and install.go's managed file list
  is unchanged (notifications.md already existed).
- Repository guidelines: docs/ntfy.md gains an "Automatic run-attention
  notifications" section and no longer claims "No block means no notifications";
  the top-level README phone-notifications note now says a waiting/failed run
  notifies automatically; android/README.md gains the dated feature section and
  supersedes the previous section's note that the attention surface was absent.
- docker.md, install docs and the CLI/TUI docs describe mechanisms this change
  does not alter; left as they are.

Tests: go test ./internal/server/... ./internal/stage/... ./internal/author/...
all ok; notify_test.go covers the event mapping and the real HTTP delivery
(destination, topic, click, no duplicate). Android :app:testDebugUnitTest ->
BUILD SUCCESSFUL, 58 suites / 531 tests / 0 failures (new AttentionTest, 13 cases,
covering ordering, appearing from a push, clearing on resolution, dismissal, the
empty case, persistence and the deep link). Device screenshots and the phone's own
notification are visual review's per the brief's device policy.

Scope: android/ plus the smallest server change; no new dependency, no run started
from the app, no installer or Docker change.
2026-10-17 16:11:57 +01:00
alan c5b0de15ba Merge lane-chat4: keep run-title readability and the waiting human decision
Merge lane-chat4 (d13f359, "make a run's title readable: whole in the run
view, two lines in the list") into main (cd87982, "answer a run's waiting
human decision from the phone"). Both intents are kept.

Conflict resolution:
- android/README.md (the only conflicted path): kept both sections, HEAD's
  "Answer a waiting human decision from the phone" first and lane-chat4's
  "Run title readability" second, with nothing removed. Each heading appears
  exactly once.
- StageDetailPane.kt and RunDetailScreen.kt were changed on both sides and
  auto-merged: the staged tree carries the incoming title line budgets plus
  the local DecisionPrompt wiring (the stage pane surfaces a decision only
  for its own stage; the run detail surfaces it above the tabs).
- The remaining incoming files (RunIdentity.kt, RunHistoryScreen.kt,
  RunIdentityTest.kt, RunTitlesTest.kt) and the local files are one-sided and
  taken whole. The staged tree differs from HEAD by exactly the incoming
  diff and from MERGE_HEAD by exactly the local diff, so no side was dropped
  or duplicated.

Checks (JDK 17, ANDROID_HOME=/Users/alan/Library/Android/sdk, Gradle 9.7.1
--no-daemon --offline):
- gradle :app:testDebugUnitTest :app:assembleDebug -> BUILD SUCCESSFUL.
- 59 result XMLs aggregate to 530 tests, 0 failures, 0 errors, 0 skipped;
  RunTitlesTest 4/0 and RunIdentityTest 6/0.
No conflict markers remain.

Staleness check: the incoming work is android/-only. android/README.md is
the topic doc and now carries both sections; no packaged template, the repo
README, the other topic docs, or the packaged authoring skill references
describe this run-title UI, so none needed updating (the delivery reference's
Android build/publish example is unchanged and still accurate).
2026-10-17 16:00:11 +01:00
alan d13f359e7b android: show the run title whole in the run view, two lines in the list
A run's title is derived from its prompt, so it is often long. Give it the
room it needs where the operator reads the run, and a deliberate clamp where
it is one of many. Android only; no new dependency (the declared
material-icons-extended only), no Pipelines server/Go/installer/Docker file
touched, and no run started from the app.

- Run view shows the whole title. The run-summary title line states its
  intent with RUN_VIEW_TITLE_LINES (Int.MAX_VALUE) and TextOverflow.Clip, so
  it wraps over as many lines as it needs and is never ellipsised; the
  fixed-height M3 app-bar copy stays a compact one-line label.
- Runs-list rows grow, then clamp. RunRow's title went from maxLines = 1 to
  RUN_ROW_TITLE_LINES (2): a longer title takes a second line before it
  ellipsises, with the glyph, status chip and meta line still aligned and the
  selection highlight and tap target unchanged.
- Stage-pane context line. StageDetailPane's run-label line went from
  maxLines = 1 to STAGE_RUN_LABEL_LINES (2); the pane is compact context, not
  where the whole title lives.
- Named budgets. ui/RunIdentity.kt holds the three budgets so the choice is
  deliberate at each call site. RunTitlesTest (4 cases) pins them and asserts
  a clamping place is never more generous than the run view; RunIdentityTest
  gained a case that runLabel/runIdentity never shorten a long title.

Checked for stale copies: android/README.md gained a dated section for this
change (its existing "Run title beside the pipeline name" section still holds,
it just did not describe line budgets). The top-level README and docs/ do not
document the app's run-title rendering, and the packaged templates and
internal/author/skill/references/ packaged skill describe Pipelines authoring
and Android APK delivery, not this UI, so none of them needed updating.

Evidence (JDK 17, Gradle 9.7.1 --offline --no-daemon): :app:testDebugUnitTest
BUILD SUCCESSFUL, 57 classes / 513 tests / 0 failures / 0 errors / 0 skipped
(RunTitlesTest 4/0, RunIdentityTest 6/0); :app:assembleDebug BUILD SUCCESSFUL,
app-debug.apk 18,486,624 bytes sha256 2b23762b54f0..., published as this run's
pipelines-debug-wip-2bc00a2.apk and served at
http://10.0.0.75:8080/artifacts/278/4/pipelines-debug-wip-2bc00a2.apk.
2026-10-17 15:49:55 +01:00
alan cd87982a63 Merge lane-app2: keep the lane's reviewed work
Combine the reviewed Android work already on main (conversation reading:
markdown, collapsed reasoning, one identity) with the incoming lane's
"answer a waiting human decision from the phone" change (the waiting
run/step sync, HumanDecision/DecisionPrompt, the decide_run envelope and
the waiting RunState) over merge base d48175a.

The only conflicted file, android/README.md, now carries both sections
exactly once ("Conversation reading: markdown, collapsed reasoning, one
identity" and "Answer a waiting human decision from the phone") with no
bullet or paragraph dropped. The auto-merged Kotlin tree carries both
features; no conflict markers, duplicated blocks or dead code remain. The
resolution also restored the blank line between the two README sections.

Verified on the merged tree (JDK 17 from Homebrew openjdk@17,
ANDROID_HOME=/Users/alan/Library/Android/sdk, offline, no daemon):
- gradle :app:testDebugUnitTest --rerun-tasks -> BUILD SUCCESSFUL; JUnit
  XMLs total 58 suites / 525 tests / 0 failures / 0 errors / 0 skipped.
- gradle :app:assembleDebug -> BUILD SUCCESSFUL;
  app/build/outputs/apk/debug/app-debug.apk present (18,519,392 bytes).

Docs check: android/README.md records the resolved change. No packaged
template, README/topic doc or packaged authoring skill reference describes
the Android decision surface or changed as a result, so nothing there
needed updating. Nothing was deliberately left uncommitted.
2026-10-17 15:47:04 +01:00
alan 14175eba70 retention: explicit run-history and artifact retention
Add `pipelines retention report` (strictly read-only) and
`pipelines retention apply` (explicit, approval-gated removal) with an age
and/or count policy, protected-run rules, atomic single-transaction removal
and honest database space reclaim. Nothing prunes automatically.
2026-10-17 15:45:46 +01:00
alan f782c51c18 android: answer a run's waiting human decision from the phone
A human stage parks its run on a person, and the terminal client could answer
it while the app had no decide request at all. This adds the missing piece so a
waiting run is answerable from the phone.

Protocol/repo:
- PipelinesRepository.decideRun sends the same `decide_run` request the CLI and
  TUI build: stage (optional; the server infers it), option, optional feedback,
  with the exact wire names internal/protocol/message.go declares. Message gains
  the stage/option/feedback fields; no second mechanism is invented.
- A waiting run/step now forces the existing push-driven full get_run
  (runDetailNeedsFullSync), so the waiting step's recorded options/prompt
  surface live with no refresh and no server field added.
- RunState.Waiting (label "waiting", FrontHand glyph, violet palette entry)
  makes the waiting state honest in the list and summary.

UI:
- DecisionPrompt is the one shared surface: a "Waiting for your decision" card
  with a deliberate Decide action, plus the sheet showing the run and waiting
  stage, the author's instructions, every option as written with the label it
  routes to, an optional feedback field, and a Confirm decision button that is
  disabled until an option is chosen. It sits above the run detail's tabs and at
  the top of the waiting stage's pane, reachable from where the operator already
  is.
- Answering applies the returned run detail immediately, so the new stage shows
  without a manual refresh. A refusal keeps the sheet open with the server's own
  message verbatim and silently re-reads the run rather than faking success.
- Pure helpers pendingDecision, DecisionOption, DecisionDraft (the confirm gate)
  and decisionRefusalMessage; Tests: HumanDecisionTest and DecisionTest (13 new)
  plus waiting cases in RunEventsTest and RunStatusTest.

Scope: android/ only. No server/Go/installer/Docker change, no new dependency
(the glyph is from the already-declared material-icons-extended), no run started
from the app, no adb or device use.

Reflected where it belongs: android/README.md gained the dated feature section
for this change. Checked and needing no update: the packaged pipeline templates
(the change touches no pipeline definition), the repository's top-level README
and docs/ topic docs (none enumerates the app's operations or the decide
protocol; the TUI/CLI wording they carry is unchanged), and the packaged
authoring skill references (the decide protocol is unchanged and already
documented; no reference describes this app surface).
2026-10-17 15:38:58 +01:00
alan bd6a89d914 Merge lane-chat4: keep the lane's reviewed work
Combine the reviewed chat work already on main (session model in the
header, agent mirroring, chatHeaderMeta, tagged-label intent) with the
incoming lane's "make the conversation readable" change (markdown/part
rendering, collapsed reasoning, one conversation identity,
openChatsBeside, ChatTranscriptTest) over merge base 5ac196c.

Both intents survive in every conflicted file: android/README.md,
ChatFormat.kt, ChatScreen.kt (session header and conversation header),
ChatStore.kt and the new ChatTranscriptTest.kt. No conflict markers or
duplicated blocks remain.

Verified on the merged tree (JDK 17, ANDROID_HOME=/Users/alan/Library/Android/sdk,
offline, no daemon, --rerun-tasks):
- gradle :app:assembleDebug -> BUILD SUCCESSFUL
- gradle :app:testDebugUnitTest -> BUILD SUCCESSFUL; JUnit XMLs total
  512 tests, 0 failures, 0 errors, 0 skipped (7 in ChatTranscriptTest).

Docs check: android/README.md already records the resolved change, and no
packaged template, README/topic doc or packaged authoring skill reference
describes the Android chat surface, so nothing there needed updating.
2026-10-17 15:32:00 +01:00
alan 2bc00a2a94 android: make the conversation readable — markdown, collapsed reasoning, one identity
Fix the three reading problems in the chat conversation view. Android only;
no new dependency (the declared material-icons-extended only); no server,
Go, installer or Docker file touched and no run started from the app.

- Markdown reaches the transcript. Assistant text already went through
  MarkdownText inside a private composable; name the decision as the pure
  ChatFormat.partRendering(part) (MARKDOWN/REASONING/PLAIN/HIDDEN) and have
  MessagePart consume it. Text outside the renderer's documented subset and
  unknown part kinds still render as their own text (PLAIN); blank parts
  render nothing (HIDDEN).
- Reasoning collapsed by default. ReasoningBlock is now one compact, muted
  line per part (icon, label, chevron) that expands on tap to the muted
  text. Expansion is hoisted to the conversation pane as the pure
  ReasoningExpansion set keyed per stable part key, so a part keeps its
  state across scroll/disposal and every part starts collapsed in a newly
  opened chat. A running turn's streaming reasoning stays collapsed under a
  live "Thinking…" label, signalling progress without competing with the
  answer.
- One identity in the header. ChatFormat.conversationHeader(thread) builds
  the app-bar title plus only context (labelled kind chip from the server
  tag, activity, directory, model); the app bar and the context line read
  the same value. openChatsBeside drops the active chat from the open-chat
  strip so its title is shown once; every other open chat stays one tap
  away and the session list is unchanged.

Tests: new ChatTranscriptTest (7 cases) plus the existing ChatFormatTest —
the markdown subset reaches the renderer from a ChatPart, text outside the
subset and an unknown kind still render, reasoning starts collapsed and
toggles per part, the header names the session once, and the strip offers
only the other open chats.

Checked, and none needs an update: the packaged templates carry no Android
chat surface; the repository guidelines (README, docs/) document the server
and CLI, whose behaviour is unchanged — docs/cli.md's note that Android
rendering of the tag is out of scope for the server change still holds; and
the packaged authoring skill references (internal/author/skill/references/)
describe delivery/verification generally, none of which this UI change
alters. android/README.md records the new behaviour.

Verified: `gradle :app:testDebugUnitTest :app:assembleDebug --no-daemon
--offline --rerun-tasks` → BUILD SUCCESSFUL; JUnit XMLs total 508 tests, 0
failures, 0 errors, 0 skipped. app-debug.apk sha256
0df6899429a8f5632ec568340dddb63a5617b1a04af19f52c6ebb793470a0b23.
2026-10-17 15:14:52 +01:00
alan d48175a4d9 Merge lane-app2: keep the lane's reviewed work 2026-10-17 15:03:22 +01:00
alan 5feebe3684 Merge branch 'main' into lane-app2 2026-10-17 15:03:14 +01:00
alan 9b67e55d70 chat: name the session's model in the conversation header
The conversation header showed only the thread title, so inside a chat there
was nothing saying which model was answering. It now renders a second line
from server-reported values only.

- ChatFormat.kt: add chatHeaderMeta(thread), joining the reported model, the
  session's kind tag and the directory with " · "; blank parts are omitted so
  no model is ever claimed when the server did not report one. Refactor
  sessionTagLabel to a tag-value overload so the list row and the header share
  one tag mapping.
- ChatStore.kt: ChatThread gains the tag field; sessionsLoaded and open fold
  the server's model/agent/tag into already-open threads, and ensureThread
  seeds them, so the header never shows a stale or missing model.
- ChatScreen.kt: the conversation top bar title becomes a two-line column with
  the meta line in the shared pipelinesText().meta role; the create flow states
  plainly that this server has no request for choosing a chat's model.
- No model chooser is shipped. The server forwards no model/agent on
  chat_prompt and exposes no model/agent catalogue, so shipping a picker would
  be a control that does nothing; android/README.md records the exact server
  change it would need.
- Tests: ChatFormatTest covers chatHeaderMeta (reported model/tag/directory,
  and never claiming an unreported model) and the shared tag mapping;
  ChatSessionManagementTest covers the open thread carrying the reported
  model/agent/tag and a list refresh folding a new model in.

Checked before committing:
- Packaged templates: none exist (the author package embeds only skill/SKILL.md
  and references/*.md; no *.tmpl/*.template in the tree) - nothing to update.
- Repository guidelines: android/README.md updated with the change and its
  evidence; the root README and docs/ describe the server and CLI, not the
  Android chat surface - no update needed.
- Packaged authoring skill references (internal/author/skill/references/): none
  describes the Android chat surface - no update needed.

android/ only, no new dependency beyond the declared material-icons-extended.
2026-10-17 15:03:00 +01:00
alan 5ac196c68d Merge lane-srv3: keep the lane's reviewed work 2026-10-17 14:57:52 +01:00
alan b2e920a150 Merge branch 'main' into lane-srv3 2026-10-17 14:57:28 +01:00
alan 7b72b8f20f stage: retry pre-admission harness reach failures and widen repair deadline
Treat a failure to reach the harness before any prompt or tool call is
admitted (connecting or creating the session) as a distinct retryable
reach failure, so a transport blip at the first stage no longer ends a
mutating run; keep post-admission readback/poll/agent failures retried
only on an explicit read-only stage and never replay admitted tool work.
Preserve the true cause when the context is already done (join ctx.Err
with the typed transport error) and report a sanitized unknown provider
error name/status instead of a blanket summary.

Make the isolated format-repair deadline proportional to the stage
timeout (floored, capped and clamped to remaining minus a margin) so a
slow-but-repairable result is recovered without ever extending the stage
deadline; the bounded ladder, value guard, deny-all formatter session,
cumulative usage accounting and no-tool-replay rule are unchanged.

Update docs/model-results.md, docs/pipeline-performance-review.md and the
packaged skill references; add stage, opencode and server fixtures.
2026-10-17 14:51:09 +01:00
alan ff1b6f5415 Merge lane-app2: keep the lane's reviewed work 2026-10-17 14:50:52 +01:00
alan 8e6cb39284 Merge branch 'main' into lane-app2 2026-10-17 14:50:49 +01:00
alan 355fe4e908 chat: search the session list and group it by directory
With a day's sessions the list was a flat, unsearchable wall in recency
order, so the chat the operator wanted was the one that could not be
found, and sessions of one repository were scattered through it.

Narrow the list as the operator types and keep same-repository chats
together, using the control and empty-state patterns the other lists
already use:

- ChatListFilter.kt adds the one pure derivation: sessionMatchesQuery /
  filterChatSessions match a case-insensitive substring over a session's
  title and directory, a blank query narrows nothing, and the survivors
  keep their incoming (recency) order. groupChatSessionsByDirectory groups
  the narrowed list by directory, each group keeping that order and the
  groups ordered by their first (most recent) session, so the top still
  leads with the newest activity.
- ChatState.sessionQuery (set through ChatStore.searchSessions /
  AppViewModel.setChatSessionQuery) is a display narrowing only: the
  server's list, open conversations and the activity marks are untouched.
  filteredSessions is visibleSessions narrowed by the query.
- ChatListPane renders the existing FilterMenu with one OutlinedTextField
  and a Clear search reset (the pipelines/runs filter pattern), shows a
  directory heading per group only when more than one directory is
  present, and renders the shared EmptyState ("No chats match ...") with
  a Clear search action when nothing matches. The trailing New chat
  action is never hidden while the list is narrowed, and every row still
  shows its directory.

Tests (ChatListFilterTest, 9 cases): the match rule over title and
directory, that a narrowing preserves the recency order, grouping by
directory (order by the first session, order kept inside a group, a
single directory yields one group, a blank directory groups too), and
through the store that searching narrows filteredSessions, clearing
restores the full list, the server's list is untouched and a filtered
session still reports its activity mark.

Checked before commit: android/README.md was updated in this change with
the behaviour, tests and evidence. The packaged authoring skill references
(internal/author/skill/references/) document the Pipelines server, its
chat_* protocol surface and authoring, none of which changed - this is a
client-side narrowing over the already-listed sessions - so none needed
updating, and the internal/author/install.go managed reference inventory
is unchanged. No repository template or root/topic doc describes the
Android session list, so none was stale.

android/ only; no dependency added beyond the already-declared
material-icons-extended; no run is started from the app.
2026-10-17 14:50:30 +01:00
alan 7c31a979b5 Merge lane-app2: keep the lane's reviewed work 2026-10-17 14:40:51 +01:00
alan bb486acc11 chat: mark new activity in the session list
With several operator sessions the list gave no sign of where a reply
arrived: an idle chat and one streaming a reply right now looked the same,
so the operator lost the conversation they were in.

Add a per-session read state that the session list derives from data it
already receives, and render it as a three-state activity badge:

- ChatSeenState (ui/chat/ChatSeen.kt) keeps a per-session recency watermark
  (the newest updated_at the operator has read) plus the ids that moved on
  while the app was open. It is persisted as one opaque JSON preference
  (SettingsRepository chat_seen, observed by AppViewModel.observeChatSeen),
  the same way ChatSessionOverrides is, so the marks survive a restart and
  not only a reconnect.
- ChatState.isUnseen marks a background session that carried a live mark
  (a pushed chat_event/permission frame) or, if never opened here, is newer
  than its stored watermark; first sight of a session is seeded to its
  current recency so a pre-existing chat is not reported as new. Opening,
  activating and closing a conversation reads it and clears the mark;
  history for the active chat advances the watermark to the newest server
  message. No server request is added.
- ChatFormat.sessionActivity(running, unseen) is the one pure derivation
  (streaming outranks finished-unseen, which outranks idle) and
  SessionActivityBadge renders it as Streaming/New/Open beside the
  unchanged kind chip and directory line. Most-recently-used order is
  untouched.

Tests (ChatActivityTest): unseen is marked, opening clears it including in
the persisted state, the derivation distinguishes streaming/finished-unseen/
idle, and the seen state survives an encode/decode into a fresh store.

Checked before commit: android/README.md was updated in this change with the
behaviour, tests and evidence. The packaged authoring skill references
(internal/author/skill/references/) describe the Pipelines server and its
chat_* protocol surface, neither of which changed - this is a client-side
derivation over existing frames - so none needed updating, and the
internal/author/install.go managed reference inventory is unchanged. No
repository template or root/topic doc describes the Android session list,
so none was stale.

android/ only; no dependency added; no run is started from the app.
2026-10-17 14:40:02 +01:00
alan 5adc961f88 Merge lane-chat3: keep the lane's reviewed work 2026-10-17 13:36:49 +01:00
alan 829d6d3551 chat: attach files to a message from the composer
Let the operator attach one or more files to the next chat message and send
them with it. The platform multi-document picker returns content URIs; the app
resolves only each file's name, size and MIME (confirming it can be opened) and
holds the attachments per chat, exactly like the draft. Nothing is read or
transmitted until the message is sent.

- Composer: an attach action, a strip of removable chips (image thumbnail or
  file glyph, name, size, remove), and a send that is blocked while any
  attachment is flagged.
- Wire: one shared builder, ChatProtocol.promptRequest(sessionId, text, files),
  carries the attached URIs on the chat_prompt frame, in attachment order and
  omitted for a text-only prompt so that shape is unchanged.
  PipelinesRepository.chatPrompt takes the same list.
- Transcript: a sent turn carries each attachment as a ChatProtocol.PART_FILE
  part, drawn through the existing UserParts -> FilePart display path rather
  than a second rendering.
- Honest failures: an unreadable or over-24-MiB file is attached with its reason
  and blocks the send; a server rejection takes the optimistic bubble back out
  and returns the files flagged with the server's message. Attaching never
  transmits on its own, and attachments clear once the message is sent.

Review follow-ups in the same slice: the composer now uses ui/Format.kt's
humanBytes instead of a duplicate formatter; optimistic user-turn ids come from a
monotonic counter so removing a rejected turn cannot re-mint a live key;
restoreAttachments keeps a file attached between send and rejection; the
thumbnail decode catches Exception rather than Throwable.

Checks made for this commit:
- The change is android/ only; the server, its Go source, the installer and the
  Docker files are untouched, no run is started from the app, and no dependency
  was added beyond the already-declared material-icons-extended.
- Packaged authoring skill references (internal/author/skill/references/): no
  update needed. operations.md documents the brokered chat server, which this
  change does not alter; the server still stores user turns as text and ignores
  the prompt's files, so that reference stays accurate.
- Packaged templates (internal/tui, internal/server) and the root README/topic
  docs: no update needed; none describes the Android chat composer. The
  Android-facing documentation lives in android/README.md, which this change
  updates with the attachment slice, its known server-side gap and its tests.

Tests: ChatAttachmentTest (5 cases), ChatAttachmentStateTest (5 cases) and a new
ChatProtocolTest case cover building the request with attachments (and omitting
them for a text-only prompt), removing one, the unreadable and oversized paths,
which files travel with the prompt, the optimistic turn's file parts, clearing
after send, and the rejected path restoring the files flagged. Verified by the
review stage with gradle --offline --no-daemon :app:testDebugUnitTest
:app:assembleDebug -> BUILD SUCCESSFUL, 487 tests / 0 failures / 0 errors /
0 skipped.
2026-10-17 13:35:56 +01:00
alan d1a859ec7d Merge lane-chat2: keep the lane's reviewed work 2026-10-17 12:46:18 +01:00
alan 664e563fca chat: open a conversation at its newest message and follow it
Opening a conversation used to start at the top, so the operator first had to
scroll down past everything already said to find the current turn. The
transcript now opens at its newest message, follows it while the operator reads
the newest part, and offers a jump-to-latest affordance when they have
deliberately scrolled up instead.

- Opening at the newest message. The transcript's list state is created the
  moment the conversation first has content, with its first visible item set by
  chatFirstScroll (ui/chat/ChatScroll.kt): a position the operator left is
  restored and clamped with the app's shared rule (restoredScrollAnchor), and
  every other conversation starts at its newest item. "A position of their own"
  is explicit now: ChatThread.scroll is nullable, null meaning the operator has
  never left a position here, so a chat left at the very top
  (ChatScrollPosition(0, 0)) is restored rather than mistaken for "new", and a
  list state that never held content saves nothing. Placement is unanimated, on
  the list's first measure, and goes through the one scroll path below.
- One scroll path, changed deliberately. The existing follow scroll, the app
  bar's approval jump and the new jump-to-latest all go through
  LazyListState.scrollToEnd(itemCount, animated); when the newest item sits
  entirely below the fold it is brought in first, and any part still below is
  then closed by exactly that distance (closeBottomGap). An item already partly
  visible is only gap-closed, so following a growing stream never bounces. The
  distance is measured against the transcript's content count
  (chatBottomDistancePx), not the layout's stale count, so an item appended
  ahead of the measure that shows it actually arrives in view.
- Follow while reading the newest part. Only the operator's own drag changes
  following (a DragInteraction.Start stops it, a settling Stop/Cancel resumes it
  at or within the threshold, chatFollowsAt); while it holds, an arriving
  message, a streamed delta, a tool chip, a freshly arrived approval card, a
  grown composer or the appearing keyboard re-follows smoothly. The item count
  is read at use time (rememberUpdatedState) so a captured count cannot go
  stale. Programmatic scrolls never touch the list's interactionSource.
- Threshold. CHAT_FOLLOW_THRESHOLD_DP (ui/theme/Dimens.kt) is 32dp: about one
  comfortable line of text.
- Jump to latest. A small Material 3 SmallFloatingActionButton (the
  already-declared KeyboardArrowDown icon, on the shared gutter token) is offered
  only while the view is not following and there is genuinely something below the
  fold (chatShowJumpToLatest), hidden at the bottom or for an empty transcript;
  tapping it re-engages the follow. A pending permission/approval is still
  brought into view as the existing code did - it is the transcript's last item,
  so the follow brings it in while the operator reads the newest part, and the
  app bar's approval action still jumps straight to it.

android/ only: no dependency added beyond the already-declared
material-icons-extended, no run is started from the app, and no Pipelines
server, Go source, installer or Docker file is touched.

Checks: the packaged authoring skill references need no update - they document
the Pipelines server's own contract, not the Android client, and this change is
app-side only, so nothing in them became stale. There are no packaged templates
in this repository. The repository's topic doc for the client, android/README.md,
is updated in this change with the flow, the threshold, the one scroll path and
what remains unverified on a device.

Verified by the review stage on this tree: gradle --no-daemon
:app:testDebugUnitTest :app:assembleDebug -> BUILD SUCCESSFUL, 50 suites / 458
tests / 0 failures / 0 errors / 0 skipped (including the new ChatScrollTest, 11
cases), and the published APK matches the freshly built app-debug.apk
byte-for-byte.
2026-10-17 12:45:37 +01:00
alan 8644ff98a3 Merge lane-chat2: combine operator chat session management with live run updates
Both sides are reviewed work and both are kept:

- android/app/.../ui/AppViewModel.kt: HEAD's live-run push wiring
  (RunStreamState/_runStream, combine(connectionState, settings.workspace),
  subscribeRuns/streamDown/resync, applyRunEvent, scheduleRunsResync/
  scheduleRunDetailSync, observeRunEvents) together with lane-chat2's chat
  management (ChatStore overrides, observeChatOverrides, refreshChatDirectories,
  startNewChat/selectChatDirectory/cancelNewChat/createNewChat,
  renameChat/removeChat/undoRemoveChat). The only textual conflict was the
  import list; combine (HEAD) plus map and ui.chat.ChatSessionOverrides (lane)
  are all kept and all used. No duplicated definitions.
- android/README.md: HEAD's "Live run updates from the socket" section and
  lane-chat2's "Operator chat sessions: choose the directory, list only your
  own" section are both present once, in file order.
- The rest of lane-chat2's chat files (ChatDirectories.kt, ChatOverrides.kt,
  ChatStore.kt, ChatScreen.kt, ChatFormat.kt, protocol Chat/Message, repositories,
  tests) merge cleanly on top of HEAD's work.

Documentation check: android/README.md is updated by this merge and its new
section is consistent with HEAD's. docs/cli.md and
internal/author/skill/references/operations.md already describe the server's
chat_sessions/chat_create/chat_directories surface this client builds on, and
the authoring skill (SKILL.md, references/) contains no Android-client behaviour
to stale, so nothing there needed changing and no packaged reference or
inventory entry was touched. No server, installer or template change is part of
this merge.

Checks (android/, Gradle 8.11.1, --offline):
- gradle :app:testDebugUnitTest --offline --rerun-tasks -> BUILD SUCCESSFUL;
  test-results report 463 tests, 0 failures, 0 errors across 50 suites
  (including ChatDirectoriesTest and ChatSessionManagementTest).
- gradle :app:assembleDebug --offline -> BUILD SUCCESSFUL (debug APK built).

Not verified here: on-device picker/rendering, which the visual-review stage owns.
2026-10-17 11:45:41 +01:00
alan 311a0156d6 chat: choose a new chat's directory and list only the operator's sessions
Starting a chat now asks where first, and the session list is the operator's
own chats alone, told apart by the server's own tag.

- The create flow is a normal pane of the chat stack, not a modal: it loads
  the server's chat_directories (home first, then the directories of previous
  operator sessions, most recently used first) into the shared ListRow, each
  with its full path, and starts on the operator's home
  (directoryChoices/defaultDirectoryChoice). Back, the app-bar back control,
  the footer Cancel and predictive back all leave it without creating
  anything. chat_create is always sent the chosen directory (HOME_DIRECTORY
  "~" for home, the absolute path for a recent), so a session is never
  created in the server's working directory; the server resolves or rejects
  it and its error is shown in the pane.
- The list renders ChatState.visibleSessions: exactly the server's
  chat_sessions (operator sessions only) with the operator's own local
  changes applied; the app adds no ownership guessing. Each row shows its
  directory and the kind chip derived from the server's tag
  (sessionTagLabel, "operator" -> "Operator"); another tag shows verbatim,
  an untagged session shows no chip.
- The brokered protocol exposes no chat rename or delete (no
  chat_rename/chat_delete type and no session endpoint), so both are
  device-local and persisted with the other settings
  (ChatSessionOverrides, KEY_CHAT_OVERRIDES): rename stores a local title
  that wins on later list loads, and "Remove from list" hides the row and
  closes its conversation with an Undo snackbar ("Removed from this list;
  the chat stays on the server."). Nothing is deleted on the server.
- Messages, streaming replies, tool chips, diff cards, approval cards, stop
  and the reconnect path are unchanged.

android/ only: no dependency added beyond the declared
material-icons-extended, no run is started from the app, and no Pipelines
server, Go source, installer or Docker file is touched.

Checks: the packaged authoring skill references need no update - the server
contract this builds on is already documented in
internal/author/skill/references/operations.md ("Brokered OpenCode chat",
committed with lane-chatsrv) and this change is app-side only, so nothing in
it became stale. There are no packaged templates in this repository. The
repository's topic doc for the client, android/README.md, is updated in this
change with the new flow, the honest local rename/removal and what remains
unverified.

Verified: gradle 8.11.1, JDK 17, --offline --no-daemon, from android/;
:app:testDebugUnitTest :app:assembleDebug -> BUILD SUCCESSFUL, 447 tests in
50 suites, 0 failures, 0 errors.
2026-10-17 11:39:11 +01:00
alan 5fafe75267 Merge finish-z02: keep the lane's reviewed work 2026-10-17 11:15:52 +01:00
alan 6a6c1d65fa android: drive the runs list and run detail from server pushes
Replace the Android app's one-second run poll with the server's
workspace-scoped run_event pushes. The runs list, each pipeline row's
last-run line, the run header and the run detail (status, timeline,
stages, artifacts) now advance from the socket instead of polling or a
manual refresh.

- Wire: Message.kt mirrors internal/protocol/runevents.go (subscribe,
  unsubscribe, run_event; RunEventFrame/RunStepDelta). The frames are
  unsolicited and already arrive on the client's events stream;
  PipelinesRepository.subscribeRuns/unsubscribeRuns add the typed
  command, sent via a new PipelinesClient.sendOnly that does not hold the
  send lock waiting for the running server's unreliable subscribe ack.
- One pure fold: ui/RunEvents.kt folds a frame into the list (in place,
  order preserved) and the open detail with one shared status ladder and
  one shared run-field merge. It is monotonic (a stale or duplicate
  delta is dropped whole), reports needsResync for a run the list does
  not hold instead of inventing a row, and only requests a full get_run
  for a settled step or terminal run.
- Wiring: AppViewModel subscribes once per (re)connect and workspace;
  every (re)subscribe re-reads the list and open detail once, because the
  deployed server's subscribe snapshot is partial, then folds the pushes
  on top. Re-reads are push-driven, coalesced and keyed so no push is
  dropped and no timer remains. LiveBadge (RunStream.kt RunStreamState)
  shows honestly live/reconnecting/not live, confirmed by the ack, a
  push or a successful read and dropped when a read fails.
- ui/RunEventsTest.kt pins the delta sequence as pure cases: created run
  not in the list, step started, step finished, run finished, unknown
  run, duplicate/out-of-order deltas, and a reconnect resync.
- android/README.md records the change, the wire mapping and the
  observed limitation of the running server (partial snapshot, no ack
  within 30s), which the client tolerates without inventing a stream.

Checked where the change belongs: android/README.md gained this entry;
docs/cli.md described the Android app as still polling, which this makes
stale, so that sentence now says the app consumes the pushes while the
TUI still polls. The packaged TUI pipeline templates (internal/tui) do
not touch run-state refresh and need no change, and the packaged
authoring skill references (internal/author/skill/references) document
the authoring workflow, not the Android client's run updates, so none of
them needs updating.

Reviewed and approved by the run's review stage (build, unit tests,
Kotlin compile and lint in android/README.md); no merge/rebase/cherry-pick
was in progress and no conflict was present.
2026-10-17 11:15:21 +01:00
alan 8564c2a676 Merge lane-chatsrv: keep the lane's reviewed work 2026-10-17 11:14:52 +01:00
alan 18398dfa5b chat: give the operator their own sessions, separate from run sessions
chat_sessions used to list exactly the OpenCode sessions the pipelines own,
filtered through pipeline.SessionOwner (run_steps/run_session_owners), so an
operator-created chat was an accident of the run-ownership table and the
operator's working sessions were mixed with the internals of running pipelines.

Add a first-class operator session:

- internal/pipeline/operator_sessions.go: a dedicated operator_sessions table
  (session_id PK, directory, title, tag, created_at, last_used_at) with
  RecordOperatorSession (upsert preserving created_at), a one-statement
  TouchOperatorSession (no-op for a non-operator id), OperatorSessions bounded to
  128 rows most-recently-used first, and OperatorDirectories (bounded MRU,
  deduped). run_steps/run_session_owners and SessionOwner/OwnedSessions are
  untouched.
- internal/server/chat.go: chat_sessions returns operator sessions only - it
  reads the registry once, intersects it with one broker session-list call, fills
  directory/tag/created/updated from the registry, sets busy for a session held
  by another connection, keeps MRU order, and stays fail-closed (empty list, never
  the endpoint's whole list). A pipeline stage session and an untagged row can
  never be listed. chat_create resolves the directory (empty/'~'/'~/...' ->
  operator home; relative or missing rejected before any OpenCode call), calls
  broker.Create(title, resolved) and records the row with the operator tag.
  chat_directories returns home first then bounded (8) deduped recents. A
  successful prompt touches the operator session without affecting pipeline
  prompts.
- internal/opencode, internal/protocol, internal/server/websocket.go and
  message.go: unscoped session list, Create posts {"title":...,
  "location":{"directory":...}} to POST /api/session, additive protocol fields
  (omitempty) and the ChatDirectories request/response, plus the OperatorRegistry
  option defaulting to the first store. One OpenCode transport per server is
  unchanged.

Docs and references: docs/cli.md gains a "Chat sessions" section documenting the
operator-only fail-closed list, directory defaulting/rejection, chat_directories
(home first, deduped, bounded 8) and why a dedicated request was chosen.
internal/author/skill/references/operations.md's stale "Brokered OpenCode chat"
text (chat_create unbrokered, run_steps filtering, "listed the owned scratch
session" evidence) is rewritten to the operator-session registry, the fail-closed
filter, directory defaulting and the corrected live-test wording. No new
reference file, so internal/author/install.go's inventory is unchanged.

Checked for staleness elsewhere: README.md, the docs/ topic pages and the
packaged server/TUI templates carry no chat-session ownership claims, so none
needed updating.

Verified: gofmt -l clean; go vet and go build ./... clean; go test -count=1
./internal/pipeline/... ./internal/protocol/... ./internal/opencode/...
./internal/server/... and the full go test -count=1 ./... pass.
2026-10-17 11:14:25 +01:00
alan 8692561bc7 chat: say 'not implemented yet' instead of 'not yet brokered' 2026-10-17 10:44:06 +01:00
alan 7875762b9a Merge lane-c: keep the lane's reviewed work
Combine the two reviewed versions of the Android artifact gallery/viewer.

- ArtifactViewer.kt: keep lane-c's gallery-wide paged full-screen viewer
  (artifacts/index/configuredServerUrl/onIndexChange overload with paging
  gestures, header, page buttons, share action and video-frame support) and
  re-add HEAD's single-artifact overload (url/name/fetchBytes/onDismiss/video)
  as a thin wrapper so StageVerdict still compiles and works.
- Artifacts.kt: keep lane-c's gallery-owned single viewer + onOpen callback and
  compose HEAD's all-artifacts-as-tiles grid (media tiles open the paged viewer,
  non-media open externally, selection and per-item share/copy preserved).

Checked: no conflict markers remain in any affected path. android/README.md
already carries the new "Page between artifacts in the full-screen viewer
(17 Oct 2026)" section documenting this change; the packaged templates, the
top-level README and topic docs, and the packaged authoring skill references
are not made stale by this Android-client UI change, so nothing further needs
updating.
2026-10-17 02:35:42 +01:00
alan f440b109ac Swipe between artifacts in the full-screen artifact viewer
The full-screen viewer becomes a pager instead of a single image with no
way to reach its neighbours.

- ArtifactGallery now owns the one viewer instance over pagedArtifacts(groups)
  -- the grid's image artifacts in the order the grid draws them -- and each
  tile opens the position it holds in that list via viewerIndexByUrl, so the
  grid and the viewer derive their index from one source (previously a second,
  untested per-tile counter and a per-tile viewer that had no neighbours).
- A horizontal drag or flick in ArtifactViewerBody moves to the previous/next
  artifact: pagedIndex moves by one and clamps at both ends without wrapping,
  a single-item gallery is inert, and canPageAtScale pages only at fit so a
  zoomed image pans via the existing zoomAbout/clampImageOffset as before.
  Previous/next IconButtons (disabled at each end) keep both neighbours
  reachable without a swipe, and the header shows "N of M · type" while the
  open artifact's own content, type icon, name and actions reload per artifact.
- Pure helpers pagedArtifacts, viewerIndexByUrl, pagedIndex, canPageAtScale and
  artifactViewerPositionLabel are added to ArtifactViewer.kt; ArtifactViewerTest
  covers next/previous, clamping at both ends, a single-item and an empty list,
  a zoomed viewer that does not page, the paged order versus the grid's draw
  order, and the per-artifact position label.

Placement check: the Android topic doc android/README.md is updated in this
commit with a section describing the pager, its gesture rule and the recorded
build/test checks. No packaged template and no packaged authoring skill
reference (internal/author/skill/references/*, internal/author/install.go's
inventory) documents the app's full-screen artifact viewer, so none needed
updating.

Only the four files this run changed are staged. The unrelated uncommitted
covered-pane statistics and list-load-phase edits (SlidingPaneStack.kt,
States.kt, Dimens.kt, LoadPhaseTest.kt) and the untracked scratch files in the
worktree belong to other changes and are deliberately left uncommitted.
2026-10-17 02:17:35 +01:00
alan f31f150e52 Merge lane-t2: keep the lane's reviewed work
Combine the two reviewed versions of docs/pipeline-performance-review.md.

- Local (main) review: the exact 201939-byte runs.json capture, the three
  final_result_validation sub-shapes, and the 5-to-4 unresolved busy-wait
  correction.
- Incoming (lane-t2) review: both captures (artifacts/222/2 and
  artifacts/222/4), both stat snapshots (134 succeeded / 3 active and
  135 succeeded / 2 active), plus the server-side rejection, deploy-wait,
  device-lock and refined improvement-ranking analysis.

Checked: no conflict markers remain anywhere in the tree and the two sides are
composed without duplicated headings or dead text. This is a documentation-only
change to a dated analysis document; the packaged templates, the README and
topic docs, and the packaged authoring skill references are not made stale by
it, so nothing further needs updating.
2026-10-17 02:14:41 +01:00
alan 4c088c9638 Merge lane-chat: keep the lane's reviewed work 2026-10-17 02:06:02 +01:00
alan 36fad7d130 Merge lane-go: keep the lane's reviewed work
Combines lane-go's typed omni search, launch-time model overrides, TUI
artifacts view, run-state websocket push, and the "reflect the change where
it belongs" committer rule with the Templates gallery, chat/omni-search and
other reviewed work already on main. The 12 files both sides touched keep
both intents composed rather than dropping either side: the omni search keeps
the typed search contract (CLI `pipelines search` and the TUI popup with type
badges and marked snippets) alongside the run-list quick filter; cli.md and
ui-ux-review.md document both the search rework and the artifacts view;
orchestration.md, harnesses.md and operations.md keep the model-override and
reflect-where-it-belongs guidance; and the protocol/CLI/server/TUI code keeps
the new search, run-event, override and artifacts paths alongside the existing
run, title and help surfaces.

Checks before committing:
- go build ./...  -- pass
- go vet ./...  -- pass
- go test -count=1 ./internal/... ./cmd/...  -- all pass

Doc check before committing: nothing needs updating. The lane's own docs and
references (docs/cli.md, docs/ui-ux-review.md, and the orchestration,
harnesses and operations skill references) already carry the new features.
format.md and the packaged templates already describe the line-oriented result
format and the human decision stage from the earlier lane-go merge. The root
README already describes the omni search popup. Model overrides, the search
command, run events and the artifacts view are runtime/CLI/TUI surfaces that
cli.md documents; no template, README or topic-doc edit is required by this
merge.
2026-10-17 02:04:58 +01:00
alan 30c1ed442e chat: broker OpenCode v2 chat over the owned serve SSE endpoint
The installed OpenCode 2.0.20 exposes the authenticated SSE event firehose at
/api/event and the /api HTTP surface, but Detect selects backend "v2" and Open
returned no owned process/URL, so chat stayed disabled and every chat_* request
was answered with "chat is not configured on this server".

Add opencode.OpenStream/OpenChat: for either backend they start the single owned
opencode serve process, discover the loopback URL and verify the backend health
contract (/api/info for v2, /global/health for v1). main and the live test share
OpenChat so the selection cannot drift. Chat now streams real incremental
session.text.delta/session.reasoning.delta frames via the existing
Connection.EventStream + NormalizeChatEvent, with no polling and no fake
streaming.

- Authenticate the owned endpoint with the per-backend user (opencode for v2,
  pipelines for v1); the v2 server ignores OPENCODE_SERVER_USERNAME.
- Send the V2 prompt shape {"text":...}, which the v1 translation also accepts.
- Skip firehose event types the adapter does not surface before decoding their
  data, so session.instructions.updated (delta is an object) no longer fails the
  stream.

Unit tests cover the per-backend user, the prompt shape/auth, the captured real
V2 event shapes and the selection guards. An opt-in live test drives
chat_sessions/chat_messages/a completed chat_prompt/an interrupted chat_prompt
against the installed OpenCode. Update the packaged operations reference with the
realized capability, dated evidence and deployment state.

Checks before commit: the packaged authoring reference
internal/author/skill/references/operations.md is updated in this change; no new
reference file was added, so internal/author/install.go's managed inventory is
unchanged and the internal/author tests pass. No packaged template describes the
brokered chat surface, and neither README.md nor the topic docs under docs/ (nor
web/) document it, so none of them needed updating.
2026-10-17 01:54:14 +01:00
alan f5610eb4e6 docs: pipeline performance and reliability review 2026-10-17 01:43:46 +01:00
alan c164d08cc5 Merge lane-c: keep the lane's reviewed work
Combines lane-c's Templates gallery and detail view with the chat and omni-search work already on main (lane-t2). The three files both lanes touched keep both intents: AppViewModel.kt keeps refreshTemplates/createFromTemplate alongside the search/chat flows, PipelinesApp.kt keeps both the Templates and Chat destinations, and graph/Artifacts.kt adopts the shared galleryGrid fitting while keeping the tile-gallery refactor.

Doc check before committing: nothing needs updating. This is an android/-only merge. The app's topic doc (android/README.md) already documents the Templates destination (lane-c) and the Chat/omni-search work (lane-t2). The root README and docs/ describe the server CLI/TUI (whose :templates catalog is a separate surface) and are unchanged. The packaged authoring skill references (internal/author/skill/references/) mention the Android client only for APK-delivery mechanics, which this change does not alter, and the packaged templates are server-side and untouched.
2026-10-17 01:42:51 +01:00
alan 515059674d Merge lane-t2: keep the lane's reviewed work 2026-10-17 01:34:02 +01:00
alan 052ece0163 skill: match the answer's length to the question in the conciseness guidance 2026-10-17 01:31:24 +01:00
alan 18db2f913a Add a Templates gallery and detail view to the app
The server's template catalog (the list_templates command) had no surface in
the app. This adds a Templates destination to the shared SlidingPaneStack: a
measured card gallery (name, short description, stage count and its own glyph;
one column narrow, a fitting grid wide) and a detail pane that reuses the
pipeline detail's Summary/Graph/Source tabs, plus a create-from-template action
that submits a create-only draft. Stage counts come from a source the server
parsed (validate); a source that does not parse is still viewable as raw
markdown.

Added: Templates.kt (TemplateEntry/TemplateCard, the grid-column and
stage-count mapping), components/GalleryGrid.kt (the shared measured-gallery
fitting, extracted from the artifact gallery), graph/SourceView.kt
(PipelineSourceView, the one rendered-definition view, extracted from
PipelineDetailScreen), screens/TemplateGalleryScreen.kt,
screens/TemplateDetailScreen.kt, TemplatesTest.kt.
Changed: PipelinesApp.kt (the Templates destination), AppViewModel.kt
(refreshTemplates/createFromTemplate), data/PipelinesRepository.kt
(listTemplates/validateSource/createPipeline), graph/Artifacts.kt (use the
shared galleryGrid), PipelineDetailScreen.kt (use the shared
PipelineSourceView), ArtifactGalleryTest.kt (exercise galleryGrid).

Doc/state check before committing:
- android/README.md (the app's topic doc): updated. Added a Features bullet for
  the Templates destination and a dated "Templates: a gallery and a detail view"
  section, matching the per-feature convention every prior android change uses.
- Packaged templates: not touched. The server's templates are Go-side and the
  brief forbids touching the Pipelines server; this change only renders the
  catalog the server already exposes.
- Packaged authoring skill references (internal/author/skill/references/): not
  updated. They document the Pipelines harness, not the Android app, and this
  change adds no harness runtime behaviour.
- Root README and docs/: not updated. They document the CLI/TUI/server, which
  are unchanged; the Android app is documented in android/README.md.

No conflict was present: no unmerged paths and no unfinished merge, rebase or
cherry-pick, so nothing needed resolving.
Deliberately left uncommitted (other work this run did not touch, not staged):
the worktree's other WIP - components/ListScroll.kt and screens/PaneStats.kt with
their tests, and the uncommitted edits to components/SlidingPaneStack.kt,
components/States.kt, theme/Dimens.kt and components/LoadPhaseTest.kt - plus the
untracked .ui-review-*/ capture artifacts.
2026-10-17 01:30:27 +01:00
alan 3997e1bbc1 docs: pipeline performance and reliability review 2026-10-17 01:26:35 +01:00
alan c9b904186a Update templates and authoring skill to the current pipeline contract
Bring the packaged starters and the pipelines skill up to the guidelines the
project now works to.

Templates:
- task and three-stage now end in a committer stage that stages the union of the
  runner's captured input.server_changed_files and the producer's declared
  changed_files, runs the repository's checks, commits locally and never pushes;
  their producers no longer commit.
- Every model/agent prompt states the line-oriented result contract (outcome on the
  first non-empty line, "# output" JSON map, other "# <heading>" sections kept
  verbatim as evidence) and an "# evidence" section for exact commands and results,
  with proportionate verification and no fabricated checks.
- Stages that can write save their reports, logs and screenshots into the runtime
  artifacts directory.
- Remove the summary starter: a tool-free single-prompt text transform with no
  repository interaction, artifact or commit is a format demonstration, not a
  reusable workflow. No starter invents a pretend approval stage; a decision point
  is a type=human stage.

Skill:
- references/format.md gains a Result format section (line form, legacy JSON
  precedence, result_parse, raw-output.md, artifacts) and a Committer stages
  section with the pre-commit checklist; the role-split and envelope notes mention
  the line form and the committer.
- orchestration.md points at the checklist and records that a genuine gate is a
  human stage; operations.md and the SKILL.md index drop the removed starter and
  name the result format and committer. No new reference, so the managed inventory
  is unchanged.

Docs/tests: examples/README, README, docs/cli, docs/first-version-testing, the CLI
help example and the smoke script track the four starters; catalog, tool-role,
server, tui and pipeline tests are updated, with a new test pinning the committer
ending and server-captured change set.

Commands run: go build ./...; go vet ./...; go test ./...; python3 -m unittest
discover -s scripts -p 'test_*.py'; python3 scripts/smoke-first-install.py. All
passed. Templates inspected through an isolated CLI server (pipelines templates;
pipelines template KEY --source). No server, service or device was restarted, and
nothing was pushed.
2026-10-17 01:09:42 +01:00
alan 0df0c278b0 Open stage sections as their own pane instead of expanding inline
Expanding a stage section drew its rows stacked at the section's origin:
CollapsibleSectionBody passed the section's several field composables straight
into AnimatedVisibility, which lays out a single child, so the rows overlapped at
the top of the section and only the last was visible. The shared body now wraps
its content in one full-width Column, so any multi-row section stacks its rows
under its header.

Every stage section now opens as its own pane rather than growing the stage
screen inline:

- PaneState: add the Section pane level (MAX_PANE_DEPTH = 3) and a saved
  sectionKey primitive, with backStep/popTo/encode/decode handling so one Back or
  peek pops exactly one level and the open section survives rotation and process
  death.
- StageDetailPane: the stage screen keeps a compact collapsed list of its
  sections (Artifacts, Output, Input, This run, Stage definition); opening one
  shows it as a full-window surface over the stage on a narrow window, or a panel
  to the right of the stage pane on a wide one, with its own Scaffold/TopAppBar
  title, its own scroll and its own top spacing.
- SectionHeader: a navigation mode for those rows - a static forward chevron
  (mirrored for RTL) and an "Open <section>" action instead of a rotating
  disclosure chevron and "Expand/Collapse", so assistive tech is not told the row
  expands in place. The detail screens' disclosure rows are unchanged.
- DetailTabs: drop the rememberSectionExpansion initiallyExpanded seed, whose
  last caller was the inline stage definition.
- Tests: cover the Section level's backStep, popTo, encode/decode and depth, and
  the shared stageSectionSpecs order and blank-section cases.

Sections still start collapsed, the operator's choices still persist, and each
section's content is unchanged. android/ only; no dependency was added.

Also in this diff, from the covered-identity statistics work: PipelinesApp passes
compactStats = true on its two stacks (SlidingPaneStack's statistics flag).
2026-10-17 01:08:29 +01:00
alan d578f43c5a Add a "reflect the change where it belongs" rule for committers
The packaged authoring skill's orchestration reference now tells an author
to carry the check from the brief into the pipeline: before committing, the
committer verifies the change is reflected in the packaged templates, the
repository's guidelines (README and topic docs) and the packaged skill
references, updates anything stale, and states in the commit body what was
checked or that nothing needed updating.

- brief-writing section: add a "Where it belongs" item to the brief and
  renumber the hard-constraints and publishing items.
- hard-constraints block: add a "Reflect the change where it belongs" bullet.
- Pipeline choice: extend the committer bullet with the same pre-commit
  check, keeping the existing rule that the committer stages only the run's
  changed files.

Checked before committing: the change is prose in the packaged skill
reference, so no template, README or topic-doc edit was needed; the eight
pipelines carrying a committer stage were republished with the same rule in
their committer prompt (not tracked in this repository); no other reference
is stale.
2026-10-17 01:02:48 +01:00
alan ce767c344a Merge lane-hs: keep the lane's reviewed work 2026-10-17 00:52:50 +01:00
alan 956be005c4 Merge lane-hg: keep the lane's reviewed work 2026-10-17 00:52:50 +01:00
alan cb71f35c59 Merge lane-c: keep the lane's reviewed work
# Conflicts:
#	android/README.md
#	android/app/src/test/java/net/awan/pipelines/ui/components/PaneIdentityTest.kt
2026-10-17 00:52:18 +01:00
alan 8f3036bd3b Push run state to subscribed websocket clients
Add a server-pushed run_event frame so a client no longer has to poll
once a second to notice run changes.

- protocol: RunEventFrame/RunStepDelta compact delta (run id, workspace,
  status, outcome, current stage, completed-step count, timestamps and an
  optional single step delta), plus subscribe/unsubscribe/run_event types
  and the optional RunEvent/RunIDs message fields. All fields optional so
  older peers ignore them.
- server: runEventHub with per-connection subscriptions scoped to a
  workspace (and optional explicit run ids), one bounded writer goroutine
  per subscription, slow-subscriber drop, per-client subscription cap and
  a ~220ms per-run coalescer that flushes pending deltas before a terminal
  frame.
- runner: emit deltas on created/queued, queued->running and step start,
  human waiting, step finish (outcome, target, diagnostic, artifacts and
  completed count), terminal finish, cancel of a waiting run and
  decide/resume; emitRun is a no-op without a hub.
- websocket: subscribe seeds current state before the ack, unsubscribe and
  connection teardown drop subscriptions, and pushed frames reuse the
  connection write closure.
- tests: protocol golden-JSON wire shape plus websocket coverage for the
  started-run frame sequence, subscribe current-state snapshot, silent
  unsubscribed/never-subscribed clients, workspace isolation and a
  bounded coalescing frame count.
- docs: note subscribe/unsubscribe/run_event in docs/cli.md; TUI and
  Android still poll in this release.
2026-10-17 00:43:05 +01:00
alan 889d811858 Fix artifacts-view scrolling, narrow widths and capture wording
The Artifacts view re-clamped its scroll offset to the selected row on every
render, so the tail of the list - a trailing visit that recorded none (running
or finished) and its capture summary - could never be brought on screen, and
the image marker crowded out artifact names at narrow widths.

- Decouple the scroll offset from the selection: add PgUp/PgDn (and ctrl+u/
  ctrl+d) paging, and make G/end select the last artifact and scroll to the
  tail so a trailing visit stays reachable.
- Share artifactContent/clampArtifactTop/revealArtifactSelection between
  selection and render so both agree on the same page.
- Show the [img] marker only while the width still leaves room for a usable
  name, keeping columns aligned either way.
- Advertise the scroll keys in the artifacts footer help.
- Test the omitted-files capture wording, trailing-visit reachability via
  G/end and page scroll, and narrow-width no-overflow; render both the top and
  the scrolled tail in the env-gated live capture test.
- Update the packaged operations reference for the A artifacts view.
2026-10-17 00:24:42 +01:00
alan 865993b200 Rework omni search onto a typed search contract and add a TUI artifacts view
Protocol: replace the loose Query/Kind/Matches/Limit search fields with a Search request object and a SearchResults response, and have the server answer search from Store.Search over the shared run projections (runFrom/runStamps).

CLI: add the read-only 'pipelines search QUERY [--type KIND] [--limit N] [--json]' command with usage/help, and document the typed targets, ranking and bounds in docs/cli.md.

TUI: the '/' popup keeps type-to-search, up/down, Enter and Esc, renders one ranked list with kind badges and a bracketed (non-colour) match snippet, and Enter opens the matched pipeline, run, step, artifact or field; footer text updated to match.

TUI: add a dedicated run artifacts view ('A') with open/copy of recorded files, and move artifacts out of the run-detail File changes section (artifactCaptureNotes).

Tests: add Store.OpenReadOnly for read-only inspection of a live database plus pipeline/server/TUI search tests and artifacts tests, including env-gated live checks.
2026-10-16 23:48:38 +01:00
alan 98713e55f5 server: hand the committer the captured changed-path set
The committer staged only the implementer's self-declared changed_files,
so an incomplete declaration silently left part of the approved change
uncommitted. The runner already records the run's real changed paths by
comparing the working tree around each step; publish that set to the
committer.

- runState gains an unbounded, deduplicated, first-seen-ordered captured
  path accumulator (capturedPaths/capturedSeen), distinct from the bounded
  changedPaths sample used only by the UI-surface skip reason.
- recordChanges folds each captured FileChange path into it in the existing
  single pass, so no second walk and no new I/O.
- publishServerChangedFiles writes the set into the input memory value as
  input.server_changed_files, called before memoryInput so the binding
  always resolves (an empty list when nothing was captured) and only stages
  that select it receive it. rebuildRunState rebuilds it from persisted
  completed steps, so a resumed run hands the committer the same evidence.
- Tests prove the committer receives the captured set distinct from and
  additive to the implementer's declared changed_files, that an omitted
  path is still present, and that the field is an empty list when nothing
  was captured.
- control.md and orchestration.md document the reserved field and instruct
  the committer to select input.server_changed_files alongside the declared
  changed_files and stage their union.

Commands run: go build ./...; go vet ./...; go test -count=1
./internal/server/... ./internal/stage/...; go test -count=1 ./internal/author/...;
go test -count=1 -run TestCommitterReceivesServerCapturedChangedPaths ./internal/server/.
All passed. go.mod/go.sum unchanged.
2026-10-16 23:44:56 +01:00
alan c41bf4f5b0 State each model stage's permitted tools in its prompt
A planner had no machine-readable view of the tool set later stages would
have, so it could emit acceptance checks that required tools (shell) the
implementer was not permitted, causing a blocked run.

modelPrompt now emits exactly one authoritative line naming the stage's
permitted tools, derived from the definition via the new effectiveTools
helper. effectiveTools reuses ToolNames: a present tools block, including
an explicit empty one, is returned as parsed; an absent block yields the
legacy mutating read/glob/grep/edit/shell bundle so it is never
misrepresented as empty or read-only. The bundle is declared once as
legacyTools and reused by tools.go, agent.go, pi.go and permissions.go.

The redundant client-side strings.Replace of the tools line is removed
from AgentClient.Generate and PiClient.Generate; the agent-only guidance
sentence is preserved by appending it in agent.go, and Pi appends a short
mapping line derived from piTools. Edit-scope and permitted-shell text,
routing, review, budgets and retries are unchanged.

Adds internal/stage/model_prompt_test.go covering explicit, absent and
explicit-empty blocks plus derivation edge cases, and a guard that the
agent prompt still carries the tools, edit-scope and shell-command text.
2026-10-16 23:34:39 +01:00
alan fae1005962 Allow launching runs with whole-run and per-stage model overrides
Add `pipelines run --model PROVIDER/MODEL` and repeatable
`--stage-model STAGE=PROVIDER/MODEL`, resolved with precedence
per-stage > whole-run > the model pinned in the pipeline version.

- A shared pure resolver (`pipeline.ParseModelOverride` /
  `pipeline.EffectiveModels`) owns the precedence and validation: every value
  must be a `provider/model` pair (`stage.ValidModel`), every stage key must
  exist in the pinned graph, an unknown key fails naming the valid keys, and a
  per-stage key that names a non-model stage is refused.
- The server validates against the pinned version before admission (no run row
  is ever inserted for an invalid request), persists `model`/`stage_models` on
  the run and `provider`/`model` on each step, applies the effective pair to a
  clone of the stage definition so the stage and its repair/formatter path share
  it, overlays the returned run graph with the effective pair (presentation
  only), and reuses the recorded overrides on retry.
- The run record echoes the overrides it was launched with and each step records
  the provider/model it actually ran with; the TUI Evidence pane renders that
  effective pair. The pinned pipeline version and `show --version N` are never
  modified.
- CLI help, `docs/cli.md` and the packaged authoring skill references document
  the flags and the precedence. A TUI override picker remains a documented
  follow-up; the CLI is the deliverable.

Tests: pure precedence/validation table tests, store round-trip and
request-key-mismatch plus migration, server admission/application/overlay/retry
with a controlled executor, CLI flag/help/malformed-value tests, and a TUI
evidence test.
2026-10-16 23:33:53 +01:00
alan b3188a5c6f server: skip a stage that declares a skipped edge when no UI surface changed
A stage declaring a `skipped` outcome is short-circuited with no model call
when the run's recorded file changes and artifacts touch no UI surface
(android/, internal/tui/, a presentation extension or an image artifact).
The step is recorded completed/skipped along its declared edge with a
bounded one-line reason, so a backend-only run no longer pays for a
ui_reviewer generation that can only answer ui_applicable=false.
2026-10-16 23:31:16 +01:00
alan dcd58b8a3d Reach the covered pane's full statistics and wrap its title at whole words
A covered pane's width is spent on the covered region (`identityWidth +
startInset`), and when a second level is covered `coveredEdgesDp` gives the
nearest identity that region less the thin older edge (`startInset + minTouch`;
the leading gesture inset cancels), i.e. `identityWidth - minTouch`. Flooring a
statistics-bearing identity at the full block alone (`MIN_COVERED_PANE_WIDTH_DP +
PEEK_WIDTH_DP`, 168dp) therefore left the nearest edge at 120dp, below the
`paneStatTier` Full boundary, so a pipeline's last-run/age and average lines were
filtered out at every depth a pipeline is ever covered. `coveredIdentityWidthDp`
now floors a statistics-bearing identity one touch target above the block
(`+ minTouch`), so the nearest edge is exactly 168dp and reaches Full, while the
single-covered and title-only cases are unchanged and the active pane width still
does not depend on depth.

The covered title also broke mid-word in a narrow strip ("Complete a Task" ->
"Complet"/"e a Task"). `wholeWordTitle` now packs the title greedily onto
whole-word lines and, once they are full, drops the remaining words and
ellipsizes the last line at a word boundary; a word wider than the whole strip is
the one exception, ellipsized to the width because it has no internal boundary.
It takes an injected `measure`, so the packing rule is unit-testable without a
device, and `PaneIdentity` measures with the same `cardTitle` role it draws with.

`PaneIdentityTest` adds the pure cases: the width-degradation tiers, the
statistics-bearing width floor, the nearest-edge geometry at depth 2 (which fails
without the `+ minTouch` reserve, so it pins the defect), and the whole-word
wrap/ellipsis/oversized-word/no-room cases. `android/README.md` records the
corrected geometry, the fix and the run's build/test evidence.

android/ only; no new dependency, no server field, and no server/Go/installer/
Docker change. Build and unit tests only (no device): 300 tests, 0 failures.
2026-10-16 23:30:47 +01:00
alan 80232a4ffe Add omni search: ranked mixed results in the TUI and CLI
Back the TUI "/" popup with the server's search command and add a matching
pipelines search CLI command.

- protocol: SearchRequest/SearchResponse and per-kind SearchResult payloads,
  one shared Label for the six-kind badge dispatch and RuneIndexFold for
  case-insensitive matching.
- pipeline: the read-only, ranked, bounded Store.Search implementation.
- cli: search QUERY [--type KIND] [--limit N] [--json], printing the shared
  label plus a text-field snippet when present.
- tui: type to search, up/down to choose, Enter to open and Esc to cancel over
  one mixed ranked list, with short type badges and a bracketed non-colour
  match marker; Enter navigates to the matched pipeline, run, step, field
  section or artifact entry.
- tests: protocol and TUI coverage, including an env-gated live test against
  the running server.
2026-10-16 23:03:17 +01:00
alan 0937327e8c android: correct omni-search IME docs to the declared adjustResize mode
The soft-input comments in the manifest, PipelinesApp.kt and android/README.md
still described `adjustNothing`, a mode the activity no longer declares. MainActivity
uses `android:windowSoftInputMode="adjustResize"` and the app draws edge-to-edge, so
the Compose window inset (WindowInsets.safeDrawing) is the single source of the IME
geometry and is applied once by the surface that owns it.

- AndroidManifest.xml: rewrite the soft-input comment to describe adjustResize, why
  the app is edge-to-edge and reads the IME from Compose window insets, and warn
  against changing it without re-checking the chat composer.
- PipelinesApp.kt: correct the bottom search column comment that claimed the activity
  declares adjustNothing and the window is never resized for the IME.
- android/README.md: correct the omni-search results-panel section that claimed the
  IME inset was counted once because of adjustNothing; now records the declared
  adjustResize mode, the edge-to-edge single source of IME geometry, and the chat
  composer's imePadding.

Documentation only; no rendered surface or behaviour changes. The omni-search entry
point and pill morph already exist at this HEAD; this reconciles the stale wording
with the committed mode.
2026-10-16 22:48:28 +01:00
alan 910a7aa798 Merge lane-app2: the chat experience and its multi-conversation state
Integrates eight commits of reviewed chat work: the Chat destination with
several conversations, markdown transcripts, tool-call chips with an expandable
INPUT/OUTPUT panel, edit diff cards, the composer's stop control, and approval
cards. The automated resolver failed on this merge repeatedly (its own stages kept
dying on the malformed-result defect), so it was integrated by hand.

Integration decisions:
- Pill geometry: main's tokens win. lane-app2 carried private duplicates of
  DESTINATION_ITEM_SIZE/GAP and a private DESTINATION_PILL_RESERVE, added before the
  geometry-token migration; those duplicates are dropped in favour of the theme
  tokens main already exports.
- IME mode: kept lane-app2's adjustResize for the window, because the chat composer
  and the search field both raise the keyboard and the chat UI was reviewed with it.
- Protocol and view-model constants: both sides' independent additions are kept.
- ChatScreen now passes the compactLabel main's SlidingPaneStack gained, and the
  literals lane-app2 introduced before the token discipline are converted to five
  new named tokens (HAIRLINE_DP, ICON_BUTTON_SMALL_DP, TOOL_PANEL_MAX_WIDTH_DP,
  CHAT_TITLE_MAX_WIDTH_DP, CHAT_BUBBLE_MAX_WIDTH_DP) rather than allow-listed.

Verified: assembleDebug plus the full Android unit suite (409 tests) pass,
including the geometry enforcement test.
2026-10-16 22:27:30 +01:00
alan bd09c55c47 Merge lane-go: titles, verdicts, human stage, line result format, stale-client guard
Integrates nine commits of reviewed work from the lane-go branch after the
automated resolver failed on this merge five times (each attempt dying on the
malformed-result defect whose fix is contained in this same merge).

Integration decisions:
- Search: kept main's shipped design (Store.Search + SearchResponse.Results) and
  dropped lane-go's parallel, older attempt (an unused Message.Matches field, an
  absent runs.search, and two partial TUI plumbing blocks). lane-go itself did not
  compile: protocol.SearchMatch was undefined and model.go referenced searchNav,
  requestSearch and applyRunNav, which exist nowhere. Those partial TUI blocks are
  removed; the queued TUI omni-search item will implement the surface properly on
  main's design.
- Both sides' additions are kept where they are independent: run titles and
  provenance, the human decision stage and its CLI/TUI surface, the derived stage
  verdict, the stale-client guard, the line-oriented result format, and main's
  search command.
- The search key's help label is now "/ omni search"; the two tests asserting the
  old label are updated rather than the label reverted.
- docs/cli.md and the packaged operations reference carry both sides' text.

Verified: go build ./... , go vet ./... and the full go test ./... suite pass.
2026-10-16 22:21:43 +01:00
alan aac1be18cc docs: document line-oriented model/agent result format 2026-10-16 21:49:14 +01:00
alan 3aa6ed97aa skill: add the project work ledger and session lifecycle
Add references/work.md: one durable ledger per project (queue, active, done,
failed), the start/pause/resume/status operations, per-item directives, a
restart-safe queue driver, sleep autonomy and a conciseness rule. Index it from
SKILL.md and add it to the installed inventory.
2026-10-16 21:42:52 +01:00
alan 1fe7edb30f android: document the omni-search results panel
Add a "Omni-search results panel (16 Oct 2026)" section to android/README.md
describing the panel that sits above the omni-search field: its placement above
the input and IME, the badge/title/secondary row layout with a bold+underlined
snippet span, the debounced query with stale-response gating and no flicker to
empty, the loading/empty/error states, and result-to-target navigation for every
kind. Records the verification evidence (unit tests and assembleDebug, APK hash
and size, published APK and LAN URL) and notes what was left to the visual review.

No source behaviour changes: the panel logic already existed; this pass verified
it and filled the documentation gap.
2026-10-16 21:42:33 +01:00
alan b05277a57d Add line-oriented result format for model and agent stages
Introduce a short, markdown-ish result format whose first non-empty line is
the declared outcome and whose "# output" section carries the routing data,
so stage output stops carrying multi-kilobyte prose inside a JSON envelope.

- New internal/stage/line_result.go: resultFormat() gates legacy JSON ('{'
  first) vs the new line format; decodeLineResult() parses outcome-from-first
  line, requires a JSON-object "# output" section, stores extra sections
  verbatim under normalised keys, and records a reserved result_parse status
  (parsed/partial/failed). Failures return a salvage Result plus
  ErrInvalidModelResult, and never route an undeclared outcome.
- internal/stage/model.go: write the raw response to raw-output.md (0600,
  best-effort) before parsing, and route the line format through
  decodeLineResult while leaving the JSON path (stageResultText ->
  decodeModelResult -> repairModelResult) unchanged.
- internal/stage/agent.go: agentResultText returns line-format text verbatim
  so the "# output" body is not stripped by the JSON-object extractor.
- internal/server/runner.go: merge a non-empty salvage Result into the error
  envelope under "salvage" on failure (a no-op for the legacy JSON path).
- internal/stage/line_result_test.go: raw-text fixtures covering happy path,
  missing/undeclared outcome, missing "# output", best-effort extras,
  adversarial prose, legacy JSON unchanged, >=64KB responses, and
  raw-output.md written before parsing.
2026-10-16 21:34:33 +01:00
alan 9b9f12f48e Merge lane-e: keep the lane's reviewed work
Combine lane-e's reviewed Android UI work with main's lane-c/lane-d work.
Conflicts resolved by keeping both intents:
- android/README.md: both documentation sections retained
- graph/StageDetailPane.kt: lane-e pane plus local section changes
- screens/RunDetailScreen.kt, RunHistoryScreen.kt: lane-e features and
  local work both preserved
- screens/PipelineListScreen.kt: new row layout and remembered
  sort/filter controls kept together
2026-10-16 20:46:56 +01:00
alan c4833870a9 Merge lane-d: open stage sections as their own pane
Combine the local list-scroll/covered-edge and hoisted pane wiring work with
lane-d's Section pane level, sectionKey persistence, three-way back
descriptions and single-Column CollapsibleSectionBody. Both intents survive:
conflicts in README, PipelinesApp, StageDetailPane, PaneState, Sections and
their tests were resolved by composing both sides, without conflict markers.

Build: ./gradlew :app:assembleDebug
Tests: ./gradlew :app:testDebugUnitTest (322 tests, 0 failures)
2026-10-16 20:37:07 +01:00
alan fa0998b35d Merge lane-c: keep the lane's reviewed work
Combine lane-c's incoming work with the local branch.

- PipelinesApp.kt was the only unmerged path: resolution is purely additive over HEAD, keeping HEAD's hoisted selection/onSelectionChange and pendingNav/onPendingNavResolved while adding lane-c's listState wiring and compactLabel/compactIcon.
- graph/StageDetailPane.kt and theme/Dimens.kt auto-merged and retain both sides' changes.
- Incoming branch af68a62 preserved as second parent.
2026-10-16 20:32:11 +01:00
alan e2147b043b android: share one LabelChip and drop the dead Run.artifacts flag
Consolidate the omni-search row type badge and the stage-type chip into a
single ui/components/LabelChip composable, so the chip's shape, colour and
type live in one place and a second copy cannot drift.

Remove the unused SearchTarget.Run.artifacts field: an artifact hit and a
step hit now resolve identically to the visit's stage pane, whose fixed
section order already leads with the artifacts. Correct the
SearchUiState.failed KDoc to describe how prior results are kept, and
update OmniSearchResultsTest to the simplified target.
2026-10-16 19:53:10 +01:00
alan b083cbad34 android: drop the pipelines list inline search, add a filter-menu name facet
The pipelines list carried its own "Search pipelines" field while the app also
has the omni search, so the list offered a second, narrower way to do the same
job. Remove that field and move name narrowing into the list's filter control,
keeping "filters narrow one list" separate from "search finds across the system".

- PipelineListScreen no longer owns a `query` state or draws the
  OutlinedTextField; the list is now the first child under the app bar, so the
  reclaimed space comes from layout with no compensating spacer or new dp value.
- PipelineFilters gains a free-text `name` facet beside presence/lastRunStatuses,
  applied by filterPipelines through the new pure pipelineMatchesName
  (case-insensitive contains, blank means any). It needs no run history, so it
  applies as soon as pipelines load while the run facets still wait for runsKnown;
  activeCount and isActive include it, and hasRunFacets gates just the run facets.
- PipelineFilterControl opens with a Name section holding a single-line
  PipelineNameFilter labelled "Pipeline name contains"; the shared Clear filters
  resets it with the run facets and the active-count badge counts it.
- SettingsRepository/AppViewModel persist the name under pipeline_filter_name.
- Empty-state messages reflect the name-only miss.
- ListFilterTest covers the new name narrowing (+4 cases) and storage parsing.
- android/README.md documents the change and the build/APK evidence.

The runs list never had an inline search field, so nothing was removed there.
2026-10-16 19:50:19 +01:00
alan e7c4b8f71f Merge branch 'main' into lane-e 2026-10-16 19:30:13 +01:00
alan 80f7b0adbc android: add omni-search entry point and pill morph
Add the fourth Search destination to the floating bottom container and
morph that container into the omni-search field.

- PipelinesApp: the destination pill gains a Search icon; tapping it
  animates the icons out and turns the same Surface into a focused text
  field whose size and position derive from the pill's own layout and the
  window insets rather than fixed pill sizes. Back, the back gesture and a
  scrim tap play the reverse and restore the pill with its previous
  destination still selected. The open field covers the content behind a
  scrim and shows a results panel above it.
- OmniSearch: pure state model (open/focused/query) with the open, dismiss,
  focus and query transitions and a Bundle-able Saver, so an open field
  survives a saved-state round trip.
- OmniSearchResults / SearchResultsPanel: map the typed search reply to
  rows and render the ranked results, keeping the last accepted results
  while a newer query loads and reporting a failure without blanking.
- AppViewModel / PipelinesRepository: drive queries over the existing
  transport with debounce and reply ordering; the server search command
  arrives in a later item, so a reply is classified by envelope type and a
  non-search_results reply is reported with a clear message instead of
  being mis-parsed, never a crash.
- Message: SEARCH / SEARCH_RESULTS constants and the SearchRequest,
  SearchResponse and per-kind result payloads.
- AndroidManifest: adjustNothing so the app reads the IME from Compose
  window insets and the field is not cleared twice by a window resize.
- Dimens: spacing for the search surface.
- Unit tests for the state model (pill, opening, focused, dismissed and
  restored after the Saver round trip) and for the result-row mapping.
2026-10-16 19:29:40 +01:00
alan 007639948c Show the stage verdict atop the stage pane, with clickable artifacts
Mirror the server's derived verdict onto RunStep as a nullable
StageVerdict ({option, reason, reason_source, artifacts}, absent -> null),
matching internal/protocol/verdict.go.

Render a StageVerdictBlock at the top of the run pane, below the visit
tabs and above the facts, only when a verdict is present - a null or
empty verdict draws nothing, never an empty heading. The chosen option is
a ColoredChip in the stage outcome's existing colour; the reason is plain
pipelinesText().body that wraps without a maxLines clip.

The artifacts the reason names become inline, tappable references
(image/video open the shared ArtifactViewer, anything else uses the
existing openArtifact action) plus the same references as compact
FlowRow chips. Referenced names resolve to the visit's recorded
artifacts, deduplicated and in recorded order; reason text is split
around those names longest-match-first. No new dependency and no new dp
or sp literal.

android/ only.
2026-10-16 19:17:26 +01:00
alan af68a62ab8 Measure the covered pane edge instead of spending a fixed budget
The covered panes spent a fixed 224dp (PEEK_BUDGET_DP) whatever the window
width, so a folded window lost over half its width and the active pane was
squeezed as levels were added. Derive the covered region at runtime from the
compact identity a covered edge must show - an icon plus the shortest label
that identifies the pane, measured with the app's own type role and floored at
the platform minimum touch target - plus the leading gesture inset.

coveredEdgesDp now returns edges that sum to exactly that region, so the active
pane opens at hostWidth - region and its width is identical at every depth:
opening a level only adds a thin edge inside the region. The nearest covered
level shows its identity, one older level is a thinner touch-target edge, and
older levels fold into a count rather than accumulating width; tapping an edge
still pops everything above it. Removes PEEK_BUDGET_DP, MIN_ACTIVE_PANE_WIDTH_DP
and the peekBudgetDp/peekStripsDp budget split from Dimens.kt and
SlidingPaneStack.kt. PaneIdentity gains the pane-kind icon drawn above the title
at the vector's own measured default size, and each destination passes its
compact label/icon.

The touched files also carry the in-flight covered-pane statistics and list-scroll
plumbing they depend on (PaneStat/paneStatTier/visiblePaneStats, per-destination
LazyListState); the remaining pieces of that work remain uncommitted.
2026-10-16 18:50:36 +01:00
alan 8c1eea53a9 Report a stale client and refuse an unreadable newer server
Exchange a build/protocol identity so an older CLI can no longer talk to a
newer native server silently:

- protocol carries ProtocolVersion and every server frame (including the
  unsolicited welcome) is stamped with the server build and protocol, so a
  client that never pings still learns the server identity.
- buildinfo.Compare classifies the relationship as InSync/Warn/Refuse and
  names both builds; the client Watch reports one warning per connection and
  returns a hard error when the server speaks a newer, uninterpretable
  protocol so the caller never acts on the frame.
- client.ReceiveNotice decodes the raw frame so an unmodeled top-level field
  produces a one-time "unrecognized field(s)" notice instead of being dropped
  silently (the case that hid the artifacts field).
- CLI routes warnings to stderr, keeps machine JSON stdout clean and fails
  non-zero on a refused mismatch; ping/connection print the client/server
  relationship. The TUI surfaces the same notices through the shared log.
- scripts/setup-native.py now warns when an older `pipelines` earlier on PATH
  shadows prefix/bin/pipelines, naming both paths and versions, without
  installing or modifying anything else.
- Docs, the packaged debugging skill reference and README no longer imply the
  installed CLI always matches the server.

Tests cover the comparison table, unknown-field detection and caching, the
server identity stamping on pong and welcome, the CLI/TUI reporting paths and
the installer PATH shadowing warning.
2026-10-16 18:37:01 +01:00
alan 8b0d7b1ecb Show a run's title beside its pipeline name
Surface the operator's title for a run so two runs of the same pipeline
read as clearly different goals, with the pipeline name kept as context.

- protocol: optional nullable `title` on RunSummary and RunDetail; absent
  or blank degrades to the pipeline name.
- ui/RunIdentity.kt: one shared fallback (`runLabel`) and two-line identity
  (`runIdentity`) so the list, detail header and stage pane never spell a
  run differently; a titled run shows the pipeline name + version as a
  second line, an untitled run keeps the pipeline name as its only line.
- runs list / run detail / stage pane use the shared identity; the status
  chip, duration and metadata layout are unchanged.
- no rename affordance: the server exposes no title and no `set_run_title`,
  so the app does not fake renaming.
- tests: RunIdentityTest (5) plus ProtocolModelTest cases for a present and
  an absent title; README documents the change and its verification.
2026-10-16 18:26:29 +01:00
alan b003872032 Show live elapsed time for running runs
A running run now shows how long it has taken so far instead of its start
time, kept live: the runs-list meta row, the pipeline list's last-run line
and the run detail summary's Duration row all read one shared rule,
runDurationText (ui/Format.kt), which reports the elapsed while executing and
keeps the stored total once the run has finished.

The elapsed is derived from the server's own start timestamp against a single
shared clock, rememberLiveNowMillis/hostResumed (ui/components/LiveTime.kt),
so it stays correct after a reconnect and never ticks while the app is
backgrounded or while no shown run is executing. WorkflowGraph's private
lifecycle read and once-a-second loop are replaced by that same shared pair.
A missing start omits the value and a future start (clock skew) reads as 0s.

Unit tests (FormatTest, PipelineLastRunTest) cover a run that has just
started, the minute and hour boundaries, a missing and a future start, and a
finished run keeping its stored total duration.
2026-10-16 18:13:50 +01:00
alan e1c531a537 Make the run summary's artifacts gallery a collapsed section
The run summary led with the artifacts gallery, but it was always open, so a
long run's grid pushed the run's own facts below the fold. The gallery now
sits in one collapsed-by-default section in the same place, with a header that
describes itself while collapsed.

- RunDetailScreen.kt: RunSummaryTab renders the gallery through the shared
  LazyListScope.collapsibleSection, keyed "artifacts" and seeded with
  rememberSectionExpansion(run.id), so a run opened fresh starts collapsed and
  the operator's choice persists per run across tab switches and config
  changes. Order is unchanged: the section still leads the summary and the
  facts item follows it. Expanding composes the unchanged ArtifactGallery;
  collapsing composes nothing.
- ArtifactGroups.kt: new pure runArtifactsHeader(steps, executing) builds the
  self-describing header - singular/plural title, recorded count and
  "· partial capture" when any visit excluded or omitted files; empty runs
  reuse the shared artifactsEmptyMessage. Its count equals runArtifactGroups'
  tile total, so the header and the expanded gallery cannot disagree.
- ArtifactGroupsTest.kt: four header tests covering count, singular vs plural,
  the partial-capture notes and the empty case, plus a count-matches-gallery
  assertion.
- android/README.md: records the change and its verification evidence.

Android only; no new dependency, no run started from the app, device work on
the operator's Pixel 10 Pro Fold (58281FDCG000JF). Verified: 269/0/0/0 unit
tests, clean assembleDebug and published APK LAN URL 200.
2026-10-16 17:51:56 +01:00
alan 98bbc2deac Report recorded decision evidence and harden the Pi artifacts env
Refinements on top of the human decision stage (a6aff47):

- `pipelines decide` now reports the feedback the server actually stored for
  the chosen option, so a repeated (idempotent) decision shows the recorded
  evidence instead of the ignored request text. A repeated decision is covered
  by a new assertion that also checks the step output does not change.
- The decision option/feedback output keys are defined once in protocol
  (DecisionOptionKey/DecisionFeedbackKey) with a DecisionEvidence reader, and
  the store and CLI use them instead of bare string literals.
- piEnvironment drops any inherited PIPELINES_ARTIFACTS_DIR before spawning Pi,
  so the artifactsDir argument is authoritative and an ambient directory (for
  example Pipelines' own when a stage runs inside another stage) never leaks
  into a child that was given none. Covered by a test with an ambient value set.
2026-10-16 17:25:48 +01:00
alan 95150c79c5 Render every artifact in the shared gallery, with file-type icons
Standardise the artifacts gallery so the run summary and the stage pane
render one tile per artifact instead of images as a grid and everything
else as a plain list.

- Artifacts.kt: ArtifactTile now covers both shapes - an image/video fills
  the cell with a thumbnail (a video shows its poster frame with a play
  badge), anything else shows its file-type icon with the name and size
  beneath it; the grid, share/copy actions and multi-select are unchanged
  and the capture wording is untouched.
- ArtifactType.kt (new): pure ArtifactKind classification from content
  type plus name extension fallback, and artifactIcon(kind) mapping each
  kind to a distinct glyph.
- ArtifactImage.kt: ArtifactVideoFrame/rememberArtifactVideoFrame extract
  a poster frame via MediaMetadataRetriever over an in-memory
  MediaDataSource; the shared memoized-preview scaffold is factored into
  rememberArtifactPreview.
- ArtifactViewer.kt: full-screen viewer takes a video flag and shows the
  poster frame.
- Format.kt: add isVideoContentType; drop the now-unused artifactMetaLine.
- Dimens.kt: ARTIFACT_TYPE_ICON_DP, ARTIFACT_PLAY_BADGE_DP,
  ARTIFACT_TILE_ACTION_DP tokens.
- Tests: new ArtifactTypeTest (type-to-icon mapping, extension fallback,
  distinct glyphs); FormatTest updated for the removed helper.
- android/README.md documents the pass.

android/ only; no new dependencies beyond material-icons-extended.
2026-10-16 17:13:35 +01:00
alan 12976ba372 Open stage sections as their own pane instead of expanding inline
Expanding a stage section rendered its rows stacked at the top of the section: CollapsibleSectionBody passed the section's several field composables straight into AnimatedVisibility, which measures a single child, so all rows were placed at the section origin and only the last (Memory) was visible. Fix the shared body by laying its content out in one full-width Column, and make every stage section open as its own pane rather than growing the stage screen inline.

- PaneState: add the Section pane level (MAX_PANE_DEPTH = 3), a saved sectionKey primitive, and the matching backStep/popTo/encode/decode handling so one Back or peek pops one level and the open section survives rotation and process death.

- StageDetailPane: the stage screen now keeps a compact collapsed list of sections (Artifacts, Output, Input, This run, Stage definition); tapping one opens it as a full-window screen on a narrow window or a panel to the right of the stage pane on a wide one, with its own title, scroll and top spacing. A shared stageSectionSpecs derives the sections for both the stage screen and the section pane, and the artifacts section keeps the shared ArtifactSelectionScaffold.

- PipelinesApp: wire the Section pane into the stack, its peeks and Back. Section content (Definition, Input, Output, Artifacts) and semantics are unchanged; sections start collapsed and the operator's choice persists.

- Tests: cover the section pane level, backStep, popTo and the shared stageSectionSpecs. Build and forced unit tests pass (262 tests, 0 failures); lint shows only the pre-existing themes.xml NewApi errors.

Android only (7 files); no dependency added, no server/Go/installer/Docker change, no run started from the app. APK published to the run artifacts directory and documented in android/README.md.
2026-10-16 17:12:13 +01:00
alan ee5cd742c2 Prove the always decision through the shared approval reply builder
Extend ChatApprovalTest so once, always and reject each go through the same
ChatProtocol.replyRequest builder plus one encode/decode round trip using the
DECISION_* constants, so no decision is asserted more weakly than another, and
add answeringAlwaysUpdatesTheCardInPlace (settled card, no actions, risk panel
retired, request still visible). Refresh the android/README.md verification
notes: 267 tests, the rebuilt APK's sha256 and byte size, the 147/3 artifact
path and LAN URL, and the emulator/device-lock notes for this pass.
2026-10-16 16:57:57 +01:00
alan a6aff47117 Add a human decision stage that pauses a run for an operator's choice
A new registered stage type `human` (internal/stage/human.go) has no model,
agent, tools or configs: its required `prompt` block carries the operator
instructions and its non-error edges are the selectable options. It parses,
validates, renders, exports and imports like every other type (no parser
special-case, no config keys).

At runtime the runner parks the run instead of executing: the step and the run
persist `waiting` with self-contained {prompt, options} evidence, and the run
returns without starting later stages, capturing file diffs, scanning artifacts,
holding a goroutine/timer or applying a stage timeout. The wait is durable: a
restart leaves the waiting rows untouched (RecoverRuns excludes them) and a
rebuilt runtime over the same database still accepts the decision.

`pipelines decide <run-id> [stage] --option KEY [--feedback TEXT] [--json]` and
the TUI `c` picker resolve the decision from the pinned graph in one store
transaction, record the choice and feedback as the step's evidence and resume
along edges[KEY]. An unknown option is refused with the valid list, a stage that
is not waiting is refused, and a repeated decision for an already-decided visit
does not double-apply. Cancel and retry keep working while waiting and after a
decision; a human stage is never killed by a stage timeout or max_visits, and a
`notify` policy can fire an `on=waiting` event.

Docs: the authoring skill references (format.md, operations.md), docs/cli.md and
README describe the stage, the command and the TUI picker. Tests cover stage
validation, the parsing round-trip, the store transitions, a websocket wait/decide
integration, cancel/retry, waiting notifications and a persistence-layer rebuild
(second Open + newRunner over one database, no process restart).
2026-10-16 16:47:28 +01:00
alan 305714c30f Drive the composer's stop control and IME action from one derivation
While a turn was in flight the trailing composer button became the stop
control, but the text field's keyboard send action still checked only
canSend, so a prompt could be sent from the IME during a run even though
the visible control had become stop.

Add ChatFormat.composerAction(thread) -> ComposerAction.Send/Stop as the
single pure derivation and read it from both the trailing button and the
keyboard action, so the two controls can no longer disagree.
ChatFormatTest.composerControlIsStopWhileARunIsInFlightAndSendOtherwise
covers Send when idle and Stop while running. android/ only; no new
dependency.
2026-10-16 16:26:16 +01:00
alan 609721d53b Show pushed approvals as in-place chat cards
Render a server-pushed chat_permission as an approval card in the
transcript instead of a transient bar above the composer, matching the
reference opencode/Jarvis chat: the requested action, its resources, the
amber RISK REVIEW panel, and once/always/reject actions wired to the
server's chat_reply.

- ChatFormat: a pure approvalCard()/ApprovalCard model and one
  ChatProtocol.replyRequest() builder shared by the card's actions and
  the repository, so the wire frame and the controls cannot drift.
- ChatStore/AppViewModel: answerPermission() settles the card in place
  optimistically and survives a chat switch; a failed reply reopens the
  same request rather than showing an unacknowledged decision.
- ChatPermissionFrame gains optional resolved/decision fields so a
  request the server reports as already settled shows its verdict with
  no stale actions; a new request replaces a settled card.
- Findability: a gold PanTool top-bar action and chat-chip marker jump
  to the pending card; the running indicator stands down while waiting.
- Tests: ChatApprovalTest covers pending/answered/resolved, the reply
  builder's once/reject decisions and the missing-summary fallback;
  ChatProtocolTest covers the server-resolution frame. README records
  the 265-test/assembleDebug evidence and the emulator-5556 captures,
  and .approval_check/chat_stub_approval.py is the test double used.

android/ only; no new dependency beyond material-icons-extended; no
Pipelines server, Go, installer or Docker file touched; no run started
from the app. The live brokered server is not verified (the resolved
frame fields are an additive contract it does not emit yet).
2026-10-16 16:12:22 +01:00
alan c700b28e6a Add cross-system read-only search
One query now finds anything in the system over the wire and from the CLI.

- protocol: add Search/SearchResults message types and a SearchRequest
  (query, optional kind filter, optional limit) / SearchResponse (typed,
  ranked matches plus truncation and scan-bound counters) pair, with typed
  payloads for pipeline, version, run, step/visit, field text and artifact.
- store: add Store.Search, a read-only query over pipelines,
  pipeline_versions, pipeline_runs, run_steps (+step_control) and
  step_artifacts. Ranks exact name (3) > name substring (2) > body text (1),
  breaks ties by recency then a stable kind/target order, and reports the
  matched field. Bounds work with a 50-default/200-max result cap, a 2000-row
  per-kind scan limit and a 2000-step / 1 MiB field-text scan budget.
- terms: a bare status word or lone date expression (today, yesterday, this
  week, YYYY-MM-DD) selects runs; anything else stays free text.
- server: dispatch protocol.Search to stores[0].Search; read-only and
  unconfirmed.
- cli: add `pipelines search QUERY [--type KIND] [--limit N] [--json]`, help
  text and a BROWSE line.
- store: add OpenReadOnly so the live-database check never runs DDL.
- docs: document the grammar, kinds, ranking and bounds in docs/cli.md,
  scope the TUI omnisearch to pipelines in docs/ui-ux-review.md, and add a
  search bullet to the packaged operations reference.
- tests: protocol round trip, store/ranking/term-parsing/limit/scan-bound
  unit tests, a server end-to-end test, and an env-guarded live check.

No new dependencies; go.mod/go.sum unchanged.
2026-10-16 15:43:25 +01:00
alan 78d5bd38fc Route the stop control's interrupt through one tested builder
Extract the single chat_interrupt frame into ChatProtocol.interruptRequest and
have PipelinesRepository.chatInterrupt send it, so production and its unit test
share the one wire shape instead of the repository building it inline.

Add chatInterruptRequestCarriesTheRunningSession, which asserts the frame the
stop control sends is chat_interrupt carrying the running session's id (and no
chat prompt/reply) and that it survives the client's JSON round-trip.
Document the slice and its emulator-5556 evidence in android/README.md.
2026-10-16 15:31:04 +01:00
alan e2f306b8bd Summarise large edit diffs and label the card with file and stat
The chat edit diff card rendered every line of an edit, so the >400-line
fallback flooded the transcript with thousands of Text nodes on a phone;
it also showed only the tool name, not the file, on the expanded panel.

- ChatFormat.toolEditDiff keeps the first MAX_RENDERED_DIFF_LINES (200)
  lines and puts the remainder in the new ToolDiff.omitted, while the
  +N/-M counts continue to describe the whole edit.
- DiffView prints "… N more changed lines not shown" first so the
  truncation is visible without scrolling.
- The expanded panel header now shows the edited file name and the shared
  green/red DiffStat, matching the collapsed chip.
- ChatFormatTest pins omitted = 0 for a small edit and the true counts,
  200-line cap and omitted = 300 for an oversized one.
- android/README.md records the change and its evidence.
2026-10-16 15:15:35 +01:00
alan 1b4674d22c Show the derived stage verdict atop the stage view in the run detail
Move a completed stage visit's derived verdict out of the Progress summary
and into the top of the selected stage's Result section, so the chosen
option, its concise reason and the referenced artifacts are visible where
the stage is inspected.

- Add stageVerdictLines, which renders one line "Verdict: <option> · <reason>"
  (still stating the option when the reason is absent) plus a following
  "Referenced artifacts:" line only when artifacts exist, and returns nil
  for a nil verdict so nothing extra is shown.
- Prepend those lines in runSectionLines after the stage state and before
  the stage output and evidence, without adding a section or changing the
  panel layout.
- Update the TUI test to render through the run-detail view, asserting the
  option, reason and artifact names appear, and that a nil verdict adds
  nothing; document the TUI placement in the debugging skill reference.

Omni-search work already present in the working tree (including the
runDuration→protocol.Duration refactor in run_detail.go) is unrelated to
this change and is left uncommitted.
2026-10-16 15:12:23 +01:00
alan c13dca0f42 Merge branch 'main' into lane-go 2026-10-16 14:18:24 +01:00
alan 291cec2bda Show chat tool calls as expandable INPUT/OUTPUT chips
Render each assistant turn's tool calls the way the reference jarvis chat
does: one compact chip per call showing the tool name, its duration and a
spinner while it runs, with consecutive calls of a turn grouped into one
wrapping row so the transcript stays scannable (ChatScreen AssistantParts /
ToolCalls).

Tapping a chip opens a floating panel over the transcript with INPUT as
pretty-printed JSON and OUTPUT as monospace, plus copy actions. The panel is
dismissible by tapping outside or its Close action and is positioned by
ToolPanelPositionProvider so it never moves the conversation (the transcript
scroll position is untouched while the overlay is open).

A failed call is shown as failed and renders both its diff (when present) and
an ERROR block. ERROR text now comes from the new toolErrorText, which prefers
the server's error message over any partial output, while toolOutputText is the
OUTPUT derivation again; toolFailed identifies the error state.

While a turn streams, the transcript follows the newest content with a hard
jump unless the operator has dragged away, driven by
listState.interactionSource.interactions (DragInteraction.Start/Stop/Cancel)
rather than programmatic scrolls. The running indicator and its live elapsed
time derive from the turn's own start (ChatThread.elapsedMillis, an injectable
clock in ChatStore) so they survive a chat switch.

A reconnecting socket now settles every open chat and re-fetches its history
(ChatStore.streamResumed, AppViewModel.observeConnection), and a server-pushed
stream error with no session id settles the sole/active running turn with the
server's message instead of leaving the indicator spinning.

Tests: ChatFormatTest covers toolErrorText; new ChatStreamTest covers the
streaming/elapsed/reconnect/stream-error guarantees against an injected clock;
new ToolPanelPositionProviderTest covers the panel's below/flip/margin
placement. README's chat section documents the follow-the-stream mechanism.
2026-10-16 14:17:50 +01:00
alan e79ff9585f Derive a plain-language verdict for every completed stage visit
Each completed step now exposes a verdict: the chosen option (outcome -> target),
a bounded one-line reason with model/fallback/absent provenance, and the recorded
artifacts the reason refers to. The store persists only the model-generated line
in a new step_verdicts table and derives the fallback at read time (no backfill);
the server generates the line once at completion, best-effort; the TUI renders it
in the stage progress summary. The packaged debugging reference documents it.
2026-10-16 13:54:48 +01:00
alan f3e0593f4d Let runs carry an operator title shown in the CLI and TUI
Add a bounded, never-empty title to every run. `pipelines run --title "..."`
sets it explicitly and skips model generation; otherwise the server generates
it from the prompt through the shared summariser and falls back to the prompt's
first line, recording title_source (model/fallback/explicit) and title_model.

- protocol/store: RunSummary.Title plus Label(), a set_run_title message, title
  columns with an idempotent migration, CreateRunTitled, and SetRunTitle renames.
- summarise: Title/GenerateTitle/DeriveTitle/ExplicitTitle bounded to TitleCap.
- runner: generate the title outside the admission lock and only for a request
  that starts a run; a replay reuses the stored title and an explicit title
  skips the model entirely.
- CLI: `--title` on run and a `title <run-id> "<title>"` rename command; human
  `runs` and `inspect` show the title beside the pipeline name and version.
- TUI: the run list row, run detail header, Home run cards and last-run line,
  and the pipeline Results line show the title via Label().

Tests cover storage/migration/fallback, explicit-title and rename, the
end-to-end CLI flow, and title rendering; CLI and operations docs updated.
2026-10-16 13:36:48 +01:00
alan dce624b428 Merge lane-go: keep the lane's reviewed work 2026-10-16 13:12:36 +01:00
alan 0e6fbcc062 Merge branch 'main' into lane-go 2026-10-16 13:09:34 +01:00
alan d546bc7a3a Migrate the graph, panes, rail and sheet onto the geometry tokens
Move the workflow-graph package (WorkflowGraph, the StageDetailPane sheet,
Artifacts, ArtifactViewer, ArtifactImage) off its remaining raw dp literals
and onto the geometry tokens, all substitutions value-equal so the visuals
are unchanged.

- ui/theme/Dimens.kt gains the off-scale component and graph-chrome sizes:
  the run legend's GRAPH_LEGEND_PAD_X/PAD_Y/GAP, the collapsed
  GRAPH_PANEL_MIN_HEIGHT (moved off WorkflowGraph.kt, now imported by its
  test), the gallery's ARTIFACT_TILE_DP/THUMB_DP/BADGE_DP/PROGRESS_DP/
  PROGRESS_STROKE_DP, and the stage-type chip's STAGE_CHIP_PAD_H.
- Artifact tile/row and thumbnail corner radii derive from the Material
  shape scale (MaterialTheme.shapes.medium/.small), matching the graph's
  existing node corners.
- DimensTest.kt's allow-list shrinks from 24 to 21 entries: 24.dp, 56.dp and
  96.dp are gone now that their last call sites migrated. The structural
  hairlines/zeros, the not-yet-migrated app shell and Settings literals, and
  the sp type values owned by Typography.kt remain.
- WorkflowGraphTest.kt imports the moved GRAPH_PANEL_MIN_HEIGHT.
- android/README.md documents the change and its verification evidence.

Verified: gradle :app:assembleDebug :app:testDebugUnitTest --rerun-tasks
BUILD SUCCESSFUL, 30 XMLs / 259 tests, 0 failures/errors/skipped; the
enforcement test fails on a deliberately introduced literal and passes once
removed; before/after captures at both window widths differ only on the
status-bar clock and live relative-time text.
2026-10-16 13:08:54 +01:00
alan 9f88e4ff71 Recover malformed model-stage results with a bounded, work-preserving repair
A model stage whose final result was malformed failed the whole run even when
the work and evidence had survived, because the only recovery was an isolated
formatter call on a fixed 30-second deadline that could time out on its own
(run 55, ui_reviewer of pipeline 9 v6).

Add an ordered, deterministic local repair pass (internal/stage/result_repair.go)
that runs before any model call: (a) append missing closing delimiters via the
existing closeJSONContainers; (b) remove one unambiguous trailing comma before a
closing } or ]; (c) insert exactly the single comma/colon the JSON parser reported
at its byte offset. Every candidate must pass losslessSyntaxRepair(original,
candidate) and decodeModelResult before it is accepted, so no field value is
invented, removed, reordered or rewritten. Ambiguous payloads (an unescaped quote
or colon inside a string value, or a stray delimiter with no single completion)
return not-ok and fall through to the bounded model re-emit rather than guessing.
stageResultText still strips surrounding prose and a single code fence first;
model_prompt.go now also strips prose around a single balanced-but-malformed
object span so the deterministic pass sees just the object.

Replace the fixed 30-second formatter deadline with repairDeadline(payloadBytes,
remaining), which grows monotonically with payload size, has a floor, and is
clamped to the attempt's remaining budget minus a safety margin, so the stage
context remains the outer bound and a large result is not guaranteed to time out.
The one-request-per-attempt, 32 KiB bound and the deny-all, retained, new-session
property of RepairFormat are unchanged for OpenCodeClient and PiClient.

Record an explicit recovery status on every terminal path: repaired, partial or
unrecoverable, plus a byte offset. A candidate that is valid JSON but still fails
envelope validation is marked partial and never returned as a completed result;
the unrecoverable path retains the bounded original payload, the precise parse
error (including its byte offset) and surfaces the status in the FINAL RESULT
VALIDATION diagnostic.

safeToReplay is intentionally unchanged. The deterministic local repair and the
fresh deny-all, no-tools, retained formatter session are independent of the
stage's tool set and never re-prompt or replay the admitted agent session, so a
shell-enabled review stage gains malformed-result recovery without any replay of
admitted work. Risk: no change to mutation safety; the only added cost is one
bounded formatter call, already budgeted. Replayability is not extended for shell
stages.

Docs and packaged skill references (docs/model-results.md,
internal/author/skill/references/{format,debugging,verification}.md) describe the
three-tier recovery, the status words and the derived deadline; the safeToReplay
decision and its risk are recorded there alongside the commit.

Tests add mocked, offline coverage for the deterministic and partial paths, a
repairDeadline monotonicity/floor/clamp table, and a shell-stage regression
proving a recoverable malformed result does not fail the run or replay tool work.
2026-10-16 13:02:53 +01:00
alan d7f650032d Render assistant text as markdown in the chat transcript
Add a dependency-free CommonMark-subset parser/renderer (ui/chat/Markdown.kt):
paragraphs, headings, fenced code, block quotes, bullet/ordered lists, tables,
thematic rules and inline code/bold/italic/links/autolinks. The renderer turns
blocks into themed, selectable Compose content: fenced code reuses the shared
CodeBlock (existing whole-block copy action), tables are a bordered grid with a
bold header, links use LinkAnnotation.Url, and inline code/headings use the
shared type roles.

ChatScreen.MessagePart now calls MarkdownText(part.text) for PART_TEXT instead
of a single plain Text; the assistant message stays one SelectionContainer, so
all of it remains selectable and long content stays inside the bubble. Geometry
reuses the chat tokens (CHAT_ITEM_GAP promoted private -> internal).

Add MarkdownTest with 10 unit tests covering fences/language, unterminated
fences, soft-wrap joining, headings/rules, lists, tables, inline spans, bare-URL
autolinks and snake_case non-emphasis. Document the change in android/README.md.
2026-10-16 13:01:39 +01:00
alan 7b3a56398d Merge branch 'main' into lane-go 2026-10-16 12:44:09 +01:00
alan 0718f5ba6f Add the Chat destination and hold several conversations at once
Entry point: the floating destination pill gains a Chat icon between Runs and
Settings; it stays a single non-wrapping Row of 48dp targets using the named
DESTINATION_ITEM_SIZE/DESTINATION_ITEM_GAP tokens, clear of the existing 88dp
reserve, so it stays narrow however many destinations it holds.

Protocol/transport: new data/protocol/Chat.kt mirrors the brokered chat wire
shapes; Message gains the optional chat_* payloads, PipelinesClient forwards
unsolicited frames (chat_event/chat_permission) to a new events flow instead of
dropping them, and PipelinesRepository exposes the typed chat calls (sessions,
create, messages, prompt, interrupt, reply).

State: ui/chat/ChatStore.kt is an Android-free multi-chat holder; every open
chat keeps its own conversation, running flag, composer draft and scroll
position, open/activate report when history must be re-synced so a running
session refreshes on return instead of showing a stale copy, and busy/read-only
sessions refuse writes.

Surface: ui/chat/ChatScreen.kt lists the server's sessions with running/busy/
read-only status and an open-chat strip to switch between conversations (chip X
closes only that chat); the conversation is a bottom-anchored transcript of user
bubbles, reasoning, assistant text and tool-call chips that expand to INPUT
(pretty JSON)/OUTPUT (monospace), edit-family calls render a diff card derived
from oldString/newString, and pending chat_permission frames surface an approval
bar answered via chat_reply. New chat creates and opens a session. The manifest
sets windowSoftInputMode=adjustResize for the composer.

Tests: ChatProtocolTest, ChatFormatTest and MultiChatStateTest cover the wire
shapes, formatting and the multi-chat model (switching preserves each
conversation, a running session re-syncs on return, per-chat drafts/scroll,
busy read-only, background events land on their chat). README documents the
slice and its evidence.
2026-10-16 12:43:37 +01:00
alan 3765fdfdf6 Migrate the list and detail screens onto the geometry tokens
Replace the hardcoded paddings, spacings, sizes and offsets in the four
list/detail screens and the shared components they are built from with
references to the token file from the previous item, via WindowInsets or
layout where those derive the value. Every replacement is value-equal, so
the screens render identically at both window widths.

Name the glyph sizes that cannot derive from layout as four new ICON_*
tokens in ui/theme/Dimens.kt (14/18/20/24dp) and shrink the DimensTest
allow-list from 30 to 24 entries: 14.dp, 18.dp and 20.dp leave because
their last call site migrated, and the already-unused 32.dp, 11.sp and
13.sp entries are dropped. All adb/emulator work targeted emulator-5554
only; android/ only; no new dependency, server/Go/installer/Docker file
touched, and no run started from the app.

Verified: :app:assembleDebug + the full unit suite (30 result XMLs, 259
tests, 0 failures/0 errors/0 skipped), the shrunk allow-list still fails a
forced raw-literal probe, and before/after screenshots of every converted
screen at narrow and wide widths match near-zero.
2026-10-16 12:43:19 +01:00
alan bfef465977 Fix build: define protocol.NormalizeText used by the summariser
internal/summarise called protocol.NormalizeText, which was never defined, so the tree did not compile. Add the shared normalisation helper: drop zero-width formatting runes, turn control characters into spaces and collapse whitespace runs (including the non-breaking space variants) into single spaces. Reuse it in OutputPreview instead of duplicating the mapping logic.

Cover the awkward inputs (newlines, tabs, non-breaking spaces, zero-width runes, surrounding quotes, trailing punctuation) in the protocol and summarise tests. Unrelated working-tree changes are left uncommitted.
2026-10-16 12:28:27 +01:00
alan 8e49a0c6f9 Merge lane-go: keep the lane's reviewed work 2026-10-16 12:07:02 +01:00
alan a8ff49f423 Merge lane-app2: keep both lanes' reviewed work
Compose the parallel lane (lane-app2) with the work already on main,
preserving both intents rather than picking one side:

- lane-app2's modernised run graph (rounded tonal nodes, pill terminals,
  chipped outcome labels, pass/fail emphasis and active-stage/edge motion)
  plus its remembered list filters/sort and last-run badges, and the
  app-owned run-status palette.
- main's cross-fading loading/empty/error states, animated list items and
  the single geometry token file (Dimens.kt + DimensTest).

Conflicts resolved in android/README.md (kept both appended sections),
RunStatus.kt (kept the shared ColoredChip extraction and made it animate
under MotionQuick), PipelineListScreen.kt (filters/sort/badges composed with
the StateCrossfade/load-phase presentation and animateListItem rows),
RunDetailScreen.kt (kept both the artifact-selection and graph-palette
imports) and RunHistoryScreen.kt (the cross-faded load branch now passes
sort/filters through, and both empty branches keep the Clear filters action
with animated items). LoadPhase.Empty now carries an optional recovery
action so the crossfade can still offer Clear filters. The graph's new
geometry literals moved onto Dimens.kt GRAPH_* tokens so DimensTest passes
and its allow-list shrinks as intended.

Verified: :app:assembleDebug and :app:testDebugUnitTest (259 tests,
0 failures) with the offline Gradle 8.11.1 / JDK 17 toolchain.
2026-10-16 12:04:45 +01:00
alan f6b9424894 Add a single geometry token file and a test that enforces it
Introduce ui/theme/Dimens.kt as the one source of truth for app geometry,
alongside Typography.kt for type. It defines the 4dp spacing scale
(SPACING_XXS/XS/S/M/L/XL/XXL) and receives the geometry constants that
already existed, each with a comment tying it to what it is: PEEK_WIDTH_DP
(the collapsed strip), PEEK_BUDGET_DP, MIN_ACTIVE_PANE_WIDTH_DP and
MIN_COVERED_PANE_WIDTH_DP from SlidingPaneStack.kt, DESTINATION_PILL_RESERVE
from PipelinesApp.kt, and WIDE_RAIL_WIDTH_DP and DETAIL_MAX_WIDTH_DP from
DetailTabs.kt. Call sites now import the tokens; every value is unchanged,
so no layout changes.

Add ui/theme/DimensTest.kt, a JVM test that scans the app's Kotlin sources
for raw dp/sp literals and fails with file:line:literal unless the literal
is a token or an explicit, reasoned allow-list entry. The allow-list records
the 34 literals that predate the token file, each with a written reason, and
is expected to shrink as call sites migrate onto the tokens.

Document the change and its verification in android/README.md.
2026-10-16 11:50:26 +01:00
alan e5bde981ee Modernise the workflow graph's visual language
Replace the old terminal-diagram look on the Graph tab with a tonal
surface language, keeping the same information and every outcome hue.

- Nodes: stages are rounded rectangles from MaterialTheme.shapes.medium,
  terminals become pills (height/2). Fills are tonal surfaces via the new
  pure tonalFill(surface, accent, fraction) with a soft outlineVariant
  border instead of a flat fill plus hard outline.
- Type: node names use the cardTitle role and outcome labels the label
  role, with theme line height/letter spacing; the [brackets] and all-caps
  are gone (nodeDisplayLabel renders Success/Failure title-cased in colour).
- Edges: StrokeCap.Round/StrokeJoin.Round, bends rounded by one
  ROUTE_CORNER_RADIUS (cornerCutRadius clamps short segments), filled
  arrowheads scaled as edgeStrokeWidth * ARROW_HEAD_SCALE, and labels on
  a shared DrawScope tonal chip.
- Spacing: named dp tokens instead of ad-hoc literals.

Adds pure-logic unit tests (WorkflowGraphTest, GraphPaletteTest) and
documents the change in android/README.md.

Verified: :app:assembleDebug and :app:testDebugUnitTest both BUILD
SUCCESSFUL (207 tests, 0 failures) with no Kotlin warnings.
2026-10-16 11:50:08 +01:00
alan e84b0db728 Merge branch 'main' into lane-go 2026-10-16 11:33:19 +01:00
alan d019213c5b Animate selection and live state changes
Animate selection and status changes across the Android UI using the
existing Motion tokens, leaving every resting state unchanged.

- DestinationPill draws one selection indicator and animates its offset
  between the three slots (animateDpAsState, MotionStandard), with the
  glyph tint cross-fading in step; geometry comes from named
  DESTINATION_ITEM_SIZE/GAP tokens via the unit-tested
  destinationIndicatorOffsetDp helper.
- The shared ListRow fades its tonal container and content colour under
  MotionQuick instead of switching.
- New shared CollapsibleSectionBody wraps section bodies in
  AnimatedVisibility (expand/shrink + fade) under MotionQuick, used by
  both the lazy collapsibleSection and the stage pane's StageSection, so
  body and chevron move together.
- StatusChip eases container and label colour and RunStatusIcon eases its
  glyph tint, so a live run's status transition is visible rather than a
  silent colour swap.

Verified: assembleDebug + testDebugUnitTest BUILD SUCCESSFUL, 186 tests
across 23 classes with 0 failures/errors/skips; frames captured on
emulator-5554 for the travelling pill, section collapse and a live status
change; APK published to the run artifact directory. README documents the
change and its evidence.
2026-10-16 11:24:01 +01:00
alan 5157b3a716 Add bounded one-line summariser using the configured default harness
internal/summarise performs a single tool-free generation through the
configured default harness (its interactive model), reusing the exact
stage.ModelGenerator/OpenCodeClient/PiClient construction provider-check
uses. It bounds input (InputCap), output (one line, OutputCap runes) and
time (DefaultTimeout), returns the NoSummary sentinel on any error/timeout/
unusable reply, never runs tools or writes files, and records the harness,
model and failed flag in one sanitized log line plus at most one
OperationEvidence.

Reuse: stage.TruncateRunes and stage.OperationLog.Record are the exported
forms of the existing rune-safe truncation and bounded evidence recording;
protocol.NormalizeText trims replies to one line. No new dependencies.

Not wired into titles/verdicts yet: protocol.OutputPreview and the
internal/server/notify.go notification summary are the obvious future call
sites.
2026-10-16 10:55:43 +01:00
alan 7f7492a7bd Merge branch 'main' into lane-go 2026-10-16 10:45:56 +01:00
alan b89ad29c41 Cross-fade loading, empty and error states in data-backed panes
A data-backed pane swapped its loading spinner, empty message, error
message and content with a plain `when`, so content flashed from empty to
full and empty/error states popped.

Introduce a shared presentation model in ui/components/States.kt:
- `LoadPhase` (Loading, Error(message), Empty(message), Content), with
  message-carrying phases capturing their text at classification so a
  fading-out branch never recomposes against cleared error/filter state.
- `listLoadPhase(loading, error, hasData, emptyMessage)` and
  `detailLoadPhase(error, hasData)` pure classifiers preserving the
  existing precedence (failed load with no data, then loading, then
  empty, else content; stale data keeps the pane on content).
- `StateCrossfade(phase)` wraps the branch in a `Crossfade` using the
  existing `MotionStandard` token; both branches share one box so the
  resting layout is unchanged and the outgoing phase fades under the
  incoming one.

Apply to PipelineListScreen, RunHistoryScreen, PipelineDetailScreen and
RunDetailScreen. Detail panes render the fading-out branch from the last
non-null item. The Runs pane keeps its inline empty/error line inside the
list, now fading through animateListItem().

Add LoadPhaseTest covering the classifiers and captured messages, and
document the change and evidence in android/README.md.
2026-10-16 10:45:27 +01:00
alan 934994d7f7 Add named motion tokens and animate list item changes
Introduce ui/components/Motion.kt beside the pane dimension tokens: two
named duration+easing tokens, MotionQuick (120ms) for small in-place state
changes and MotionStandard (220ms) for content that moves or swaps, under a
300ms MAX_MOTION_MILLIS cap. Every animation call site now asks a token for
its spec instead of writing a duration: the pane slide and section
Crossfade use MotionStandard, the section chevron uses MotionQuick, and the
pane-pop stagger moves in as MOTION_STAGGER_MILLIS (the old
PANE_SLIDE_* / SECTION_SWAP_MILLIS constants are gone).

Add a single LazyItemScope.animateListItem() helper (ListRow.kt) wrapping
the supported Modifier.animateItem with the tokens: items fade in/out
(MotionQuick) and slide to new positions on refresh, filter or re-sort
(MotionStandard). Pipelines rows, run rows, version rows and evidence rows
use it. Specs are built at composition time (no per-frame allocation) and
the chevron reads its angle inside graphicsLayer so it turns without
recomposing the header; resting layout is unchanged and the standard
animator duration scale still applies, so disabled animations are instant.

Add MotionTest covering token ordering, per-token bands, the cap, monotonic
easings, self-reversal and spec timing; SlidingPaneStackTest now reads the
pane timing from the token. Document the change and its verification in
android/README.md.
2026-10-16 09:55:41 +01:00
alan 8b39c087fd Animate the active stage and executed edges in the run graph
Show what is happening while a run is live. The executing stage now carries a
subtle pulsing halo (replacing the blink) and a live ticking elapsed badge
derived from the run's current visit start. Executed edges carry a directional
flow of light dots along the path; a finished stage settles into its static
colour. A finished run never animates, the animation pauses when the graph is
off screen, and with the system animation setting disabled it falls back to a
static but clearly marked running state.

The per-frame visual state and should-animate decision live in pure functions
(GraphMotion.kt, Format.kt secondsSince; GraphSemantics exposes executing and
currentStageStartedAt) with unit tests and no frame-timing assertions. Adds
GraphMotionTest and extends GraphSemanticsTest and FormatTest.
2026-10-16 09:52:57 +01:00
alan 1818a06d2f Restrict chat_sessions to server-owned sessions
chat_sessions now brokers GET /api/session but filters the global list to
the sessions this server recorded in run_steps, deduped by session id, and
fails closed to an empty list when no ownership source is configured. A
session another client holds (in-server claim, released on stream end or
disconnect) or an active run is marked busy; a second client's chat_prompt
for a held session is rejected before any OpenCode call. chat_create stays
unbrokered.
2026-10-16 09:21:50 +01:00
alan dca72a09ee Merge branch 'main' into lane-go 2026-10-16 09:07:06 +01:00
alan 0b74903a00 Add long-press artifact multi-select with bulk copy and share
Long-pressing any artifact — a gallery tile in the run summary or a row in
the stage pane's per-visit list — now enters artifact selection: the pressed
item is selected with the app's selected treatment and further taps toggle
items instead of opening them. A contextual bar replaces the surface's top
bar while selecting, showing the count plus Copy links, Share and a close;
it carries the same pane safe-area insets as the bar it replaces, uses 48dp
IconButtons and leaves selection mode on Back before the surface's own Back
runs. Selection applies only to artifacts, never the runs or pipelines lists.

The selection is one shared host: ArtifactSelectionScaffold owns the
remembered ArtifactSelection, the resolvedSelection lookup, the bulk
copy/share actions, the SnackbarHostState and the pane-scoped BackHandler,
and both RunDetailScreen (summary grid) and StageDetailPane (per-visit list)
go through it, so neither screen owns its own SnackbarHostState or
BackHandler. The immutable ArtifactSelection (enter/toggle/selectAll/clear)
treats selection mode as "one or more urls selected", so it can never
restore half-applied; rememberArtifactSelection saves it via a listSaver and
reseeds per run/visit.

Copy links resolves every selected url against the configured server through
the existing resolvedArtifactUrl (no hardcoded host), writes one absolute
link per line through the new single Clipboard.copyText path (now also used
by the code blocks, pipeline source, artifact row and viewer), and confirms
the number of lines actually produced in a Snackbar. Share fetches every
selected artifact through the existing client, reuses the single-item
writeSharedArtifact (same bounded cache, FileProvider and prune), and sends
one ACTION_SEND_MULTIPLE typed by bulkShareMimeType (the common type, else
the wildcard) with the count in the chooser title; when any fetch fails the
whole set degrades in the same action to its resolved links shared as text.

Pure helpers and tests: ArtifactSelectionTest covers enter, toggle,
deselect-last, select-all/clear, the restored state, the one-per-line link
formatting and the labels; ArtifactSharingTest gains shareTargets and
bulkShareMimeType cases. Unit tests plus assembleDebug pass (168 tests,
21 classes, 0 failures). android/README.md documents the model, action bar
and the bulk share flow, and the doc-accuracy pass records that the bulk
copy writes links in gallery (candidate) order.

No new dependency (icons come from the declared material-icons-extended).
2026-10-16 08:51:03 +01:00
alan 3ff5cd8838 Poll OpenCode permission requests and forward chat_reply 2026-10-16 08:06:39 +01:00
alan 1e7862e7c9 Make pass/fail edges the loudest lines in the run graph
Treat `success` and `error` as the emphasised outcomes so pass/fail is
obvious at a glance and from a distance. An executed pass/fail edge now
uses PASSFAIL_EDGE_STROKE=7f (was 3f), a same-hue, more saturated stroke
(PASSFAIL_SATURATION=1.6f via the new pure boostSaturation helper) and a
matched PASSFAIL_ARROW_HEAD_SIZE=20f arrowhead. Other executed outcomes
keep EDGE_STROKE=3f and not-executed routes the finer
INACTIVE_EDGE_STROKE=2.5f, so the two decisive outcomes dominate.

All widths, the arrowhead size and the saturation factor are named
tokens chosen by edgeStrokeWidth/edgeArrowHeadSize/edgeStrokeColor; the
old 12f arrowhead literal at the call site is gone (drawArrowHead now
takes the size as a parameter). Outcome hues are unchanged; the boosted
stroke keeps the original hue and value.

The run Graph tab help line notes that executed success and failure
routes are drawn thickest, and the definition-only view gets the same
emphasis since every route counts as executed there. New unit tests cover
the saturation maths (hue/value/alpha preserved, safe and clamped) and the
per-edge width/arrowhead/colour choices.
2026-10-16 08:06:34 +01:00
alan 9d1676df0a Merge branch 'main' into lane-go 2026-10-16 07:21:40 +01:00
alan 9c47527def Make executed vs not-executed unmistakable in the run graph
Carry the two states structurally instead of by fading, so the difference
survives a screenshot, a dim screen and a colour-blind reader.

- Executed edges: solid full-colour stroke plus an arrowhead.
- Not-executed edges: dashed muted stroke (INACTIVE_DASH_EFFECT), no arrowhead.
- Executed nodes: keep their fill and normal border.
- Not-executed nodes: no fill, dashed muted border and a muted but legible label.
- Add a one-line legend (GRAPH_LEGEND / GraphLegendEntry / LegendSwatch) pinned
  TopStart, rendered only when a run is selected.
- Replace the private EdgeLayout.isExecuted/inline visited check with the shared
  edgeIsExecuted/stageIsExecuted predicates and remove the alpha-based dimming.
- Update the KDoc and the run Graph tab help text ("solid ... dashed and outlined").

Tests: executed/inactive predicates over the definition view and a RunGraphState,
the dash pattern as a positive even-length rhythm, and the legend naming both
states with executed first.
2026-10-16 07:04:48 +01:00
alan 1195535852 Add a real share action to every artifact item
Give each gallery image cell and each per-visit file row its own share
control: a 48dp IconButton with an accurate "Share <name>" content
description drawn as a sibling of the item's tap handler, so sharing
never opens the image or the item.

Sharing fetches the artifact through the existing client into a scoped
cache file (cache/shared-artifacts/), exposed via a non-exported
FileProvider declared with the new res/xml/file_paths.xml, and sends it
through ACTION_SEND. When the fetch returns nothing the action falls
back to sharing the resolved link as text. Cache files are named
deterministically per artifact so re-sharing overwrites instead of
growing without bound, and a failed or unreachable fetch cannot crash.

The artifact-to-file naming, mime/extension table and the file-vs-link
fallback decision are factored into ArtifactSharing.kt and covered by
the new ArtifactSharingTest.kt. The existing open and copy-link actions
are unchanged; the viewer's action scrim alpha is shared as
ARTIFACT_ACTION_SCRIM_ALPHA. android/README.md documents the provider
and the share flow. No new dependency is added.
2026-10-16 07:03:18 +01:00
alan b28f88be66 Add tests proving chat_interrupt stops a running chat turn
The chat_interrupt path was already wired end to end (protocol type,
server dispatch through handleChatSimple to broker.Interrupt, and the
adapter POST /api/session/{id}/interrupt), but nothing exercised it
against a live stream. Add the missing coverage:

- internal/opencode/chat_test.go: pin the adapter's outbound call
  exactly (POST /api/session/ses_1/interrupt, empty JSON body, one
  request, nil on 200) plus a non-nil error on HTTP 500.
- internal/server/chat_test.go: drive the real opencode.Chat adapter
  over an httptest SSE fixture that holds the turn open until the
  interrupt arrives, then assert the run ends, the interrupt is
  acknowledged, no error frame is sent, and the prompt/interrupt posts
  and interrupt path match. Also cover invalid-session rejection,
  the unconfigured-broker error, and broker-failure reporting, adding a
  spare interruptErr hook to the scripted fakeChat.

Production code is unchanged: verification found no gap in the existing
interrupt transport. Tests use httptest loopback fixtures only and do
not touch the live OpenCode service.
2026-10-16 06:43:02 +01:00
alan e131c02fa1 Merge branch 'main' into lane-go 2026-10-16 06:35:43 +01:00
alan d339827b5f Open artifact images in a full-screen zoomable viewer
Tapping an image artifact (run summary grid, per-visit list or stage pane,
all rendered through ArtifactGallery) now opens a new scrim-backed
full-screen viewer instead of the former small centred dialog, which is
removed rather than stacked.

- ArtifactViewer.kt renders a full-bleed Dialog (usePlatformDefaultWidth =
  false, decorFitsSystemWindows = false) whose content re-applies
  paneSafeArea() so the dark backdrop reaches the edges while respecting
  status bar, cutout and navigation bar. A top-right row keeps the
  open-in-new and copy-link actions and adds a close button over a
  translucent scrim capsule.
- Gestures: pinch zooms about the centroid, drag pans via the existing
  graph zoomAbout, double-tap toggles fit <-> 2.5x, and a downward swipe at
  fit dismisses; a plain tap does nothing. Zoom clamps to [1x, 5x] and the
  new pure clampImageOffset keeps pan inside the scaled image. Zoom state is
  keyed on the url, so closing the viewer or opening another image resets to
  fit/centred. System Back and the close button dismiss the viewer without
  closing the pane behind it.
- Loading goes through the existing cached, off-main-thread
  rememberArtifactBitmap/ArtifactImageState path with distinct loading and
  error states, drawn in the light inverseSurface role that contrasts with
  the always-black scrim.
- Pure helpers fitImageSize, clampImageOffset and toggleZoomScale are
  covered by the new ArtifactViewerTest. ArtifactImage.kt widens
  rememberArtifactBitmap/ArtifactImageState to internal and Artifacts.kt
  replaces FullSizeArtifactDialog with ArtifactViewer (openArtifact made
  internal).
- android/README.md documents the viewer, its gestures and the evidence
  gathered on emulator-5554.
2026-10-16 06:35:08 +01:00
alan 54af4535d7 Add remembered filters to the runs and pipelines lists
Give each list a filter control, remembered per list across restarts like
the sort, combined with AND. Filters narrow; the (later) omni search will
find, so they are kept distinct.

- ui/screens/ListFilter.kt: RunTimeRange (AnyTime default, Today, Last7Days,
  Last30Days), RunPresence (Any default, HasRuns, NoRuns) and the
  RunFilters/PipelineFilters data classes, with one pure predicate per facet
  (runMatchesStatuses, runMatchesPipeline, runMatchesTimeRange,
  pipelineMatchesPresence, pipelineMatchesLastRunStatus) and the AND-combining
  filterRuns/filterPipelines. A default narrows nothing; an empty status set
  means "any"; the time windows are inclusive calendar days; a blank,
  unparseable or future timestamp never matches a finite window; a runless
  pipeline has no last-run status; fromStorage tolerates stale/unknown/blank
  values; encodeRunStates/decodeRunStates round-trip the status set.
- ui/components/FilterMenu.kt: the shared top-bar control both screens use -
  an IconButton with a numeric active-filter count badge opening the caller's
  sections plus one Clear filters action (disabled when nothing is active),
  the count folded into the icon description, and a menu capped to the window
  and clear of the navigation inset so it stays scrollable rather than
  clipping.
- PipelineListScreen.kt/RunHistoryScreen.kt wire the control and predicates;
  the existing name search on pipelines stays a separate field, and the new
  pipeline facets depend on the run history.
- ui/components/States.kt: EmptyState gains optional actionLabel/onAction so
  both lists distinguish "nothing exists" from "nothing matches the current
  filters" and offer Clear filters only in the latter.
- data/SettingsRepository.kt + ui/AppViewModel.kt: store each facet under its
  own stable key as a StateFlow, exactly like the sort keys; the screens
  resolve the stored strings so the repository stays unaware of the UI enums.

Verified on this tree with :app:testDebugUnitTest, assembleDebug, and
emulator-5556 persistence and captures; recorded in android/README.md.
2026-10-16 06:01:18 +01:00
alan 7b61906e1b Lead the run summary with a width-derived artifact grid
In the run detail summary, artifacts now appear at the top of the page and as a grid rather than a list:

- RunDetailScreen emits the "run-artifacts" LazyColumn item before the "run-summary" item, so the captured screenshots are the first thing the operator sees. The rest of the summary and its collapsed-by-default sections are unchanged.
- ArtifactGallery derives its geometry from the measured width via the new pure artifactGrid(availableWidth, preferred, spacing): it fits as many preferred-shaped cells as the width allows and stretches them to fill the row, instead of the removed fixed ARTIFACT_GRID_COLUMNS count. A host narrower than one preferred cell falls back to a single narrower cell; a non-positive preferred token never divides by zero. Tiles still open the full-size image on tap; non-image artifacts keep their compact list form.
- ArtifactGalleryTest replaces the fixed-column cases with grid cases covering a narrow pane (fewer, larger cells), a wide window (more columns), a very wide window (cells near the preferred shape), the single-cell fallback and degenerate inputs, asserting the row never overflows the host.

Verified with assembleDebug (APK 17,863,337 bytes, sha256 32e9081b28f5caa85f5bfa24f7fe7149eeddb919d4e71cf497e9017b80f54ce7) and the unit tests (140 tests, 0 failures/errors/skipped); captured on emulator-5554 at both window widths.
2026-10-16 05:28:39 +01:00
alan 915016df0b Expose OpenCode conversation history in chat_messages
decodeChatMessages only understood the native-serve {info,parts} envelope,
so records from the V2 HTTP API (GET /api/session/{id}/message) decoded
with an empty role and were silently dropped, leaving chat_messages with
empty history. Teach nativeChatMessage to read the V2 top-level shape
(id/type/agent/model/time, parts under "content", user prompt as a bare
string) while keeping the native {info,parts} path via role/id/model/agent/
created accessors and a contentParts fallback.

Add seeded-session evidence: a decoder table test covering both envelopes
(user + assistant with text, reasoning and a completed tool part carrying
input, content and status) plus handler tests that drive chat_messages
through the broker fallthrough and through the real adapter.
2026-10-16 05:24:00 +01:00
alan 315788b3cb Merge branch 'main' into lane-go 2026-10-16 05:09:16 +01:00
alan f52ba2848c Teach the pipelines skill to manage runs instead of implementing 2026-10-16 05:09:12 +01:00
alan 6229fc9db5 Keep every pane inside the Android safe area
The stage detail pane covered the status bar. Introduce one shared
paneSafeArea() (WindowInsets.safeDrawing: status bar, display cutout,
navigation bar, gesture area and IME) and apply it from the live window
insets across the pane stack:

- SlidingPaneStack uses it (unioned with systemGestures) for the covered
  peeks' strip geometry.
- Each pane's Scaffold reserves it once via contentWindowInsets, and its
  TopAppBar reserves the top/horizontal part, so no pane sits under the
  status bar, a cutout, the navigation bar or the IME. Applied to the five
  stacked panes and SettingsScreen.
- The connection banner owns the top inset and the NavHost consumes it
  (paneSafeArea().only(Top), was statusBars) so the inset is never doubled.
- The floating destinations pill clears the same safe area, so the keyboard
  no longer hides it.

Scrollable content stays inside the remaining space rather than clipping.
android/README.md records the design and emulator-5554 verification.
2026-10-16 05:08:46 +01:00
alan 1c925d72f7 Remember sort options for the pipelines and runs lists
Add a per-list sort control to each top bar and persist the choice in
SharedPreferences so it survives restarts.

- ui/screens/ListSort.kt: PipelineSort and RunSort enums plus pure
  comparators with explicit tie-breaks, and sortPipelines/sortRuns.
  ServerOrder/NewestFirst remain the defaults; a still-executing or
  unparseable-timestamp run sorts last.
- ui/components/SortMenu.kt: the shared top-bar control, a distinct
  IconButton opening a Material 3 DropdownMenu of every option plus a
  divider and Reset, with the active choice checked.
- data/SettingsRepository.kt + ui/AppViewModel.kt: store the sort key
  per list as a StateFlow; fromStorage falls back to the default for a
  stale/unknown/blank value.
- ui/Format.kt: share parseInstant and durationSeconds so the printed
  duration and the sort key cannot disagree; PipelineLastRun.kt reuses
  the shared latest-run fold.
- PipelineListScreen.kt/RunHistoryScreen.kt wire the control and sort;
  groupRunsByDay preserves the comparator's order.
- ListSortTest.kt covers the comparators and storage fallback;
  RunGroupingTest.kt gains an explicit-order case.

Verified on this tree with :app:testDebugUnitTest (167 tests, 0
failures), assembleDebug, and emulator-5556 persistence, the sort
control, and Reset; captured in android/README.md.
2026-10-16 04:57:53 +01:00
alan 5ad4b58770 Mirror the Android pane close animation
Give every pane one shared slide spec, a fixed 300 ms duration and a symmetric cubic-bezier easing, so a close is the open curve run backwards at the same duration; several levels that pop in one tap now stagger so each reverses in order from the top.

The stack mounts a level while it is open or still sliding out and calls the pane only then, and rememberPaneContent retains each closing pane's full parent identity (item/version/section, stage key, visit). A closing pane therefore keeps rendering the content that opened it instead of vanishing or falling back to an empty node, and a fully closed level composes nothing. Geometry, tokens and insets are unchanged.

Adds three pure unit cases for the symmetric easing and the stagger rule; documents the change and its emulator verification in android/README.md.
2026-10-16 04:31:53 +01:00
alan b8b545accd Stream brokered OpenCode chat replies over /connect
Add the server-side half of the brokered chat path (route B): the
opencode.Chat adapter forwards chat_prompt to POST
/api/session/{id}/prompt through the owned Connection.Call translation
and derives chat_event frames from the authenticated /api/event SSE
firehose (text and reasoning deltas, tool parts with their status
transitions, step and usage). Every pushed frame carries a stable
session and message id, with a last-message-id fallback so step/tool
events that omit the assistant message id stay attributable.

The /connect handler keeps per-session retained state (chatHub) capped at
1 MiB with least-recently-updated eviction at 128 turns, so a
reconnecting client re-syncs through chat_messages instead of replaying
deltas the OpenCode per-session log never resends. Prompt dispatch
subscribes before posting and buffers pre-ack frames to preserve order,
and cancels the stream on disconnect so no goroutine leaks. chat_sessions
and chat_create are declared but not yet brokered: they answer with an
explicit protocol error rather than the generic Pong.

Reuse the existing transport, validation and normalization; no second
OpenCode transport or credential path is introduced.

Tests: protocol golden round-trip, adapter normalization + v1/v2 Call
translation, and handler ack/stream/validation/resume/disconnect, plus a
real-adapter no-tool evidence harness.
2026-10-16 04:09:14 +01:00
alan 3480461ffb Show the last run on every pipeline row
Each pipeline row in the Android list now renders its most recent run:
the status chip, how long ago it started, its recorded duration and its
run id. Pipelines that have never run say "no runs recorded" instead of
leaving a blank line, and the line is withheld until the run history has
loaded so a missing history is never reported as "no runs".

The list_runs history already arrives whole (id DESC), so the join is
client-side: PipelineLastRun.kt folds it onto a Map keyed by pipeline id,
recency decided from the timestamps with the higher run id breaking an
exact tie, and formats "ago · duration · run N", omitting any genuinely
absent fragment. The change is android/-only, adds no server field or
dependency, keeps the existing title/secondary structure and selected-row
highlight, and never starts a run.

PipelineLastRunTest covers most-recent-wins, no runs, unknown pipeline
id, equal timestamps, a bad timestamp, an unknown status word, the
formatRanAgo scales and the "no runs recorded" wording. README records
the verification: :app:testDebugUnitTest (153 tests, 0 failures) and a
full --rerun-tasks assembleDebug (17,863,337 bytes, sha256 b2255066…).
2026-10-16 03:43:29 +01:00
alan a625dbe055 Teach the pipelines skill to manage runs instead of implementing
Rewrite SKILL.md to state the stance (reconnoitre, then route all work
through Pipelines runs; manage and debug, never implement), keep the
existing authoring/operations index, and route to four new references.

Add references/orchestration.md (stance, work items, brief template,
hard constraints, pipeline choice, running and watching),
references/lanes.md (worktrees, devices, sync/merge, restart-replay
cursor fix), references/debugging.md (eight symptom/confirm/do
playbooks) and references/delivery.md (artifacts, LAN URLs, WIP naming,
install boundaries), each with a clearly labelled project example where
Android/device specifics apply.

Append orchestration verification habits to references/verification.md
and add the four new files to install.go's managed inventory.
2026-10-16 03:12:32 +01:00
alan 9fa09e6ce8 Add brokered OpenCode chat wire types
Add the internal/protocol types the phone needs to talk to OpenCode chat
through the Pipelines server (route B): the chat_* request/response type
constants (sessions, create, prompt, messages, interrupt, reply) and the
server-pushed chat_event frame, plus the part/status/role/tool-state/decision
constant sets and payload structs modelled on the verified OpenCode shapes -
an assistant turn is a list of parts (text | reasoning | tool), and a tool
part carries name, executed, state.status (streaming | running | completed |
error), state.input, state.content, state.metadata, state.error and
epoch-millisecond timings.

Add eight optional omitempty chat fields to the shared Message envelope, so
older peers ignore them, and a golden round-trip test covering every new type,
an exact-JSON pin of a tool chat_event frame, envelope preservation and
omitempty. go test ./internal/protocol/... passes.
2026-10-16 03:01:55 +01:00
alan 1fece88286 Make the Android stage detail pane an opaque raised sheet
The pane's Scaffold already painted an opaque colour, but it was the app
background role, identical to the peeks it slides over, so it read as
"no background" and its rows ran together with the covered pane's compact
identity.

Paint the whole pane one theme container role: StageDetailPane gains
paneContainerColor() = colorScheme.surfaceContainer and applies it to the
Scaffold container, the TopAppBar and the visit PrimaryScrollableTabRow, and
StageSection passes it to the shared SectionHeader, which gains an opaque
containerColor parameter defaulting to the previous background. The pane now
fully covers the area it occupies, including under a sticky section header,
and sits a tuneful step above the app background it covers.

Move the shared cards one step up so a card stays a card on the new sheet:
CodeBlock and the artifacts ArtifactRow use surfaceContainerHigh and the
full-size artifact dialog uses surfaceContainerHighest. No geometry, inset or
dependency changes; all colours come from the existing theme.

Verified with gradle :app:assembleDebug and :app:testDebugUnitTest (137 tests,
0 failures) and by capturing the pane open over the graph and the Timeline at
both window widths on emulator-5554. android/README.md records the change and
evidence.
2026-10-16 02:33:30 +01:00
alan 54443903ae Record re-verification evidence for the run-status palette
Add a README evidence subsection for the committed run-status colour change at 24584d8: the unit suite (143 tests, RunStatusPaletteTest 7/7 incl. contrast), assembleDebug with the published APK size and sha256, before/after pixel-sampled captures on emulator-5556, and the APK publish location and LAN URL.
2026-10-16 02:23:03 +01:00
alan 24584d820f Give run status an app-owned palette with correct hues
Run status was mapped onto Material roles, so a succeeded run read amber
(tertiary) and a running run read mint (primary). Replace that mapping with an
app-owned RunStatusPalette: Running/Active blue, Succeeded green, Failed the app
error red, Interrupted amber, Canceled muted grey, Queued neutral grey and
Unknown a low-key surface grey, each with a one-line rationale. runStateColor is
now a pure lookup over the palette.

Keep each state's distinct material glyph and text label so status is never
colour-only, and add a WCAG-AA contrast test for every status colour against the
dark surface plus hue-specific assertions.

Leave the graph's stage-outcome palette untouched. The timeline's step chips are
a stage outcome, not a run status, so point them at the shared graphColors/
outcomeColor factory (extracted from WorkflowGraph) to agree with the graph, and
factor the shared ColoredChip pill out of StatusChip so neither repeats the
layout. Document the change and its evidence in android/README.md.
2026-10-16 02:04:30 +01:00
alan cfd5887311 Lead a run's stage pane with the run's results
A stage opened from a run (Timeline, run graph or run stage list) now leads
with the run-side result instead of the stage's own definition: status,
outcome, duration, visit and target, then the visit's results in the order
Artifacts (gallery first), Output, Input, then the remaining run evidence
under This run. The stage's full definition (type, prompt, output contract,
outcomes, model, provider, configs, tools, limits, memory, notify) moves into
one collapsed "Stage definition" section at the bottom.

StageDetailPane gains a runContext flag: RunStagePane passes true and gets the
collapsed-definition default, while PipelineStagePane passes false and keeps
the definition expanded, since it is then the pane's only content.
rememberSectionExpansion gains an initiallyExpanded set (part of the save key)
so the seed respects an operator's own expand/collapse choices without
inheriting them across contexts.

Nothing visible before is removed - the previous Model/Provider headline
promotion is reverted and those facts remain reachable inside the expanded
definition. The visit tabs and the collapsed-by-default behaviour of the other
sections are unchanged. android/ only; no dependency added.

Updates android/README.md and StageDetailSheetTest.kt accordingly.
2026-10-16 02:02:43 +01:00
alan cd85f6954b Render artifact thumbnails with an honest loading/failure state
The artifact grid could show failure placeholders that were never earned:
a server-relative artifact url that failed to resolve against the configured
server was fetched anyway and blamed with the "!" failure mark, and the
loading state was a bare "…" text.

- Pass the resolved url (nullable) into ArtifactImage; a null short-circuits
  to a new distinct Unavailable state (LinkOff glyph) and issues no request,
  so a fetch that was never attempted is never drawn as a failure.
- Reserve Error/"!" for a fetch or decode that was actually attempted.
- Replace the "…" text with a real Material 3 CircularProgressIndicator.
- Resolve gallery artifact urls in one shared helper (resolvedArtifactUrl)
  so the image tile and the non-image row cannot disagree; non-image
  artifacts keep their file-type icon.
- Add unit tests covering resolution against the configured server and the
  null (unconfigured) case.
2026-10-16 01:40:44 +01:00
alan 66d4856348 Validate Android screenshot captures before use
Add android/scripts/capture_png.sh, which captures on-device (screencap -p -d <SurfaceFlinger id>) to /sdcard, pulls the file, and validates PNG magic bytes plus the reported type, deleting and failing on anything that is not a real image. Document the multi-display warning failure mode and the required helper in android/README.md so every UI-capturing run captures and validates instead of writing adb screencap straight to a file.
2026-10-16 01:22:45 +01:00
alan 3deff18572 Render a compact identity for covered Android panes
On a wide window, a covered pane in the stack used to render a squeezed
copy of a full pane, so a covered entry showed a truncated title and a
crushed tab rail. A covered pane now renders only a compact identity: a
centred title plus at most one status/subtitle line, with no tab rail,
list, gallery or scroll body drawn into the sliver.

- SlidingPaneStack's pane lambda receives a covered flag; on a wide window
  a covered level composes only the new PaneIdentity, while the list, both
  detail screens and the stage pane early-return from their covered branch
  after their data-loading effects.
- Adds MIN_COVERED_PANE_WIDTH_DP (112.dp); peekStripsDp shows at most
  budget / MIN_COVERED_PANE_WIDTH_DP covered peeks and folds the oldest
  levels into a single "<n> more" edge indicator rather than squeezing
  them below the minimum.
- The fixed PEEK_BUDGET_DP (224.dp) and the constant active-pane width
  are unchanged; the peek tap, Back and the narrow layout keep the same
  behaviour.
- Rewrites SlidingPaneStackTest (10 cases) for the fold rule, minimum
  width, constant active width and inset/geometry invariants, and records
  the evidence and the unreachable-fold gap in android/README.md.
2026-10-16 01:16:24 +01:00
alan 206953e067 Show an Android run stage's Model/Provider in the headline
Surface a run stage's recorded Model and Provider configs in the stage
pane's always-visible headline instead of leaving them inside the
collapsed Definition section, so the operator sees them without expanding
anything, and stop rendering them twice.

- StageDetailPane.kt gains the pure STAGE_CONFIG_HEADLINE_LABELS
  ({"Model", "Provider"}), stageConfigHeadlineFields(definition) and
  remainingDefinitionFields(definition). StageDetailBody renders
  headlineFields(runFields) + stageConfigHeadlineFields(definition) as the
  headline and remainingDefinitionFields(definition) inside the collapsed
  Definition section; both derivations are remember(definition)-keyed and
  the run-evidence split stays runStepFields/headlineFields/evidenceFields.
- The definition-only, never-visited stage keeps its existing look; the
  Definition section no longer repeats Model/Provider because they are now
  headline facts, and everything else stays as before.
- StageDetailSheetTest adds
  definitionModelAndProviderArePromotedToTheHeadlineWithoutDuplication and
  aDefinitionWithNoConfigsPromotesNothing.
- android/README.md records the pass: the reported "content lost" symptom
  is not reproducible at 791d3dd (the run-61 definition-only screenshots
  are the Pipelines destination), the promoted facts are the real gap, and
  the unit tests (132/0), assembleDebug, device verification on
  emulator-5554 and the APK publish are noted with what was not verified.
2026-10-16 00:54:22 +01:00
alan 791d3dd3ff Swap Android detail sections in place instead of sliding them
Selecting a section in a run or pipeline detail now cross-fades the body in
place rather than sliding it sideways, so a tap on the rail or tab row is an
ordinary tab change with no lateral motion and nothing to swipe.

- DetailTabs.kt drops the HorizontalPager for section bodies and renders only
  the selected section behind a short Crossfade (SECTION_SWAP_MILLIS = 180).
  Level navigation (list -> detail -> stage pane) still slides via the
  unchanged SlidingPaneStack.
- Each section's saved state (its LazyColumn scroll) is kept under its stable
  tab key with rememberSaveableStateHolder().SaveableStateProvider, so
  returning to a section restores where the operator left off instead of
  resetting it.
- The rail/tab-row selected state and tab semantics are unchanged.
- Update the two call sites' stale "pager" comments and refresh the README
  section describing the section selector.
2026-10-15 23:57:57 +01:00
alan 0b373d0c65 Make Android pane navigation adaptive with a fixed peek budget
Replace the per-level peek with a fixed total peek budget on wide windows
and drop the stack entirely on narrow ones, so a folded phone loses no
width to dead peek space and a deep stack never reserves more than the
budget.

- SlidingPaneStack gains a `wide` parameter (the callers pass the existing
  isWideLayout value). On a narrow window the budget is 0dp, so every
  pane's open offset is 0 and each opened pane is a full-window screen
  that springs in over the last; Back, the gesture and the pane's own back
  control pop one level and nothing is left on the left.
- On a wide window peekBudgetDp (PEEK_BUDGET_DP, 224dp) is the fixed total
  space shared between the covered panes, independent of depth, so the
  active pane's left edge is always exactly the budget and its width
  (hostWidth - budget) stays constant as levels are added. paneOpenOffsetsDp
  widens the leftmost strip first so it stays tappable after the start
  inset (min of PEEK_WIDTH_DP and the platform minimum interactive size),
  then splits the rest evenly. peekBudgetDp clamps so the active pane never
  collapses below MIN_ACTIVE_PANE_WIDTH_DP and paneWidthDp is never
  negative. All geometry is derived from the named tokens, the measured
  host width and the system insets - no new literals.
- The peek-strip hit targets now come from the shared offsets, and panes
  remain opaque, inset inside the safe area, hidden from accessibility when
  covered, and opening/closing stay exact mirrors through the same
  animators. PaneState documents the narrow (no peek) rule.
- SlidingPaneStackTest is rewritten around the pure budget geometry (narrow
  spends no peek, the wide active pane is constant width, four levels share
  one budget with every strip tappable, the budget clamps, tiny hosts never
  go negative), and android/README.md records the pass, its evidence and
  what was not verified.
2026-10-15 23:49:10 +01:00
alan 5314542c13 Make the Android stage detail a pane and add an artifacts gallery
Turn the stage detail into the rightmost pane of a bounded three-level
stack and show every run artifact in a summary gallery.

- The stage detail opens as a real level-2 pane from both entry points (a
  Timeline row and a graph node). StageDetailPane is wrapped in the same
  Scaffold/TopAppBar with a back arrow as the other panes, and its
  identity/result facts (status, outcome, target, duration, visit, model
  target) render outside any collapsible so a fresh pane is never empty.
  StageDetailSheet, ModalBottomSheet and RightSlidingPanel are removed.
- SlidingPaneStack replaces SlidingMasterDetail: pane 0 fills the host,
  panes 1 and 2 overlay at peek*level, each covered pane keeps one
  tappable peek strip, and MasterPane/backStep/popTo/MAX_PANE_DEPTH are
  the pure model. The peek tap, the pane back arrow, the system Back
  button and the predictive-back gesture all pop exactly one level.
- New pure runArtifactGroups(steps) groups a run's artifacts by stage and
  visit (stable order, duplicates kept, empty run -> empty) and
  artifactsEmptyMessage distinguishes the running "capture pending" case.
  ArtifactGallery renders image thumbnails (tap opens full size) and
  non-image rows with name, size, content type and open/copy; urls resolve
  through ServerUrl, never a hardcoded host.
- Run Summary shows the run gallery and the stage pane shows that visit's
  group, keeping the existing per-visit artifacts summary and notes.
- Tests updated/added (PaneStateTest, SlidingPaneStackTest,
  ArtifactGroupsTest, ArtifactGalleryTest, StageDetailSheetTest, refreshed
  DetailTabsTest/PipelinesNavTest, CollapseRemovalTest kept green) and
  android/README.md records the pass, evidence and not-verified list.
2026-10-15 23:34:36 +01:00
alan 059c85add8 Show per-visit artifacts in the Android client and fix the top inset
Implements four Android-only client changes (no server, Go, installer or
Docker changes; nothing under android/ was left uncommitted).

- Per-visit artifacts: model StageArtifact{name, size_bytes, content_type,
  url} plus artifacts/artifacts_skipped/artifacts_truncated on RunStep with the
  exact internal/protocol/runs.go wire names, covered by ProtocolModelTest.
  Add a dedicated artifacts section to the stage detail sheet: one row per
  file with name, humanBytes size and content type, open (ACTION_VIEW) and
  copy-link actions, resolving the server-relative url against the configured
  server URL (never a hardcoded host) and disabling those actions with a hint
  when none is set. Images render an inline thumbnail with a full-size view on
  tap; other types get a type icon. Empty/partial copy matches the TUI
  ("capture pending", "not recorded for this visit", partial-capture notes).
  Timeline rows carry a subtle AttachFile indicator via a pure hasArtifacts
  helper. Pure helpers (humanBytes, resolveArtifactUrl, isImageContentType,
  artifactsSummary, artifactCaptureNotes, artifactMetaLine) carry unit tests.
- Collapsed defaults and self-describing titles: rememberSectionExpansion now
  tracks the set of expanded keys (default emptySet) so every inner section in
  the run detail and pipeline detail starts collapsed while operator choices
  still persist across configuration changes. Evidence sections are titled
  from the correlated step/stage/visit and backend identity instead of a bare
  index; field sections fall back to their prefix so a blank key never yields
  an empty title. Covered by DetailTabsTest.
- Single top inset: zero the outer Scaffold contentWindowInsets so the inner
  Material 3 app bars own the status-bar inset once; the connection banner
  owns the status-bar inset while visible (NavHost consumes it below), and the
  floating destinations pill clears the navigation bar.
- Publish the debug APK as a run artifact named by the short SHA, documented
  with the verified LAN URL and sha in android/README.md.

Verification (unit tests, assembleDebug, live-server APK and run 55 step 4
artifact fetches, emulator narrow/wide drives) is recorded in android/README.md.
2026-10-15 21:16:18 +01:00
alan 914345cb31 Move harness profiles between host and Docker and stop silent draft retargeting
Native installs left Docker-era harness profiles in harnesses.json, so every
authoring launch failed trying to reach a Docker service, and a retained draft
bound to the old Docker server was silently projected onto the configured one.

- harness: add Profile.Mode and VerifyDockerLink as the single mode/verification
  helpers. `harness setup --host` configures or converts a host profile and
  clears docker_directory; reconfiguring a Docker-linked profile re-verifies the
  recorded directory still owns compose.yaml and fails naming it instead of
  saving a link that cannot launch. Setup's summary and `harness list` (via the
  new List/ListView shape) report the resulting mode and, for Docker, the
  directory, without changing the stored Config schema.
- setup-native.py: after build/install-skill it writes host (no docker_directory)
  profiles for the detected harnesses, defaulting to the detected OpenCode profile
  rather than a stale pi default, taking models from --model or the existing valid
  profile and never inventing one; it clears a stale Docker link and preserves
  unrelated keys/profiles. Detection-only: no harness install, upgrade or download.
- draft: add Draft.Resolve, the shared mismatch helper, which projects a draft
  onto the configured server and returns a dual-URL notice. CLI validate/submit
  and the TUI draft browser use it so a foreign draft is never silently
  retargeted; the TUI pre-wraps the notice to the panel width.
- Tests cover the Docker->host and host->host transitions, the missing-directory
  failure, installer write/migration (Python), and the CLI/TUI notice, using the
  real config file path in a temp dir.
- Update help text, README, docs and the packaged authoring skill reference to
  describe host as the default and the Docker-linked case.
2026-10-15 19:53:10 +01:00
alan d00bd37833 Give every outcome its own colour and reach stage visits from the Timeline
- GraphPalette: a curated fixed palette plus a deterministic outcome-to-index
  mapping (no hashCode() % n); every colour is measured at >= 4.5:1 against the
  dark surface. Node fills differ by kind, and selection inverts the fill.
- Run detail: the Steps tab becomes Timeline, one compact line per recorded
  visit. The stage detail sheet takes the ordered visits plus an
  initialVisitIndex and shows a visit 1..N tab row only when there is more than
  one visit; the timeline opens the tapped visit, the graph the most recent.
- List pane: pipelines and runs share one ListRow (flat surface, thin divider,
  leading element, title plus secondary line) with a tonal selected row, and the
  wide list pane collapses to a 56dp strip.
- Navigation: the bottom bar becomes a floating three-icon destination pill at
  the bottom right with Role.Tab selected semantics, used on both window widths,
  with 88dp reserved so nothing scrolls under it.
- Icons come from the already-declared material-icons-extended; no new
  dependency.

Implemented by pipeline run 55 (pipeline 9 v6). Its ui_reviewer stage failed on a
malformed model result rather than on this work, so the change was verified by
hand: assembleDebug plus 93 unit tests pass, and the run's captures were
reviewed (graph colours per outcome, Timeline entries, visit tabs, selected list
row, floating pill).
2026-10-15 19:16:44 +01:00
alan f57457aec9 Make agent-stage retries safe and retain timeout failure evidence
Fix four stage failure-handling and observability defects (A2, A3, A6, A9).

- A2: add safeToReplay(def) as the single definition of retryable post-admission
  work - only an explicit tools block that selects neither edit nor shell. The
  agent/pi WorkStarted guards now break only when the stage is not safe to
  replay, so read-only stages genuinely retry a post-admission timeout while
  mutating and legacy-bundle stages still never replay admitted work.
- A6: re-emit a malformed final result on an explicit read-only stage up to the
  retry budget, preserving format_repairs evidence; mutating stages keep the
  immediate return and their session.
- A3: timed-out stages retain usable evidence. waitForSessionIdle records one
  bounded sanitized OperationEvidence on deadline; the agent deferred cleanup
  does a bounded best-effort latest-assistant readback and settles knowable V2
  usage; RetainSession adds a retained_session pointer to failed step
  transcripts so the session is visible beneath the BoundTranscript threshold.
- A9: a stage outcome routed to #failure now yields a non-empty run diagnostic
  ("stage <name> returned outcome <outcome>") while preferring an existing step
  diagnostic.

Adds focused stage and server tests for retry safety, malformed-result
re-emission, timeout evidence retention and run-level diagnostics; updates the
packaged skill references and docs/cli.md, docs/model-results.md.
2026-10-15 18:27:22 +01:00
alan 0f5a188c6a Record and serve per-stage artifacts
Every agent stage now writes into a per-run/step artifacts directory under
the data dir (<data>/artifacts/<run>/<step>), passed to Pi as
PIPELINES_ARTIFACTS_DIR, exposed on the OpenCode client env seam, and stated
in the agent prompt boilerplate so agents save images, screenshots, reports
and logs there.

After each step the server scans that directory with a bounded, symlink- and
traversal-safe inventory (os.OpenRoot + Lstat + O_NOFOLLOW) recording name,
size_bytes, content type (extension then 512-byte sniff fallback) and URL,
enforcing max files, per-file bytes and total bytes while counting skipped
and truncated entries. A missing, unreadable or oversized directory yields
only a best-effort diagnostic and never changes the step outcome.

The list is carried on protocol.RunStep as Artifacts []StageArtifact plus
skipped/truncated counters (omitempty, backwards compatible), persisted in a
new step_artifacts table keyed (run_id, sequence) alongside the
notifications/file-changes tables and loaded by GetRun.

GET /artifacts/{run}/{step}/{name} on the existing handler serves the bytes
with http.ServeContent, so Content-Type, Content-Length, HEAD and Range
(206/416) come from the stdlib; unknown runs/steps, absolute paths,
traversal, symlink escapes and non-regular files are refused.

The TUI lists each selected step's artifacts (name + human size) in the
retained-evidence section and adds an artifacts summary in the style of the
file-changes summary. Adds docs/stage-artifacts.md linked from README and an
artifacts subsection to the packaged operations skill reference.

Tests cover the scan records and caps, missing/oversized directories,
HTTP HEAD/Range/traversal/symlink/unknown refusals and protocol round-trips.
2026-10-15 17:51:18 +01:00
alan 370eaaed1f Let the detail tabs collapse and rebuild the step and source layouts
DetailTabs: give every tab a meaningful ImageVector from the core Material
icon set and turn the wide rail into a collapsible one. A rememberSaveable
railExpanded flag plus an accessibility-labelled "Collapse tabs"/"Expand
tabs" control shrink the rail to a narrow icon-only strip and back; the
collapsed tile still names its tab via the icon's content description and
still marks the selected tab by container colour and tab semantics, and the
content box reclaims the rail width. Narrow windows keep the top
PrimaryScrollableTabRow. railWidthDp is a pure, unit-tested predicate.

RunDetailScreen: render a step's metadata as aligned label/value rows
(KeyValueRow) instead of a ragged stack of lines, paired into two columns on
wide windows (status/outcome, duration/visit, target/session, agent/model
target) and a single column on narrow ones. Evidence (input, output,
transcript, file changes, notifications, control diagnostics) fills its card
in full-width monospace with a shared padding/line height, and the vertical
rhythm is one bottom gap per step with no doubled gap for a step without
expandable detail. The timeline glyph and connector stay aligned with the
step title. All previously shown fields are retained.

PipelineDetailScreen/CodeBlock: the Source tab now fills the whole tab area
with the tab's single LazyColumn owning all scrolling (CodeBlock gains an
optional maxHeight = null that renders unbounded; the default bounded
behaviour is unchanged for other callers). It renders the parsed definition
as one collapsible section per stage (key, type) built from the same
stageDefinitionFields/StageFieldRow the stage detail sheet uses, covering
prompt, output, tools, configs, edges (outcomes with resolved targets and
#success/#failure terminals), memory, limits and notify policy while skipping
absent fields. A Raw toggle reveals the exact markdown and a copy action
copies the whole definition.

Extract shared formatting helpers (fileChangeLine, notificationLine,
fileChangesSummary, controlVisitLabel) into Format.kt and expose
StageFieldRow/StageTypeChip/stageDefinitionFields so the sheet and the Source
tab agree. Add StageDetailSheetTest and StepMetaTest, extend DetailTabsTest
(icon distinctness, rail width) and FormatTest, and record the build,
unit-test and emulator-screenshot verification in android/README.md; the
captures stay in the git-ignored android/captures/space_pass/.

Assisted-by: DeepSeek V4.1 Flash
2026-10-15 17:18:05 +01:00
alan 238f3fbdd8 Give every graph edge its own track and open a stage detail sheet on tap
Allocate a distinct source port, target port, across-run lane and vertical
track per edge in the pure layoutGraph (stable edge-id order), mirroring the
TUI's per-edge routing, so no two routes share a row or column; each outcome
label follows its own edge's track. Rewrite routePoints to build every
polyline from those precomputed ports/lanes/tracks instead of shared corridor
constants, keeping runs axis-aligned and the layout deterministic.

Add pure hitTest/toGraphPoint plus a tap detector that maps taps back through
the current transform: tapping a node calls onStageTap, tapping empty space
does nothing, and pan/zoom keep working. Add StageDetailSheet, a Material 3
ModalBottomSheet overlay (near full height, scrollable, responsive on wide
windows) showing the stage definition and, on a run graph, that run's step;
wire it into the pipeline and run graph tabs.

Extend WorkflowGraphTest with the no-shared-collinear-run invariant, distinct
port, determinism and hit-test cases.
2026-10-15 16:46:40 +01:00
alan e6d00d4ee5 Scope agent session bookkeeping to the run for concurrent runs
The per-workspace concurrency added in 2618f0d exposed three places that assumed a
single run, and the second concurrent run failed with 'agent quiescence not
confirmed' because of them.

- ActiveAgentSessionsForRun(runID) scopes the end-of-step quiescence check to the
  run's own sessions, so another run's legitimately active agent no longer fails
  this one. A run still fails when its own session cannot be confirmed idle.
- The startup guard now uses ActiveSessionOwners (which carries the owning run id)
  and refuses only an ORPHANED session - one whose run is not active now - which is
  what restart recovery is actually about. A session owned by a currently active
  run no longer blocks new work.
- sessionActive examines only the target session: foreign entries in the
  /api/session/active map are ignored, the target's absence is inactive, and the
  target present with an unsupported state still fails closed.

Verified: go build, go vet and go test ./... pass, including ten concurrency tests
(two workspaces run concurrently, same-workspace refusal, symlink and default-cwd
equivalence, idempotent repeats, restart recovery, retry scoping, overlapping runs
not failing quiescence, and a run's own active session still failing it).

Operator verification, which a stage cannot perform because restarting the server
would abort the run doing it: the service was rebuilt and restarted on this
commit, then two runs in separate workspaces (/tmp/ws-c and /tmp/ws-d) executed
concurrently - both reported executing at the same time, a third run in ws-c was
refused naming run 46, and both finished succeeded with no diagnostic.
2026-10-15 15:38:50 +01:00
alan 2618f0d244 Allow concurrent runs in different workspaces
Track each active run's resolved workspace alongside its cancel function
in a single runner.active struct map. A new request key is now refused
only when an already-active run is changing the same resolved workspace;
the refusal names the conflicting run id and advises waiting or using a
different workspace. Workspace resolution is unchanged (default cwd,
absolute request workspace, EvalSymlinks), so two spellings of one
directory still compare equal. The conflict check and registration stay
inside the existing r.mu critical section, so concurrent starts for one
workspace cannot both pass. Idempotent repeats of an active request key
and the restart-recovery guard are unchanged.

Add concurrency_test.go covering concurrent different-workspace runs,
same-workspace refusal, symlink/default-cwd equivalence, idempotent
repeats, restart recovery and retry workspace scoping; strengthen the
runner_test.go refusal assertion. Update docs/cli.md,
docs/first-version-testing.md and the packaged operations skill reference
to describe per-workspace concurrency.

Assisted-by: DeepSeek V4.1 Flash
2026-10-15 15:08:44 +01:00
alan 1828171a9c Give the detail screens tabs, styled code blocks and a foldable layout
- Pipeline detail and run detail are now tabbed: run detail has Summary, Graph,
  Input, Output, Evidence and Steps, pipeline detail has Summary, Graph and Source,
  with the version list in Summary. The graph gets a tab of its own, so it uses the
  whole content area with its Fit and expand controls. Selection is remembered and
  the tabs carry real tab semantics.
- The code-like blocks (Input, Output, Source, prompt, transcripts) are styled
  content cards with a label header, monospace body, a copy action and a bounded
  height that scrolls internally, instead of a raw bordered div.
- Content inside a tab breaks down into collapsible inner sections (DetailTabs.kt,
  CodeBlock.kt), reusing the existing section component with remembered state.
- Foldable layout is driven by window width (WindowSize.kt): narrow windows keep
  the single-pane tabs, wide windows use list-and-detail side by side with the
  detail capped to a readable width.

Verified: :app:assembleDebug and :app:testDebugUnitTest succeed offline with 60
tests and 0 failures (new WindowSizeTest and DetailTabsTest), and the reviewer
drove every tab plus both a narrow and a wide window on the emulator (captures in
android/captures/tabs_pass/view/). The implementer's own capture set in that
directory is unusable: it wrote screencap's multi-display warning into the files
(they begin with ASCII '[Warning', not the PNG magic), so only the reviewer's
captures were reviewed.
2026-10-15 14:34:49 +01:00
alan e843aa08a8 Restructure the Runs area and add collapsible sticky sections
Four related UI changes, all requested after using the app on a phone.

- Graph pinch zoom is now anchored to the gesture centroid. The handler dropped
  the centroid and the canvas scaled about the content origin, so a pinch slid
  the graph away from the fingers. zoomAbout() keeps the content point under the
  fingers fixed, applies the pan and then clampOffset, with unit tests proving
  the centroid point is unchanged and the scale and bounds are respected.
- Pipeline detail and run detail now use a LazyColumn of collapsible sections
  (shared Sections.kt header, rotating chevron, animateContentSize) whose titles
  stick to the top while their content scrolls beneath, with per-section state
  remembered and exposed to accessibility. Steps and session evidence stay lazy
  list items instead of nested scrollables.
- The Runs list is rebuilt: the raw result preview is gone, failures show a
  two-line diagnostic in the error colour, each run has a colour-coded status
  chip with a matching icon per state (RunStatus.kt, core Material icons - no new
  dependency), the usage aggregates render as a metrics block with a formatted
  average instead of a run-on line of seconds, and runs are grouped by day under
  sticky date headers.
- Run detail steps are a timeline: a status dot joined to the next step, the
  stage and visit number, an outcome chip and the duration, with input, output,
  transcript, file changes and notifications behind a per-step 'Show details'.
- One centralised type hierarchy (Typography.kt) for screen title, section
  header, card title, subtitle, body and monospace data, applied across the list,
  the cards and both detail screens.

Verified: :app:assembleDebug and :app:testDebugUnitTest succeed offline with 53
tests and 0 failures (new FormatTest, RunStatusTest and RunGroupingTest;
WorkflowGraphTest 23 to 27), and the app was driven on the emulator with
screenshots of the runs list states, the sticky date header, the steps timeline,
an expanded step, a collapsed section and the sticky section header.
2026-10-15 03:46:06 +01:00
alan 1a890d8c31 Draw workflow-graph edges as straight runs and give the graph a bigger panel
A user reading the graph on their phone said it was not clear what happened, and
asked for the TUI's straight arrows and a larger panel.

- Edges are now axis-aligned orthogonal polylines instead of Bezier curves: the
  stage-to-stage runs and the routes into the bottom-row #success/#failure
  terminals are horizontal/vertical segments joined at right angles, matching the
  Go TUI's routing, and every arrowhead now points along the direction of its
  final segment instead of the straight source-to-target chord (which pointed
  wrongly as soon as a route turned a corner). Routing is a pure function.
- The graph panel is a sensible share of the window height on both screens
  instead of 360dp/340dp, and a new expand/collapse control beside 'Fit graph to
  view' grows it to nearly the full height.

Verified: :app:assembleDebug and :app:testDebugUnitTest succeed offline with 42
tests and 0 failures (WorkflowGraphTest 15 to 23, covering the orthogonal routing
and arrowhead direction), and the app was driven on the emulator with before/after
screenshots of a pipeline graph, a run graph with the executed route highlighted,
a panned state and the expanded panel.
2026-10-15 02:34:15 +01:00
alan 8adc6b8080 Bind the native server to the LAN so the phone client can reach it
The native install hardcoded -addr 127.0.0.1, so the server was unreachable from
the phone: the emulator worked because it proxies to the host loopback, but a
real device could not connect even though ntfy (bound to 0.0.0.0:8090) worked.

The bind address is now a manifest setting (server_address() in manage.py, with
older manifests still defaulting to loopback) and setup-native.py records it,
defaulting to 0.0.0.0 like the Docker install did and offering
--bind-address 127.0.0.1 for a loopback-only server. An invalid address is
rejected, and setup prints the phone client URL.

Verified: scripts test suite 116 tests OK, and after reinstalling the server
listens on *:8080 and answers {"healthy":true} on 127.0.0.1, 10.0.0.75,
10.0.0.249 and the tailnet address.
2026-10-15 01:57:27 +01:00
alan 9ca775291b Give the Android client a dark-first Material 3 look and TUI-style graph terminals
Three UI changes requested after reviewing the first on-device screenshots:

- Dark-first theme: the app now owns its colour scheme instead of following the
  system wallpaper. Theme.kt defaults to a deliberate darkColorScheme built from
  a mint/teal seed with an amber tertiary (new Color.kt) so it matches the dark
  Pipelines TUI; dynamic colour is gone and a complete light scheme is retained
  for when it is explicitly requested. themes.xml/colors.xml give the app a dark
  window background and dark system bars with light icons, so launching never
  flashes light.
- Workflow graph matches the TUI: the #success/#failure terminals now share a
  lower row under the stage row, with arrows entering their top borders and the
  error -> #failure route leaving the bottom of its source stage, mirroring
  internal/tui/graph_layout.go ('Terminals share a lower row...') and graph.go's
  '[FAILURE]   [SUCCESS]' bottom row. Fit-to-content, pan clamping, the Fit
  action, run highlighting and the TalkBack description are preserved.
- More style: consistent Material 3 top app bars for Pipelines, Runs and
  Settings, the new colour scheme applied across the screens and state
  components, and monospace retained for hashes, source and run input/output.

Verified on the host and on the device: :app:compileDebugKotlin, :app:assembleDebug
and :app:testDebugUnitTest succeed offline with 34 tests and 0 failures
(WorkflowGraphTest grew to 15 tests covering the terminal row, bottom exits and
fit/clamp), and the app was run on the Pixel_Fold_API_36 emulator in dark mode
against the live server: the whole 4-stage graph renders with its terminal row,
and the list, detail and settings screens use the new theme.
2026-10-14 12:36:58 +01:00
alan cee9fb2f79 Fix graph fitting, pan bounds, auto-connect and run wording in the Android client
An emulator run against the live server exposed four usability defects and one
legibility defect, all fixed here:

- The workflow graph was not fit-to-content: 3- and 4-stage graphs showed only the
  first columns until the user panned. The initial view now fits and centres the
  whole graph, scaling down when it is wider than the viewport.
- A panned graph could be dragged completely out of view with no way back. Pan is
  now clamped so content stays visible, and a 'Fit graph to view' action restores
  the fitted view.
- The app did not connect on launch even with a saved server URL. It now connects
  from the saved URL using the existing bounded backoff; an explicit Disconnect
  still stays authoritative for the session.
- The runs list said 'N steps' while run detail said 'N recorded visits'. Both now
  use the server's own vocabulary ('N completed visits' / 'N recorded visits')
  through one shared helper in Format.kt.
- Outcome labels: labels are drawn after all curves so none is crossed, dimmed
  labels use onSurfaceVariant, and executed labels no longer resolve to
  near-invisible container accents ('rejected' measured ~1.2:1 before).

Verified: :app:compileDebugKotlin, :app:assembleDebug and :app:testDebugUnitTest
succeed offline with 28 tests and 0 failures (WorkflowGraphTest grew to 9 tests
covering fitScale, clampOffset extremes and label slots), and the app was driven
on the Pixel_Fold_API_36 emulator against the live server with before/after
screenshots and no FATAL or Compose exception in logcat.
2026-10-13 21:55:16 +01:00
alan 2881256af3 Fix workflow-graph crashes and label layout in the Android client
Running the client on an emulator against a live server exposed real defects in the
workflow graph, all fixed here:

- DrawScope.drawText's string overload measured against the draw scope's constraints
  and threw when a node or edge label fell outside them (wide or panned graphs),
  crashing the pipeline-detail and run-detail screens. Both call sites now draw a
  pre-measured TextLayoutResult.
- The graph Canvas was not clipped, so panning drew nodes and edges over the
  'Versions' row and the 'Workflow graph' heading. The viewport now clips its
  children.
- Outcome labels overprinted when a stage had more than one outgoing edge ('error'
  over 'success'). Labels are now laid out in one row per source edge, with a
  backing rect for legibility.
- Stage columns followed an iterative rank relaxation, so graphs with a back edge
  rendered out of order (planner before reviewer). rankStages now returns
  declaration order, matching internal/tui/graph_layout.go.

Verified: :app:compileDebugKotlin, :app:assembleDebug and :app:testDebugUnitTest
succeed offline with 20 tests and 0 failures (new WorkflowGraphTest covers the
rank order and label slots), and the app was driven on the Pixel_Fold_API_36
emulator against the live server with no FATAL or Compose exception in logcat.
2026-10-13 19:23:10 +01:00
alan 9a94eabaa3 Add the native Android client for the Pipelines server
Kotlin and Jetpack Compose Material 3 client that speaks the existing WebSocket
protocol: settings requiring an explicit server URL and workspace, pipeline list and
detail with the workflow graph, run history, run detail and evidence, start and
cancel run, reconnect, and the loading/empty/error/disconnected states. It stores no
credentials and keeps execution, definitions and run history on the server.

Verified on the host: :app:compileDebugKotlin and :app:assembleDebug succeed and
:app:testDebugUnitTest passes 19 tests. Ignore Gradle outputs and re-include the
net.awan.pipelines.data package, which the repository runtime data/ rule would
otherwise exclude.
2026-10-13 17:20:18 +01:00
alan a70e3aef4b Install Pipelines natively by default on macOS and Linux
Add scripts/setup-native.py and make ./install (and --native) build the server, the CLI
and ntfy from source into ~/.local/share/pipelines, detect an existing host OpenCode
and Pi instead of installing them, install the packaged authoring skill, migrate an
existing Docker database and ntfy auth store, save the host client default and start
both services. ./install --docker keeps the previous Docker server + ntfy
installation unchanged.

ntfy is compiled from its pinned Go module on every host because upstream publishes
no macOS server binary (its darwin asset is built with -tags noserver); its cgo
SQLite driver is why a C compiler is now required natively. The ntfy credential
bootstrap and the client default writer are shared by both installers,
installation.Load resolves symlinked prefixes, the Docker migration copies the
SQLite write-ahead log so the newest definitions and runs are not lost, and the
account subcommands read the generated configuration through NTFY_CONFIG_FILE.

Verified on macOS: 115 Python tests, go build/vet/test, and scratch installs that
migrate 9 pipelines and 31 runs, build ntfy v2.30.0 and start both services healthy
on spare ports before stopping them.
2026-10-13 17:20:14 +01:00
alan 9b305df725 Record final live template and catalog deployment verification 2026-10-12 23:17:29 +01:00
alan 143f237268 Strengthen template planning, reuse and independent review 2026-10-12 23:10:37 +01:00
alan 03ed4e02e4 Add real workflow and execution screenshots to README 2026-10-12 22:25:10 +01:00
alan 4d583faae1 Use the normal main clone path for installation 2026-10-12 00:23:37 +01:00
3129 changed files with 410026 additions and 5156 deletions
+285
View File
@@ -0,0 +1,285 @@
#!/usr/bin/env python3
"""Approval-card scaffolding: /connect WebSocket double that pushes a permission.
Two sessions: `ses_perm` hands out a pending `chat_permission` after a prompt so
the approval card can be answered (once/always/reject), and `ses_resolved` pushes
a frame the server already settled so the card must show the outcome with no
actions. Same wire shapes as the other stubs; test scaffolding only, never part
of the app.
"""
import base64
import hashlib
import itertools
import json
import socket
import struct
import sys
import threading
import time
GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
# Every prompt gets a fresh request id, so a new prompt is a new request rather
# than a re-push of an already-answered one.
REQUEST_SEQ = itertools.count(1)
PENDING_SESSION = "ses_perm"
RESOLVED_SESSION = "ses_resolved"
SESSIONS = [
{
"id": PENDING_SESSION,
"title": "Answer an approval",
"agent": "build",
"model": "deepseek-v4.1",
"directory": "/home/user/project",
"created_at": 1760620000000,
"updated_at": 1760620600000,
"busy": False,
},
{
"id": RESOLVED_SESSION,
"title": "Already resolved",
"agent": "build",
"model": "deepseek-v4.1",
"directory": "/home/user/project",
"created_at": 1760620000000,
"updated_at": 1760620600000,
"busy": False,
},
]
MESSAGES = {
PENDING_SESSION: [
{"id": "m1", "session_id": PENDING_SESSION, "role": "user",
"parts": [{"type": "text", "id": "m1t", "text": "Refactor the layout constants."}]},
{"id": "m2", "session_id": PENDING_SESSION, "role": "assistant",
"parts": [{"type": "text", "id": "m2t",
"text": "I need to edit `src/layout.kt`; approve the change to continue."}]},
],
RESOLVED_SESSION: [
{"id": "r1", "session_id": RESOLVED_SESSION, "role": "user",
"parts": [{"type": "text", "id": "r1t", "text": "Run the tests."}]},
{"id": "r2", "session_id": RESOLVED_SESSION, "role": "assistant",
"parts": [{"type": "text", "id": "r2t",
"text": "The shell command was approved from another client."}]},
],
}
def _recv_exact(conn, n):
buf = b""
while len(buf) < n:
chunk = conn.recv(n - len(buf))
if not chunk:
raise EOFError
buf += chunk
return buf
def _handshake(conn):
data = b""
while b"\r\n\r\n" not in data:
chunk = conn.recv(4096)
if not chunk:
return False
data += chunk
headers = {}
for line in data.split(b"\r\n")[1:]:
if b":" in line:
k, v = line.split(b":", 1)
headers[k.strip().lower()] = v.strip()
key = headers.get(b"sec-websocket-key")
if not key:
return False
accept = base64.b64encode(hashlib.sha1(key + GUID.encode()).digest()).decode()
conn.sendall(("HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\n"
"Connection: Upgrade\r\n"
f"Sec-WebSocket-Accept: {accept}\r\n\r\n").encode())
return True
def _read_frame(conn):
b1, b2 = _recv_exact(conn, 2)
opcode = b1 & 0x0F
masked = b2 & 0x80
length = b2 & 0x7F
if length == 126:
length = struct.unpack(">H", _recv_exact(conn, 2))[0]
elif length == 127:
length = struct.unpack(">Q", _recv_exact(conn, 8))[0]
mask = _recv_exact(conn, 4) if masked else b""
payload = _recv_exact(conn, length) if length else b""
if masked:
payload = bytes(payload[i] ^ mask[i % 4] for i in range(len(payload)))
return opcode, payload
def _frame_text(text):
payload = text.encode()
header = bytearray([0x81])
n = len(payload)
if n < 126:
header.append(n)
elif n < 65536:
header.append(126)
header += struct.pack(">H", n)
else:
header.append(127)
header += struct.pack(">Q", n)
return bytes(header) + payload
def _frame_pong(payload):
"""Answer a client ping frame (opcode 0x9) with a pong (0xA).
OkHttp pings on its own schedule and drops the socket when no pong comes
back, so without this the app reconnects mid-drive.
"""
header = bytearray([0x8A])
n = len(payload)
if n < 126:
header.append(n)
elif n < 65536:
header.append(126)
header += struct.pack(">H", n)
else:
header.append(127)
header += struct.pack(">Q", n)
return bytes(header) + payload
class Session:
def __init__(self, conn):
self.conn = conn
self.lock = threading.Lock()
def send(self, message):
with self.lock:
self.conn.sendall(_frame_text(json.dumps(message)))
def send_event(self, session_id, kind, **fields):
frame = {"session_id": session_id, "kind": kind}
frame.update(fields)
self.send({"type": "chat_event", "chat_event": frame})
def push_permission(self, session_id, request_id, action, resources, message,
resolved=False, decision=""):
self.send({
"type": "chat_permission",
"chat_permission": {
"session_id": session_id,
"request_id": request_id,
"action": action,
"resources": resources,
"message": message,
"resolved": resolved,
"decision": decision,
"source": {"type": "tool", "message_id": "m2", "id": "call_1"},
},
})
def open_approval(self, session_id, request_id):
self.send_event(session_id, "step", step={"status": "started", "index": 1})
self.send_event(
session_id,
"text",
message_id="m3",
delta="Editing src/layout.kt — I need your approval before I write it.\n",
part={"type": "text", "id": "m3t"},
)
self.push_permission(
session_id,
request_id,
action="edit",
resources=["src/layout.kt"],
message="This rewrites src/layout.kt in your workspace. Review the change before allowing it.",
)
def _respond(session, request):
kind = request.get("type")
print(f"<- {kind}", flush=True)
rid = request.get("id")
if kind == "ping":
session.send({"id": rid, "type": "pong", "time": "2026-10-16T15:00:00Z"})
elif kind == "chat_sessions":
session.send({"id": rid, "type": "chat_sessions", "chat_sessions": SESSIONS})
elif kind == "chat_messages":
body = request.get("chat_messages") or request.get("chat_query") or {}
session_id = body.get("session_id") or PENDING_SESSION
session.send({"id": rid, "type": "chat_messages",
"chat_messages": MESSAGES.get(session_id, [])})
if session_id == RESOLVED_SESSION:
# The server reports a request it has already settled: the card must
# state the outcome instead of offering once/always/reject.
session.push_permission(
session_id,
"req_resolved",
action="shell",
resources=["go test ./..."],
message="Another client already rejected this command.",
resolved=True,
decision="reject",
)
elif kind == "chat_prompt":
body = request.get("chat_prompt") or {}
session_id = body.get("session_id") or PENDING_SESSION
session.send({"id": rid, "type": "chat_prompt"})
threading.Thread(
target=session.open_approval,
args=(session_id, f"req_pending_{next(REQUEST_SEQ)}"),
daemon=True,
).start()
elif kind == "chat_reply":
body = request.get("chat_reply") or {}
print(f" decision={body.get('decision')} request={body.get('request_id')}", flush=True)
session.send({"id": rid, "type": "chat_reply"})
elif kind == "chat_interrupt":
session.send({"id": rid, "type": "chat_interrupt"})
else:
# Benign echo for pipelines/runs/status so the app's background loads do
# not surface an error while the chat is being driven.
session.send({"id": rid, "type": kind})
def _serve(conn):
session = Session(conn)
try:
if not _handshake(conn):
return
while True:
opcode, payload = _read_frame(conn)
if opcode == 0x8:
break
if opcode == 0x9:
with session.lock:
conn.sendall(_frame_pong(payload))
continue
if opcode != 0x1:
continue
try:
request = json.loads(payload.decode())
except Exception:
continue
_respond(session, request)
except (EOFError, OSError):
pass
finally:
conn.close()
def main():
port = int(sys.argv[1]) if len(sys.argv) > 1 else 8799
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server.bind(("0.0.0.0", port))
server.listen(8)
print(f"chat_stub_approval listening on 0.0.0.0:{port}", flush=True)
while True:
conn, _ = server.accept()
threading.Thread(target=_serve, args=(conn,), daemon=True).start()
if __name__ == "__main__":
main()
+4
View File
@@ -14,3 +14,7 @@ dist/
release-bin/
/.pipelines-releases.json
/.pipelines-releases-*
# Review captures are evidence, not tracked source.
captures/
Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

+46 -21
View File
@@ -1,25 +1,50 @@
# Pipelines maintenance
# Pipelines project
When changing user-facing behavior or learning a confirmed runtime limitation,
update the relevant packaged OpenCode skill reference in
`internal/author/skill/references/` in the same change. Keep `SKILL.md` a concise,
task-directed index: preserve ask-first authoring and never preload every reference.
Separate current capabilities, dated verification evidence, deployment state and
unimplemented ideas. Do not turn mocked or structural checks into live claims.
## Ownership and execution
For new references, update `internal/author/install.go`'s managed file inventory.
Run the author package tests: they check embedding, reference links, installation,
upgrades and protection of user modifications. Never hand-edit an installed copy
as the source of truth; refresh it with the current-source `pipelines skill install`
only when installation is requested. Do not deploy runtime changes merely because
the skill is updated. Keep README/topic docs and the packaged reference consistent.
The user owns the project. The manager is responsible for finishing authorized work,
not merely assigning it. Use pipelines, direct work or delegation as appropriate.
The manager may implement, review, fix tests, resolve conflicts, merge and deliver.
When a pipeline blocks progress, diagnose it and take over directly when useful.
Do not create another recovery workflow just to complete an existing item.
## Maintenance workflow
## Pipelines are selected, not invented
Top-level agents use the configured `Pipelines maintenance - plan implement review`
maintenance workflow for code changes. Inspect the retained plan/implement/review
outputs and diffs, execute the checks independently, and iterate on concrete
failures rather than trusting stage summaries. An executing stage performs its own
role directly and never recursively launches a workflow. If the workflow is
unavailable, ask instead of silently bypassing it. Never hardcode a disposable
server URL as a project default; the configured endpoint is authoritative.
- For a task that can run in a pipeline, select an existing pipeline and put the
task-specific detail in the run prompt. Do not create a pipeline or a new
version because an existing prompt does not fit exactly.
- Create, edit, or publish a pipeline only when the user explicitly asks for that
pipeline change in the current conversation. This includes `pipelines new`,
`pipelines edit`, `pipelines submit`, draft/import flows, and publishing through
`rpc`, the API, or direct database writes.
- Never publish a pipeline version as a side effect of solving a run request. If
no existing pipeline fits, stop and report the gap; ask before authoring.
## Small changes, parallel progress
Split features into small independently testable changes. Keep stage roles and
handoffs short. Run independent items concurrently in separate worktrees; small
overlapping edits are normal merge work, not an automatic reason to serialize.
Use Luna for pipeline stages unless the user requests otherwise.
## Preserve and verify
Read the relevant area map for build and test commands. Preserve existing branches,
commits and uncommitted work. Never reset, discard or delete unrelated work.
Resolve conflicts by preserving compatible intent; inspect the actual diff.
Run focused tests while editing and relevant integration tests before landing.
Check branch ancestry after landing, not before a server delivery gate can run.
A failed item does not stop unrelated items. Keep unfinished work referenced.
## Finish and report
Track code, checks, landing, deployment and device installation separately.
Show changed paths and actual diff evidence; flag missing captures rather than
claiming no changes. Report failures and decisions concisely.
Update relevant rules, skills and documentation when they are the requested task;
ordinary feature work can leave a focused docs/notes entry instead.
Use the current-source skill installer to refresh managed installed skills.
Do not restart a shared service over active work. Do not use the personal Fold
for tests; it is a delivery device. Follow the device safety guidance in app/AGENTS.md.
Ask only for genuinely missing decisions or destructive/out-of-scope actions,
not routine steps already covered by the user's request.
+4
View File
@@ -17,6 +17,8 @@ ARG PIPELINES_COMMIT=unknown
ARG PIPELINES_DIRTY=unknown
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-X git.a-wan.net/alan/pipelines/internal/buildinfo.Version=${PIPELINES_VERSION} -X git.a-wan.net/alan/pipelines/internal/buildinfo.Commit=${PIPELINES_COMMIT} -X git.a-wan.net/alan/pipelines/internal/buildinfo.Dirty=${PIPELINES_DIRTY}" -o /out/pipelines-server ./cmd/pipelines-server
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-X git.a-wan.net/alan/pipelines/internal/buildinfo.Version=${PIPELINES_VERSION} -X git.a-wan.net/alan/pipelines/internal/buildinfo.Commit=${PIPELINES_COMMIT} -X git.a-wan.net/alan/pipelines/internal/buildinfo.Dirty=${PIPELINES_DIRTY}" -o /out/pipelines ./cmd/pipelines
RUN CGO_ENABLED=0 go build -trimpath -o /out/pipelines-claude-host ./cmd/pipelines-claude-host
RUN CGO_ENABLED=0 go build -trimpath -o /out/pipelines-codex-host ./cmd/pipelines-codex-host
FROM ${OPENCODE_IMAGE}@${OPENCODE_DIGEST}
ARG OPENCODE_VERSION
@@ -42,6 +44,8 @@ RUN apk add --no-cache ca-certificates tzdata git curl nodejs npm python3 \
&& chown -R pipelines:pipelines /data /workspace /home/pipelines
COPY --from=build /out/pipelines-server /usr/local/bin/pipelines-server
COPY --from=build /out/pipelines /usr/local/bin/pipelines
COPY --from=build /out/pipelines-claude-host /usr/local/bin/pipelines-claude-host
COPY --from=build /out/pipelines-codex-host /usr/local/bin/pipelines-codex-host
COPY --from=build /usr/local/go /usr/local/go
COPY --chown=10001:10001 . /workspace
ENV HOME=/home/pipelines \
+163 -296
View File
@@ -1,331 +1,198 @@
# Pipelines
Configured OpenCode/Pi harnesses, separate model defaults, runner-enforced review
limits and selected run-local context: [guide](docs/harnesses-and-control.md).
Small, reusable AI workflows for coding, research and everyday project work,
plus chats with the coding agents you already use.
Reusable, sequential workflows for your repositories, with a Go CLI/TUI,
OpenCode model stages, retained run history, and optional phone notifications.
Pipelines is one per-user server with two clients:
**First-version preview:** a single-user tool for supervised work. Start with a
disposable repository, review edits and command evidence, and expect rough edges.
See the [tester walkthrough and known limits](docs/first-version-testing.md).
- **The app** (Flutter): served as a web app behind a sign-in, and as an
**Android APK**.
- **CLI and TUI** (`pipelines`) for scripting, inspection and authoring.
Stage results include [retained, highlighted workspace diffs](docs/stage-file-diffs.md)
for newly executed visits, alongside their reports and audit evidence.
A **pipeline** is a versioned Markdown definition of stages (model, human
decision, notification). A **run** executes it in a project directory on the
server machine. A **chat** is a conversation with an agent harness (OpenCode,
Claude Code or Codex) that the server keeps going while you are away.
Use `:export` / `:import` to [select and transfer pipeline definitions](docs/pipeline-transfer.md)
between servers as portable ZIP bundles.
**Alpha:** single-user, supervised work. Models make mistakes and editing
stages change files and run commands. Start in a disposable project, review
results, and expect provider charges.
[Real-provider reference workflows](docs/reference-workflows.md) exercise structured
handoffs, file edits/verification, failure routing and reported-usage budgets with
independent acceptance checks and retained evidence. Live inference is opt-in.
![Workflow](docs/images/workflow.png)
## Install
`./install` installs **Docker server + ntfy**. Docker is the only supported runtime
installation. Setup needs Docker Compose and Python 3.
For the host CLI/TUI walkthrough below, also install Go 1.27+; the Docker
installer installs/updates those clients when host Go is available.
```sh
git clone --branch preview/docker-pi-opencode-2026-10-11 https://git.a-wan.net/alan/pipelines.git
git clone https://git.a-wan.net/alan/pipelines.git
cd pipelines
./install # configure/start Docker services and connect a provider
./install # server + CLI + web app, login autostart
./install --web # rebuild only the web app after app changes
./install --apk # optional: Android app, offered to phones for update
./install --linux # Linux x64 client archive, built in Docker
./install --macos --flutter /path/to/flutter # native macOS client archive
```
This selects the reviewed preview branch `preview/docker-pi-opencode-2026-10-11`;
`main` remains unchanged.
Needs Go (version in `go.mod`), Node.js 18+, Python 3.9+, git, curl, a C
compiler, a **running Docker** (the web app is built in Docker; the install
refuses without it) and an existing OpenCode on `PATH`. The installer never
installs these for you. See [Installation](docs/install.md).
The installer requires this Git checkout (including `.git`); a standalone source
archive cannot self-install. Without host Go you can still use the
Docker-contained TUI/CLI. Run Compose from the checkout with `--project-directory`
so it finds `compose.yaml`, and pass `--workdir "$PWD"` so the container keeps the
actual (disposable) workspace rather than its own image directory:
Then open the URL the installer prints (default `http://localhost:8082/`)
and sign in with the password you chose. Put the CLI on your `PATH` as in the
[terminal quick start](#terminal-quick-start).
### Linux quick start (Debian/Ubuntu)
```sh
# TUI (allocate a TTY)
docker compose --project-directory /absolute/path/to/pipelines exec --workdir "$PWD" pipelines pipelines
# Plain CLI command (no TTY)
docker compose --project-directory /absolute/path/to/pipelines exec -T --workdir "$PWD" pipelines pipelines <command>
# Prerequisites: git, curl, a C compiler, Python 3, Node.js 18+ and Docker.
sudo apt update
sudo apt install -y git curl build-essential python3 nodejs npm docker.io
sudo usermod -aG docker "$USER" # then log out and back in (or: newgrp docker)
# Go: the version in go.mod is newer than most distro packages; use go.dev.
curl -fsSL "https://go.dev/dl/$(curl -fsSL 'https://go.dev/VERSION?m=text' | head -1).linux-amd64.tar.gz" \
| sudo tar -C /usr/local -xz
export PATH="/usr/local/go/bin:$PATH"
# OpenCode (required: it runs pipeline stages and chat by default).
curl -fsSL https://opencode.ai/install | bash
git clone https://git.a-wan.net/alan/pipelines.git && cd pipelines
./install
# Keep the server running after you log out (systemd --user service).
sudo loginctl enable-linger "$USER"
```
Point a host client at the mapped host port with
`--url ws://127.0.0.1:<actual-mapped-port>/connect`, reading the port from
`docker compose --project-directory /absolute/path/to/pipelines port pipelines 8080`.
The container listens on port **8080**; only the default host mapping is 8081.
Prefer the installer-saved configured endpoint when present; never replace it with
a guessed default.
Check `node --version` is 18 or newer (older distros: install Node from
nodejs.org or NodeSource). On ARM machines use `linux-arm64` in the Go URL.
Go uses `GOBIN` or its normal `GOPATH/bin` default; put that directory on PATH.
The Docker installer automatically detects/configures LAN networking for ntfy;
you do not need to look up your IP or supply a URL/listen address.
Both Docker services bind `0.0.0.0`; reinstall normalizes those bind settings
without replacing your URLs, timezone, ports or credentials.
The installer builds only CLI/TUI clients on the host when Go is available;
the server and stage harnesses run in Docker. It configures ntfy accounts/token,
checks publishing/health, and opens container OpenCode provider login on first setup;
existing settings, credentials and volumes are retained on reinstall.
Docker provider credentials live in its persistent container volume, separately
from your host OpenCode login; reinstalling or reconfiguring reuses the existing
container accounts and volumes rather than replacing them. Setup asks for ntfy
account passwords, then your model-provider login and models. It selects separate
saved defaults in order: first the interactive harness model, then the
new-pipeline model, in two fuzzy-searchable pickers (the saved value is
preselected and marked `(current)`; typing filters, arrow keys or Tab navigate,
Enter confirms, and Esc cancels without changing anything). Model selection
performs no inference; only the OpenCode path validates the new-pipeline model
with a small real generation (provider charges may apply). Fresh
`./install --harness pi` skips OpenCode login and that generation check. Pi has no
standalone `auth login`: setup opens a fresh `/login` session (regular TUI mode)
where you choose an authentication method, reuse existing volume credentials by
exiting, or sign in with an API key. Each
setup resolves the current supported OpenCode V2 release from the single
documented complete `git/matching-refs/tags/v2` response (no pagination; never the
moving `latest` tag) and the current Pi release from npm, builds `FROM` the
OpenCode image's immutable `sha256` digest, and verifies the built image reports
exactly those executable versions (and a Node-compatible Pi engine). It stops with
a clear error instead of silently substituting a stale pin when discovery, build
or compatibility fails. Use `./install --opencode` or `./install --pi` to
reconfigure login and models inside the existing container without restarting
services: an image matching the release identity needs no rebuild, while a dirty
source always invokes the Docker build and relies on layer caching. The built
image includes python3 so the installer/verification tests can also run inside
the container.
Configuration and data remain per-user. No native server installer is offered.
### Set up harnesses
Docker setup starts the server and saves its client endpoint (the container port
is **8080**; only the default host mapping is **8081**). That saved endpoint is
authoritative: prefer it and never replace it with a guessed default. Do **not**
also start `pipelines serve` for this setup. Explicit `--url` and `PIPELINES_URL`
override the saved endpoint; restart existing TUIs after setup.
Docker mounts your home and installation checkout at their original absolute paths
and uses your UID/GID, so the checkout supplies `compose.yaml` while
`--workdir "$PWD"` preserves the actual disposable workspace. Other host
repositories need a bind mount at the same absolute path; repositories on another
client computer are not automatically transferred.
These unauthenticated server ports are for trusted networks only—do not expose
them to the public Internet.
### Developer/legacy local server (unsupported)
For developing Pipelines itself or running a previous native setup, an explicit
foreground server remains available. This is **not** a supported end-user
installation and is not part of Docker setup; fresh databases contain no pipelines:
One command per harness (native or Docker install). Each checks the CLI is
installed (printing the install command if not), signs in with the harness's
own login when needed, picks default models for OpenCode/Pi, and verifies it
the way the server does. No restart needed.
```sh
pipelines serve # foreground developer/legacy server
# In another terminal:
pipelines
pipelines harness setup opencode # stages + chat (required; ./install configured it)
pipelines harness setup pi # pipeline stages
pipelines harness setup claude # chat
pipelines harness setup codex # chat
pipelines harness list # status of all four
```
Optional developer/legacy autostart at login (starts the server now):
## What you can do
**Runs**
- Runs list with filters, sorting (including largest on disk and most tokens)
and multi-select delete. Each row shows the run's size and reported token
total (`≥` when some stages did not report).
- Run detail: Summary (with size, tokens split fresh versus cached, and the
reported cost), Timeline, and Artifacts and Changes when the run has any.
- Artifacts viewer for files a stage produced, including the recorded session
export (`session.html`), with a full-screen view where HTML pages scroll,
zoom and open their links.
- Changes: the file diffs each stage made in the workspace.
- Human decision stages: a run waits for you; decide in the app or with
`pipelines decide`.
- Retry from the failed stage, cancel, rename, per-run model overrides.
**Pipelines**
- A new install starts with four [example pipelines](examples/README.md),
from one stage to a review loop and a human decision; they are also the
template set.
- Draft-first authoring with a harness, versioned publishing, import/export
as ZIP.
- [Schedules](docs/schedules.md): recurring runs of an existing pipeline.
- Search across pipelines, versions, runs, steps, fields and artifacts.
**Chat**
- Chat with **OpenCode**, **Claude Code** or **Codex** in any folder on the
server, picked with the folder picker.
- Send messages while the agent is working: Claude Code and Codex receive them
mid-turn; otherwise the server queues them durably and delivers them in order
when the turn ends, even with no client attached.
- Approvals, questions, uploads, model choice and interrupt in the app.
- Adopt an existing harness session with `pipelines chat-adopt`.
**Notifications**
- The Android app keeps its own connection and shows notifications in the
background (no ntfy app needed).
- Settings: any run ended, chat needs you, chat reply finished, and
**Also send to ntfy** for devices that still use ntfy.
Pi runs pipeline stages (`harness=pi`) but is not offered as a chat harness.
Claude Code runs chats and pipeline stages (`harness=claude`).
See [Harnesses](docs/harnesses.md).
## Architecture
```
browser / Android app ──HTTPS (tailscale serve) or HTTP──┐
▼
web proxy (node, 0.0.0.0:8082) ── sign-in, web app, /updates/
│ same-origin /connect, /artifacts/
▼
pipelines CLI/TUI ──ws://127.0.0.1:8080/connect──► pipelines-server (SQLite)
│
┌────────────────────┬───────────────┼───────────────┐
▼ ▼ ▼ ▼
opencode serve pi (RPC) claude (stdio) Codex App Server
stages + chat stages chat chat (socket)
│
▼
ntfy (8090, optional fallback)
```
- **One server process** (`pipelines-server`) owns the database, runs, chats
and notifications. Its API has no authentication and binds to
`127.0.0.1:8080` by default.
- **One web app.** The authenticated Node proxy (`web/serve.mjs`) serves the
installed web build and proxies to the server. Every address (localhost,
LAN, tailnet) reaches this same proxy.
- **Tailnet HTTPS.** When `PIPELINES_WEB_PUBLIC_URL` is an `https://*.ts.net`
address, `./install` runs `tailscale serve` to point it at the proxy.
- **ntfy** is built from source and runs alongside, for optional fallback
delivery and stage notification hooks.
- A login service (launchd on macOS, `systemd --user` on Linux) supervises the
server, web proxy and ntfy together.
## Terminal quick start
```sh
pipelines service enable
pipelines service status
```
Uses user-level systemd on Linux or launchd on macOS; no sudo. Runs use the
directory you invoke `pipelines run` from. Preview with `--print`. Stop any existing
foreground/legacy server first. Disable with `pipelines service disable` before
uninstalling. See [installation](docs/install.md) for environment and boot options.
## Your first pipeline and run
Start in the repository you want the workflow to operate on:
```sh
cd /path/to/your/repository
pipelines
```
1. **Create:** press **n** or use **:new**. Choose the configured **OpenCode** or
**Pi** harness to author a workflow together, or **nvim** to edit the Markdown
yourself. Harness authoring runs in the Docker server; only the **nvim** editor
is required on your client computer. Describe the stages, their inputs/outputs,
and the tools they need. Templates (**b** on Home) are optional; a fresh
installation has no published pipelines.
To skip authoring, use **:templates**, choose one of the five generic starters,
and press **s** or Enter on **Create pipeline**. Review the prefilled name
(edit it if needed), then press Enter to create—no separate naming or editor
step. **e Customize** edits it first. Templates include a smaller graph preview;
**Tab** switches focus and space between the description and graph. Use **hjkl**
to pan a focused graph and **n/p** to browse templates.
2. **Keep a draft:** finish/exit the editor. Nothing is published just because you
edited it. Press **d** / **:drafts** to find retained drafts; **e** edits and
**v** validates the selected draft.
3. **Create/update:** press **s** in Drafts. If it has no name, type one into the name
prompt and press Enter. Then review and explicitly confirm submission. The
action is **Create pipeline** for a new definition or **Update pipeline** for
a new version. The server validates it and retains immutable versions; the draft stays.
4. **Run:** select the published pipeline, press Enter to open it, then **:run** to
start a run. Supply your task and review the confirmation. The run uses the
directory from which you launched the client, not the installer checkout.
5. **Inspect:** watch the full graph and stage progress. **Tab** expands/focuses
panes; **n/p** select recorded stage visits; **hjkl** pan a focused graph.
On a failed run, **D** / **:debug** opens a fresh OpenCode debugging conversation;
retry requires confirmation and restarts the pinned workflow, so earlier side
effects may happen again.
Home shows only **/** search and **:** commands as action hints; use the command
palette for creation, drafts, templates, history, status, logs, and quitting.
Quit with **:quit**; **q** does not exit. For a terminal-only run after publication:
```sh
pipelines run "your pipeline name" "Describe the task"
```
### Phone notifications
Open **:status** for the server and ntfy connection details. In the ntfy phone
app, add the displayed ntfy server, sign in as **phone-reader** with the password
you set during installation, and subscribe to the displayed topic. Stages must
include a `notify` block to send notifications; see [ntfy setup](docs/ntfy.md).
Installation checks publishing, not reception on your phone.
For Tailscale, both devices must be connected; use
`http://<server-Tailscale-IP>:8090`. Binding to `0.0.0.0` does not bypass firewalls:
UFW/Docker forwarding rules can allow LAN sources but drop Tailscale sources.
See [Tailscale troubleshooting](docs/ntfy.md#tailscale-address-times-out-while-lan-works).
## Uninstall
```sh
pipelines uninstall # remove Go binaries; keep history, drafts, and ntfy data
```
## A three-stage pipeline
**Plan → Implement → Review**. Each stage receives the previous stage's output;
the first receives your task prompt. One outcome selects the next stage—no
parallel branches. Definitions use Markdown `output`, `prompt`, `tools`,
`configs`, and `edges` blocks. For example:
````markdown
# stage planner
```output
{ task, plan, acceptance_checks }
```
```prompt
Turn input.prompt into a focused plan and acceptance checks.
```
```tools
```
```configs
provider=opencode-go
model=deepseek-v4.1-flash
retries=2
timeout=1h
```
```edges
success -> implementer
error -> #failure
```
````
The [complete three-stage example](examples/three-stage.md) adds the implementer
and reviewer. Review and explicitly submit it:
```sh
pipelines validate examples/three-stage.md
pipelines submit examples/three-stage.md --name "three stage" --create-only
pipelines run "three stage"
```
Every submission is validated and creates an immutable version. Examples are
optional; nothing is imported automatically. The three stages give a visible
plan → implement → review path using your own accounts and repository; no
maintainer accounts or published definitions are assumed. Run from your
repository directory; stage tools are enabled automatically. Edits support any
language/file type and new files. No file list or typed RUN confirmation is
required.
## Useful commands
```sh
pipelines # dashboard; b browses templates
pipelines list
pipelines run # fuzzy selection + multiline prompt
pipelines run "bug fix" "Fix the layout" # run in the current repository
pipelines new "daily digest" "Summarize changes"
pipelines edit "bug fix" "Add a review step"
pipelines drafts --json
pipelines validate /path/to/draft.md
pipelines submit /path/to/draft.md # explicit publication
export PATH="$HOME/.local/share/pipelines/bin:$PATH" # add to ~/.bashrc or ~/.zshrc
pipelines status
cd /path/to/your/project
pipelines # TUI
pipelines run "pipeline name" "Describe a small task"
pipelines runs
pipelines inspect 1
pipelines serve # foreground server; Ctrl+C stops it
pipelines ping
pipelines version --json # local client identity (offline)
pipelines ping --json # running server identity
pipelines help edit
pipelines doctor
```
CLI `new`/`edit` open the configured harness (**OpenCode** or **Pi**) directly with
the Pipelines skill. The installed skill asks
missing questions; `pipelines new` needs no preliminary questionnaire. Changes stay
as drafts by default; CLI and TUI share validation and draft storage. Most
commands support `--json` for agents and scripts.
Runs use the directory you start them from, on the server machine. A browser
on another computer does not upload its files.
In the TUI, press **d** (or use **:drafts**) to browse retained drafts, including
CLI-created ones. **e** reopens a draft, **v** validates it, and **s** opens explicit
submission confirmation, asking for a name first if needed. Drafts remain retained
after submission. Drafts are portable: submit to the currently connected server.
When that differs from the origin, submission creates a new pipeline rather than
applying the origin's version number to an existing destination pipeline.
## Documentation
From a run, press **P** / **:pipeline** to open the pipeline version it used.
Initial run input also records `pwd`. Press **r** / **:retry** on a failed run
(or `pipelines retry <run-id>`) to start a new attempt with the same original
input, directory, and pipeline version. Completed side effects are not undone.
Retries restart at the entry stage with fresh OpenCode sessions, never the previous
conversation or intermediate stage output. Pipelines does not automatically delete
generation, agent, or formatting-repair sessions, including on failure/cancellation.
Primary session IDs are retained in run steps (`pipelines inspect <run-id> --json`).
On Home, **r** opens global run history; **/** fuzzy-searches it. Inside a pipeline,
**r** / **:runs** opens only that pipeline's history.
Quit the TUI with **:quit**; **q** does not exit. **Ctrl+C** remains an interrupt.
Starting/retrying/canceling runs and deleting drafts require confirmation. CLI
publication also prompts; use `--yes` only for explicitly approved automation.
**n / :new** and creating from a template offer a Tab-navigable, fuzzy-searchable
picker: **nvim** opens the draft Markdown file; **OpenCode**/**Pi** author it with
you. Canceling the picker creates no draft and publishes nothing.
Wide terminals show runs and pipelines side by side; narrow terminals stack them.
The TUI uses soft light/dark-adaptive cards, muted metadata, subtle selections,
and local loading animations instead of heavy character borders and inverted bars.
The dashboard includes all-history usage, success rate, average completed duration,
per-pipeline usage, and a 14-day activity chart. CLI: `pipelines stats [--json]`.
Use **:status** for two panels: server addresses and ntfy phone connection details.
CLI: `pipelines status [--json]`. Candidate URLs are not
verified reachable; publishing endpoints and credentials are not disclosed.
Retry is offered only after the failed run and its agent have fully stopped.
Graphs use content-sized boxes/columns and tightly spaced branch lanes while
retaining every stage and labeled box-and-arrow route. Incoming route IDs (left)
and outgoing outcomes (right) share rows to reduce box height. Both pipeline and
run views center the graph horizontally and vertically when it fits.
The run inspector shows the entire pinned graph above the details, dimming stages
and routes not executed. **g** focuses the graph; **hjkl** or arrows pan it.
The path and elapsed duration update while running. **a** opens the active/latest
OpenCode session's recorded tool evidence; this does not attach a live OpenCode UI.
Press **D** / **:debug** (or `pipelines debug <run-id>`) for a fresh OpenCode
conversation about that run. It uses CLI queries rather than resuming or retrying
the implementing agent. Pipeline **Edit** offers a fuzzy-searchable **nvim /
OpenCode** picker; Tab and Shift+Tab navigate it.
In the draft browser, **x** then **y** deletes the selected retained draft and
metadata. CLI: `pipelines draft-delete <draft.md>`. Published history is untouched.
- [Installation and lifecycle](docs/install.md)
- [Harnesses: OpenCode, Claude Code, Codex, Pi](docs/harnesses.md)
- [Notifications](docs/notifications.md) · [ntfy reference](docs/ntfy.md)
- [CLI and authoring](docs/cli.md)
- [Schedules](docs/schedules.md)
- [Pipeline format](internal/author/skill/references/format.md)
- [Reasoning effort and stage limits](docs/harnesses-and-control.md)
- [Chat backend details](docs/chat-backends.md)
- [Artifacts](docs/stage-artifacts.md) · [File diffs](docs/stage-file-diffs.md)
- [Transfer pipeline definitions](docs/pipeline-transfer.md)
- [Docker installation](docs/docker.md)
- [Web proxy](web/README.md)
- [Alpha walkthrough and known limits](docs/first-version-testing.md)
Model results use native JSON-schema output where supported, precise parsing
errors, and bounded format-only repair without replaying tools. Retained failures
distinguish final-result validation from harness transport. Optional stage
permissions narrow file/command access without imposing a language-specific
default. See [model result recovery and permissions](docs/model-results.md).
The run graph header shows start time and elapsed/final duration, plus finish
time for completed runs.
When reporting a problem, include your OS, install mode, reproduction steps,
`pipelines version --json` and `pipelines ping --json`. Redact credentials and
private content; do not post your database or harness session storage.
More: [CLI](docs/cli.md) · [installation](docs/install.md) · [pipeline format](internal/author/skill/references/format.md).
To completely reset Pipelines, including its password and data, run `./uninstall`
from this checkout, then `./install` for a fresh setup. The checkout is retained.
+1
View File
@@ -0,0 +1 @@
3.44.6
+54
View File
@@ -0,0 +1,54 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/
/coverage/
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
# The repository ignores runtime data/ directories. Feature repository source
# and its mirroring tests are code, not runtime data, and must be included in
# fresh checkouts. The test negation is required too: without it every
# `test/**/data/` directory is silently dropped from the candidate.
!/lib/**/data/
!/lib/**/data/**
!/test/**/data/
!/test/**/data/**
+36
View File
@@ -0,0 +1,36 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: "ee80f08bbf97172ec030b8751ceab557177a34a6"
channel: "stable"
project_type: app
# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
base_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
- platform: android
create_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
base_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
- platform: ios
create_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
base_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
- platform: web
create_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
base_revision: ee80f08bbf97172ec030b8751ceab557177a34a6
# User provided section
# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
+71
View File
@@ -0,0 +1,71 @@
# Flutter client — working agreement
## Scope and acceptance
- Only change source files under `app/`. The Go server, web proxy (`web/`) and installation scripts are read-only. User-requested web/server deployment and APK publication are allowed through the installer after checking quiescence and preserving a rollback. Never restart shared services merely for client tests or manipulate real operator chats/runs for testing.
- This Flutter app is the only client: it replaced the former JavaScript web client and the Kotlin Android app.
- No backend changes; report missing capabilities.
- One Material UI on every platform: standard Material controls, including buttons/menus in custom graphs/diffs/chat. No Cupertino widgets, `cupertino` flags, Cupertino tests or Cupertino captures; remove Cupertino branches you touch rather than extend them. System typography, theme colors, light/dark, content-driven layout and text scaling. No fixed row/bubble/button dimensions, bespoke palette or CSS token port. Centralize necessary layout constraints; do not ban legitimate native default spacing or graph coordinates.
- Develop and test on web by default; user-requested Android release APK builds and publication are allowed. When the user authorizes device installation or testing, perform it directly on the named device; no pipeline stage or resource lease is required. Keep source portable to all three targets. Distinguish APK build/publication from on-device verification; report mobile behavior as unverified when no device test ran.
- Small cohesive files (aim below 250 lines; split by responsibility, not arbitrary fragments). Each task owns a directory and its tests. Do not edit another lane or root pubspec/main unless assigned.
- Code quality is a delivery requirement. No minified implementations, silent capability fallbacks, fake data masking missing features, or workarounds that bypass the real defect. A pipeline success does not waive missing behavior, native controls, regression coverage or rendered evidence. Label incomplete work honestly and complete it before claiming parity.
- The manager drives authorized routine integration and recovery without repeatedly stopping for permission. Feature implementation stays in pipelines where appropriate; infrastructure blockers can be resolved directly within the user's authorized scope. Verify quiescence, preserve data and rollback, act, and report actual results. Ask only for genuinely new scope or unresolved destructive choices.
## Shared contract
- `lib/core/api_gateway.dart`: `JsonMap` alias; `ApiGateway.call(type, [fields])` yields the entire decoded reply envelope; `frames` yields unsolicited server envelopes. Gateway owns request IDs. Do not put domain interpretation in transport.
- Feature directories: `lib/features/{pipelines,runs,chat,schedules,search,artifacts,settings,templates}/`. Pure domain logic has no widget imports. Feature screens receive an `ApiGateway`; do not open their own sockets.
- `lib/ui/adaptive/` owns platform primitives; `lib/shell/` owns navigation and composition. Manager integrates feature registration. Feature lanes may supply `screen.dart` but do not edit shell/main.
- Use existing dependencies. Only the assigned foundation lane or manager edits pubspec/lock.
- Tests mirror directories under `test/`; tests use local fixtures/fake gateways, never mutate production. Put item evidence in `notes/<item>.md`, not shared queue.
## Tools and verification
Flutter: `/Users/alan/development/flutter/bin/flutter`; Dart beside it. Run pub get per worktree; never upgrade shared SDK. Run tests only through the memory watchdog, from `app/`: `tool/memwatch/full.sh test` (or a focused `tool/memwatch/full.sh test/<area>` while editing). Never run a bare `flutter test`, because a runaway test has crashed the Mac. Off a terminal it is quiet: one verdict line (counts, peak MB, duration, exit), only failing tests with bounded errors, and the full log path; read that log with grep or a line range rather than whole, or set `MEMWATCH_OUTPUT=full`. `tool/memwatch/quiet_test.sh` checks this output. `tool/memwatch/install.sh` restores the legacy `/tmp/memwatch` shims. Use `tool/analyze.sh` (bounded `flutter analyze`) and `flutter build web` for integrated acceptance. No Go/legacy client checks needed for app-only changes.
Rendered changes require real browser interaction/captures; widget tests alone are not browser evidence. Use isolated loopback servers and OS-assigned ports. Browser automation may use Chrome DevTools, with independent scripts under `app/tool/`; do not modify legacy browser drivers. Never disable authentication on exposed services.
UI capture and review: use `tool/capture/` (see its README). It is one generic Chrome DevTools kit over the full-app fixture `tool/search_selection_probe_entry.dart`. It opens any route at a given size, platform and theme, clicks by semantics label, identifier or point, types text, takes screenshots and films transitions. If a feature's legacy `tool/*_probe.mjs` driver is stale (missing labels, outdated status text), capture with this kit; a stale driver is not a reason to report blocked. Inspect every PNG you cite.
Keep commits referenced; do not discard unrelated work or delete branches. Deploy only when requested by the user; preserve existing public URLs unless a cutover is part of that request. Land candidates per selected pipeline; manager verifies actual ancestry and records source, checks, landing and deployment separately.
## Device testing
The ADB executable is `/Users/alan/Library/Android/sdk/platform-tools/adb`.
Use that absolute path (or explicitly add its directory to PATH); `adb: command
not found` alone is not evidence that the leased device is disconnected.
For populated attention review, `TestExportReadyAttentionReviewFixture` exports a
create-only scratch database when `PIPELINES_ATTENTION_REVIEW_DIR` names a new
directory. Its fixture.json identifies one failed, one finished and one waiting
run and the workspace. Build a scratch server, read back those states, and keep
the owned server alive through all UI interactions. The export itself does not
leave a server running or configure a device. Never use a dead scratch endpoint.
The manager may install, interact, capture and profile directly when authorized
by the user. Check for active shared work first, use an explicit `adb -s` serial,
preserve app data, and record and restore any device settings changed for testing.
Do not require a runner lease or a particular pipeline role.
Known test devices are:
- `phone-47241FDAS00DLK` — the operator's **Pixel 9 Pro XL**, adb serial
`47241FDAS00DLK` (metadata `kind=phone`).
- `emulator-Pipelines_Fold_A` — one managed **foldable emulator**, adb serial
`emulator-5554` (metadata `kind=emulator`, `avd=Pipelines_Fold_A`). Its unfolded
built-in display is 2076x2152; its cover display is 1080x2424.
The operator's **Pixel 10 Pro Fold** (`58281FDCG000JF`) is delivery-only: never a
test target. Do not start an ad-hoc emulator — the one managed foldable AVD above
is the only emulator in scope.
The UI reviewer records original app connection/workspace, display size and power/settings
before changing them. Before any capture: `svc power stayon usb`, `settings put global stay_on_while_plugged_in 7`,
`input keyevent KEYCODE_WAKEUP`, `wm dismiss-keyguard`. Capture with
`adb -s <serial> shell screencap -p /sdcard/shot.png` then `adb pull` — never `exec-out > file`.
Wide layout: `wm size 2000x2244`; the fold's unfolded shape is `wm size 2076x2152`; `wm size reset`
afterwards either way.
Create controlled fixtures for changed screens/states (including human-decision sheets)
on a scratch server/database and throwaway session; never depend on incidental production
state, change a real operator session, or restart a deployed service. Use the configured
authoritative endpoint, never a scratch URL as a project default. Keep all shell/ADB work
foreground and awaited: do not leave test processes running after testing.
Restore the captured original settings after testing. Leave the user-requested
build installed unless they request otherwise. Confirm every test tool has exited.
If capture, restoration or cleanup fails, report the failure explicitly; do not
claim verification or readiness.
+75
View File
@@ -0,0 +1,75 @@
# Flutter port acceptance
Target: current `web/src/` behavior and latest entries in `web/PARITY.md`, NOT
web CSS. Native Material/Cupertino controls, typography, semantic colours and
content-driven sizing take precedence over visual-review styling suggestions.
`WORK.md` is the run/commit queue; this file tracks what remains for a full port.
## Evidence vocabulary
- **Preview**: registered in the normal app and published to8096, with fixture
browser interaction/captures. This does NOT imply live production mutations.
- **Source**: landed/tested reusable code, not a delivered screen.
- **Active**: assigned implementation, not accepted or deployed.
- **Missing**: still required; no implied fallback or scope waiver.
Live authenticated data, OS sharing/notifications and Android/iOS device behavior
remain unverified unless explicitly recorded. Test mutations use isolated fakes
or scratch servers only, never real operator sessions/runs/workflows.
## Functional inventory
| Area | Current state | Remaining acceptance |
| --- | --- | --- |
| Shared transport/settings connection | Preview: reconnect when the app returns to the foreground and the protocol-mismatch warning stays visible (8b9a298d) | native boot uses the saved endpoint (run 155); a connected foreground return re-reads the visible Pipelines/Runs list (run 157) skipped while a dialog, page or text field is in use (run 158); the list keeps its scroll on the re-read (run 160, test-only) |
| Native shell/run URLs | Preview: full route vocabulary; pipeline/version/stage, template detail and run visit/stage links open their detail/pane; `?action=decide` opens the run's decision prompt (9344e6d3) | `pipelines://run/<id>` registered on Android and iOS and routed to the run (cold start and running app); not yet exercised on a device |
| Pipeline list/filter/sort/detail/source/versions | Preview: recorded row metadata and miniature, pinned detail URLs, filter/sort | none outstanding on the list/detail read path |
| Definition graph | Preview: measured native canvas, pipeline Graph tab, pan/zoom, expanded view, stage definition pane, pipeline stage deep link | none outstanding on the definition graph read path |
| Start a pipeline | Preview: native Run action, prompt/workspace/notify dialog, pinned run request, response-loss check/retry | pending launch intent persists across a reload (run 159) keyed per server (runs 159, 161) |
| Templates | Preview: gallery/detail/source, create-only dialog via Settings → Templates, list invalidated on create | create refresh verified against a real server (the web has no run-detail template link, so none is added) |
| Runs list/filter/sort/live fold | Preview | shell live/attention state (filter menu and day groups landed) |
| Run detail/input/output/copy | Preview: Summary recorded fields with exact unknown wording, Input/Output/Copy (no usage metrics block, matching the web since be6b6239) | verify the remaining server-shape variants against fixtures |
| Rename run | Preview | verified exact accepted title fold; no live production mutation tested |
| Cancel run | Preview | exact confirm/server-accepted detail+list fold; production cancellation not tested |
| Retry/restart | Preview controls in the run detail | accepted new-run navigation, stale/refusal handling verified in the app |
| Human decisions | Preview waiting card/native prompt/exact accepted reply | attention/action URL entry; no production decision answered during tests |
| Run graph | Preview: Graph tab with legend, recorded-stage selection, canvas pan/zoom, an expanded view, and a live pulse on the recorded current stage while executing | rendered browser capture of the pulse; styling advisories tracked in `notes/graph-pulse.md` |
| Timeline/recorded visit pane | Preview: selection opens the recorded facts with Input/Output/Artifacts/Session/Definition sections and exact absence wording | — (the server's one repair command, export-only retry, is wired per visit; in-flight state survives remounts) |
| Changes/diffs | Preview via run detail: one recorded visit at a time with Previous/Next paging and capture states, probed in Chrome (9532ecdd, c0ba5d54); recorded file/diff/close/back verified | — (the run-wide aggregate shows only for a succeeded run, as the web) |
| Artifact groups | Preview: recorded groups in run detail, per-visit drill-down, turn documents (input/memory/output, session.html) in the run gallery | — (images, video, markdown, text/logs/JSON/code, CSV/TSV tables and inert HTML preview in-app; session exports stay external) |
| Artifact preview | Preview: image + markdown/text in-app through the chat renderer, paging, honest unsupported/external/HTTP states | — (video plays in-app; HTML renders sandboxed; CSV/TSV as tables) |
| Artifact actions | Preview: external Open, Copy link, download and native share carry the recorded name/MIME bytes; progress, cancel, HTTP failure and unsupported-share states | OS share/download on Android/iOS remain unverified until the final build |
| Session audit/export repair facts | Preview: recorded export state/reason, repair request with one-shot submit and refusal, session.html external-only | rendered browser evidence for the repair control |
| Chat session management | Preview list + open session; shared create/rename/star/close/reopen with server-refreshed rows and full-width row refusals; local hide/undo and this device's read watermark (open rows only; a closed row never shows `New`) | web action-failed report is a modal (Flutter keeps the refusal under its row with an `OK` dismiss), hide closing an open conversation is not reachable here (the list is offstage while one is open), web `Open` badge (the list is offstage while a conversation is open; deep-linked chats are marked read, run 162), create dialog in the shell |
| Chat history/live transport | Preview: `/chat` list and `/chat/:id` history, paging, live failure notice; composer integrated with the thread | run-detail-style reconnect verification in the real app |
| Chat message surfaces | Preview: formatted assistant markdown (safe links/headings/lists/tables/fences), user text exact, disclosures plain | exact attachments, unknown-part rendering beyond retained placeholders |
| Chat activity/reasoning/tools | Preview: one activity line, expanded native overlay with lifecycle/input/output/error/duration/edit diff | compaction wording variants |
| Chat composer | Preview: field, Send/Stop, persisted draft, queued/refusal lines; attachments sent with the prompt (87bb518c); slash palette with no-send routing (63babc59); file and text paste (copied text keeps the field's caret and draft); one verified send in the real app flow | — (slash command actions landed) |
| Chat attachments | Preview: host picker, pasted files through the same bounded 1 MiB draft, composer chips, base64 wire payload, sent with the prompt (87bb518c); the sent turn shows its files until history replaces it (run 156) | — |
| Chat permissions/questions | Preview: native approval/risk and question cards in the conversation view, Chrome fixture captures under the C4 probe (`notes/C4-approvals.md`) | authenticated smoke with a real pending approval/question; live multi-client resolution; no production decision sent |
| Chat model/Info/background tasks | Preview: numeric Info sheet (unknown != 0); header model control and chooser (`notes/chat-model-picker.md`); `Background tasks` bar with `N running`, capped scrolling rows, selected-task detail and one bounded `chat_shell_output` page (cursor 0, 64 KiB) that reports empty/unavailable/refused states, re-read on reconnect; the bar keeps half the viewport and the output pane twelve scaled lines (run 139 + manager fix; widget tests, published, no rendered capture yet) | rendered browser captures of the model chooser and the task bar; authenticated smoke with a real running shell |
| Chat commands/notices/scroll | Preview: dismissible local notices with reconnect clearing; slash palette with the unknown-command report and `Send as message` / `Cancel` (63babc59, `notes/C9-commands.md`); streamed follow and restored read position (e4c196d7) | `/rename` sends the shared server rename (operator decision; the web's is device-local) |
| Saved schedule list | Preview: Settings row, /schedules route, read-only list; a row opens the owning pipeline detail (Summary by default) | authenticated smoke |
| Schedule editor | Preview: pipeline Summary creates/edits/pauses/deletes with the lossless draft and revision guard; conflict keeps the draft and shows the server words; Schedule this run seeds the editor with the recorded run's options (f2c33d2a) | authenticated smoke |
| Search | Preview: exact target model and navigation to pipeline, pinned version, run and recorded stage; field/artifact hits select the recorded Summary section/visit (artifact hits follow web S2/Android and open the recorded visit, where the current browser source opens the artifact externally); a retired field or unknown visit selects the plain Summary; unresolvable hits stay read-only | authenticated smoke; rendered capture of the field/artifact selection |
| Needs you | Preview: runs-list bell/count, native sheet, dismiss/clear persistence, live fold, transition notifications, Settings permission tile | authenticated preview smoke |
| Notifications | Preview: Settings permission tile over live platform state, transition-only dedupe, tap opens the run | permission/browser smoke only in fixtures (background question notices landed) |
| Mobile replacement build | Native build: Android release APK from clean main `67045f25` (`net.awan.pipelines.next`, label `Pipelines Next`, debug-signed, `app/build/android-testing/pipelines-next-67045f25.apk`, sha256 `084a06b8…`); iOS `Runner.app` compiles unsigned after the deployment target moved to 15.0; all six web-only modules have conditional stubs; no device install, OS share/notification or endpoint smoke yet | phone install against a reachable endpoint (the server binds loopback only; a tailnet TLS-terminated forward gives `wss://`, which avoids Android cleartext), device/OS behavior, release signing |
## Current-reference corrections
Latest behavior supersedes older parity rows: Enter inserts a newline and
Ctrl/Cmd+Enter sends; chat rename/star are server-shared; chat usage is behind
Info; graph clicks open recorded visits; image artifacts preview internally;
artifact Share carries bytes as a named file, never a URL; attachments use the
latest bounded attachment envelope. Native layout differences are intentional;
missing behavior is not a native-layout difference.
## Completion gate
Every row must have actual normal-app registration, request/state regression
coverage, and real-browser evidence for visible/interactive states. Recheck
integrated analysis/tests/build and publish the verified preview. Produce the
requested Android testing build only after development acceptance; do not use
the personal delivery device for tests. Distinguish code, landing, publication,
authenticated smoke, native build and device/OS verification in the final report.
+38
View File
@@ -0,0 +1,38 @@
# Pipelines app
The Flutter client for Android, web and macOS.
## macOS desktop
From `app/`, run:
```sh
FLUTTER=/Users/alan/development/flutter/bin/flutter python3 tool/publish_macos.py
```
This builds a release, installs it at `~/Applications/Pipelines.app`, and opens
it. Run the same command to update and reopen it. The previous bundle is kept
at `~/Applications/Pipelines.app.previous`; connections and settings stay in
the app's own storage. This does not restart the Pipelines server.
The default server comes from `PIPELINES_SERVER_URL` or the local installation
manifest. Override it with `--server-url wss://host/connect`. Existing saved
connections still take precedence over the build default.
Use `--destination /path/to/Pipelines.app` for another installation location,
or `--no-open` to install without launching (quit the app first). A ZIP is also
created at `build/desktop/Pipelines-macos.zip`. Use `--offline` when all
dependencies are already cached and network access is unavailable.
By default, the release and ZIP target this Mac's architecture (Apple Silicon or
Intel). `--universal` requests both; Xcode 27's `lipo` currently fails Flutter's
combined architecture check on this machine, so use the default here.
On macOS, Command+1…9 and Ctrl+1…9 open the corresponding conversation in the
list and focus its composer.
Requires macOS, Xcode, CocoaPods and the Flutter SDK pinned in
`.flutter-version`. The local build is ad-hoc signed, without Apple notarization;
the ZIP is a local distribution artifact. Updates are applied by rerunning the
command; there is no background updater. Android's in-app update feed remains
Android-specific.
+641
View File
@@ -0,0 +1,641 @@
# Flutter delivery queue
Behavioral parity with the existing web app, native controls, web-only testing.
All work under app/. Existing applications remain running and unchanged.
## First wave (independent worktrees, Task v6, Luna for every stage)
| Item | Scope | Source | Verification | Landing | Preview |
| --- | --- | --- | --- | --- | --- |
| F0 | Scaffold and gateway contract | 0e0ef54 | analyze + 1 scaffold test pass | main | not served |
| F1 | Socket transport, endpoint rules, reconnect | run 29 + 1e4ecea | 12 regressions pass, analyze/web build pass | main cb1ea90, ancestry verified | — |
| F2 | Adaptive shell and standard platform controls | run 31 + a561c45 | 6 widget tests; real Chrome navigation + inspected phone/desktop PNGs | main 2f60a0e, ancestry verified | served skeleton |
| F3 | Run models, live event fold, actions | run 32 + 1515ebe | 11 regressions/analyze pass; 5 source files 105–226 lines | main 37d0823, ancestry verified | — |
| F4 | Chat models, history/live fold, request facade | run 33 / flutter/f4-chat | pipeline passed; wire omissions carried into C1 | pending C1 adapter fixes | — |
| F5 | Isolated authenticated web preview tooling | run 30 + ae352bb | 6 proxy fixtures incl auth/bytes/origin/idle sockets pass | main 160ab45, ancestry verified | http://127.0.0.1:8096/ |
| P1 | Pipeline list/detail/source/version browser | run34 /a44f31b9 + manager28b93ae | rejected custom per-label control;48 tests + fresh native browser baseline7/scaling30 checks pass | merged main; ancestry verified | shell wiring69 pending |
| C1 | Chat session browser and management | 35 →36 →42 /41d30a4 | manager reran33 chat tests, inspected fixed native empty-state capture;448 integrated tests + analyze pass | merged main; ancestry verified | shell registration/transcript pending |
| N1 | Connection settings/preferences | run37 /abd696b + manager d05aa0c | native shell/shared-client/endpoint Retry wiring; actual dark Cupertino defect caught and fixed;516 integrated tests +20 browser captures pass | merged main | published8096 Settings+Runs; auth kept; live authenticated interaction not tested |
| R1 | Run list/detail/live timeline | controller43 + list48 + detail46 +35a8aab | manager checked retained candidate and real browser captures | merged main; ancestry verified | built into8096 preview |
| D1 | Recorded changes/diff viewer | run39 /15cca17 + manager32e1cac | manager rejected bundled font/fixed palette; corrected to host typography/native semantic colors,47 tests + fresh18 browser captures pass | merged main; ancestry verified | run-detail wiring pending |
| R2a | Human-decision native confirm | run47 / commit42b21b8 | manager inspected source + reran 7 exact-confirm/refusal/native tests + analyze, pass | main3e6f950, ancestry verified | reusable component only; wiring/browser pending |
| R2b | Native cancel-run confirmation | run51 →52 + managere20ac9f | actual detail wiring, accepted lifecycle/list fold;601 integrated tests +23 normal-app browser captures pass | merged main | published8096; no production cancellation tested |
| X1 | Native search and result targets | run49 / commit51140cd | manager reran36 tests, checked native browser evidence + source; all pass | merged main, ancestry verified | standalone screen; shell wiring pending |
| I1 | App-owned socket/session + live Runs shell registration | run50 timeout → manager finish /35a8aab |68 focused tests; integrated375 tests; clean analyze/build; normal-entry browser probe passed18 captures incl deep links/history/reconnect | merged main; ancestry verified |8096 bundle rebuilt, auth preserved; live authenticated smoke not verified |
| E1 | Narrow authorized server export-bound fix | run53 / source22801a9 / deployb4627e2 | bounded regressions + full isolated Go suite pass; exact installed revision verified | source merged; deployed minimal patch on original server revision | installed; seven exact exports complete, Review resumed |
| R2c | Native retry/restart confirmation | run54 / commit178f22a | manager reran17 focused tests + analyze, pass; exact modes/stable intent keys checked | main804e531, ancestry verified | reusable only; wiring/browser pending |
| R2d | Native rename-run dialog | run55 / commitf2643a0 | manager reran11 focused tests + analyze, pass; clean scoped diff | main3dde288, ancestry verified | reusable only; screen/list update wiring pending |
| S1a | Saved schedules repository/revision safety | run56 / commitb963965 | manager reran18 focused tests + analyze, pass; revision/unknown field preservation checked | maina290858, ancestry verified | — |
| T1a | Templates/validate/create-only requests | run57 / candidateef2f463 | manager reran13 focused tests + analyze, pass; exact create-only/source preservation checked | merged main, ancestry verified | — |
| S1b | Native read-only schedule list | run58 / commitebfa7f7 | manager reran29 tests/analyze and inspected2x phone PNG; browser-review advisory accepted | merged main, ancestry verified | standalone; navigation/editor pending |
| P2a | Graph identities/recorded-visit model | run59 / commit2c10507 | manager reran41 focused tests + analyze, pass; scoped 4 pure domain files | merged main, ancestry verified | no renderer/layout yet |
| P2b | Content-sized graph node layout | run60 / commitc1f140b | manager checked caller-supplied extents + reran21 tests/analyze, pass | mainec9e889, ancestry verified | geometry only, no renderer |
| A1a | Artifact records/grouping/safe URL navigation | run61 timeout → resume63 / commitff0f812 | preserved780 source lines; manager reran60 tests before/after resume, pass; URL security checked | merged main, ancestry verified | data only |
| P2c | Edge routes and measured label geometry | run62 / commitb381290 | manager reran20 tests, checked geometry entrypoint/measured inputs, pass | merged main, ancestry verified | no renderer yet |
| P2-node | One native content-sized stage-node button | run64 /e63b0115 | manager inspected126-line native control + final PNG;13 focused tests pass;61min MISSED20min target | merged main; ancestry verified | graph composition pending |
| P2-edge | Passive routed-edge paint layer ONLY | run66 /835f16c | manager inspected160-line source + actual light PNG, reran38 painting/routing tests, pass; actual48min MISSED20min target | merged main; ancestry verified | graph composition pending |
| A1-list | One read-only artifact visit-group list | run65 /596365d9 | manager inspected231-line source + dark Cupertino PNG;11 focused tests pass;59min MISSED20min target | merged main; ancestry verified | run-detail wiring/preview pending |
| D1-wire | Open existing ChangesViewer from run detail | run67 retained + manager77c71eb | stage review limit reached; manager finished retained work,15 browser checks/20 captures incl320px2x native menus | merged main; ancestry verified | published with run detail |
| R2-title-wire | Existing Rename action into detail/controller | run68 /3d3ee3a3 |19min total MET target; manager reviewed source/server-reply fold, focused tests + normal-app browser7 captures pass | merged main; ancestry verified | published8096 with Runs/Settings |
| P1-wire | Register pipeline browser in actual app shell | run69 /8476cfd7 | manager reviewed, focused tests;599 integrated tests + actual app browser25 checks/9 PNGs pass;27min missed20min target | merged main; ancestry verified | published8096 |
| C2-message | Native chat message body | run70 /9e4a9255 + manager2088d46 | manager preserved unknown user parts and removed forced weight; focused transcript tests pass | merged main | component; chat screen79 wiring |
| P2-canvas | Measured definition graph composition | run71 retained/bf378c9 | deadline recovery; manager removed fixed node bound, measured label gaps, fixed labels crossing wires; graph+paint tests pass | merged main; ancestry verified | definition canvas only; pipeline hook next |
| C2-thread | Chat paging/live controller | run72 /76437db0 + managerc970aa5 | manager exposed refused live watch separately;13min; focused tests pass | merged main | conversation integration79 |
| T1-create | Native create-only template dialog | run73 /e69883b5 + manager37332a3,215755b | manager split controls, fail-closed created identity, Cupertino2x probe fixed;24 tests + both-host browser pass | merged main; ancestry verified | gallery76 wiring next |
| S1-draft | Lossless schedule editor draft | run74 /914866f6 + manager87220fe |17min; manager added identity/CAS fail-closed guard after original draft would accept invalid identity | merged main; ancestry verified | native form78 next |
| C3-state | Chat draft/send/stop controller | run75 /565cdaa |10min MET target; manager reviewed per-chat persistence, stable intent id, refusal restore, queued flag | merged main; ancestry verified | composer UI next |
| C3-form | Native composer control | run? pending | drafts/send/stop UI atop75 | queued | pending |
| Chat screen | Live Chat destination + read-only history | run79 /flutter/chat-live-screen | list/detail routing, paging, live one-thread, reconnect | running | pending |
| Templates gallery | run76 /c56b5d45 | manager re-ran38 templates tests, rebuilt fixture;7 probe checks/7 captures incl inspected detail | merged main; ancestry verified | Settings entry/route landed94 |
| Stage definition | run77 retained/d88213d | review result-validation failure; manager verified retained slice and drove both-host probe (5 captures each) | merged main; ancestry verified | graph hook85 next |
| Attention model | run82 /38f8576c + manager224f8ee |13min;44 tests; manager namespaced dismissals to this client and re-ran tests | merged main; ancestry verified | bell/sheet UI84 next |
| Pipeline graph | Graph tab + stage pane wiring | run85 retained/0176720 | Code deadline recovery;62 pipelines tests + both-host probe; bounded measured canvas opens pinned definition | merged main; ancestry verified | published8096 |
| Needs you UI | Bell + native sheet | run84 retained/ee93d4f | review visit limit;72 tests; snapshot clear/dismiss both hosts | merged main; ancestry verified | published8096 |
| Needs you wiring | Live bell over the Runs list | run90 /a309d9d5 (rebased) | evidence bug blocked the run; manager rebased onto main, resolved PARITY, ran239 attention/runs tests; probe 4 captures both hosts at 320/2x | merged main; ancestry verified | notification permission/transitions |
| Chat screen | Live Chat destination + read-only history | run79 retained/86a9b4a | deadline recovery;110 focused tests + both-host probes; real app probe verifies /chat/ses route and stored turn | merged main; ancestry verified | published8096 |
| Retry/restart | Retry and restart in actual detail | run80 /2de1c90 base |50min; focused suites; accepted-run navigation verified | merged main; ancestry verified | published8096 |
| Artifact gallery | Recorded visit groups in run detail | run81 retained/df6524c | Code deadline recovery;29 tests +16 fixture captures; real app probe verifies list/selection | merged main; ancestry verified | published8096 |
| Chat markdown | Safe native chat markdown | run83 /a5afc55a + manager5b85c8d | parser split into cohesive files; chat suite118 pass; unsafe links inert | merged main; ancestry verified | published8096 |
| Markdown callsites | Thread + artifact preview builder | run91 retained/dc6b963 | evidence bug blocked the run; manager ran234 chat/artifact tests; assistant prose formatted, user text exact | merged main; ancestry verified | published8096 |
| Templates entry | Settings row + /templates route | run94 retained/d527c83 | evidence bug blocked the run; manager ran91 application/settings tests; Back restores Settings, create invalidates list | merged main; ancestry verified | preview republish pending |
| Server evidence | Re-saved visit keeps newest evidence | manager fac055d | runs failed on a raw duplicate key when the runner saved a visit twice; per-visit evidence now upserts under the serialized writer; Go suite green | committed main | deploy after quiescence |
| Artifact viewer | In-app preview + paging | run86 retained/151bd1c | harness deadline recovery;99 artifacts tests + probe(7 viewer states,320/2x,Cupertino); gallery opens viewer for previewable types | merged main; ancestry verified | published8096 |
| Composer UI | Composer strip in the thread | run87 retained/421831b | server storage bug blocked the run; manager ran98 chat tests + both-host probes; drafts/send/stop | merged main; ancestry verified | published8096 |
| Search entry | Register Search in the shell | run88 retained/fd380ef | server storage bug blocked the run; manager ran45 tests + real-app probe; route restores prior screen | merged main; ancestry verified | published8096 |
| Run graph | Run-mode executed-route canvas | run89 retained/5b833e7 | server storage bug blocked the run; manager ran43 graph tests; recorded visits only, legend | merged main; ancestry verified | published8096 |
| Run graph tab | Graph tab + recorded-stage selection | run92 retained/d74e5c5 | evidence bug blocked the run; manager ran147 runs tests + both-host probe (7 checks, graph/legend/selection/missing wording) | merged main; ancestry verified | preview republish pending |
| Schedule form | Native schedule draft editor | run78 /flutter/schedule-form | binds74, no save engine | merged main; ancestry verified | published8096 |
| Notifications wiring | Live delivery + Settings tile | manager e7165f7 | app-level controller shared by Runs and Settings; 2 wiring tests + 1191 full suite | merged main | fixture evidence |
| Activity line | One line per recorded activity | run104 micro | single behaviour, no probe; chat tests | merged main | overlay landed |
| Attachment model | Bounded draft (1 MiB) | run106 micro | single behaviour; chat tests | merged main | picker/send next |
| Visit changes | Changes for one recorded visit | run107 micro | single behaviour; runs tests | merged main | paging next |
| Chat sessions | Create/rename/star/close/hide | run98 retained + canceled | oversized run cancelled after 3h; manager verified 155 chat tests, rebased, merged; 1259 suite | merged main | directory groups/search |
| Turn documents | Gallery document slots | run102 retained + canceled | oversized run cancelled; 148 artifact tests, rebased; manager fixed visit drill-down to keep session.html out of stage files | merged main | 1284 suite |
| Attach picker | Host file input seam | run112 micro | single behaviour; 193 chat tests | merged main | chips/send next |
| Chat notices | Dismissible local notices | run121 / merged | micro; 1387 suite; reconnect clears | merged main | preview published 8098 |
| Stage deep link | Pipeline stage from the route | run122 / merged | 1h27m for one behaviour (3 Code visits); tree green | merged main | - |
| Attach send | Composer send with attachments | run123 running | - | - | - |
| Decide route | Decision prompt from the URL | run124 running | - | - | - |
| Model picker | Recorded model chooser | run125 running | - | - | - |
| Routes | Full URL vocabulary | run113 micro | parse/serialise every web route form; 1327 suite | merged main | stage panes next |
| Session export | Recorded state surface | run110 micro | state wording + reasons read-only | merged main | repair request next |
| Activity overlay | Expanded recorded activity | run111 micro | expand/collapse with recorded fields | merged main | - |
| Graph expand | Expand from pipeline Graph tab | run114 micro | same canvas, selection survives | merged main | run detail entry |
| Attach wire | Base64 attachment parts | run115 micro | exact wire shape, 1 MiB bound | merged main | composer send |
| Miniature | Pipeline row preview | run116 micro | recorded preview only, external never fetched | merged main | - |
| Schedules list | (no change needed) | run109 no-op | list screen already landed; only route registration remains (manager) | - | route wiring |
| Pipeline metadata | Recorded list-row facts | run108 micro | single behaviour; pipelines tests | merged main | miniature next |
| Search target | Exact hit identity model | run105 /cbba026c | micro lane (single behaviour, no probe); 41 search tests | merged main | navigation wiring next |
| Start pipeline | Native launch dialog | run97 /f6575fff | succeeded after 1h21m (oversized slice); manager ran304 pipelines/application/runs tests + 3-check/10-capture both-host probe | merged main; ancestry verified | production launch unverified |
| Visit pane | Recorded facts in Timeline | run95 retained/f0d62125 | deadline recovery; 280 runs/artifacts tests; input/output/artifacts/session/definition sections | merged main; ancestry verified | preview republish pending |
| Notifications | Capability + dedupe | run100 retained/b8e5c3e | deadline recovery; 147 attention tests; bridge/ledger/permission tile; no shell wiring claimed | merged main; ancestry verified | manager wiring next |
| Graph zoom | Pan/zoom/expanded canvas | run101 retained/cc7eba59 | deadline recovery; 175 graph tests; inline transform preserved | merged main; ancestry verified | expanded entry wiring next |
| Artifact files | Download/share named bytes | run99 retained/841dd50 | Code deadline recovery; manager ran123 artifacts tests + analyze + 27-check/32-capture probe; exact name, MIME and byte length both hosts | merged main; ancestry verified | preview republish pending |
| Pipeline schedules | Saved schedules in pipeline Summary | run93 /ea2179cd | evidence bug blocked the run after commit; manager ran141 schedules/pipelines tests + 15-check/13-capture both-host probe; create/edit/pause/delete with CAS | merged main; ancestry verified | preview republish pending |
## Next ready work
### Current execution target (user correction)
Target approximately20 minutes END TO END per task, not per model stage. One
independently testable behavior, focused regression, short handoff; concurrent
small lanes, prompt integration. No multi-hour feature-sized runs or blind
retry/review loops. When a slice overruns, inspect retained progress and split
unfinished behavior or finish directly. This changes task selection/prompts,
not pipeline definitions. Keep existing in-flight work intact.
Ready micro-slices after the necessary audit-fix service window:
- Graph: native measured stage-node widget + selection callback ONLY.
- Graph: edge/label painter over already-routed geometry ONLY (parallel node lane).
- Artifacts: read-only visit-group list + selection callback ONLY (no viewer/share).
- Schedules: editor input validation + unchanged revision payload tests ONLY (no UI).
Keep each item separately reviewable; renderer composition, artifact preview and
schedule save integration are later slices, not bundled into those tasks.
- P1 pipelines list/detail/source/version; P2 graph and stage/visit selection.
- R1 runs list/detail/timeline; R2 decisions/run/retry/cancel/title and attention.
- C1 chat list/group/search/star/rename/close/create; C2 transcript/markdown/reasoning/tools; C3 composer/attachments/queue/stop; C4 forms/permissions/models/metrics/shells.
- A1 artifact gallery/preview/share/download; D1 diff viewer.
- S1 schedules and provenance; T1 templates/create/validate/submit.
- X1 search; N1 settings/persistence/notifications; I1 routes/deep links and integration.
F1 + F2 unlock live preview and feature screens. F3/F4 unlock runs/chat UI.
F5 provides a separate authenticated preview URL, without production changes.
Parallel tasks own separate feature subdirectories and tests. Manager owns main,
shell registration, pubspec, this queue and integration. Small shared-file edits
are resolved at landing, not used to serialize independent features.
Each run pins Task v6 with a whole-run `openai/gpt-6-luna` override (all four
stages), app/ as workspace, its own worktree under tmp/flutter-fN, and an
individual background `pipelines wait`. No workflow definitions were modified.
The CLI reports a client/server build mismatch; admission succeeded and the
server echoed the expected model/scope. No shared service was rebuilt/restarted.
### Corrected admission scope
Run 24 failed before edits: `--write-paths app` grants an exact path, not a
directory subtree. Runs 25–28 were stopped once the common admission mistake was
confirmed, and their agents settled. Partial shell/run/chat files remain in the
same worktrees. New runs 29/31/32/33/30 continue those retained files with app/
itself as workspace and default workspace edit scope. Retry preserves the old
workspace/write scope, so could not correct this admission mistake. No policy
override, server edit or shell-write bypass was used by the manager.
Allowed pipeline models: Luna or DeepSeek V4.1 Flash; current runs use Luna.
## Latest integration check
The port was blocked by a SERVER defect, not app work: runs failed with
`UNIQUE constraint failed: step_file_changes(run_id,sequence)`. A first fix let an
identical replay succeed, but two more runs then failed with "finished evidence
overwritten": the runner legitimately saves the same visit twice while it is still
running (a settlement after the export gate rescans artifacts), and the second save
carries different evidence. Evidence writes now replace that visit's previous row
under the run's serialized writer, while the step-state transition gate and the
atomic rollback test still hold. Full Go suite green; committed as fac055d and
deployed after the active runs settle, with the earlier backup under
`~/.local/share/pipelines/backups/evidencefix-20261022-000913` retained.
Recovered runs were finished directly rather than replayed: Search entry, run-mode
graph component, pipeline Graph tab, Needs-you bell/sheet, composer, markdown
call-site wiring, Templates entry and (pending) the run Graph tab and saved
schedules. Integrated main now959 tests pass with clean analysis. Verified in real
Chrome: the pipeline Graph tab on both hosts at 390x844/2x (graph + pinned
definition pane), the registered Search route, one composer send with an exact
`chat_prompt` payload, and the 34-capture normal-app run/chat/artifacts flow
(35 captures with the composer step). Published bundle for the markdown wiring:
rollback build/web-before-md-1792625353, JS SHA256
e82352c955900716f7e081ee10cff38a7a4c0ee6a21245623c1bc4dfad6da00f.
The artifact viewer landed after its Code visit ended on a harness transport
deadline; the retained edits were verified rather than retried. Previewable
records open in-app (image bytes or selectable text, markdown via an injected
builder), external-origin urls are marked and never fetched, paging clamps, and
unsupported types keep the facts dialog. Published; rollback
build/web-before-viewer-1792621280, JS SHA256
053c61f3de1cd4abfb49eb6f77717912454066ab57a84e23045688394bcf92ac.
Two more slices needed direct recovery. Chat 79 hit its Code deadline while active;
its edits were retained, and the manager verified the focused application/chat
suites (110 tests), then drove the Material and Cupertino fixture probes and
inspected the Cupertino live thread. Retry 80 landed normally.
The real-app browser probe now drives three destinations end to end on top of the
existing run coverage: Pipeline graph-era detail remains, Changes and Artifacts
open from a run, Settings shares the one socket, and Chat lists a session, opens
`/chat/ses_probechat`, shows the stored turn (asserted by OCR, since Flutter paints
selectable text on the canvas) and returns to `/chat`. It passes with 34 captures.
Integrated main after Chat, retry, artifacts and attention:831 tests pass;
analysis clean; normal web build passed. Published: rollback
build/web-before-chat-1792620525, JS SHA256
17dfb800fcd3617deef93bf9a1287f002d7cc9cd957817576fd38c7c52b68043; unauthenticated
asset access still 401.
The active set is now markdown rendering, the Needs-you sheet, pipeline graph
wiring and the artifact viewer; composer UI, schedule save wiring, search entry,
run graph and notifications follow.
Templates gallery76 landed after inspection: 38 template tests pass, and the
in-process fixture probe passed 7 checks with 7 captures; the selected-template
capture shows metadata, verbatim source and the native create action under one
bar. Schedule form78 and its lossless draft are also in main; the form probe passed
every step with 7 captures and both the Cupertino dark and 320px/2x Material
captures were inspected. Two native-default violations were then removed from the
schedule surfaces: secondary metadata used a hard-coded 14px Cupertino size, and
row titles/statuses forced weights the host already defines. They now use the
host's own text roles.
The real-app browser probe was extended to exercise the newly wired Changes action
end to end: run detail → recorded file → rendered diff with the exact added/removed
lines → close → back to the same detail. It passes with 30 captures; the diff
capture was inspected. Earlier assertions that indexed captures numerically were
replaced with named capture variables so inserted evidence cannot silently shift
an OCR check.
Integrated main after these landings:718 tests pass; analysis clean; normal web
build passed; full normal-app probe 30 captures. Published that verified bundle
(rollback build/web-before-full-1792617308). The JS hash is unchanged from the
previous publication because Templates, schedules and their probes are not yet
reachable from shell routes and are tree-shaken; that is expected, not evidence of
a missing build.
The user directs continued work until the whole client is ported, not just
components. app/PARITY.md now enumerates the entire remaining behavior inventory
against latest web behavior, distinguishing preview/source/active/missing.
Latest batch: two pipeline runs needed direct recovery, not replacement work.
67 Changes wiring had completed its fixes but exhausted its Review visit limit;
71 graph canvas hit the Code deadline while collecting evidence. In both cases the
agents were settled and the retained edits were finished by the manager.
- Changes wiring now opens the landed viewer from real run detail and switches to
a native action sheet/bottom sheet when scaled segment labels cannot fit. The
previously hard-coded measurement font was replaced with the host's real label
style. Rebuilt fixture:15 checks/20 captures, approved temp/
changes-wiring-manager-browser; 320px/2x Material and Cupertino menus inspected.
- Graph canvas no longer imposes a fixed node width or a guessed 2x rank gap; it
measures real native nodes/labels and derives spacing from those extents. New
resize regression plus the existing geometry suites pass. Browser inspection
found an outcome label sitting across its own loop wire; three failing pure
regressions were added first, then label placement was made wire-aware. Real
Chrome cases Material light1x/2x and Cupertino light1x/dark2x each produced 5
captures under approved temp/graph-canvas-manager-browser.
- Chat thread exposed a refused live watch separately from readable history; the
focused regression covers refusal then successful resync.
- Chat message rows keep unknown user parts behind a native disclosure and no
longer force a role font weight.
- Template create gained a fail-closed created-identity guard, split native
controls out of the dialog, and fixed the probe so a Cupertino 2x phone prompt
is judged by its alert-dialog surface rather than a role assumption. Both hosts
pass; the accepted 2x Cupertino capture was inspected. No product layout change
was needed.
- Schedule draft now refuses to build a save payload when the pipeline identity or
an edited record's id/revision is invalid, closing a create-vs-update hazard.
Integrated main after these landings:694 tests pass; analysis clean; normal web
build passed; the extended normal-app browser fixture passed28 captures. Published
that verified bundle with no service restart: rollback
build/web-before-port-1792616193, JS SHA256
770cc339b4c3f357dc9aeb5c23e73f4992cbb3892675a2d9963af4b02ff3b7da; unauthenticated
asset access still401. Authenticated production interactions and mobile remain
unverified.
Runs still active:79 live Chat destination,76 templates gallery,77 authored stage
pane,78 schedule form. Next queued wiring after those: composer UI on75, artifact
gallery/viewer, retry, search shell entry, attention/notifications, then the final
Android build.
Pipeline browser69 landed and was tested against the normal app build in real
Chrome:25 checks/9 PNGs, actual dark Cupertino detail inspected; existing Runs/
Settings regression20 captures pass. Published without service restart; previous
bundle kept at build/web-before-pipelines-1792609054.
Then manager wired existing CancelRunAction alongside Rename. New native-screen
tests failed before wiring and pass after; accepted server state updates list
lifecycle too, not just title, invalidating stale detail requests. Full suite601
tests pass; clean analysis/build. Extended normal-app CDP probe23 captures verifies
Cupertino confirm/Keep sends nothing, Material confirm sends exactly one run_id4
to its isolated fixture, and accepted canceled detail/list. Both new native
captures inspected; no real run canceled. Preview includes this verified bundle
(e20ac9f), rollback build/web-before-cancel-1792609492, JS SHA256
60391291f5086fbef409399ee0660801c887e5891d37b35f02519dc56af9205b;
authentication401 preserved. No shared service restarted. Five independent
micro-slices70–74 started in parallel with individual background waits;67 Changes
wiring continues independently. No workflow authored or modified.
Integrated main592 tests pass; analyze and normal web build clean. P1 candidate
correction removed491 lines of custom measured control code/test expectations:
all widths keep actual native segmented controls, scaled labels scroll whole and
keyboard/mouse reach Source; no font override remains. Final standalone browser
baseline7 checks/9 PNGs and scale30 checks/10 PNGs passed; actual app registration
is still69, not claimed deployed.
Rename68 landed with small production diff, manager checked accepted server
detail/list update and stale-selection guard. Re-ran title probe on actual normal
app build:4 checks/7 captures, exact Save payload both native hosts, Cancel sends
nothing, accepted title visible in detail/list. Inspected fresh Material renamed
PNG. Existing normal Runs/Settings browser regression also passed20 captures.
Published verified Rename/Runs/Settings bundle with no service restart;
rollback build/web-before-rename-1792607169, JS SHA256
72d26a052b29e287d86d3887925f9c7dd7a566ca7b30d44c2cfc8b792f660965.
Auth JS401 retained. Authenticated production mutations and mobile unverified.
Integrated main after Settings wiring/node/artifact landings:540 tests pass;
analyzer clean. Settings integration d05aa0c built normal entry, ran extended
real-browser fixture20 captures including both actual native hosts and single
shared-socket assertions. Widget test reproduced dark Cupertino labels incorrectly
using Material fallback black before native-theme fix. Final dark screenshot
inspected: readable native label/secondary roles, no custom font/palette.
Published verified Settings/Runs bundle to build/web via directory rename, without
any service restart. Rollback build/web-before-settings-1792605369 retained.
Published main.dart.js sha256244bb0a561b7283dec5aa6a2fc53b82fc100e45d31a6c479a7a5d68e260ca212.
LAN/tailnet /settings routes correctly reach login200; unauthenticated JS401.
Native builds/device behavior and authenticated production-data interactions
remain unverified. Preview source is d05aa0c; later node/artifact components are
landed source only. Existing67 Changes wiring and new68 Rename wiring run in
parallel; small overlapping detail-body inserts are integration work, not a lock.
After diff/edge landings, integrated main513 tests pass; analysis clean. Source
changes include22 diff files/+4511 lines after native-default correction and6
edge files/+932 lines. Diff pipeline's request for custom fonts/palette conflicted
with user intent; manager reproduced native-style assertions failing, removed
font assets/pubspec registration/fixed colors, retained exact patch/capture facts,
and rebuilt/reran real browser fixture:18 captures including both native phone2x
views inspected. No fontFamily/fontSize/FontWeight/literalColor override remains
under changes/. No new preview build or shell registration claimed.
After chat landing, manager reran integrated suite:448 tests pass; analysis clean.
Chat/settings are source landings, not visible preview registrations. Preview
continues to serve the previously verified live Runs bundle.
Settings37 landed after manager source/evidence check and39 focused tests. A
separate small manager correction starts the already-connected client's ping
before preference loading rather than rendering false build/time unavailability
on the first frame. New delayed-store regression failed on the original and
passes with fix; also checks one ping only and stale pong ignored on disconnect.
Integrated main now415 tests pass; analysis clean. No new browser capture for
the first-frame correction; shell registration still needs native-host framing
and shared-client wiring, so Settings is not yet claimed delivered in preview.
After Runs landing, integrated main:375 Flutter tests pass; analysis and normal
web build pass. Manager reran browser probe against that normal bundle:18 PNGs,
deep link/back/forward/drop/reconnect pass,5 subscriptions/5 lists/7 detail reads.
Preview8096 serves the rebuilt build/web without any service restart. Rollback
bundle retained in approved temp as preview-before-runs-1792600010. LAN/tailnet
/runs reach the authenticated login correctly. Authenticated production data
rendering not tested; fixture evidence is not a claim of live-data verification.
### Visual-audit export correction prepared (not installed over active work)
**Installed/recovered after37 and42 finished:** confirmed zero active/queued runs
and zero recorded active agents; backed up SQLite with backup API, binary/plist
and exact34/39 records under ~/.local/share/pipelines/backups/inlinefix-c303756.
Atomically installed staged c303756 binary; restarted ONLY
gui/501/net.awan.pipelines.server. Ping verified clean exact commit
c30375626f6dcd100d33054687b79f5d8ba58336; binary SHA256
c281c400d5fa0ffcc6326694e373fc08914f5b43ec03f0c0cd9350e6d3c2da0b.
Repair34/3 complete71 messages/4,676,625 bytes;39/5 complete56 messages/5,375,192
bytes. Neither truncated. Compared all original step session IDs/outputs against
before backup: unchanged. Both cleared export waits and resumed recorded Code
edges. Restart-induced wait EOFs were expected; reattached individual34/39 waits
using new matching private CLI pipelines-cli-inlinefix-c303756 in approved temp.
No web/preview/OpenCode/ntfy restart, database edits or evidence overwrites.
With service window complete admitted micro-runs64/65/66 concurrently. No pipeline
definition or version was created/changed.
Historical preparation details:
Run34 UIReview3 native source is complete:71 messages,4,196,297 decoded bytes.
Its projection duplicated47 inline screenshot URIs (3,752,634 bytes) already
stored in complete native JSON, exceeding the unchanged8MiB HTML cap. Direct
infrastructure correction c303756 on exact-running-b4627e2 base (main cherry-pick
ceffd5d) summarizes ONLY data: URIs whose exact bytes are also present in the
message's retained native record. Native JSON is unchanged and escaped; absent
native copy falls back to full output. No limits raised and no partial evidence
declared complete. New large-inline/fallback/security regressions, full Go suite,
build/vet and focused race tests pass. Exact original visit scratch export now
4,676,544 bytes/71 messages/untruncated. Staged binary is in approved temp as
pipelines-server-inlinefix-c303756. Original production evidence untouched.
Install and exact export-only repair34/3 automatically at a quiescent server
window; do not interrupt active37/39/42/50/58 work. Review's rejection is legitimate:
Summary/Source tab labels break mid-word under scaled text; once the audit gate
is repaired, the same run follows its recorded Code edge to fix that actual defect.
On schedule-list58 completion manager checked the safe window:37 Review,
42 UIReview and50 Code still active;34/39 visual audits export-waiting. Therefore
no restart was performed. Do not launch additional model stages ahead of this
short necessary deployment window; finish/check current candidates meanwhile.
At804e531 manager ran the integrated main Flutter suite: 98tests passed and
flutter analyze was clean. These cover landed source/components only, not the
six unreviewed export-blocked feature branches or visible screen delivery.
### Export blocker RESOLVED — direct manager recovery
User explicitly directed manager to perform routine unblock/install without
waiting for further decisions. Confirmed ZERO active runs and quiescent original
Code sessions, backed up SQLite via backup API plus installed binary/plist under
~/.local/share/pipelines/backups/exportfix-b4627e2 (private directory), atomically
replaced only the server binary and restarted exact launchd job
gui/501/net.awan.pipelines.server. No web/ntfy/OpenCode service was restarted.
Installed ping commit is b4627e29755c3496f5caee5a9c316d8bf24f0713; SHA256
f70b4e17324262cf5275927c40f617838fefc0d9217946eeaf6d3a320c786fac.
Rollback binary remains saved, DB/session/workspaces untouched.
Export-only repair of34/37/39/42/49/50/58 visit1 ALL returned complete,
untruncated, 2.25–4.28MiB. Original Code session IDs and output hashes match the
pre-install checkpoint, with one Code visit each; all seven moved to Review,
export_pending_sequence0. Evidence in approved OpenCode temp:
export-recovery-before.json, export-recovery-repair-results.json and
export-recovery-after.json. EOF/reset errors on old background waits were the
expected restart disconnect, NOT run failures. Reattached seven waits using a
private CLI built from the sameb4627e2 source; installed global CLI left alone.
No coding-stage replay, evidence overwrite or gate bypass. Network preview still
responds302 to protected login at http://10.0.0.249:8096/. Implementation/reviews
now proceed in parallel; the prior install-approval notes below are historical.
The fix is now merged: rendered file cap8MiB, source cap8MiB unchanged, within
ordinary artifact allowance. Pipeline read-only scratch exports of all six exact
sessions were complete at2.25–4.28MiB, establishing the fix is sufficient.
Run53 automatic delivery failed in pre-existing TestHumanRunAttentionNotification
because the test inherited the running service's PIPELINES_WEB_PUBLIC_URL. Manager
reproduced that same failure on unchanged main with a harmless example URL; no
notification source/test was edited. All packages pass on candidate with only that
test-process env var unset; build/vet/diff pass. Manager landed checked source
directly (no coding-stage replay), and refreshed installed managed Pipelines skill
from current source via go run ./cmd/pipelines skill install.
Installed server is unchanged. Deployment safety inspection found57/58/59 active;
no restart or binary replacement performed. Need explicit operator approval for
installation/restart after active work settles before exact export-only repairs.
Old CLI service status cannot resolve its expected launchd label; do not guess a
service or restart unrelated processes. Inspect authoritative supervisor first.
Preparation completed after user asked what manager was doing: authoritative
launchd label is net.awan.pipelines.server (not old CLI's net.a-wan.pipelines),
running installed binary under ~/.local/share/pipelines/bin with original DB
and OpenCode endpoint retained. Built a deployment candidate from the exact
running9ee2e00 revision plus ONLY export fix22801a9: branch
deploy/export-limit-only, commitb4627e2. All six new export regressions pass on
that exact candidate. Staged binary in approved OpenCode temp directory is
pipelines-server-exportfix-b4627e2; rollback copy is
pipelines-server-before-exportfix-66779. Installed binary/launchd registration
remain untouched. This avoids deploying unrelated newer main changes.
The temporary launch pause ended after the direct, safe server installation.
Graph/model/layout lanes have progressed, and independent small tasks continue
alongside the seven restored feature reviews. No repeat approval gate remains
for routine authorized recovery/integration.
User asked about failed runs; explicit status inspection found runs34/37/39/42/
49/50 are waiting, not failed: each Code visit1 computed success and is quiescent,
but export is partial/truncated at exactly2097152 bytes. Exact recorded native
session identities remain retained. `pipelines repair-session-export 34 1` was
attempted once; it returned `session export repair incomplete: partial` at the
same cap. No full stage reruns, evidence replacement, cancellation or gate bypass
was performed. Remaining waits stay active for eventual export-only recovery.
User subsequently approved the narrow server export-limit exception and asked
for continued small parallel tasks. Run53 owns ONLY bounded export-limit code,
necessary verification/repair regressions and a focused note. Existing web and
mobile source remain off-limits. Deployment remains a separate operator gate
under internal/server/AGENTS.md; no shared service restart is delegated. After
authorized installation, recover the original exact visits EXPORT-ONLY. Do not
burn repeated repair attempts against the unchanged deterministic size limit.
Parallel work while E1 runs: R2c/R2d/S1a are separate worktrees, each with its own
focused existing Task v6 run and background wait. No new workflow definitions.
At 160ab45: 29 Flutter tests and 6 Node proxy fixtures pass; flutter analyze,
flutter build web and git diff --check pass. Real Chrome phone/desktop captures
are in the approved OpenCode temporary directory, named f2-shell-*.png. The
preview process is running separately on loopback 8096, authenticating via the
unchanged existing web proxy on 8095. Verified unauthenticated page redirects
to login, JS denies with 401, and proxied login responds 200. The served app is
currently a shell with explicit unimplemented bodies, NOT a feature-complete app.
No Android/iOS build or device verification has occurred.
Network preview update: per user request, the preview now binds 0.0.0.0:8096,
reachable at http://10.0.0.249:8096/ on the current LAN. Verified listener *:8096,
HTML login redirect 302 and unauthenticated JS 401 via the LAN address. Existing
proxy/API services remain unchanged. Bind command uses --host 0.0.0.0 explicitly;
the source default remains loopback for safety.
HTTPS access fixed for the user's Tailscale URL:
https://alans-macbook-pro.tail6bf4dc.ts.net:8096/. Port8096 originally spoke only
plain HTTP; added tailnet-only Tailscale Serve HTTPS8096 → http://127.0.0.1:8096.
Existing Serve443→8787 and8443→8095 routes preserved. Verified trusted certificate
(curl ssl_verify_result0), protected root302 to login, login200, unauthenticated
JS401; LAN HTTP still302. No Funnel/public-Internet exposure or auth disabling.
Prior Serve config saved in approved temp tailscale-serve-before-preview8096.json;
remove ONLY this route with tailscale serve --https=8096 off if rollback needed.
### Manager integration findings
- F3 candidate omitted `lib/features/runs/data/runs_repository.dart`: root
runtime-data ignore matched source. Main 718442d adds an app-only exception;
candidate branch has it merged. Source is preserved, awaiting corrective
commit and expanded lifecycle/decision regression tests before landing.
- F2 UIReview was auto-skipped despite rendered shell changes (existing server
classifies workspace-relative lib/ paths as nonvisual). Do not change server;
manager obtains browser evidence directly and keeps rendered acceptance open.
- Direct Luna correction agents are scoped to the idle F2/F3 worktrees. No
recovery workflow or pipeline version was created. P1 is independent and
already started while corrections proceed.
## Completion loop
Manager role: check evidence/diffs, verify, merge, update preview and start next
ready items. Per latest user steering, substantial implementation and corrections
belong to existing pipelines, not manager-written replacements. Already-running
direct correction work is preserved; do not discard it or duplicate it.
Use pipelines wait for every started run. Inspect failure evidence before fixing,
resuming or retrying; preserve partial work. On success inspect actual diff and
checks, integrate, verify ancestry, then launch the next ready item. Do not
rerun completed work just because session export or landing failed. Keep source,
tests, landing and preview states separate. No production cutover in this phase.
## Remaining queue after the 95-101 wave
Autonomous target: finish every row in `PARITY.md` except the mobile build, which
stays last by agreement. Each item is one reviewed slice with focused tests and a
both-host browser probe where it is visible.
In flight: 95 recorded visit pane; 96 chat permission/question cards; 97 start a
pipeline; 98 chat list create/rename/star/close; 99 artifact download/share as
named files; 100 notification capability + transition dedupe; 101 graph
pan/zoom/expanded view.
Then, in dependency order:
1. Manager wiring: notification permission tile into Settings and transition
notifications from the Runs attention controller; graph expanded view opened
from the pipeline Graph tab.
2. Search result target routing (pipeline/version/field/visit/artifact) in
`application/search_destination.dart` plus the minimum public selection APIs in
the owning features.
3. Chat attachments: picker + paste, 1 MiB bounded envelope, named removable
chips, history reconciliation.
4. Chat activity/reasoning/tools overlays with lifecycle, input/output, error,
duration and edit diff.
5. Chat model selection, numeric Info (unknown != 0) and bounded background-task
pages.
6. Chat slash command palette, unknown-command send-as-message, dismissible local
notices, saved scroll/follow.
7. Run summary fields and exact empty/unknown wording; changes per-visit capture
entry and paging; session audit/export repair facts.
8. Artifact turn documents in the gallery (input/memory/output/session.html).
9. Pipeline list summary metadata/miniatures and pinned detail URLs; schedules
list entry/route, timer provenance and schedule-this-run seeding.
10. Deep links: pipeline/version/stage/template/chat URLs and action/visit
queries; transport foreground recovery, persisted endpoint boot, protocol
warning, complete refresh semantics.
11. Templates link from a run detail; authenticated preview smoke notes.
12. Android testing build, iOS portability audit, device verification.
Standing rules: keep the preview published with a rollback after each landing;
never claim authenticated production mutations, OS sharing/notifications on
mobile or device behaviour from web fixture evidence; keep mobile labelled
unverified until the final build.
## Lane contract (corrected after 30-60 minute overruns)
The oversized slice was mine, not the model's: prompts bundled 5-8 behaviours plus
a two-host browser probe and a note file. A probe means two web builds plus
Chrome/OCR, so Code alone exceeded the 30-minute stage budget and Review retries
pushed runs past an hour.
Every new lane now gets ONE behaviour:
- At most 2 source files (+1) and 1 focused test file.
- No `flutter build`, no browser probe, no note file, no `flutter analyze` - the
manager runs the probe once per area, writes the note and runs the integrated
checks.
- Exact web wording and request shape named in the prompt; native controls and
theme roles only; no fixed sizes or palettes.
- Target: Code under 10 minutes, run under 20.
Manager per wave: merge each branch, run the focused suite, one area probe, then
the full suite/analyze and one preview publish. Probes and full checks are
batched, not repeated per lane.
## Preview hosting note (2026-10-22 ~10:05)
Port 8096 stopped accepting a wildcard bind: `127.0.0.1:8096` and `::1:8096` bind,
`0.0.0.0:8096` fails with EADDRINUSE while `lsof`/`netstat` show no listener. The
preview now runs on **8098** (same authenticated proxy, same `app/build/web`), and
`tailscale serve --https=8096` proxies the tailnet URL to 8098. LAN URL is
`http://10.0.0.249:8098/`. Retry 8096 when the stuck socket clears; the published
bundle is shared, so only the listener port differs.
## Chat tasks landing and native builds (2026-10-22 ~18:10)
Run 139 (chat background tasks) stopped in Review after three rejections; the
only must-fix was the unbounded output pane, already addressed by the lane's
uncommitted follow-up. Manager committed it on `flutter/chat-tasks` (a26bfe2b),
verified 25 focused tests + analyze, merged (88e92094) and fixed the two
application fixtures the serialized `chat_shells` read had stalled (ee1de88b).
Full suite 1563 passed, analyze clean, `flutter build web` published by rename;
rollback `build/web-before-chat-tasks-1792688535`, main.dart.js sha256
`b84aace6…`. Preview 8098 answers (401 unauthenticated, as designed).
Native: `flutter build apk --release` and `flutter build ios --no-codesign`
both pass from a clean worktree of main 67045f25 (iOS needed the deployment
target raised from 13.0 to 15.0 for Xcode 27). APK kept at
`app/build/android-testing/pipelines-next-67045f25.apk`. A first APK built in
the main checkout picked up an unrelated uncommitted `chat_models.dart` edit and
was discarded. The Android manifest keeps the scaffold default (no cleartext):
the Pipelines server binds `127.0.0.1:8080` only, so the phone needs a tailnet
TLS-terminated TCP forward (`wss://…ts.net:<port>/connect`), which is the
operator's call; the native build has no baked endpoint and takes it in Settings.
Nothing installed on any device; mobile remains unverified.
## Open wave handoff (2026-10-22 ~18:45)
Briefs with exact web wording for every remaining PARITY gap are in the manager
scratchpad `briefs/` (runs, start-templates-transport, chat-sessions,
chat-surfaces); the run prompts below embed what each lane needs.
Pipeline runs left executing (Task v6, Luna), one worktree each under `tmp/`
on branch `flutter/<name>`; when a run lands, merge its branch, run the full
suite + analyze, publish by rename:
- 140 chat `/stop` `/help` actions (`flutter/chat-cmd-stop`); the web's accepted
`/stop` notice is `Stopping the running turn…` — add it at merge if missing.
- 143 runs filter menu: Pipeline/Time range sections, duration sorts, Reset
(`flutter/runs-filter-menu`).
- 144 runs day groups (`flutter/runs-day-groups`); the row meta/usage/empty-state
wording lane (brief runs §1 item 5, §2 item 3) is still to start after it.
- 145 runs pipeline filter from the URL + pipeline detail `Runs` action
(`flutter/runs-pipeline-url`).
- 146 run dialog Report format (`flutter/run-report-format`).
- 147 run dialog recent directories (`flutter/run-directories`).
- 148 composer paste attachments (`flutter/chat-paste`).
- 149 background question notices (`flutter/chat-question-notice`).
- 152 chat create dialog parity (`flutter/chat-create-dialog`).
Direct work in progress (Claude agents, branches `worktree-agent-*` under
`.claude/worktrees/`): chat tasks + model chooser probe; graph pulse + session
repair probe; search selection probe; shell Runs-tab attention badge with a
lifted AttentionController. The `/new` `/close` `/rename` commands are being
implemented directly on `flutter/chat-cmd-session` after Luna blocked three
times (runs 141, 142, 150) on the coordination scope.
Preserved partial: run 151 live `New` marks is a WIP commit faa5cc00 on
`flutter/chat-live-new` (frame listener + persisted unseen set; needs the lint
fix at chat_session_local.dart:59, focused tests, and an `activeSessionId` clear
when the conversation is left).
Still to start after this wave: pending run intent persisted across reload;
persisted endpoint boot for native; foreground-while-connected list refresh;
compaction frame fold (`Compacting context…`); dismiss control for the chat row
refusal; hide closing an open conversation + deep-link `markOpened`; run Summary
`Pipeline` row as a link; `Open repaired export` link + recovery attempts line.
Template provenance on runs is a server gap (no template origin recorded).
## Lane sizing (contextual, task-sized)
A task is one outcome an operator can see or an API client can observe, with
its own regression. File count follows the task: one file is fine, and a task
that truly needs three files (widget + call site + fixture) is still one task.
The line is unrelated work: no refactors, redesigns or extra behaviours riding
along, and no second outcome that could ship on its own.
Size by uncertainty, not file count: if the outcome needs the reviewer to judge
a look, mock or probe, keep it small and put the evidence expectation in the
prompt. Target tens of minutes, not hours; if a lane exceeds ~20 minutes with
nothing landed, cancel it and land or split the tree. Plumbing (routes,
providers, composition) stays a manager edit.
+28
View File
@@ -0,0 +1,28 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
+14
View File
@@ -0,0 +1,14 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
.cxx/
# Remember to never publicly share your keystore.
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
+62
View File
@@ -0,0 +1,62 @@
plugins {
id("com.android.application")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "net.awan.pipelines_app"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
// flutter_local_notifications needs the newer Java APIs on older phones.
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "net.awan.pipelines.next"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
// Keeps JNI-called plugin code (see proguard-rules.pro).
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
)
}
}
}
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
}
}
flutter {
source = "../.."
}
dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
// The background notification socket (notify/NotificationService).
implementation("com.squareup.okhttp3:okhttp:4.12.0")
// JVM tests for the notification protocol and ledger (`gradlew :app:testDebugUnitTest`).
testImplementation("junit:junit:4.13.2")
// Android's org.json is a stub on the JVM; tests use the real implementation.
testImplementation("org.json:json:20180813")
}
+8
View File
@@ -0,0 +1,8 @@
# Flutter plugins whose Dart side calls Java/Kotlin through JNI (jni/jnigen,
# e.g. shared_preferences_android, path_provider_android). R8 cannot see those
# calls, so it would strip or rename the methods and every call fails at run
# time with NoSuchMethodError (saved settings, sign-in and drafts were lost).
-keep class io.flutter.plugins.** { *; }
-keep class com.github.dart_lang.jni.** { *; }
-keep class kotlin.** { *; }
-keep class kotlinx.coroutines.** { *; }
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
@@ -0,0 +1,109 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<!-- Check for updates hands a downloaded build to the system installer. -->
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
<!-- The client reaches the Pipelines server over the shared socket. -->
<uses-permission android:name="android.permission.INTERNET"/>
<!-- Background delivery (notify/NotificationService): a foreground
service keeps the notification socket open, starts at boot, follows
network changes and may ask to be exempt from battery optimisation. -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
<!-- "Find servers on this network" browses _pipelines._tcp with NSD;
Wi-Fi drops multicast without a multicast lock, held only while a
scan runs (lib/features/onboarding/discovery/). -->
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
<!-- Explicit ws:// LAN/VPN profiles are supported; no automatic TLS
downgrade is performed; a discovered server is only dialled when the
user taps it. Settings warns about cleartext. -->
<application
android:label="Pipelines"
android:name="${applicationName}"
android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<!-- The server publishes `pipelines://run/<id>` and
`pipelines://chat/<id>` as a notification's click URL; each
opens that run or chat (lib/application/app_router.dart
routeLocation). It only opens it; it starts nothing. -->
<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="pipelines" android:host="run" />
<data android:scheme="pipelines" android:host="chat" />
</intent-filter>
</activity>
<!-- Instant delivery of server notifications without the ntfy app.
specialUse: a persistent push connection to a self-hosted server
has no dedicated type, and dataSync is time-limited on Android 15. -->
<service
android:name=".notify.NotificationService"
android:exported="false"
android:foregroundServiceType="specialUse">
<property
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="Persistent connection to the user's self-hosted Pipelines server for instant notifications"/>
</service>
<receiver
android:name=".notify.NotificationDismissReceiver"
android:exported="false"/>
<receiver
android:name=".notify.BootReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
</intent-filter>
</receiver>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
<!-- Artifact links open in the browser. -->
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="https"/>
</intent>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="http"/>
</intent>
</queries>
</manifest>
@@ -0,0 +1,44 @@
package net.awan.pipelines_app
import android.content.Intent
import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import net.awan.pipelines_app.notify.NotificationDismissReceiver
import net.awan.pipelines_app.notify.NotificationPresenter
import net.awan.pipelines_app.notify.NotificationServiceChannel
class MainActivity : FlutterActivity() {
private var notificationChannel: NotificationServiceChannel? = null
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
notificationChannel = NotificationServiceChannel(this, flutterEngine.dartExecutor.binaryMessenger)
}
override fun cleanUpFlutterEngine(flutterEngine: FlutterEngine) {
notificationChannel?.dispose()
notificationChannel = null
super.cleanUpFlutterEngine(flutterEngine)
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (savedInstanceState == null) clearOpenedNotification(intent)
}
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
clearOpenedNotification(intent)
}
/**
* A tapped server notification is opened here (Flutter routes its
* pipelines:// link) and cleared on the server, so other devices drop it.
*/
private fun clearOpenedNotification(intent: Intent?) {
val id = intent?.getStringExtra(NotificationPresenter.EXTRA_NOTIFICATION_ID) ?: return
intent.removeExtra(NotificationPresenter.EXTRA_NOTIFICATION_ID)
NotificationDismissReceiver.queueClear(this, id)
}
}
@@ -0,0 +1,17 @@
package net.awan.pipelines_app.notify
/** Exponential reconnect delay: base, 2x, 4x … capped at [maxMillis]. */
class Backoff(private val baseMillis: Long = 1_000, private val maxMillis: Long = 5 * 60_000) {
var attempt = 0
private set
fun next(): Long {
val shift = attempt.coerceAtMost(20)
attempt++
return (baseMillis shl shift).coerceAtMost(maxMillis)
}
fun reset() {
attempt = 0
}
}
@@ -0,0 +1,16 @@
package net.awan.pipelines_app.notify
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
/** Restarts background delivery after a reboot or an app update. */
class BootReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
when (intent.action) {
Intent.ACTION_BOOT_COMPLETED,
Intent.ACTION_MY_PACKAGE_REPLACED,
-> NotificationService.start(context)
}
}
}
@@ -0,0 +1,95 @@
package net.awan.pipelines_app.notify
/** The few persisted strings the ledger needs; SharedPreferences in the app. */
interface LedgerStore {
fun getString(key: String): String?
fun putString(key: String, value: String?)
}
/**
* What this device has already delivered for one server: the replay cursor
* (the last notification id received), a bounded set of shown ids so a replay
* never alerts twice, and the clears waiting to be sent.
*
* Switching to another server ([bindServer]) forgets the previous server's
* cursor and history, because notification ids are only unique per server.
*/
class DeliveryLedger(private val store: LedgerStore, private val maxShown: Int = 500) {
val cursor: String? get() = store.getString(CURSOR)?.takeIf { it.isNotEmpty() }
/** Returns true when [serverId] differs from the bound server (state was reset). */
fun bindServer(serverId: String): Boolean {
if (store.getString(SERVER) == serverId) return false
store.putString(SERVER, serverId)
store.putString(CURSOR, null)
store.putString(SHOWN, null)
store.putString(PENDING, null)
return true
}
/**
* Records a received batch and returns only the notifications not shown
* before, in order. The cursor advances to the last id in the batch even
* when every item was a duplicate.
*/
fun accept(batch: List<ServerNotification>): List<ServerNotification> {
if (batch.isEmpty()) return emptyList()
val shown = shownIds().toMutableList()
val fresh = mutableListOf<ServerNotification>()
for (notification in batch) {
if (notification.id in shown) continue
shown.add(notification.id)
fresh.add(notification)
}
while (shown.size > maxShown) shown.removeAt(0)
store.putString(SHOWN, encode(shown))
store.putString(CURSOR, batch.last().id)
return fresh
}
fun shownIds(): List<String> = decode(store.getString(SHOWN))
/** Queues ids the user dismissed or opened, until a socket can send them. */
fun queueClear(ids: Collection<String>) {
if (ids.isEmpty()) return
val pending = LinkedHashSet(pendingClears())
pending.addAll(ids.filter { it.isNotEmpty() })
store.putString(PENDING, encode(pending.toList()))
}
fun pendingClears(): List<String> = decode(store.getString(PENDING))
/** Drops [ids] from the queue once they were written to an open socket. */
fun clearsSent(ids: Collection<String>) {
val remaining = pendingClears().filterNot { it in ids }
store.putString(PENDING, if (remaining.isEmpty()) null else encode(remaining))
}
companion object {
const val SERVER = "ledger.server"
const val CURSOR = "ledger.cursor"
const val SHOWN = "ledger.shown"
const val PENDING = "ledger.pendingClears"
// Ids are opaque server strings; newline is not a valid id character.
private fun encode(ids: List<String>) = ids.joinToString("\n")
private fun decode(raw: String?): List<String> =
raw?.split('\n')?.filter { it.isNotEmpty() } ?: emptyList()
/** A stable Android notification id for a server id string. */
fun notificationId(id: String): Int {
// FNV-1a keeps the mapping stable across processes and releases,
// unlike String.hashCode collisions with the reserved ids below.
var hash = 0x811c9dc5.toInt()
for (char in id) {
hash = hash xor char.code
hash *= 0x01000193
}
val positive = hash and 0x7fffffff
return if (positive <= RESERVED_IDS) positive + RESERVED_IDS + 1 else positive
}
/** Ids at or below this are reserved for the service's own notifications. */
const val RESERVED_IDS = 16
}
}
@@ -0,0 +1,31 @@
package net.awan.pipelines_app.notify
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
/**
* A swiped-away notification is cleared on the server, so every device drops
* it. The id is queued durably and sent by the service when it is connected.
*/
class NotificationDismissReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
if (intent.action != ACTION) return
val id = intent.getStringExtra(NotificationPresenter.EXTRA_NOTIFICATION_ID) ?: return
queueClear(context, id)
}
companion object {
const val ACTION = "net.awan.pipelines.notify.DISMISSED"
/** Shared by dismissals and taps (see MainActivity). */
fun queueClear(context: Context, id: String) {
DeliveryLedger(ServiceSettings(context)).queueClear(listOf(id))
// Only nudge a running service; a stopped one sends the queue on
// its next connection.
if (NotificationService.running != null) {
NotificationService.start(context, NotificationService.ACTION_FLUSH)
}
}
}
}
@@ -0,0 +1,239 @@
package net.awan.pipelines_app.notify
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationChannelGroup
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import net.awan.pipelines_app.MainActivity
import net.awan.pipelines_app.R
/**
* Posts server notifications in the system tray: one channel per kind and
* priority (created lazily, grouped by kind), Android groups by the server's
* `group`, a tap opens the app at the `click` deep link, and a dismissal is
* reported back so the server clears it everywhere.
*/
class NotificationPresenter(private val context: Context) {
private val manager = context.getSystemService(NotificationManager::class.java)
fun connectionNotification(status: DeliveryStatus): Notification {
ensureChannel(CONNECTION_CHANNEL, "Connection", NotificationManager.IMPORTANCE_MIN, null)
val text = when (status) {
DeliveryStatus.CONNECTED -> "Pipelines is connected"
DeliveryStatus.WAITING_FOR_NETWORK -> "Pipelines is waiting for a network"
DeliveryStatus.CONNECTING -> "Pipelines is connecting…"
else -> "Pipelines is reconnecting…"
}
val open = PendingIntent.getActivity(
context,
0,
Intent(context, MainActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
)
return builder(CONNECTION_CHANNEL)
.setSmallIcon(R.drawable.ic_stat_pipelines)
.setContentTitle(text)
.setContentText("Delivering notifications from your server")
.setOngoing(true)
.setShowWhen(false)
.setContentIntent(open)
.setCategory(Notification.CATEGORY_SERVICE)
.build()
}
fun updateConnection(status: DeliveryStatus) {
manager.notify(CONNECTION_ID, connectionNotification(status))
}
fun show(notification: ServerNotification) {
val id = DeliveryLedger.notificationId(notification.id)
val channel = channelFor(notification)
val title = notification.title.ifEmpty { "Pipelines" }
val builder = builder(channel)
.setSmallIcon(R.drawable.ic_stat_pipelines)
.setContentTitle(title)
.setContentText(notification.message)
.setStyle(Notification.BigTextStyle().bigText(notification.message))
.setAutoCancel(true)
.setContentIntent(openIntent(notification, id))
.setDeleteIntent(dismissIntent(notification.id, id))
createdMillis(notification.createdAt)?.let { builder.setWhen(it).setShowWhen(true) }
if (notification.group.isNotEmpty()) builder.setGroup(notification.group)
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
@Suppress("DEPRECATION")
builder.setPriority(effectivePriority(notification.kind, notification.priority) - 3)
}
manager.notify(id, builder.build())
if (notification.group.isNotEmpty()) updateSummary(notification.group, channel)
}
/** Removes notifications cleared on this or another device. */
fun cancel(ids: Collection<String>) {
val groups = mutableSetOf<String>()
val active = manager.activeNotifications
for (id in ids) {
val notificationId = DeliveryLedger.notificationId(id)
active.firstOrNull { it.id == notificationId }?.notification?.group?.let(groups::add)
manager.cancel(notificationId)
}
groups.forEach { updateSummary(it, null) }
}
/** Removes every server notification, keeping the connection one. */
fun cancelAll() {
manager.activeNotifications
.filter { it.id != CONNECTION_ID }
.forEach { manager.cancel(it.tag, it.id) }
}
private fun updateSummary(group: String, channel: String?) {
val summaryId = DeliveryLedger.notificationId("group:$group")
val members = manager.activeNotifications.count {
it.notification.group == group && it.id != summaryId
}
if (members < 2) {
if (members == 0) manager.cancel(summaryId)
return
}
val existing = manager.activeNotifications.firstOrNull { it.id == summaryId }
val summaryChannel = channel ?: existing?.notification?.channelIdCompat() ?: return
manager.notify(
summaryId,
builder(summaryChannel)
.setSmallIcon(R.drawable.ic_stat_pipelines)
.setContentTitle("Pipelines")
.setContentText("$members notifications")
.setGroup(group)
.setGroupSummary(true)
.setGroupAlertBehavior(Notification.GROUP_ALERT_CHILDREN)
.setAutoCancel(true)
.build(),
)
}
private fun Notification.channelIdCompat(): String? =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) channelId else CONNECTION_CHANNEL
private fun openIntent(notification: ServerNotification, requestCode: Int): PendingIntent {
val intent = Intent(context, MainActivity::class.java)
.addFlags(
Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP or
Intent.FLAG_ACTIVITY_CLEAR_TOP,
)
.putExtra(EXTRA_NOTIFICATION_ID, notification.id)
// Only the app's own links are routed; Flutter's deep-link handling
// turns pipelines://run/<id> and pipelines://chat/<id> into a route.
val click = Uri.parse(notification.click)
if (click.scheme == "pipelines") intent.setAction(Intent.ACTION_VIEW).setData(click)
return PendingIntent.getActivity(
context,
requestCode,
intent,
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
)
}
private fun dismissIntent(serverId: String, requestCode: Int): PendingIntent =
PendingIntent.getBroadcast(
context,
requestCode,
Intent(context, NotificationDismissReceiver::class.java)
.setAction(NotificationDismissReceiver.ACTION)
.putExtra(EXTRA_NOTIFICATION_ID, serverId),
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
)
private fun channelFor(notification: ServerNotification): String {
val kind = notification.kind.replace(Regex("[^A-Za-z0-9_.-]"), "_")
val priority = effectivePriority(kind, notification.priority)
val id = "pipelines.$kind.p$priority"
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val groupId = "pipelines.kind.$kind"
manager.createNotificationChannelGroup(NotificationChannelGroup(groupId, kindLabel(kind)))
val name = if (priority == kindPriority(kind)) kindLabel(kind)
else "${kindLabel(kind)} (${priorityLabel(priority)})"
ensureChannel(id, name, importance(priority), groupId)
}
return id
}
private fun ensureChannel(id: String, name: String, importance: Int, group: String?) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return
if (manager.getNotificationChannel(id) != null) return
val channel = NotificationChannel(id, name, importance)
if (group != null) channel.group = group
if (id == CONNECTION_CHANNEL) {
channel.description = "Shown while Pipelines keeps its notification connection open"
channel.setShowBadge(false)
}
manager.createNotificationChannel(channel)
}
@Suppress("DEPRECATION")
private fun builder(channel: String): Notification.Builder =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) Notification.Builder(context, channel)
else Notification.Builder(context)
companion object {
const val CONNECTION_ID = 1
const val CONNECTION_CHANNEL = "pipelines.connection"
const val EXTRA_NOTIFICATION_ID = "net.awan.pipelines.notification_id"
private val KIND_LABELS = mapOf(
"run_waiting" to "Run waiting for you",
"run_failed" to "Run failed",
"run_succeeded" to "Run succeeded",
"stage_failed" to "Stage failed",
"stage_succeeded" to "Stage succeeded",
"chat_question" to "Chat question",
"chat_approval" to "Chat approval",
"chat_reply" to "Chat reply",
)
fun importance(priority: Int): Int = when (priority) {
1 -> NotificationManager.IMPORTANCE_MIN
2 -> NotificationManager.IMPORTANCE_LOW
3 -> NotificationManager.IMPORTANCE_DEFAULT
else -> NotificationManager.IMPORTANCE_HIGH
}
fun priorityLabel(priority: Int): String = when (priority) {
1 -> "Min priority"
2 -> "Low priority"
3 -> "Default priority"
4 -> "High priority"
else -> "Urgent"
}
/**
* The server sends the default priority (3) for everything, so the
* kind decides how loudly a notification arrives; an explicit
* non-default priority still wins.
*/
fun effectivePriority(kind: String, priority: Int): Int =
if (priority != 3) priority else kindPriority(kind)
fun kindPriority(kind: String): Int = when (kind) {
"run_waiting", "run_failed", "stage_failed", "chat_question", "chat_approval" -> 4
"stage_succeeded" -> 2
else -> 3
}
fun kindLabel(kind: String): String = KIND_LABELS[kind] ?:
kind.split('_', '-', '.').filter { it.isNotEmpty() }
.joinToString(" ") { it.replaceFirstChar(Char::uppercaseChar) }
.ifEmpty { "Notifications" }
fun createdMillis(createdAt: String): Long? = try {
if (createdAt.isEmpty()) null
else java.time.OffsetDateTime.parse(createdAt).toInstant().toEpochMilli()
} catch (_: Exception) {
null
}
}
}
@@ -0,0 +1,115 @@
package net.awan.pipelines_app.notify
import org.json.JSONArray
import org.json.JSONObject
/** One server notification as pushed on the shared socket. */
data class ServerNotification(
val id: String,
val kind: String,
val title: String,
val message: String,
val click: String,
/** ntfy-style priority, clamped to 1..5 (3 is the default). */
val priority: Int,
val tags: List<String>,
val createdAt: String,
val group: String,
)
/** The frames the notification service reacts to; everything else is [Ignored]. */
sealed interface NotificationFrame {
/** [clearedIds]: notifications cleared recently (while this device was away). */
data class Subscribed(
val notifications: List<ServerNotification>,
val clearedIds: List<String> = emptyList(),
) : NotificationFrame
data class Pushed(val notification: ServerNotification) : NotificationFrame
data class Cleared(val ids: List<String>) : NotificationFrame
data class Refused(val requestId: String, val error: String) : NotificationFrame
data object Ignored : NotificationFrame
}
/**
* The wire contract of `subscribe_notifications`, `notification`,
* `notifications_cleared` and `clear_notifications`. Pure, so it is covered by
* JVM unit tests without a device.
*/
object NotificationProtocol {
fun subscribe(requestId: String, after: String?): String {
val frame = JSONObject()
.put("type", "subscribe_notifications")
.put("id", requestId)
if (!after.isNullOrEmpty()) frame.put("after", after)
return frame.toString()
}
fun clear(requestId: String, ids: Collection<String>): String =
JSONObject()
.put("type", "clear_notifications")
.put("id", requestId)
.put("ids", JSONArray(ids.toList()))
.toString()
/** Parses one text frame; malformed input is [NotificationFrame.Ignored]. */
fun parse(text: String, subscribeRequestId: String?): NotificationFrame {
val frame = try {
JSONObject(text)
} catch (_: Exception) {
return NotificationFrame.Ignored
}
return when (frame.optString("type")) {
"notifications_subscribed" -> NotificationFrame.Subscribed(
notifications(frame.optJSONArray("notifications")),
strings(frame.optJSONArray("ids")),
)
"notification" -> notification(frame.optJSONObject("notification") ?: frame)
?.let { NotificationFrame.Pushed(it) }
?: NotificationFrame.Ignored
"notifications_cleared" -> NotificationFrame.Cleared(strings(frame.optJSONArray("ids")))
"error" -> {
val id = frame.optString("id")
if (subscribeRequestId != null && id == subscribeRequestId) {
NotificationFrame.Refused(id, frame.text("error"))
} else {
NotificationFrame.Ignored
}
}
else -> NotificationFrame.Ignored
}
}
private fun notifications(array: JSONArray?): List<ServerNotification> {
if (array == null) return emptyList()
return (0 until array.length()).mapNotNull { index ->
array.optJSONObject(index)?.let(::notification)
}
}
fun notification(json: JSONObject): ServerNotification? {
val id = json.text("id").trim()
if (id.isEmpty()) return null
return ServerNotification(
id = id,
kind = json.text("kind").trim().ifEmpty { "general" },
title = json.text("title"),
message = json.text("message"),
click = json.text("click").trim(),
priority = json.optInt("priority", 3).let { if (it in 1..5) it else 3 },
tags = strings(json.optJSONArray("tags")),
createdAt = json.text("created_at"),
group = json.text("group").trim(),
)
}
/** org.json renders a JSON null as the text "null"; treat it as absent. */
private fun JSONObject.text(key: String): String =
if (isNull(key)) "" else optString(key)
private fun strings(array: JSONArray?): List<String> {
if (array == null) return emptyList()
return (0 until array.length()).mapNotNull { index ->
array.optString(index, "").trim().takeIf { it.isNotEmpty() }
}
}
}
@@ -0,0 +1,293 @@
package net.awan.pipelines_app.notify
import android.app.Service
import android.content.Context
import android.content.Intent
import android.content.pm.ServiceInfo
import android.net.ConnectivityManager
import android.net.Network
import android.os.Build
import android.os.Handler
import android.os.HandlerThread
import android.os.IBinder
import android.util.Log
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import okhttp3.WebSocket
import okhttp3.WebSocketListener
import java.util.concurrent.TimeUnit
/**
* Keeps one authenticated websocket to the configured Pipelines server while
* the app is in the background, like ntfy's instant delivery: no Flutter
* engine runs here. It subscribes with the replay cursor, posts each pushed
* notification, mirrors cross-device clears and sends the user's own clears.
*
* All state is confined to [handler]'s thread; OkHttp and connectivity
* callbacks post onto it.
*/
class NotificationService : Service() {
private lateinit var settings: ServiceSettings
private lateinit var ledger: DeliveryLedger
private lateinit var presenter: NotificationPresenter
private lateinit var thread: HandlerThread
private lateinit var handler: Handler
private val client = OkHttpClient.Builder()
.connectTimeout(15, TimeUnit.SECONDS)
.readTimeout(0, TimeUnit.MILLISECONDS)
.pingInterval(45, TimeUnit.SECONDS)
.followRedirects(false)
.build()
private val backoff = Backoff()
private var socket: WebSocket? = null
private var generation = 0
private var endpointIndex = 0
private var subscribeId: String? = null
private var sequence = 0
private var networkAvailable = true
private var currentNetwork: Network? = null
private var networkCallback: ConnectivityManager.NetworkCallback? = null
private val reconnect = Runnable { connect() }
override fun onBind(intent: Intent?): IBinder? = null
override fun onCreate() {
super.onCreate()
settings = ServiceSettings(this)
ledger = DeliveryLedger(settings)
presenter = NotificationPresenter(this)
thread = HandlerThread("pipelines-notifications").also { it.start() }
handler = Handler(thread.looper)
goForeground(DeliveryStatus.CONNECTING)
watchNetwork()
running = this
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
val action = intent?.action
handler.post {
when {
!settings.enabled || !settings.configured -> stopEverything()
action == ACTION_FLUSH -> flushClears()
action == ACTION_RESTART || socket == null -> restart()
}
}
return START_STICKY
}
override fun onDestroy() {
running = null
networkCallback?.let {
getSystemService(ConnectivityManager::class.java).unregisterNetworkCallback(it)
}
handler.removeCallbacksAndMessages(null)
handler.post {
generation++
socket?.close(1000, "service stopped")
socket = null
}
thread.quitSafely()
if (settings.status != DeliveryStatus.UNCONFIGURED) setStatus(DeliveryStatus.OFF, notify = false)
super.onDestroy()
}
private fun goForeground(status: DeliveryStatus) {
val notification = presenter.connectionNotification(status)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
startForeground(
NotificationPresenter.CONNECTION_ID,
notification,
ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE,
)
} else {
startForeground(NotificationPresenter.CONNECTION_ID, notification)
}
}
private fun stopEverything() {
generation++
socket?.close(1000, "disabled")
socket = null
setStatus(if (settings.configured) DeliveryStatus.OFF else DeliveryStatus.UNCONFIGURED, notify = false)
stopForeground(STOP_FOREGROUND_REMOVE)
stopSelf()
}
/** Server changed, credentials changed, or the first start: reopen now. */
private fun restart() {
if (ledger.bindServer(settings.serverId)) presenter.cancelAll()
handler.removeCallbacks(reconnect)
backoff.reset()
endpointIndex = 0
connect()
}
private fun connect() {
handler.removeCallbacks(reconnect)
generation++
socket?.cancel()
socket = null
subscribeId = null
val endpoints = settings.endpoints
if (endpoints.isEmpty()) return stopEverything()
if (!networkAvailable) return setStatus(DeliveryStatus.WAITING_FOR_NETWORK)
val endpoint = endpoints[endpointIndex % endpoints.size]
val request = try {
Request.Builder().url(endpoint).apply {
if (settings.cookie.isNotEmpty()) header("Cookie", settings.cookie)
}.build()
} catch (error: IllegalArgumentException) {
Log.w(TAG, "invalid endpoint $endpoint", error)
return scheduleReconnect()
}
setStatus(if (backoff.attempt == 0) DeliveryStatus.CONNECTING else DeliveryStatus.RECONNECTING)
val current = generation
socket = client.newWebSocket(request, Listener(current))
}
private fun scheduleReconnect() {
generation++
socket?.cancel()
socket = null
subscribeId = null
if (!networkAvailable) return setStatus(DeliveryStatus.WAITING_FOR_NETWORK)
setStatus(DeliveryStatus.RECONNECTING)
// Rotate through the server's trusted aliases on each failure.
endpointIndex++
handler.postDelayed(reconnect, backoff.next())
}
private fun onOpen(webSocket: WebSocket) {
backoff.reset()
val id = "notify-${++sequence}"
subscribeId = id
webSocket.send(NotificationProtocol.subscribe(id, ledger.cursor))
setStatus(DeliveryStatus.CONNECTED)
flushClears()
}
private fun onText(text: String) {
when (val frame = NotificationProtocol.parse(text, subscribeId)) {
is NotificationFrame.Subscribed -> {
presenter.cancel(frame.clearedIds)
ledger.accept(frame.notifications)
.filterNot { it.id in frame.clearedIds }
.forEach(presenter::show)
}
is NotificationFrame.Pushed -> ledger.accept(listOf(frame.notification)).forEach(presenter::show)
is NotificationFrame.Cleared -> presenter.cancel(frame.ids)
is NotificationFrame.Refused -> {
Log.w(TAG, "subscribe_notifications refused: ${frame.error}")
scheduleReconnect()
}
NotificationFrame.Ignored -> Unit
}
}
private fun flushClears() {
val open = socket ?: return
if (settings.status != DeliveryStatus.CONNECTED) return
val pending = ledger.pendingClears()
if (pending.isEmpty()) return
if (open.send(NotificationProtocol.clear("clear-${++sequence}", pending))) {
ledger.clearsSent(pending)
}
}
private fun setStatus(status: DeliveryStatus, notify: Boolean = true) {
if (settings.status == status) return
settings.status = status
if (notify) presenter.updateConnection(status)
statusListener?.invoke(status)
}
private fun watchNetwork() {
val connectivity = getSystemService(ConnectivityManager::class.java)
currentNetwork = connectivity.activeNetwork
networkAvailable = currentNetwork != null
val callback = object : ConnectivityManager.NetworkCallback() {
override fun onAvailable(network: Network) {
handler.post {
val previous = currentNetwork
currentNetwork = network
networkAvailable = true
// A new default network invalidates the old socket's route;
// a returning network retries at once instead of waiting
// out the backoff.
val moved = previous != null && previous != network
val idle = settings.status == DeliveryStatus.WAITING_FOR_NETWORK ||
settings.status == DeliveryStatus.RECONNECTING
if (settings.configured && (moved || previous == null || idle)) {
backoff.reset()
connect()
}
}
}
override fun onLost(network: Network) {
handler.post {
if (network != currentNetwork) return@post
currentNetwork = null
networkAvailable = false
scheduleReconnect()
}
}
}
connectivity.registerDefaultNetworkCallback(callback)
networkCallback = callback
}
private inner class Listener(private val owner: Int) : WebSocketListener() {
private fun current(block: () -> Unit) {
handler.post { if (owner == generation) block() }
}
override fun onOpen(webSocket: WebSocket, response: Response) = current { onOpen(webSocket) }
override fun onMessage(webSocket: WebSocket, text: String) = current { onText(text) }
override fun onClosing(webSocket: WebSocket, code: Int, reason: String) {
webSocket.close(1000, null)
}
override fun onClosed(webSocket: WebSocket, code: Int, reason: String) = current { scheduleReconnect() }
override fun onFailure(webSocket: WebSocket, t: Throwable, response: Response?) = current {
Log.i(TAG, "socket failed (${response?.code}): ${t.message}")
scheduleReconnect()
}
}
companion object {
private const val TAG = "PipelinesNotify"
const val ACTION_RESTART = "net.awan.pipelines.notify.RESTART"
const val ACTION_FLUSH = "net.awan.pipelines.notify.FLUSH"
@Volatile
var running: NotificationService? = null
private set
/** Settings' live status; called on the service thread. */
@Volatile
var statusListener: ((DeliveryStatus) -> Unit)? = null
/** Starts (or nudges) the service when it is enabled and configured. */
fun start(context: Context, action: String? = null): Boolean {
val settings = ServiceSettings(context)
if (!settings.enabled || !settings.configured) return false
val intent = Intent(context, NotificationService::class.java).setAction(action)
return try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) context.startForegroundService(intent)
else context.startService(intent)
true
} catch (error: Exception) {
// Android 12+ refuses a foreground start from some background
// contexts; the next app launch or boot starts it instead.
Log.w(TAG, "could not start the notification service", error)
false
}
}
fun stop(context: Context) {
context.stopService(Intent(context, NotificationService::class.java))
}
}
}
@@ -0,0 +1,120 @@
package net.awan.pipelines_app.notify
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Handler
import android.os.Looper
import android.os.PowerManager
import android.provider.Settings
import android.app.NotificationManager
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
/**
* The Flutter side's handle on background delivery (`pipelines/notification_service`).
*
* Dart hands over the server it is connected to (`configure`), switches
* delivery on or off (`setEnabled`), reads `status` and asks for the battery
* exemption. Status changes are pushed back as `statusChanged`.
*/
class NotificationServiceChannel(private val activity: Activity, messenger: BinaryMessenger) :
MethodChannel.MethodCallHandler {
private val channel = MethodChannel(messenger, NAME)
private val settings = ServiceSettings(activity)
private val main = Handler(Looper.getMainLooper())
init {
channel.setMethodCallHandler(this)
NotificationService.statusListener = { main.post { channel.invokeMethod("statusChanged", status()) } }
}
fun dispose() {
channel.setMethodCallHandler(null)
NotificationService.statusListener = null
}
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
when (call.method) {
"status" -> result.success(status())
"start" -> {
NotificationService.start(activity)
result.success(status())
}
"configure" -> {
val serverId = call.argument<String>("serverId") ?: ""
val endpoints = call.argument<List<String>>("endpoints") ?: emptyList()
val cookie = call.argument<String>("cookie") ?: ""
if (endpoints.isEmpty()) {
result.error("invalid", "configure needs at least one endpoint", null)
return
}
val changed = settings.configure(serverId, endpoints, cookie)
val running = NotificationService.running != null
if (changed || !running) {
NotificationService.start(activity, if (changed) NotificationService.ACTION_RESTART else null)
}
result.success(status())
}
"setEnabled" -> {
val enabled = call.argument<Boolean>("enabled") ?: true
settings.enabled = enabled
if (enabled) {
NotificationService.start(activity, NotificationService.ACTION_RESTART)
} else {
NotificationService.stop(activity)
settings.status = DeliveryStatus.OFF
}
result.success(status())
}
"requestBatteryExemption" -> {
result.success(requestBatteryExemption())
}
else -> result.notImplemented()
}
}
private fun status(): Map<String, Any> {
val running = NotificationService.running != null
val status = when {
!settings.configured -> DeliveryStatus.UNCONFIGURED
!settings.enabled || !running -> DeliveryStatus.OFF
else -> settings.status
}
return mapOf(
"enabled" to settings.enabled,
"configured" to settings.configured,
"status" to status.wire,
"notificationsAllowed" to activity.getSystemService(NotificationManager::class.java).areNotificationsEnabled(),
"batteryExempt" to batteryExempt(),
)
}
private fun batteryExempt(): Boolean =
activity.getSystemService(PowerManager::class.java).isIgnoringBatteryOptimizations(activity.packageName)
/** Opens the system's exemption prompt; true when it could be shown. */
@SuppressLint("BatteryLife")
private fun requestBatteryExemption(): Boolean {
if (batteryExempt()) return true
val direct = Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS)
.setData(Uri.parse("package:${activity.packageName}"))
return try {
activity.startActivity(direct)
true
} catch (_: Exception) {
try {
activity.startActivity(Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS))
true
} catch (_: Exception) {
false
}
}
}
companion object {
const val NAME = "pipelines/notification_service"
}
}
@@ -0,0 +1,73 @@
package net.awan.pipelines_app.notify
import android.content.Context
import android.content.SharedPreferences
/** Connection states the service reports to Settings. */
enum class DeliveryStatus(val wire: String) {
OFF("off"),
UNCONFIGURED("unconfigured"),
CONNECTING("connecting"),
CONNECTED("connected"),
RECONNECTING("reconnecting"),
WAITING_FOR_NETWORK("waiting_for_network"),
}
/**
* The service's own preferences. The Flutter app hands over the server it is
* connected to (its trusted endpoints and the web sign-in cookie) through the
* method channel; the service never reads Flutter's storage.
*/
class ServiceSettings(context: Context) : LedgerStore {
private val prefs: SharedPreferences =
context.applicationContext.getSharedPreferences(FILE, Context.MODE_PRIVATE)
/** On by default: the app delivers its own notifications unless switched off. */
var enabled: Boolean
get() = prefs.getBoolean(ENABLED, true)
set(value) = prefs.edit().putBoolean(ENABLED, value).apply()
val serverId: String get() = prefs.getString(SERVER_ID, "") ?: ""
val endpoints: List<String>
get() = (prefs.getString(ENDPOINTS, "") ?: "").split('\n').filter { it.isNotEmpty() }
val cookie: String get() = prefs.getString(COOKIE, "") ?: ""
val configured: Boolean get() = endpoints.isNotEmpty()
/** Returns true when the server, addresses or credentials changed. */
fun configure(serverId: String, endpoints: List<String>, cookie: String): Boolean {
val joined = endpoints.filter { it.isNotEmpty() }.joinToString("\n")
val changed = serverId != this.serverId ||
joined != prefs.getString(ENDPOINTS, "") ||
cookie != this.cookie
if (changed) {
prefs.edit()
.putString(SERVER_ID, serverId)
.putString(ENDPOINTS, joined)
.putString(COOKIE, cookie)
.commit()
}
return changed
}
var status: DeliveryStatus
get() = DeliveryStatus.entries.firstOrNull { it.wire == prefs.getString(STATUS, null) }
?: DeliveryStatus.OFF
set(value) = prefs.edit().putString(STATUS, value.wire).apply()
override fun getString(key: String): String? = prefs.getString(key, null)
override fun putString(key: String, value: String?) {
// Ledger writes are committed so a process kill cannot replay an alert.
if (value == null) prefs.edit().remove(key).commit()
else prefs.edit().putString(key, value).commit()
}
companion object {
const val FILE = "pipelines.notification_service"
private const val ENABLED = "enabled"
private const val SERVER_ID = "serverId"
private const val ENDPOINTS = "endpoints"
private const val COOKIE = "cookie"
private const val STATUS = "status"
}
}
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Adaptive icon foreground. The Pipelines tab glyph (Material account_tree, outlined). -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="1.9167" android:scaleY="1.9167" android:translateX="31.000" android:translateY="31.000">
<path android:pathData="M21.984 11.016V3H15V6H9V3H2.016V11.016H9V8.016H11.016V18H15V21H21.984V12.984H15V15.984H12.984V8.016H15V11.016H21.984ZM6.984 9H3.984V5.016H6.984V9ZM17.016 15H20.016V18.984H17.016V15ZM17.016 5.016H20.016V9H17.016V5.016Z" android:fillColor="#FFFFFFFF" android:fillType="evenOdd"/>
</group>
</vector>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Themed (monochrome) icon. The Pipelines tab glyph (Material account_tree, outlined). -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="1.9167" android:scaleY="1.9167" android:translateX="31.000" android:translateY="31.000">
<path android:pathData="M21.984 11.016V3H15V6H9V3H2.016V11.016H9V8.016H11.016V18H15V21H21.984V12.984H15V15.984H12.984V8.016H15V11.016H21.984ZM6.984 9H3.984V5.016H6.984V9ZM17.016 15H20.016V18.984H17.016V15ZM17.016 5.016H20.016V9H17.016V5.016Z" android:fillColor="#FFFFFFFF" android:fillType="evenOdd"/>
</group>
</vector>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Status bar icon (Android tints it). The Pipelines tab glyph (Material account_tree, outlined). -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group android:scaleX="0.9167" android:scaleY="0.9167" android:translateX="1.000" android:translateY="1.000">
<path android:pathData="M21.984 11.016V3H15V6H9V3H2.016V11.016H9V8.016H11.016V18H15V21H21.984V12.984H15V15.984H12.984V8.016H15V11.016H21.984ZM6.984 9H3.984V5.016H6.984V9ZM17.016 15H20.016V18.984H17.016V15ZM17.016 5.016H20.016V9H17.016V5.016Z" android:fillColor="#FFFFFFFF" android:fillType="evenOdd"/>
</group>
</vector>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
</adaptive-icon>
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#15151C</color>
</resources>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
@@ -0,0 +1,93 @@
package net.awan.pipelines_app.notify
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Test
class DeliveryLedgerTest {
private class MemoryStore : LedgerStore {
val values = mutableMapOf<String, String>()
override fun getString(key: String) = values[key]
override fun putString(key: String, value: String?) {
if (value == null) values.remove(key) else values[key] = value
}
}
private fun n(id: String) = ServerNotification(id, "k", "t", "m", "", 3, emptyList(), "", "")
@Test
fun cursorFollowsTheLastReceivedId() {
val ledger = DeliveryLedger(MemoryStore())
ledger.bindServer("s")
assertNull(ledger.cursor)
ledger.accept(listOf(n("a"), n("b")))
assertEquals("b", ledger.cursor)
}
@Test
fun replayedIdsAreNotShownTwice() {
val ledger = DeliveryLedger(MemoryStore())
ledger.bindServer("s")
assertEquals(listOf("a", "b"), ledger.accept(listOf(n("a"), n("b"))).map { it.id })
assertEquals(listOf("c"), ledger.accept(listOf(n("b"), n("c"), n("c"))).map { it.id })
assertEquals("c", ledger.cursor)
}
@Test
fun stateSurvivesANewLedgerOnTheSameStore() {
val store = MemoryStore()
DeliveryLedger(store).apply { bindServer("s"); accept(listOf(n("a"))) }
val reopened = DeliveryLedger(store)
assertFalse(reopened.bindServer("s"))
assertEquals("a", reopened.cursor)
assertTrue(reopened.accept(listOf(n("a"))).isEmpty())
}
@Test
fun anotherServerResetsCursorHistoryAndClears() {
val ledger = DeliveryLedger(MemoryStore())
ledger.bindServer("one")
ledger.accept(listOf(n("a")))
ledger.queueClear(listOf("a"))
assertTrue(ledger.bindServer("two"))
assertNull(ledger.cursor)
assertTrue(ledger.pendingClears().isEmpty())
assertEquals(1, ledger.accept(listOf(n("a"))).size)
}
@Test
fun shownHistoryIsBounded() {
val ledger = DeliveryLedger(MemoryStore(), maxShown = 3)
ledger.bindServer("s")
ledger.accept((1..5).map { n("$it") })
assertEquals(listOf("3", "4", "5"), ledger.shownIds())
}
@Test
fun pendingClearsAreDedupedAndRemovedOnceSent() {
val ledger = DeliveryLedger(MemoryStore())
ledger.queueClear(listOf("a", "b"))
ledger.queueClear(listOf("b", "c"))
assertEquals(listOf("a", "b", "c"), ledger.pendingClears())
ledger.clearsSent(listOf("a", "b"))
assertEquals(listOf("c"), ledger.pendingClears())
}
@Test
fun notificationIdsAreStableAndAvoidReservedIds() {
val first = DeliveryLedger.notificationId("n-7")
assertEquals(first, DeliveryLedger.notificationId("n-7"))
assertTrue(first > DeliveryLedger.RESERVED_IDS)
assertTrue(DeliveryLedger.notificationId("n-8") != first)
}
@Test
fun backoffDoublesUpToTheCapAndResets() {
val backoff = Backoff(baseMillis = 1000, maxMillis = 5000)
assertEquals(listOf(1000L, 2000L, 4000L, 5000L, 5000L), (1..5).map { backoff.next() })
backoff.reset()
assertEquals(1000L, backoff.next())
}
}
@@ -0,0 +1,130 @@
package net.awan.pipelines_app.notify
import org.json.JSONObject
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
class NotificationProtocolTest {
private val pushed = """
{"type":"notification","id":"n-7","kind":"run_failed","title":"Run 12 failed",
"message":"Step build failed","click":"pipelines://run/12","priority":4,
"tags":["x","warning"],"created_at":"2026-11-01T10:00:00Z","group":"run-12"}
""".trimIndent()
@Test
fun subscribeOmitsAfterWithoutCursor() {
val frame = JSONObject(NotificationProtocol.subscribe("r1", null))
assertEquals("subscribe_notifications", frame.getString("type"))
assertEquals("r1", frame.getString("id"))
assertFalse(frame.has("after"))
}
@Test
fun subscribeSendsCursor() {
val frame = JSONObject(NotificationProtocol.subscribe("r1", "n-9"))
assertEquals("n-9", frame.getString("after"))
}
@Test
fun clearListsIds() {
val frame = JSONObject(NotificationProtocol.clear("c1", listOf("a", "b")))
assertEquals("clear_notifications", frame.getString("type"))
assertEquals(2, frame.getJSONArray("ids").length())
assertEquals("b", frame.getJSONArray("ids").getString(1))
}
@Test
fun parsesPushedNotification() {
val frame = NotificationProtocol.parse(pushed, "r1") as NotificationFrame.Pushed
val n = frame.notification
assertEquals("n-7", n.id)
assertEquals("run_failed", n.kind)
assertEquals("Run 12 failed", n.title)
assertEquals("pipelines://run/12", n.click)
assertEquals(4, n.priority)
assertEquals(listOf("x", "warning"), n.tags)
assertEquals("run-12", n.group)
assertEquals("2026-11-01T10:00:00Z", n.createdAt)
}
@Test
fun parsesNestedNotificationObject() {
val text = """{"type":"notification","notification":{"id":"n-1","title":"t"}}"""
val frame = NotificationProtocol.parse(text, null) as NotificationFrame.Pushed
assertEquals("n-1", frame.notification.id)
assertEquals("general", frame.notification.kind)
assertEquals(3, frame.notification.priority)
}
@Test
fun nullsAndOutOfRangePriorityFallBack() {
val text = """{"type":"notification","id":"n-1","click":null,"group":null,"priority":9}"""
val n = (NotificationProtocol.parse(text, null) as NotificationFrame.Pushed).notification
assertEquals("", n.click)
assertEquals("", n.group)
assertEquals(3, n.priority)
}
@Test
fun parsesSubscribedReplayAndSkipsItemsWithoutId() {
val text = """{"type":"notifications_subscribed","id":"r1","notifications":[
{"id":"a","title":"A"},{"title":"no id"},{"id":"b","title":"B"}]}"""
val frame = NotificationProtocol.parse(text, "r1") as NotificationFrame.Subscribed
assertEquals(listOf("a", "b"), frame.notifications.map { it.id })
}
@Test
fun parsesServerShapesWithRecentlyClearedIdsAndExtraFields() {
val text = """{"type":"notifications_subscribed","id":"1","build":"abc","protocol":3,
"notifications":[{"id":"run:4:2:failed","kind":"run_failed","title":"t","message":"m",
"click":"pipelines://run/4","priority":3,"tags":[],"created_at":"2026-11-01T10:00:00.123456789Z",
"group":"run:4"}],"ids":["chat:9:reply:1"]}"""
val frame = NotificationProtocol.parse(text, "1") as NotificationFrame.Subscribed
assertEquals("run:4", frame.notifications.single().group)
assertEquals(listOf("chat:9:reply:1"), frame.clearedIds)
val push = """{"type":"notification","build":"abc","notification":{"id":"chat:9:form:2",
"kind":"chat_question","priority":3,"group":"chat:9","click":"pipelines://chat/9"}}"""
val pushed = (NotificationProtocol.parse(push, "1") as NotificationFrame.Pushed).notification
assertEquals("chat:9:form:2", pushed.id)
assertEquals("pipelines://chat/9", pushed.click)
val reply = """{"type":"notifications_cleared","id":"2","ids":["chat:9:form:2"]}"""
assertEquals(listOf("chat:9:form:2"), (NotificationProtocol.parse(reply, "1") as NotificationFrame.Cleared).ids)
}
@Test
fun kindDecidesImportanceWhenPriorityIsDefault() {
assertEquals(4, NotificationPresenter.effectivePriority("run_waiting", 3))
assertEquals(4, NotificationPresenter.effectivePriority("chat_approval", 3))
assertEquals(3, NotificationPresenter.effectivePriority("chat_reply", 3))
assertEquals(2, NotificationPresenter.effectivePriority("stage_succeeded", 3))
assertEquals(5, NotificationPresenter.effectivePriority("stage_succeeded", 5))
assertEquals("Run waiting for you", NotificationPresenter.kindLabel("run_waiting"))
assertEquals("Custom Kind", NotificationPresenter.kindLabel("custom_kind"))
assertEquals(1761991200123L, NotificationPresenter.createdMillis("2025-11-01T10:00:00.123456789Z"))
}
@Test
fun parsesCleared() {
val frame = NotificationProtocol.parse(
"""{"type":"notifications_cleared","ids":["a","","b"]}""",
null,
) as NotificationFrame.Cleared
assertEquals(listOf("a", "b"), frame.ids)
}
@Test
fun onlyTheSubscribeErrorIsARefusal() {
val error = """{"type":"error","id":"r1","error":"unknown type"}"""
assertTrue(NotificationProtocol.parse(error, "r1") is NotificationFrame.Refused)
assertEquals(NotificationFrame.Ignored, NotificationProtocol.parse(error, "r2"))
}
@Test
fun ignoresMalformedAndUnrelatedFrames() {
assertEquals(NotificationFrame.Ignored, NotificationProtocol.parse("not json", null))
assertEquals(NotificationFrame.Ignored, NotificationProtocol.parse("""{"type":"run_event"}""", null))
assertEquals(NotificationFrame.Ignored, NotificationProtocol.parse("""{"type":"notification"}""", null))
}
}
+24
View File
@@ -0,0 +1,24 @@
allprojects {
repositories {
google()
mavenCentral()
}
}
val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
+6
View File
@@ -0,0 +1,6 @@
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
# This newDsl flag was added by the Flutter template
android.newDsl=false
# This builtInKotlin flag was added by the Flutter template
android.builtInKotlin=false
+5
View File
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-all.zip
+26
View File
@@ -0,0 +1,26 @@
pluginManagement {
val flutterSdkPath =
run {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "9.0.1" apply false
id("org.jetbrains.kotlin.android") version "2.3.20" apply false
}
include(":app")
+14
View File
@@ -0,0 +1,14 @@
# Harness marks
`claude.png` and `opencode.png` are transparent monochrome 96px renderings of
the corresponding Simple Icons SVGs, retrieved 2026-10-26:
- https://github.com/simple-icons/simple-icons/blob/develop/icons/claude.svg
- https://github.com/simple-icons/simple-icons/blob/develop/icons/opencode.svg
Simple Icons distributes its icons under CC0-1.0:
https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md
Brand trademarks remain with their owners. The application tints the bundled
marks using the current native theme; no network image requests are made.
Codex/Pi and unknown harnesses use native code/function/terminal symbols with
an explicit accessible harness name instead of inventing branded artwork.
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

+54
View File
@@ -0,0 +1,54 @@
# Flutter build images for the Pipelines app. `web` builds the web client the
# installer serves; `android` adds a JDK and the Android SDK for the optional
# APK. The Flutter version is the app's own pin (app/.flutter-version).
#
# Built and run by scripts/app_build.py; the container runs as the invoking
# user, so the SDK and cache directories are world-writable.
FROM debian:bookworm-slim AS web
ARG FLUTTER_VERSION
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl git unzip xz-utils zip \
&& rm -rf /var/lib/apt/lists/*
RUN test -n "$FLUTTER_VERSION" \
&& git clone --depth 1 --branch "$FLUTTER_VERSION" https://github.com/flutter/flutter.git /opt/flutter \
&& git config --system --add safe.directory '*'
ENV PATH=/opt/flutter/bin:$PATH \
HOME=/home/builder \
PUB_CACHE=/home/builder/.pub-cache \
FLUTTER_SUPPRESS_ANALYTICS=true
RUN mkdir -p /home/builder/.pub-cache \
&& flutter --disable-analytics && flutter config --no-cli-animations \
&& flutter precache --web --no-android --no-ios --no-linux --no-macos --no-windows --no-fuchsia \
&& chmod -R a+rwX /opt/flutter /home/builder
COPY build.sh /usr/local/bin/pipelines-app-build
WORKDIR /tmp
FROM web AS linux
RUN apt-get update \
&& apt-get install -y --no-install-recommends clang cmake ninja-build pkg-config libgtk-3-dev libstdc++-12-dev liblzma-dev \
&& rm -rf /var/lib/apt/lists/* \
&& flutter precache --linux \
&& chmod -R a+rwX /opt/flutter /home/builder
FROM web AS android
ARG ANDROID_CMDLINE_TOOLS=13114758
RUN apt-get update \
&& apt-get install -y --no-install-recommends openjdk-17-jdk-headless \
&& rm -rf /var/lib/apt/lists/*
# The container user has no passwd entry, so Java's user.home would be "?";
# point it, and Android's key store folder, at the mounted signing key.
ENV ANDROID_HOME=/opt/android-sdk \
ANDROID_SDK_ROOT=/opt/android-sdk \
ANDROID_USER_HOME=/home/builder/.android \
JAVA_TOOL_OPTIONS=-Duser.home=/home/builder \
GRADLE_USER_HOME=/home/builder/.gradle
ENV PATH=$ANDROID_HOME/cmdline-tools/latest/bin:$PATH
RUN mkdir -p $ANDROID_HOME/cmdline-tools /home/builder/.gradle /home/builder/.android \
&& curl -fsSL -o /tmp/tools.zip "https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_CMDLINE_TOOLS}_latest.zip" \
&& unzip -q /tmp/tools.zip -d /tmp/tools && mv /tmp/tools/cmdline-tools $ANDROID_HOME/cmdline-tools/latest \
&& rm -rf /tmp/tools /tmp/tools.zip \
&& yes | sdkmanager --licenses >/dev/null \
&& sdkmanager "platform-tools" >/dev/null \
&& flutter config --android-sdk $ANDROID_HOME \
&& flutter precache --android \
&& chmod -R a+rwX /opt/android-sdk /opt/flutter /home/builder
+49
View File
@@ -0,0 +1,49 @@
#!/bin/sh
# Builds the app from the read-only source at /src into /out.
# Usage: pipelines-app-build web|apk [flutter build arguments...]
set -eu
kind="$1"
shift
rm -rf /tmp/work && mkdir -p /tmp/work
# A private copy: the host checkout's build outputs and machine paths stay out.
(cd /src && tar --exclude=./build --exclude=./.dart_tool --exclude=./android/.gradle \
--exclude=./android/local.properties --exclude=./android/app/.cxx --exclude=./ios/Pods \
--exclude=./macos/Pods --exclude=./macos/Flutter/ephemeral --exclude=./linux/flutter/ephemeral \
-cf - .) | tar -C /tmp/work -xf -
cd /tmp/work
flutter pub get
case "$kind" in
web)
flutter build web --release --no-web-resources-cdn "$@"
cp -R build/web/. /out/
;;
apk)
# Flutter's template permits an 8 GiB Gradle heap plus separate Kotlin
# daemons. That exceeds a typical Docker Desktop VM before APK packaging.
# Limit only this private build copy, not native developers' settings.
cat >> android/gradle.properties <<'PROPERTIES'
org.gradle.jvmargs=-Xmx3G -XX:MaxMetaspaceSize=1G -XX:ReservedCodeCacheSize=256m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.workers.max=2
org.gradle.parallel=false
org.gradle.vfs.watch=false
kotlin.compiler.execution.strategy=in-process
PROPERTIES
flutter build apk --release "$@"
cp build/app/outputs/flutter-apk/app-release.apk /out/pipelines.apk
# Public certificate identity only; never export the signing key.
apksigner=$(find "$ANDROID_SDK_ROOT/build-tools" -name apksigner -type f | sort -V | tail -n 1)
test -x "$apksigner"
"$apksigner" verify --print-certs /out/pipelines.apk > /tmp/apk-certificates.txt
awk -F ': ' '/^Signer #[0-9]+ certificate SHA-256 digest:/ { print tolower($2) }' \
/tmp/apk-certificates.txt > /out/signing-certificate-sha256.txt
;;
linux)
flutter build linux --release "$@"
cp -a build/linux/x64/release/bundle/. /out/
;;
*)
echo "unknown build: $kind" >&2
exit 2
;;
esac
+27
View File
@@ -0,0 +1,27 @@
# Bundled fonts
`RobotoMono-Regular.ttf` and `RobotoMono-Bold.ttf` are Roboto Mono by
Christian Robertson, licensed under the Apache License, Version 2.0
(https://www.apache.org/licenses/LICENSE-2.0). The files are copied unchanged
from the Flutter SDK's DevTools assets. They give monospace text (artifact text
previews, background task output) a real fixed-width face on every platform:
Flutter web does not resolve the generic `monospace` family.
## Optional interface fonts
Chosen per device in Settings > Font (`lib/ui/theme/app_font.dart`). They are
declared as plain `assets:`, not `fonts:`, so Flutter web does not download them
at startup; the chosen family is registered on demand with a `FontLoader`. Each
directory holds the unmodified Regular (400), Medium (500), SemiBold (600) and
Bold (700) static TTFs and the family's SIL Open Font License 1.1 as `OFL.txt`,
which is also registered with `LicenseRegistry`.
| Directory | Family | Source | Licence |
| --- | --- | --- | --- |
| `inter/` | Inter 4.1 | github.com/rsms/inter release v4.1, `Inter-4.1.zip`, `extras/ttf/` | OFL 1.1, (c) The Inter Project Authors |
| `ibm-plex-sans/` | IBM Plex Sans 1.1.0 | github.com/IBM/plex release `@ibm/plex-sans@1.1.0`, `ibm-plex-sans.zip`, `fonts/complete/ttf/` | OFL 1.1, (c) IBM Corp., Reserved Font Name "Plex" |
| `source-sans-3/` | Source Sans 3.052 | github.com/adobe-fonts/source-sans release 3.052R, `TTF-source-sans-3.052R.zip`; licence text from `LICENSE.md` at that tag | OFL 1.1, (c) Adobe, Reserved Font Name "Source" |
| `atkinson-hyperlegible-next/` | Atkinson Hyperlegible Next | github.com/googlefonts/atkinson-hyperlegible-next (no releases) at commit 7925f50f, `fonts/ttf/` and `OFL.txt` | OFL 1.1, (c) The Atkinson Hyperlegible Next Project Authors |
The files are unmodified (no subsetting), so the Reserved Font Names stay
usable.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,93 @@
Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors (https://github.com/googlefonts/atkinson-hyperlegible-next)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+93
View File
@@ -0,0 +1,93 @@
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+92
View File
@@ -0,0 +1,92 @@
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION AND CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
+93
View File
@@ -0,0 +1,93 @@
Copyright 2010-2022 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,65 @@
// Runs the app's real native discovery on this machine and prints what the
// platform reports, so a server that the OS sees but the app does not can be
// explained. Run from app/:
// flutter test integration_test/discovery_probe_test.dart -d macos
import 'dart:async';
import 'package:bonsoir/bonsoir.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:pipelines_app/features/onboarding/discovery/bonsoir_server_discovery.dart';
import 'package:pipelines_app/features/onboarding/discovery/discovered_server.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
testWidgets('native discovery reports what the platform delivers', (
tester,
) async {
final raw = BonsoirDiscovery(type: pipelinesServiceType, printLogs: true);
await raw.initialize();
final events = <String>[];
final sub = raw.eventStream!.listen((event) {
final s = switch (event) {
BonsoirDiscoveryServiceFoundEvent(:final service) => 'found ${service.name}',
BonsoirDiscoveryServiceResolvedEvent(:final service) =>
'resolved ${service.name} host=${service.hostname} addrs=${service.hostAddresses} port=${service.port} txt=${service.attributes}',
BonsoirDiscoveryServiceResolveFailedEvent(:final service) =>
'RESOLVE FAILED ${service?.name}',
BonsoirDiscoveryServiceLostEvent(:final service) => 'lost ${service.name}',
_ => 'event ${event.runtimeType}',
};
events.add(s);
// ignore: avoid_print
print('[raw] $s');
if (event is BonsoirDiscoveryServiceFoundEvent) {
unawaited(event.service.resolve(raw.serviceResolver));
}
}, onError: (Object e) {
events.add('ERROR $e');
// ignore: avoid_print
print('[raw] ERROR $e');
});
await raw.start();
await Future<void>.delayed(const Duration(seconds: 8));
await sub.cancel();
await raw.stop();
// ignore: avoid_print
print('--- app layer');
final seen = <List<DiscoveredServer>>[];
final appSub = BonsoirServerDiscovery().scan().listen(
seen.add,
onError: (Object e) => print('[app] ERROR $e'), // ignore: avoid_print
);
await Future<void>.delayed(const Duration(seconds: 8));
await appSub.cancel();
for (final list in seen) {
// ignore: avoid_print
print('[app] ${list.map((s) => '${s.name} ${s.endpoints}').join(' | ')}');
}
// ignore: avoid_print
print('RAW_EVENTS=${events.length} APP_LAST=${seen.isEmpty ? 'none' : seen.last.map((s) => s.name).toList()}');
expect(events, isNotEmpty);
});
}
+34
View File
@@ -0,0 +1,34 @@
**/dgph
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3
+24
View File
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
+1
View File
@@ -0,0 +1 @@
#include "Generated.xcconfig"
+1
View File
@@ -0,0 +1 @@
#include "Generated.xcconfig"
+651
View File
@@ -0,0 +1,651 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */; };
7884E86A2EC3CC0700C636F2 /* WindowControlsPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7884E8692EC3CC0400C636F2 /* WindowControlsPlugin.swift */; };
78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 97C146E61CF9000F007C117D /* Project object */;
proxyType = 1;
remoteGlobalIDString = 97C146ED1CF9000F007C117D;
remoteInfo = Runner;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
7884E8692EC3CC0400C636F2 /* WindowControlsPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowControlsPlugin.swift; sourceTree = "<group>"; };
78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
97C146EB1CF9000F007C117D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
331C8082294A63A400263BE5 /* RunnerTests */ = {
isa = PBXGroup;
children = (
331C807B294A618700263BE5 /* RunnerTests.swift */,
);
path = RunnerTests;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */,
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
9740EEB31CF90195004384FC /* Generated.xcconfig */,
);
name = Flutter;
sourceTree = "<group>";
};
97C146E51CF9000F007C117D = {
isa = PBXGroup;
children = (
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
331C8082294A63A400263BE5 /* RunnerTests */,
);
sourceTree = "<group>";
};
97C146EF1CF9000F007C117D /* Products */ = {
isa = PBXGroup;
children = (
97C146EE1CF9000F007C117D /* Runner.app */,
331C8081294A63A400263BE5 /* RunnerTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */,
7884E8692EC3CC0400C636F2 /* WindowControlsPlugin.swift */,
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
);
path = Runner;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
331C8080294A63A400263BE5 /* RunnerTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
buildPhases = (
331C807D294A63A400263BE5 /* Sources */,
331C807F294A63A400263BE5 /* Resources */,
);
buildRules = (
);
dependencies = (
331C8086294A63A400263BE5 /* PBXTargetDependency */,
);
name = RunnerTests;
productName = RunnerTests;
productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
97C146ED1CF9000F007C117D /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
);
buildRules = (
);
dependencies = (
);
name = Runner;
packageProductDependencies = (
78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */,
);
productName = Runner;
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
CreatedOnToolsVersion = 14.0;
TestTargetID = 97C146ED1CF9000F007C117D;
};
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
LastSwiftMigration = 1100;
};
};
};
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 97C146E51CF9000F007C117D;
packageReferences = (
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
);
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
97C146ED1CF9000F007C117D /* Runner */,
331C8080294A63A400263BE5 /* RunnerTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
331C807F294A63A400263BE5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EC1CF9000F007C117D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
331C807D294A63A400263BE5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EA1CF9000F007C117D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */,
7884E86A2EC3CC0700C636F2 /* WindowControlsPlugin.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 97C146ED1CF9000F007C117D /* Runner */;
targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C146FB1CF9000F007C117D /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C147001CF9000F007C117D /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Profile;
};
249021D4217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 5DTFARV8S9;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = net.awan.pipelines.next;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
};
331C8088294A63A400263BE5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = net.awan.pipelines.next.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Debug;
};
331C8089294A63A400263BE5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = net.awan.pipelines.next.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Release;
};
331C808A294A63A400263BE5 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = net.awan.pipelines.next.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Profile;
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
97C147061CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 5DTFARV8S9;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = net.awan.pipelines.next;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
};
97C147071CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 5DTFARV8S9;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = net.awan.pipelines.next;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
331C8088294A63A400263BE5 /* Debug */,
331C8089294A63A400263BE5 /* Release */,
331C808A294A63A400263BE5 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C117D /* Debug */,
97C147041CF9000F007C117D /* Release */,
249021D3217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
97C147071CF9000F007C117D /* Release */,
249021D4217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCLocalSwiftPackageReference section */
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
};
/* End XCLocalSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = {
isa = XCSwiftPackageProductDependency;
productName = FlutterGeneratedPluginSwiftPackage;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<PreActions>
<ExecutionAction
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent
title = "Run Prepare Flutter Framework Script"
scriptText = "/bin/sh &quot;$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh&quot; prepare&#10;">
<EnvironmentBuildable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</EnvironmentBuildable>
</ActionContent>
</ExecutionAction>
</PreActions>
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "331C8080294A63A400263BE5"
BuildableName = "RunnerTests.xctest"
BlueprintName = "RunnerTests"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
</Workspace>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

Some files were not shown because too many files have changed in this diff Show More