mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(voice): keep a stopped round's actions and follow-up memory
A reply stopped partway through a round now keeps the actions that ran, answering the calls it never reached as skipped, so the history stays paired for both providers. A failed typed turn no longer resets the pointer, referents and follow-up memory, since its conversation continues. The server now tells a rejected key (401, or Gemini's 400 with reason API_KEY_INVALID, matched exactly), denied access (403) and an account out of credit (OpenAI's 429 insufficient_quota) apart; each cools down for a minute and gets its own message in the chat.
This commit is contained in:
1 parent
9d4d7b3ee0
commit
0a8d824124
19 files changed
+238
-51
No files matched your search
@@ -166,7 +166,12 @@ export function createVoiceCommands({
|
||||
const reticle = pointer ? createReticle(pointer) : null;
|
||||
const updatePointer = session.subscribe((event) => {
|
||||
reticle?.handle(event);
|
||||
if (event.type === 'state' && ['idle', 'error'].includes(event.state)) {
|
||||
// A failed typed turn ends only that reply; its conversation continues.
|
||||
if (
|
||||
event.type === 'state' &&
|
||||
(event.state === 'idle' ||
|
||||
(event.state === 'error' && !adapter.getStartOptions?.().textOnly))
|
||||
) {
|
||||
pointer?.clear();
|
||||
referents?.clear();
|
||||
// Conversation memory ("those", "the last answer") ends with the
|
||||
|
||||
Reference in new issue
Block a user