fix(grok): map Always allow to allow_once when Grok omits allow_always - #228
fix(grok): map Always allow to allow_once when Grok omits allow_always#228leoisadev1 wants to merge 3 commits into
Conversation
Grok 4.6 often omits ACP allow_always. Choosing Always allow this session then mapped to a missing option and cancelled the turn. Fall back to allow_once so the command still runs. Session-scoped auto-approval memory from the same upstream work is not in this change. Adapted from pingdotgg#8358. Made by Grok 4.6 High in Grok Build via Orca.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Greptile SummaryThe Grok terminal-settlement changes can leave a merged turn without its completion event when an older superseded prompt drains last. This must be fixed before merging. Confidence Score: 4/5Not safe to merge until the missing terminal-completion event is preserved. The reproduced terminal-settlement failure can leave consumers waiting after a session becomes ready. The earlier fixture typing thread was resolved by greptile-apps[bot] without explanation and does not remain outstanding. Files Needing Attention: apps/server/src/provider/Layers/GrokAdapter.ts
What T-Rex did
|
CI typecheck inferred permission option kinds as string, so the new allow_once fallback test failed to compile. Annotate the fixture with satisfies RequestPermissionRequest so the ACP literal union is preserved. Made by Grok 4.6 High in Grok Build via Orca.
Keep the Grok permission fallback stacked on the steered-turn epoch settlement fix.
Problem
Grok 4.6 often omits ACP
allow_always. Choosing Always allow this session then mapped to a missing option and cancelled the turn.Changes
selectGrokPermissionOptionIdfalls back toallow_oncewhenallow_alwaysis absent. The command still runs.Session-scoped auto-approval memory from the same upstream work is not in this change.
Upstream
Adapted from pingdotgg/t3code#8358. Stacked on #224.
Verification
Leave this PR and its base open.
Made by Grok 4.6 High in Grok Build via Orca.