Repository navigation
Fix Jev settings, routing limits, and save transactions - #51
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
BunsDev
left a comment
There was a problem hiding this comment.
Thanks for this, it's a substantial piece of work. These findings come from reading the code at ac1c1dc; I didn't run the scenarios. I traced (1) and (10) through the code myself. They're grouped by impact.
Routing behaviour
- Turns Auto "keeps" can be raised to the effort ceiling (
policy.ts:80). When the thread has no stored effort,pinnedEfforttargetsEFFORTS[Math.min(requested ?? cap, cap)], which is the cap itself, and the defaultmax_effortisxhigh. Claude threads hit this all the time, becauseClaudeBackend.MODELSlistseffortsbut nodefaultEffort, sothread.effortis usually undefined. A turn Jev is unsure about then runs at xhigh, the reason reads "lowered to xhigh", the effort is saved on the thread (runner.ts:270), and the turn counts as premium (router.ts:224). Using the candidate's default, or a moderate level, when nothing was requested would avoid this. - Threads on the CLI default model can be blocked turn after turn (
policy.ts:76). New threads can havemodel: "". That isn't a ladder entry, socurrentCandidateis undefined, and every low-confidence turn returns "Cannot honor the … ceiling". The blocked decision doesn't change the thread, so it stays blocked. The ladder already marks the CLI default withisDefault, so""could resolve to that candidate. - A failed model list blocks Auto for 60 seconds (
router.ts:151).ladderForcaches an empty list together with itserror. Under the new rules an empty current ladder blocks every non-mock Auto turn, so one transientmodel/listfailure, for example while the Codex app-server is restarting, blocks Auto on that backend for a minute. The message blames effort capabilities and drops the real error. Not caching failures, or surfacing the error, would fix it. - Any routing exception now blocks the turn (
runner.ts:277). That includes failures unrelated to safety, such asFit.writethrowing insiderecordRoute(disk full, read-only home) after a safe decision was already made. The in-memory premium count has already gone up by then, so the budget fills with turns that never ran. Saving fit data could be best-effort and kept out of the decision. - Blocked turns still read "Auto kept …" (
router.ts:227). The route item haspinned: trueand noblockedflag, soThreadViewshows "Auto kept Codex · " right next to an "Auto routing stopped" error. The stop reason only appears when the receipt is expanded. - A manual fix after a blocked turn teaches the wrong preference (
runner.ts:405). After a block, the user picks a model that supports the ceiling.noteOverriderecords that against the thread's previous successful route and moves its task tier down, although the change was about effort support, not tier.
Settings dialog
- The jev executable hint mixes the draft with saved status (
SettingsDialog.tsx:323). Withhttpsaved and the draft changed toauto, it reports "Auto selected HTTPS; the jev CLI was not selected", but the CLI was never probed. Change the draft tocliinstead and it shows "Checking the selected transport…" until the dialog closes, because no check runs for a draft. - The "settings changed while this test ran" warning shows too often (
SettingsDialog.tsx:310). It appears whenevertestResultCurrentis false, including whenrouting:testitself rejected (notested) orroutingis null. - Clicking Test judge right after opening can leave the panel stuck (
SettingsDialog.tsx:107).runTest,keyActionandresetLearningbumproutingStatusRequestRefbefore the firstrouting:statusreturns, so its result is discarded. If the follow-up refresh then fails, which is swallowed,routingstays null and the panel sits on "Checking the judge…".
Text
- Doubled punctuation in the fallback reason (
router.ts:210).unavailableReasonalready ends with a period, so receipts read "…are all empty.; used the built-in heuristic." The e2e test was split into two assertions instead of fixing the string. - The save-error banner repeats itself (
SettingsDialog.tsx:404). It appends "Your draft is still here; retry or cancel." tosaveError, whose fallback already contains that sentence. Real IPC errors also arrive with Electron's "Error invoking remote method 'settings:update': Error:" prefix.
Smaller cleanups
- The "Jev is off for this session" message and the
generation === this.setupGeneration && (auth || billing)guard are repeated intest(),route()andfollowUp()(router.ts:135). AdisableOn(err, generation)helper would keep the three copies in step. - The judge-identity comparison (
jev_transport/jev_bin/jev_model) exists insettings-update.ts:10and again assameJudgeDraft,savedTestMatchesandtestResultCurrentin the dialog. One helper inshared/would keep main and renderer agreeing. - The no-candidate branch (
policy.ts:133-138) nearly duplicates the confidence-gate branch (94-98), and the premium ceiling is computed both inpinnedEffortand in step 5. RoutingTest.tested.transportalways equalsRoutingTest.transport, a storedlastTest.currentis always true, andsavingRefis always set together withoperationRef(types.ts:128). Each pair could become one field.
Before merge
- This branch conflicts with
maininapps/desktop/src/main/engine/store.ts, where #54 added the approval-rule settings.mainalso requires branches to be up to date, so please rebase. - All 19 commits are verified on GitHub. CI passed on the last run, but that run tested against the older
main.
ac1c1dc to
381c290
Compare
BunsDev
left a comment
There was a problem hiding this comment.
Rechecked issues #40–#50, all eleven maintainer findings, and the four smaller cleanups against final head f869f91. No remaining findings in the reviewed scope. There are no inline review threads to resolve.
The remaining verification gap was a save/refresh test that saved the fixture's existing value. f869f91 now changes chat to agent and requires agent after reopening. The corrected test passed with the fix and failed at the expected assertion when the saved-state update was removed; production source was restored unchanged.
The final required macOS check passed: build, 190 unit tests, and all 75 Electron tests, with no skips: https://github.com/TypeSafeAI/modex/actions/runs/37137204299. All 21 PR commits have verified signatures. Local typecheck passed; local terminal/persistence timing failures and the serial unit validation are recorded in the review evidence.
The four P1 constraints are enforced without weakening the CLI-only execution architecture or approval rules. Approval is for this exact head and remains subject to the repository's protected-branch checks.
BunsDev
left a comment
There was a problem hiding this comment.
Rechecked issues #40–#50, all eleven maintainer findings, and the four smaller cleanups against final head d132a95. No remaining findings in the reviewed Jev/Settings scope; there are no inline review threads to resolve.
The additional verification gap was a save/refresh test that saved the fixture's existing value. It now changes chat to agent and requires agent after reopening. The corrected test passed with the implementation and failed at the expected assertion when the saved-state update was removed; production source was restored unchanged.
The branch incorporates current main 1c3ec6f, including #61, #60, #62 and the reconciled #67 status page. The final required macOS check passed: build, 195 unit tests and all 75 Electron tests, with no skips: https://github.com/TypeSafeAI/modex/actions/runs/37139856243. All 24 PR commits have verified signatures. The combined code also passed the normal local build/unit commands, all 13 Git tests, the focused native send/approve/Changes test and an offline worktree smoke test. Earlier local timing failures remain documented; no checks were weakened.
The four P1 constraints are enforced while preserving CLI-only coding execution and approval-rule settings. Approval is for this exact tested head and remains subject to the protected-branch checks.
Auto routing now honors explicit CLI-only transport, refreshes saved judge configuration, preserves existing CLI sessions, and stops before execution when effort or premium limits cannot be guaranteed. Default-model routing, discovery retries, learning-write failures, and blocked receipts are also corrected.
Settings separates drafts from immediate key/reset actions, identifies the configuration tested, preserves failed saves for retry, and exposes routing controls in four accessible sections with persistent Save and Cancel. The refresh-failure regression now saves a value different from its fixture, so it detects a stale renderer snapshot.
Review evidence covers issues #40–#50 and all maintainer findings in the issue checklist and the revision review.
Current head
d132a95incorporates main at1c3ec6f, including #61, #60, #62, and the #67 status update. Its required macOS check passed on that exact head.Validation:
d132a95passed unit + e2e (macOS): build, 195 unit tests, and all 75 Electron tests, with no skips. All 24 PR commits have verified signatures.agent/chatassertion when the saved-state update was temporarily removed. Production source was restored unchanged.Checks use offline fixtures. Coding turns remain CLI-only; live-provider health and human VoiceOver acceptance are not claimed.
Closes #40
Closes #41
Closes #42
Closes #43
Closes #44
Closes #45
Closes #46
Closes #47
Closes #48
Closes #49
Closes #50