fix: stabilize zhihu export and dashboard flow

This commit is contained in:
zhaoyilun
2026-04-10 17:09:19 +08:00
parent 4becf81066
commit 34035cdc9c
10 changed files with 955 additions and 276 deletions

View File

@@ -1,5 +1,6 @@
use std::path::Path;
use crate::compat::config_adapter::resolve_skills_dir_from_sgclaw_settings;
use crate::compat::runtime::CompatTaskContext;
use crate::config::SgClawSettings;
use crate::pipe::{BrowserPipeTool, PipeError, Transport};
@@ -34,6 +35,7 @@ pub fn execute_task_with_sgclaw_settings<T: Transport + 'static>(
workspace_root: &Path,
settings: &SgClawSettings,
) -> Result<String, PipeError> {
let skills_dir = resolve_skills_dir_from_sgclaw_settings(workspace_root, settings);
let route = crate::compat::workflow_executor::detect_route(
instruction,
task_context.page_url.as_deref(),
@@ -45,6 +47,7 @@ pub fn execute_task_with_sgclaw_settings<T: Transport + 'static>(
transport,
&browser_tool,
workspace_root,
&skills_dir,
instruction,
task_context,
route,
@@ -70,6 +73,7 @@ pub fn execute_task_with_sgclaw_settings<T: Transport + 'static>(
transport,
&browser_tool,
workspace_root,
&skills_dir,
instruction,
task_context,
route,
@@ -80,6 +84,7 @@ pub fn execute_task_with_sgclaw_settings<T: Transport + 'static>(
transport,
&browser_tool,
workspace_root,
&skills_dir,
instruction,
task_context,
route,