Commit 7296041
Raoul RAFFEL
fix(oauth-language-model): gemini stdin hang + workspace trust
Two regressions identified during self-review of PR #52, both restored
from the previous internal version of this adapter:
1. `gemini-2.5-flash` hangs on stdin-piped prompts. Route the prompt
through `-p <prompt>` (was `-p ""`) and close stdin with `DEVNULL`
for the gemini branch only — codex/claude still read from stdin.
2. Gemini CLI v0.37+ refuses to run in an "untrusted" workspace
without an interactive trust prompt. Subprocess invocations are
non-interactive by definition, so set
`GEMINI_CLI_TRUST_WORKSPACE=true` explicitly.
Adds a regression test asserting the gemini command builder emits
`-p <prompt>` (not `-p ""`) when a prompt is provided. codex/claude
paths are untouched.1 parent cee41d5 commit 7296041
2 files changed
Lines changed: 45 additions & 10 deletions
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
210 | | - | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
394 | 396 | | |
395 | 397 | | |
396 | 398 | | |
397 | | - | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| 406 | + | |
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
| |||
411 | 413 | | |
412 | 414 | | |
413 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
414 | 430 | | |
415 | 431 | | |
416 | 432 | | |
417 | 433 | | |
418 | | - | |
| 434 | + | |
419 | 435 | | |
420 | 436 | | |
421 | 437 | | |
| |||
425 | 441 | | |
426 | 442 | | |
427 | 443 | | |
428 | | - | |
| 444 | + | |
429 | 445 | | |
430 | 446 | | |
431 | 447 | | |
| |||
540 | 556 | | |
541 | 557 | | |
542 | 558 | | |
| 559 | + | |
543 | 560 | | |
544 | 561 | | |
545 | 562 | | |
| |||
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| |||
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
99 | 117 | | |
100 | 118 | | |
101 | 119 | | |
| |||
0 commit comments