feat(app): Tauri 2 control app — tray + dashboard, thin FR-CTRL client (#181) - #267
Merged
Conversation
…(FR-UI-01..09) Issue #181 (PRD §20.4): cross-platform desktop control app as a thin client of the FR-CTRL daemon. - Rust core (app/src-tauri): all daemon I/O via ureq (GET /status /agents /history, POST /dispatch /approve, GET /events SSE with Last-Event-ID resume). HTTP lives in Rust because the daemon rejects non-loopback Origin headers and Windows/Linux webviews present http://tauri.localhost; Rust-side requests carry no Origin, which the daemon accepts on every OS. - FR-UI-01 tray: aggregate state (idle/running/failed/offline/auth-failed) derived from /status with circuit-open → failed (state.rs, unit-tested); per-state tray icons + tooltip, left-click deep-links into the dashboard. - FR-UI-02 dispatch sheet: prompt/role/worker/repoPath/autoPr/budget → POST /dispatch, payload mirrors parseDispatch byte-for-byte. - FR-UI-03 dashboard: /agents roster+queue, /events SSE live log tail (capped 500 rows), /history tab. - FR-UI-04 approval inbox: verdict:"ask" rows (same pickPausedTask fallback signal as the TUI) → native notification + inbox; Approve/Deny → POST /approve with y/n shorthand; __kill__ deliberately not exposed. - FR-UI-05: tauri-plugin-autostart + tauri-plugin-single-instance wired; second launch focuses the running dashboard. - FR-UI-08 pipeline timeline: per-run stage reducer scout→plan→implement→ gates→pr (G0–G5 collapse into gates; loopdriver loop-phase rows mapped; per-stage status/elapsed/retries; pipeline.rs unit-tested) + static fallback rebuilt from /history. - FR-UI-06/09: CI matrix scaffold (.github/workflows/app-build.yml) with real 3-OS cargo-check/debug-build jobs and explicit TODO-by-design notes; signing is NOT faked. - UI: plain TS + esbuild (no framework), withGlobalTauri event bridge. Closes #181
linhdmn
added a commit
that referenced
this pull request
Sep 9, 2026
…t for the resource file The app-build CI windows leg failed with 'icons/icon.ico not found; required for generating a Windows Resource file during tauri-build' (macOS and Linux legs were green). Generated from icons/icon.png at 256px via sips. Follow-up to #267 / FR-UI-09 parity gate.
linhdmn
added a commit
that referenced
this pull request
Sep 9, 2026
… embedded selector (#270) Two CI-Go legs have been red on main since the Tauri app (#267) and TUI polish (#268) landed: 1. Single-implementation gate: app-build.yml legitimately invokes pnpm (Tauri 2 webview UI, issue #181 / PRD §20.4 decision) — the gate's Go-only rule covers the DevAgent core, so exclude that one workflow's lines from the grep instead of weakening the gate itself. 2. staticcheck QF1008: polish_contract_test.go:323 used the embedded bufEnv selector; winchEnv promotes cols, so env.cols is identical. The TestApplyKeysApproveSheet CI-only failure (passes locally 30+ runs on the same SHA) is filed separately with full analysis.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implements #181 (FR-UI-01..09, PRD §20.4): the cross-platform desktop control app as a Tauri 2 tray + dashboard, a thin client of the FR-CTRL daemon (
internal/daemon). Entirely newapp/tree (+ one CI workflow); nothing existing is touched.Closes #181
Design decision: HTTP/SSE in the Rust core, not the webview
The daemon rejects non-loopback
Originheaders (drive-by CSRF guard,originAllowed). Tauri webviews presenthttp://tauri.localhostas origin on Windows/Linux → every webview-side request would 403 there. Rust-side requests (ureq) carry noOrigin, which the daemon treats as same-origin on all three OSes. The webview talks to the core via Tauri commands +daemon://*events only. Documented inapp/README.mdandsrc-tauri/src/daemon.rs.FR-UI row → implementation map
state.rs(idle/running/failed/offline/auth-failed fromGET /status; circuitopen→failed; precedence unit-tested) + 5s poll loop, per-state tray icons, menu, left-click deep-linkPOST /dispatch; payload mirrorsparseDispatchincl.autoPronly on explicit true/agentsroster+queue,/eventsSSE live tail (500-line cap, stick-to-bottom),/historytabverdict:"ask"rows (same signal as TUIpickPausedTaskfallback) → native notification + inbox; Approve/Deny →POST /approve(y/n shorthand;__kill__deliberately not exposed from the app)tauri-plugin-updatersteps; signing NOT faked; updater plugin deliberately not added (dead config without signed releases)daemon.rs; only credential source is the daemon's owndaemon-tokenfile; daemon-down → UI shows "degrade to CLI"pipeline.rsfolds SSE rows into per-run stage timeline scout→plan→implement→gates→pr (G0–G5 collapse intogates; loopdriverloop-phasemapped; status/elapsed/retries); static fallback rebuilt from/historyEvidence
CARGO_BUILD_JOBS=2 cargo check: clean, 0 warningscargo test: 11 passed, 0 failed (aggregate-state precedence + malformed-body tolerance; pipeline reducer: stage mapping, gate collapse, loop-phase mapping, retry counting, elapsed spans, ts parsing)tsc -p tsconfig.json: clean (strict mode)pnpm build(esbuild): ui/main.js 7.8kbcargo build(debug, --no-bundle equivalent): succeeds — binarydevagent-controlproduced (workstation cargo config redirects target-dir to~/.cache/cargo-target/leankg-target/debug/devagent-control)pnpm tauri buildbundle not run locally (needs display/signing identity); CI matrix scaffold covers compile-parity on all 3 OSesNotes
DEVAGENT_DAEMON_URLor in-app Settings; token read fromDEVAGENT_HOME/daemon-token(0600) or pasted in Settings (memory-only).