Skip to content

fix(voice): duplex éteint par défaut - #427

Merged
jencryzthers merged 5 commits into
mainfrom
fix/voice-relief-duplex-off
Oct 14, 2026
Merged

jencryzthers merged 5 commits into
mainfrom
fix/voice-relief-duplex-off

Conversation

@jencryzthers

@jencryzthers jencryzthers commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

What changed

Le duplex d’un appel vocal est éteint par défaut. C’est le seul changement de cette PR.

Côté serveur, voiceFullDuplexEnabled() n’est vrai que si SAGAX_VOICE_FULL_DUPLEX=1. Sinon, les marques duplex et speculative envoyées par la page sont retirées (withoutDuplexMarks) et un envoi pendant que le robot travaille rejoint le tour en cours : le chemin steer d’avant 0.5.0. Les serveurs de vérification gardent le duplex allumé, sauf si on le dit autrement.

Côté page, defaultFullDuplex() est faux sur tous les canaux. FULL_DUPLEX_REV 3 oublie le « allumé » que 0.5.x avait enregistré comme défaut. Le commutateur Avancé peut encore l’allumer.

Le prompt ne mentionne une phrase d’ouverture que sur un envoi duplex. Ce n’est pas un troisième chantier : c’est la consigne du chemin duplex, et elle est fausse sur le steer par défaut. La séparer rallumerait une instruction d’un chemin qu’on vient d’éteindre.

Sans rebuild : Réglages du mode vocal → Avancé → « Conversation en duplex » éteint.

Why

Depuis 0.5.0, parler pendant que le robot travaille remplaçait le tour (duplex allumé par défaut). Ça coupait des réponses et lançait du travail en parallèle. Cette PR n’éteint que ça.

Hors de cette PR

Le timeout d’un test Cloudflare à 20 s est retiré : hors sujet.

Le retrait de la note « open topics » et le retrait du remplissage en conserve (« Je regarde ») sont des changements distincts, en brouillon :

Preuve

Le test e2e du chemin duplex éteint (server duplex off (the product default)…) a d’abord été lancé avec le kill switch forcé à allumé : un envoi duplex + speculative pendant que le robot réfléchit n’est plus steered. Ensuite le vrai défaut (éteint) : le même envoi rejoint le tour, rien n’est remplacé ni forké, le prompt n’a pas la phrase d’ouverture.

Rouge — e2e duplex éteint, kill switch forcé à allumé

 FAIL  server/voice-call-reliability.e2e.test.ts > server duplex off (the product default): a duplex send while the bot thinks joins the turn, nothing is replaced or forked
AssertionError: expected undefined to be true // Object.is equality

- Expected:
true

+ Received:
undefined

 ❯ server/voice-call-reliability.e2e.test.ts:307:26
      expect(sent.parallel).toBeUndefined();
      expect(sent.steered).toBe(true);

 Test Files  1 failed (1)
      Tests  1 failed | 9 skipped (10)
 Duration  3.05s (tests 80%)

(expect(sent.steered).toBe(true) : reçu undefined, 2377 ms.)

Vert — même e2e, défaut produit (duplex éteint)

Après fusion de main (raccrochage) :

 ✓ server/voice-call-reliability.e2e.test.ts > server duplex off (the product default): a duplex send while the bot thinks joins the turn, nothing is replaced or forked 3809ms

 Test Files  1 passed (1)
      Tests  1 passed | 12 skipped (13)
 Duration  4.97s (tests 80%)

Unitaire

 ✓ server/voice-call-duplex.test.ts > voiceFullDuplexEnabled > is off unless the server says SAGAX_VOICE_FULL_DUPLEX=1
 ✓ server/voice-call-duplex.test.ts > withoutDuplexMarks > drops duplex and speculative, keeps the rest
 ✓ src/lib/voice-mode/voice-build.test.ts > defaultFullDuplex > is off on every channel
 ✓ src/lib/voice-mode/call.test.ts > full-duplex conversation > is off by default; a person's choice under rev 3 persists
 ✓ src/lib/voice-mode/call.test.ts > latency > does not start the LLM on a partial when duplex is off
 ✓ server/voice-call-prompt.test.ts > the phone-call instruction > mentions an opener spoken by another model only on a duplex call

 Test Files  4 passed (4)
      Tests  109 passed (109)
 Duration  5.99s

pnpm typecheck, pnpm lint et pnpm i18n:check passent (hook pre-push).

How it was verified

Voir Preuve. Isolé : serveur de vérification + moteur factice, jamais l’app live. Le chemin e2e force SAGAX_VOICE_FULL_DUPLEX=0 même si le fixture allume le duplex par ailleurs.

Screenshots (UI changes)

Aucun changement de mise en page. Le commutateur Avancé « Conversation en duplex » reste.

Checklist

  • pnpm typecheck and pnpm lint pass locally (pnpm i18n:check aussi)
  • Server behavior changes come with tests (see CONTRIBUTING.md → Tests)
  • No dist-server/ edits (it's build output)
  • macOS-only code is platform-gated; no shell: true / cmd.exe string-building
  • No secrets in logs, responses, events, or argv

Jean-Christophe Proulx and others added 2 commits October 13, 2026 13:21
…ote, no canned filler

JC 2026-10-13: voice since 0.5.0 forks tasks, is incoherent and sounds like
a robot reading a text. Root causes against 0.4.22 that this turns off:

- Server: the full-duplex path (replace, speculative partials, a fast
  model's opener spoken before the real answer) runs only with
  SAGAX_VOICE_FULL_DUPLEX=1. Off by default, the page's duplex and
  speculative marks are dropped and a call send takes the pre-0.5.0 steer
  path. Verification servers keep it on unless told otherwise.
- Server: no more open-topics note. topicsFromCallMessages made every line
  said on the call a topic "still running in the background", every turn.
- Server: the call prompt mentions the opener only on a duplex call, and
  asks for no stock phrase instead of "Je regarde ça".
- Client: full duplex is off by default on every channel; rev 3 drops the
  rev-2 "on" 0.5.x stored as its default.
- Client: no canned tool filler ("Je regarde.") and no tool chip
  narration on a call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The session record lists what the bot said while a tool ran, the call
instruction, and the absence of a stock phrase or another model's opener.
Docs match the 2026-10-13 default. The control-plane 429 scan test gets
20s so a slow workerd run does not fail the check at the 5s default.
@cursor

cursor Bot commented Oct 13, 2026

Copy link
Copy Markdown

Preuve

Appel isolé contre le faux moteur, duplex serveur éteint (SAGAX_VOICE_FULL_DUPLEX=0). La page envoie tout de même duplex et speculative. Pendant qu'un outil Bash est en cours, le test « session journal » (server/voice-call-reliability.e2e.test.ts) écrit ce journal. Aucun hôte, aucun secret.

journal de session — appel, duplex serveur éteint
lignes du bot pendant l'outil (aucune n'est un remplissage):
  - Hi, I'm Cryptic. What would you like me to do?
  - hello from fake claude
puces d'activité, non dites à voix haute: Bash « running a command »; Bash « running a command » (en cours)
instruction: - Keep using your tools normally. Only when something will genuinely take a while, say so once, briefly and in your own words; never a stock phrase, and never again for each step.
amorce d'un autre modèle: absente
sujets ouverts: absents
remplissage en conserve: aucun
lignes du bot après l'outil:
  - Hi, I'm Cryptic. What would you like me to do?
  - hello from fake claude
  - réponse du moteur (aucun remplissage en conserve)

pnpm exec vitest run server/voice-call-reliability.e2e.test.ts -t "session journal" a réussi. Les deux lignes pendant l'outil sont la présentation du robot et la réponse du faux moteur, pas une phrase en conserve. Les puces « running a command » ne sont pas dites. L'instruction ne demande plus « Je regarde ça ». Aucune amorce d'un autre modèle, aucun sujet « still running in the background ».

src/components/voice-mode/VoiceModeBar.test.ts vérifie que LiveCall n'appelle plus sayFiller, prefetchFiller, toolFillerText ni shouldNarrateToolChip. server/voice-call-prompt.test.ts vérifie l'absence de « Je regarde » dans l'instruction.

Le crochet de poussée (lint, typecheck, catalogues de langue) a passé sur b75938eb6.

Le test du plan de contrôle « uses a fresh scan to classify a create 429 when the tunnel count is rate limited too » a expiré à 5 s sur la poussée précédente. Il a maintenant 20 s. Ce n'est pas un changement de voix.

cursoragent and others added 2 commits October 14, 2026 11:41
Drop the Cloudflare control-plane timeout bump, the open-topics prompt
removal, and the canned tool-filler work. Those are separate concerns.

The call prompt still mentions an opener only on a duplex send: that
line is false on the steer path this default uses, so it stays with
the duplex switch.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
Pick up the GitHub-hosted CodeQL and term-guard workflows so those
jobs run instead of waiting on self-hosted runners.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
@cursor cursor Bot changed the title fix(voice): relief for 0.5.x calls: full duplex off, no open-topics note, no canned filler fix(voice): duplex \u00e9teint par d\u00e9faut Oct 14, 2026
@cursor cursor Bot changed the title fix(voice): duplex \u00e9teint par d\u00e9faut fix(voice): duplex éteint par défaut Oct 14, 2026
Keep hangup and the latest main. Duplex stays off by default: hangup
prompt lines are kept, the opener stays only on a duplex send.
@jencryzthers
jencryzthers merged commit e36f6f6 into main Oct 14, 2026
10 of 12 checks passed
@jencryzthers
jencryzthers deleted the fix/voice-relief-duplex-off branch October 14, 2026 12:04
jencryzthers added a commit that referenced this pull request Oct 14, 2026
## Quoi

Bump de version, comme #421 pour 0.5.1 :

- `package.json` : `forkVersion` 0.5.2
- `ios/project.yml` : `MARKETING_VERSION` 0.5.2 (même version que le
desktop), `CURRENT_PROJECT_VERSION` 30, sur les quatre cibles
- `docs/releases/0.5.2.md` : notes complètes FR et EN (affichées dans
l'app avant et après la mise à jour), qui complètent celles de #458 avec
tout ce qui est entré depuis 0.5.1 : voix (#427, #435, #422/#424, #450,
#451, #458), démarrage serveur (#433, #460), approbations (#455),
modèles (#462, #466), sandboxes Kubernetes (#463, #465), image Docker
(#436, #444, #456), sécurité (#445), interface (#423, #425, #448, #454,
#461)
- `src/lib/bundled-release-notes.test.ts` : vérifie les nouvelles
entrées

NE PAS fusionner sans le GO de JC : la fusion sur main (changement de
`package.json`) lance `release.yml`.

## Prérequis avant la release

- Créer le secret de dépôt `TRIVYIGNORE_PRIVATE` (#456) : absent ou
vide, `docker.yml` échoue fermé sur le tag.

## Tests locaux (candidat, Node 26.11, macOS)

- `pnpm test:unit` : 8 shards, 1474 fichiers, exit 0
- `pnpm exec vitest run src/lib/bundled-release-notes.test.ts` : exit 0
- `pnpm test:shards` (tous les groupes) lancé avant #466 : exit 1. Les
échecs déterministes sont corrigés par #466 ; restent des e2e qui
passent seuls (charge des 8 shards) et
`server/codex-review.e2e.test.ts`, qui échoue sur ce Mac aussi au tag
`pulsa-v0.5.1` (Node 24 et 26).
- Tests Swift non lancés.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Jean-Christophe Proulx <jencryzthers@Jean-Christophes-Macbook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants