The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ci): lint and format failures on the CI Fast lane
Sanil0ae70828538a
diff --git a/app/src/features/conversations/aui/ArtifactPreviewPanel.tsx b/app/src/features/conversations/aui/ArtifactPreviewPanel.tsxindex 07040d3440..3ca8fdffb2 100644--- a/app/src/features/conversations/aui/ArtifactPreviewPanel.tsx+++ b/app/src/features/conversations/aui/ArtifactPreviewPanel.tsx@@ -12,9 +12,9 @@ import {import { useT } from '../../../lib/i18n/I18nContext';import { saveArtifactViaDialog } from '../../../services/artifactDownloadService';import { callCoreRpc } from '../../../services/coreRpcClient';-import type { ArtifactSnapshot } from '../../../store/chatRuntimeSlice';import {activateArtifactTab,+ type ArtifactSnapshot,closeArtifactPanel,closeArtifactTab,} from '../../../store/chatRuntimeSlice';@@ -204,13 +204,8 @@ export function ArtifactPreviewPanel(_props: ArtifactPreviewPanelProps) {// ─── Content panel (fetches and renders) ────────────────────────function ArtifactContentPanel({ artifact }: { artifact: ArtifactSnapshot }) {+ // Mounted per artifact (keyed by id), so switching starts from a clean state.const [bodyResult, setBodyResult] = useState<ArtifactBodyResponse | null>(null);- useEffect(() => {- // Clear when switching artifacts- setBodyResult(null);- setLoading(true);- setError(null);- }, [artifact.artifactId]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -397,7 +392,7 @@ async function saveArtifactAs(return t(`chat.files.error.${(outcome.code ?? 'download_failed').toLowerCase()}`);}-type AutosaveStatus = 'saved' | 'pending' | 'saving' | 'error';+type AutosaveState = 'saved' | 'pending' | 'saving' | 'error';/*** Save edits as new operator versions, AUTOSAVE_DELAY_MS after the last@@ -411,7 +406,7 @@ export function useArtifactAutosave(initialVersion: number,enabled: boolean) {- const [status, setStatus] = useState<AutosaveStatus>('saved');+ const [status, setStatus] = useState<AutosaveState>('saved');const [version, setVersion] = useState(initialVersion);const pending = useRef<string | null>(null);const timer = useRef<ReturnType<typeof setTimeout> | null>(null);@@ -484,7 +479,7 @@ export function useArtifactAutosave();}-function AutosaveStatus({ status }: { status: AutosaveStatus }) {+function AutosaveStatus({ status }: { status: AutosaveState }) {const label = {saved: 'Saved',pending: 'Unsaved changes',diff --git a/crates/openhuman-core/src/agent/artifacts/production_tests.rs b/crates/openhuman-core/src/agent/artifacts/production_tests.rsindex e935ec7db3..d74357fa7d 100644--- a/crates/openhuman-core/src/agent/artifacts/production_tests.rs+++ b/crates/openhuman-core/src/agent/artifacts/production_tests.rs@@ -25,8 +25,8 @@ fn files_in(dir: &PathBuf) -> Vec<String> {}async fn produce(- workspace: &PathBuf,- files: &PathBuf,+ workspace: &std::path::Path,+ files: &std::path::Path,bytes: &[u8],tool_call_id: Option<&str>,revise: Option<&str>,diff --git a/crates/openhuman-core/src/agent/artifacts/tiny_store_tests.rs b/crates/openhuman-core/src/agent/artifacts/tiny_store_tests.rsindex d84e9532b5..9330148af0 100644--- a/crates/openhuman-core/src/agent/artifacts/tiny_store_tests.rs+++ b/crates/openhuman-core/src/agent/artifacts/tiny_store_tests.rs@@ -15,10 +15,10 @@ fn temp_dirs() -> (PathBuf, PathBuf) {}async fn seeded(- workspace: &PathBuf,- _files: &PathBuf,+ workspace: &std::path::Path,+ _files: &std::path::Path,) -> crate::agent::artifacts::version_documents::DocumentArtifactStore {- let store = versioned_store(&workspace);+ let store = versioned_store(workspace);let record = ArtifactRecord::new("a-1","Notes",diff --git a/crates/openhuman-core/src/config/ops/loader.rs b/crates/openhuman-core/src/config/ops/loader.rsindex fdfc784317..04d031f277 100644--- a/crates/openhuman-core/src/config/ops/loader.rs+++ b/crates/openhuman-core/src/config/ops/loader.rs@@ -8,8 +8,7 @@ mod snapshot;pub use load::{load_config_for_workspace_with_timeout, load_config_in, load_config_with_timeout,- load_current_or_init, reload_config_from_paths,- reload_config_snapshot_with_timeout,+ load_current_or_init, reload_config_from_paths, reload_config_snapshot_with_timeout,};pub(crate) use paths::fallback_workspace_dir;#[cfg(test)]diff --git a/crates/openhuman-core/src/config/ops/mod.rs b/crates/openhuman-core/src/config/ops/mod.rsindex 92118b4bf6..304ecbed82 100644--- a/crates/openhuman-core/src/config/ops/mod.rs+++ b/crates/openhuman-core/src/config/ops/mod.rs@@ -25,9 +25,8 @@ pub use loader::{get_dashboard_settings, get_data_paths, get_data_paths_for_user, get_runtime_flags,load_and_get_client_config_snapshot, load_and_get_config_snapshot,load_config_for_workspace_with_timeout, load_config_in, load_config_with_timeout,- load_current_or_init, reload_config_from_paths,- reload_config_snapshot_with_timeout, reset_local_data, set_browser_allow_all,- snapshot_config_json, RuntimeFlagsOut,+ load_current_or_init, reload_config_from_paths, reload_config_snapshot_with_timeout,+ reset_local_data, set_browser_allow_all, snapshot_config_json, RuntimeFlagsOut,};// expose internal helpers needed by tests (ops_tests.rs uses super::*)#[cfg(test)]