Andee lives on your phone or Mac and uses any app like you do—no integrations, no root, any model; memory and passwords never leave your device | Andee 住进你的手机或 Mac,像你一样操作任何 App——无需集成、无需 Root、支持任意模型,记忆和密码绝不离开设备。
fix(voice): keep the follow-up mic open after a question, and stop logging it as an error
booboosuie2c1410e68b4
diff --git a/app/src/main/java/net/kuafuai/andee/ScreenBodyService.kt b/app/src/main/java/net/kuafuai/andee/ScreenBodyService.ktindex 0f6bce2..958ce06 100644--- a/app/src/main/java/net/kuafuai/andee/ScreenBodyService.kt+++ b/app/src/main/java/net/kuafuai/andee/ScreenBodyService.kt@@ -1004,7 +1004,6 @@ class ScreenBodyService : AccessibilityService() {if (asr.isActive() || tts.isSpeaking() || meeting.isActive() ||net.kuafuai.andee.device.CallState.isActive) return- net.kuafuai.andee.ui.ChatHistory.addError(AppLocale.str(this, R.string.svc_listening_again))asr.toggle() // not streaming → starts; the 3 s silence watchdog closes it}@@ -2071,7 +2070,13 @@ class ScreenBodyService : AccessibilityService() {// The brain's own verdict on whether this conversation is still// open. Written before the speak below because [followUpWindow]// reads it seconds later, off the TTS drain — see [expectFollowUp].- expectFollowUp = !END_MARKER.containsMatchIn(text)+ // A reply that ends on a question is waiting for an answer+ // whatever the model tagged it; a mic that stays shut there is+ // the one failure the user hears as being ignored.+ expectFollowUp = !END_MARKER.containsMatchIn(text) ||+ END_MARKER.replace(text, "").trimEnd().let {+ it.endsWith("?") || it.endsWith("?") || it.endsWith("吗") || it.endsWith("呢")+ }// Markers come out here, with the markdown and before anything// else touches the string. This is the one place the answer is// turned from what the model wrote into what the user gets, and adiff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xmlindex 4656e30..392ce4f 100644--- a/app/src/main/res/values-en/strings.xml+++ b/app/src/main/res/values-en/strings.xml@@ -281,7 +281,6 @@<string name="svc_voice_failed">Voice stopped working.\n%1$s</string><string name="svc_btn_type_instead">Type it instead</string><string name="svc_btn_open_settings">Open settings</string>- <string name="svc_listening_again">(still listening…)</string><string name="svc_stopped">Stopped</string><string name="svc_meeting_ended_line">(Meeting recording ended — %1$d characters, drafting the minutes…)</string><string name="svc_call_ended_line">(Call ended — %1$d characters, summarising…)</string>diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlindex 2edfa30..15a9965 100644--- a/app/src/main/res/values/strings.xml+++ b/app/src/main/res/values/strings.xml@@ -284,7 +284,6 @@--><string name="svc_btn_type_instead">打字说</string><string name="svc_btn_open_settings">打开设置</string>- <string name="svc_listening_again">(继续听…)</string><string name="svc_stopped">已停止</string><!--The two parenthesised rows dropped into the scrollback when a recording