agent: lumotia — v0.1 release-completion run
Closes the code-side v0.1 ship gate. All quality gates green: cargo fmt/clippy/test (~327 tests), npm check (0/0), vitest 13/13, scripts/dogfood-rebrand-drill.sh 8/8. Phase F — first-run onboarding promoted to v0.1 - FirstRunPage with skip-to-main + failure recovery + event recording - Six onboarding commands (record/list/has-completed + lumotia_events) - Storage migration v17 (onboarding_events + lumotia_events tables) UI hardening (in-scope items from v0.1-ui-hardening.md) - StatusPill + PostCaptureCard components, 21st preview entry - Sidebar recording-as-sacred-state (opacity + aria-disabled, reduced-motion) - Settings 6-section regroup + Help section + Activation log + Privacy toggle - Error-state copy sweep (DictationPage + SettingsPage, plain-language) - Global :focus-visible rule, textarea outlines restored - Ctrl+K / Ctrl+, / Escape bindings in +layout LLM resilience - rule_based_extract_tasks (regex-free imperative-verb extractor) + extract_tasks_with_fallback wrapper — task extraction never returns zero - tokio::time::timeout(120s) wraps cleanup/tags/tasks commands Release artefacts - LICENSE (canonical AGPL-3.0), CHANGELOG (Keep-a-Changelog format) - v0.1-release-notes, privacy-and-ai-use, install-warnings, tester-onboarding-kit, tester-acceptance-runbook, code-signing-setup, apple-silicon-rb08-runbook, virtual-audio-setup, v0.1-contrast-audit - Workspace versioning + AGPL spdx; npm exact-pin (10 ranges removed) - AppImage SHA-256 sidecar in build.yml - README v0.1 section + Reporting-issues; canonical repo slug Closure pass — items moved from human-required to code-complete - KI-02 Linux idle inhibit: zbus 5 → org.freedesktop.login1.Manager.Inhibit - KI-03 Windows sleep prevention: SetThreadExecutionState(ES_CONTINUOUS|...) - acquire/release_idle_inhibit Tauri commands, wired in DictationPage - Diagnostic-bundle frontend wire-up (Settings → Help button) - WCAG-AA contrast fix via .btn-filled-text utility (no token changes) - 8 destructive-action sites wrapped in plain-language confirm() guards - KNOWN-ISSUES.md + v0.1-known-limitations.md updated (KI-02/03 fixed) Scripts - pre-tag-verify.sh, tag-day.sh, smoke-linux + driver - parse-diagnostic-bundle.sh, parse-activation-log.py Per-item audit trail: docs/release/v0.1-completion-status.md Remaining: W-01…W-08 (signing certs, hardware probes, smoke matrix, tester recruitment) — see docs/release/v0.1-known-limitations.md.
This commit is contained in:
@@ -18,9 +18,13 @@ use lumotia_storage::{
|
||||
FeedbackRow, FeedbackTargetType, TaskRow,
|
||||
};
|
||||
|
||||
use tokio::time::{timeout, Duration};
|
||||
|
||||
use crate::commands::power::PowerAssertion;
|
||||
use crate::AppState;
|
||||
|
||||
const LLM_TIMEOUT: Duration = Duration::from_secs(120);
|
||||
|
||||
/// Frontend-facing task shape. Matches the in-memory object in page.svelte.js.
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
@@ -365,13 +369,28 @@ pub async fn extract_tasks_from_transcript_cmd(
|
||||
.unwrap_or_default();
|
||||
|
||||
let engine = state.llm_engine.clone();
|
||||
tokio::task::spawn_blocking(move || {
|
||||
let transcript_for_fallback = transcript.clone();
|
||||
let extract_future = tokio::task::spawn_blocking(move || {
|
||||
let _power_guard = PowerAssertion::begin("lumotia LLM task extraction");
|
||||
engine.extract_tasks_with_feedback(&transcript, &examples)
|
||||
})
|
||||
.await
|
||||
.map_err(|e| e.to_string())?
|
||||
.map_err(|e| e.to_string())
|
||||
// extract_tasks_with_fallback NEVER returns Err: on LLM failure it
|
||||
// silently falls back to the rule-based extractor and logs a warning.
|
||||
// The return tuple is (tasks, source); the Tauri command only forwards
|
||||
// the task strings — the UI already has a frontend safety net and
|
||||
// doesn't need to distinguish the source for v0.1.
|
||||
let (tasks, _source) = engine.extract_tasks_with_fallback(&transcript, &examples);
|
||||
tasks
|
||||
});
|
||||
match timeout(LLM_TIMEOUT, extract_future).await {
|
||||
Ok(Ok(tasks)) => Ok(tasks),
|
||||
Ok(Err(e)) => Err(e.to_string()),
|
||||
Err(_elapsed) => {
|
||||
tracing::warn!(
|
||||
"LLM extract_tasks_from_transcript_cmd timed out; falling back to rule-based"
|
||||
);
|
||||
let tasks = lumotia_llm::rule_based_extract_tasks(&transcript_for_fallback);
|
||||
Ok(tasks)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
Reference in New Issue
Block a user