Skip to content

Keep model defaults and saved settings consistent - #4638

Merged
reachjalil merged 1 commit into
devfrom
fix/managed-model-setting-continuity
Sep 10, 2026
Merged

reachjalil merged 1 commit into
devfrom
fix/managed-model-setting-continuity

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Purpose

Keep provider Default as a real null choice, preserve saved same-model effort when metadata is missing or stale, and apply explicit effort edits in the full picker and Automation editor.

  • Default stays selectable and checked, including forward/backward keyboard cycling.
  • Runtime variant IDs remain exact, including custom keys and the distinct named default variant. Unknown saved values are explained, not silently rewritten.
  • Explicit favorite/model switches carry only target-compatible effort, otherwise Default. Automation model switches reset effort; reselecting the same model preserves it.
  • Full-picker callbacks update effort without replacing an unrelated default model. Automation edits preserve instructions and do not submit until Save.

Independent dev target

Old head: d3736d1ce759fe2051a5209e507886c17043cb8c.
Current signed head: 14fffc4df6962562daf2f2521fcd27a9733ece20.
Fresh base and verified merge base: 858414c41c63a22eecfe331d17f3f5dd348dfc6f.

Rebased the single settings increment directly onto current dev. No parent stack is included. #4629 and its ancestors are not dependencies. Managed-only discovery, upgrade/allowance policy, free access, onboarding/sign-in changes and parent fixtures remain excluded. Provider-access restrictions, billing, budgets, catalogs and provider materialization are unchanged.

Current-dev reconciliation

  • Keep dev's opaque variant normalization and its regression assertions from fix(app): restore OpenCode v2 thinking and effort selection #4853. Add explicit null Default alongside, not instead of, the exact runtime keys.
  • Keep the complete native-v2 MODEL-01 journey, its custom-effort round trip and its unsupported-model negative assertions. Resolve only the import conflict; do not replace its world or restore parent-stack fixtures.
  • Fix an integration regression: injecting Default into the options list must not enable compact effort for a model with no advertised variants and no saved setting. Such models retain disabled Unavailable effort. A stale saved value still exposes Default so it can be cleared explicitly, without switching the model.
  • Add one compact-picker component regression in the existing model-picker test file. It verifies the unavailable state, stale-value recovery to null, and no model-selection callback.

No review threads were present when reviewed. The branch commit is authored by Jalil, signed with the existing signer and verified G. Publication used an exact expected-head lease on the existing branch.

Verification: Incomplete

Passed on the final source tree (exit 0), using frozen offline app dependencies:

corepack pnpm --filter @openwork/app exec bun test --isolate ./tests/model-behavior.test.ts ./tests/automation-model-options.test.ts ./tests/model-picker-modal.test.ts ./tests/composer-model-controls.test.ts ./tests/automation-editor-state.test.ts
# 32 passed, 0 failed, 0 skipped; 220 assertions
corepack pnpm --filter @openwork/app typecheck
git diff --check origin/dev...HEAD

These are supporting checks, not current-head real-engine evidence.

  • Failed during iteration, fixed: the new compact-picker fixture initially lacked its desktop-policy context (4 passed, 1 failed). Supplying the fixture's unrestricted policy checker corrected setup without changing production policy or removing assertions. The isolated file then passed all 5 tests, and the final five-file selection passed all 32.
  • Skipped/not run: broad suites. No selected test skipped.
  • Deferred: fresh exact-head cold-boot runtime evidence, Automation runtime dispatch and manual model-backed review. No paid resources, local E2E or manual review runs were launched.

The covering journey remains composer-model-picker-no-subscribe-promo; current dev also contributes its MODEL-01 native-v2 case. Neither was executed for this head. The full-picker Default assertion does not establish a native-v2 Default round trip or stale-value persistence through a real runtime reload.

Prior evidence at 85e3e7afcdc8930c63fcb102d03558833900b098, and supporting checks recorded for d3736d1ce759fe2051a5209e507886c17043cb8c, are historical. They must not be reused as current-head proof.

This PR remains ready with its incomplete proof stated explicitly. No merge, deployment, review request, branch deletion, live generation or production settings change is included. Details: docs/model-setting-continuity.md.

@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 11:44pm UTC
openwork-den Ready Ready Preview Sep 10, 2026 11:44pm UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 11:44pm UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 11:44pm UTC

@reachjalil

reachjalil commented Sep 8, 2026 •

Copy link
Copy Markdown
Member Author

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 14fffc4df6962562daf2f2521fcd27a9733ece20 · selected evidence

Open review report

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (74322 ms), confidentiality-review (263187 ms), spec-provenance-review (86853 ms), desktop-den-sync-review (142240 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (14fffc4df6962562daf2f2521fcd27a9733ece20). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 14fffc4d Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 14fffc4d Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 14fffc4d Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 14fffc4d Deployed Sep 10, 2026 by vercel[bot]
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.

1 participant