huskies: merge 611_story_extract_settings_service
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
use crate::agents::PipelineStage;
|
||||
use crate::config::ProjectConfig;
|
||||
use crate::http::context::AppContext;
|
||||
use crate::http::settings::get_editor_command_from_store;
|
||||
use crate::service::settings::get_editor_command;
|
||||
use crate::slog_warn;
|
||||
use crate::worktree;
|
||||
use serde_json::{Value, json};
|
||||
@@ -414,7 +414,7 @@ pub(super) fn tool_get_editor_command(args: &Value, ctx: &AppContext) -> Result<
|
||||
.and_then(|v| v.as_str())
|
||||
.ok_or("Missing required argument: worktree_path")?;
|
||||
|
||||
let editor = get_editor_command_from_store(ctx)
|
||||
let editor = get_editor_command(&*ctx.store)
|
||||
.ok_or_else(|| "No editor configured. Set one via PUT /api/settings/editor.".to_string())?;
|
||||
|
||||
Ok(format!("{editor} {worktree_path}"))
|
||||
|
||||
Reference in New Issue
Block a user