@agfpd/iapeer 0.4.57 → 0.4.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/launch/adapters/codex.ts +17 -4
package/package.json
CHANGED
|
@@ -58,8 +58,8 @@ import type { ControlCommand, ControlPlan, LaunchAdapterConfig, LaunchSpec, Runt
|
|
|
58
58
|
* option 1 ("Yes, continue") is default-highlighted → ['Enter']
|
|
59
59
|
* (watcher.ts:386-390, codex-start.sh:261-264).
|
|
60
60
|
* - 'Hooks need review' — a new/changed plugin hooks.json; "Trust all and
|
|
61
|
-
* continue" is option 2, default
|
|
62
|
-
* (
|
|
61
|
+
* continue" is option 2, default selector (`›`) is on option 1 → a single
|
|
62
|
+
* '2' (select-by-number commits immediately — В41 live capture, 0.139.0).
|
|
63
63
|
*/
|
|
64
64
|
function codexUpdatePromptActive(pane: string): boolean {
|
|
65
65
|
return pane.includes('Update available!') && pane.includes('Press enter to continue')
|
|
@@ -213,12 +213,25 @@ export const codexAdapter: RuntimeAdapter = {
|
|
|
213
213
|
* A visible startup dialog → the keys that clear it (watcher.ts:382-400), else
|
|
214
214
|
* null. Update offer is matched first (it can stack ahead of the trust/hooks
|
|
215
215
|
* modals): decline with ['2','Enter']; dir-trust accepts with ['Enter']; hooks
|
|
216
|
-
* -review
|
|
216
|
+
* -review selects "Trust all and continue" by NUMBER — a single '2'.
|
|
217
|
+
*
|
|
218
|
+
* В41 — hooks-review was a blind ['Down','Enter'] burst: under load a swallowed
|
|
219
|
+
* Down left Enter confirming the WRONG default ("Review hooks" — the panel opens,
|
|
220
|
+
* the wake stalls; the same class claude had and replaced with cursor-verified
|
|
221
|
+
* stepping). CAPTURED LIVE (codex-cli 0.139.0, isolated CODEX_HOME, 03.07): the
|
|
222
|
+
* modal renders numbered options with a moving `›` selector
|
|
223
|
+
* › 1. Review hooks
|
|
224
|
+
* 2. Trust all and continue
|
|
225
|
+
* 3. Continue without trusting (hooks won't run)
|
|
226
|
+
* and a BARE DIGIT '2' selects AND commits option 2 immediately (no Enter needed;
|
|
227
|
+
* trusted_hash verified written). One key — nothing can be swallowed between two.
|
|
228
|
+
* The capture harness itself reproduced the burst failure live: a repeated Enter
|
|
229
|
+
* on a stale dir-trust frame landed on this modal and opened the review panel.
|
|
217
230
|
*/
|
|
218
231
|
bootDialogKeys(pane: string): string[] | null {
|
|
219
232
|
if (codexUpdatePromptActive(pane)) return ['2', 'Enter']
|
|
220
233
|
if (codexDirTrustActive(pane)) return ['Enter']
|
|
221
|
-
if (codexHooksReviewActive(pane)) return ['
|
|
234
|
+
if (codexHooksReviewActive(pane)) return ['2']
|
|
222
235
|
return null
|
|
223
236
|
},
|
|
224
237
|
|