feat(app): the LLM always takes one request at a time, and only the latest call is answered by default
A chat channel answering every message no longer starts Strata with --parallel 2: on the 16 GB card that read prompts about three times slower (2026-11-16, answers took 10-20 s). Chat and voice answers now take turns at Strata. response.policy defaults to latest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -447,7 +447,7 @@ fn parse_call(raw: &Map<String, Value>, wake_words: &[String], d: &CallSettings)
|
||||
|
||||
fn parse_response(raw: &Map<String, Value>, d: &PolicySettings) -> Result<PolicySettings, SettingsError> {
|
||||
let r = section(raw, "response")?;
|
||||
let kind = match get_str(r, "policy", "response", "first")?.as_str() {
|
||||
let kind = match get_str(r, "policy", "response", "latest")?.as_str() {
|
||||
"first" => PolicyKind::First,
|
||||
"inOrder" => PolicyKind::InOrder,
|
||||
"latest" => PolicyKind::Latest,
|
||||
@@ -914,6 +914,11 @@ mod tests {
|
||||
assert_eq!(load_settings(&dir.join("nope.json")).unwrap(), Settings::default());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn by_default_only_the_latest_call_is_answered() {
|
||||
assert_eq!(parse_settings(&json!({})).unwrap().response.kind, PolicyKind::Latest);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn reads_a_full_file_with_bom() {
|
||||
let dir = std::env::temp_dir().join(format!("jarvis-settings-full-{}", std::process::id()));
|
||||
|
||||
Reference in New Issue
Block a user