Repository navigation
fix(app): restore OpenCode v2 thinking and effort selection - #4853
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR #4853: Signed-Head VerificationSelected MODEL-01: Passed. Focused CDP/catalog and model diagnostics: Passed. Additional repository-wide browser-code check: Failed. Overall checks executed: Failed; no blanket PR clearance. HEAD: This task did not edit product files or lockfiles, make commits, rewrite history, rebase, fetch, push, run Warden, or post evidence. The user's existing desktop session was not driven. The old worktree was read only for dependency/evidence reference. Remote PR state was not independently queried in this task. Commands And EnvironmentCommands below ran from env PATH="$HOME/.nvm/versions/node/v24.15.0/bin:$HOME/.nvm/versions/node/v23.11.0/bin:/usr/sbin:$PATH" <command>Installed versions observed: Node
Git verification commands (no PATH prefix required): git status --short
git rev-parse HEAD HEAD^{tree}
git log -1 --format='%H%n%T%n%G?'
git diff 6f493909 HEAD --stat
git diff --exit-code -- pnpm-lock.yaml evals/pnpm-lock.yaml
git diff --check
git diff --exit-codeAll exited 0. Status/diff output was empty. HEAD/tree/signature output matched the values above. The frozen installs and SDK build did not change tracked files. The initial default-shell runtime probe found Node Exit codes and focused diagnostic output above were observed directly in this task's terminal executions. The JSON runner receipt does not itself encode a process exit-code field. No separate machine-readable receipt is claimed for the Node/Bun diagnostic commands. New ReceiptsAll paths in this section are relative to
Exact CLI declaration: Selected final CLI fields, copied from terminal output: {"passed":1,"failed":0,"skipped":0,"skips":[],"matched":1,"unhandled":0,"otherCasesNotRun":1,"unexpectedExecutions":0,"suiteErrors":0,"selectedCasePassed":true,"verdict":"passed"}Raw runner receipt selection: {
"numTotalTestSuites":1,"numPassedTestSuites":1,"numFailedTestSuites":0,
"numTotalTests":2,"numPassedTests":1,"numFailedTests":0,"numPendingTests":1,"success":true,
"testResults":[{"assertionResults":[
{"fullName":"the composer model pickers keep their controls without the OpenWork Models subscribe promo","status":"skipped","failureMessages":[]},
{"fullName":"MODEL-01 selected reasoning effort survives reload and reaches the native provider","status":"passed","duration":29542.966540999998,"failureMessages":[]}
]}]
}The legacy picker test is skipped/not selected; needs a separate explicit run for its own coverage. It is not a second pass. The complete mixed-file scope is Incomplete; the explicitly selected MODEL-01 has zero selected skips and passed. No live-provider, Electron, visual-review, whole-file, or whole-PR pass is claimed. Original Assertion RecordsThe JSON selections below retain original field values with whitespace reformatted. Each projection is identified. Omitted fields are not implied absent. Session/project identities, local workspace details, credentials, and unrelated catalog entries are not reproduced.
{
"name":"MODEL-01 selected reasoning effort survives reload and reaches the native provider",
"createdAt":"2026-09-10T21:53:28.418Z",
"closedAt":"2026-09-10T21:53:57.959Z",
"gitSha":"df346577f609e9699604a3181a4d18c43e593bda",
"engine":"v2",
"outcome":"passed",
"steps":[
{"name":"only advertised effort choices are selectable","depth":0,"ok":true,"ms":3347,"seq":1},
{"name":"High is persisted and reaches the real v2 provider request","depth":0,"ok":true,"ms":1638,"seq":2},
{"name":"a custom effort ID reaches native resolution without case changes","depth":0,"ok":true,"ms":1430,"seq":3},
{"name":"a model without advertised variants keeps effort unavailable","depth":0,"ok":true,"ms":8605,"seq":4}
]
}
{
"browser":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/153.0.0.0 Safari/537.36",
"electronBridge":false,
"sourceSha":"df346577f609e9699604a3181a4d18c43e593bda"
}The fixture cold-boots isolated app-web resources with no warm Den override, personal app state, or live provider credentials. Its resource contract does not request Den or desktop. The test asserts native engine status 200 with
[
{"id":"reasoning-model","modelID":"reasoning-model","providerID":"effort-witness","name":"Reasoning witness","package":"@opencode-ai/ai/providers/openai-compatible","capabilities":{"tools":true,"input":["text"],"output":["text","reasoning"]},"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":128000,"output":8192},"variants":[{"id":"low"},{"id":"high"},{"id":"CustomExact"}]},
{"id":"standard","modelID":"standard","providerID":"effort-witness","name":"Standard witness","package":"@opencode-ai/ai/providers/openai-compatible","capabilities":{"tools":true,"input":["text"],"output":["text"]},"time":{"released":0},"cost":[],"status":"active","enabled":true,"limit":{"context":128000,"output":8192},"variants":[]}
]Spec lines 53-60 assert catalog status 200, exact advertised variant arrays, and absence of settings, provider options, headers, and the synthetic credential marker across the entire catalog body. Lines 62-68 assert Low visibility, Hidden absence, and the actual High selection. Variant entries expose only IDs;
{
"requests":[
{"model":"reasoning-model","reasoningEffort":"high","at":"2026-09-10T21:53:44.153Z"},
{"model":"reasoning-model","reasoningEffort":"high","at":"2026-09-10T21:53:46.003Z"},
{"model":"reasoning-model","reasoningEffort":"low","at":"2026-09-10T21:53:47.634Z"},
{"model":"standard","reasoningEffort":null,"at":"2026-09-10T21:53:56.245Z"}
],
"modelRequests":[
{"model":{"providerID":"effort-witness","id":"reasoning-model","variant":"high"}},
{"model":{"providerID":"effort-witness","id":"reasoning-model","variant":"CustomExact"}},
{"model":{"providerID":"effort-witness","id":"standard"}}
],
"native":{"status":200,"body":{"data":{"model":{"id":"standard","providerID":"effort-witness","variant":"default"}}}}
}The provider witness efforts are high / high / low / null. The standard model's outgoing Complete {"id":"reasoning-model","providerID":"effort-witness","variant":"high"}Complete {"id":"reasoning-model","providerID":"effort-witness","variant":"CustomExact"}The custom ID remains opaque and case-preserved while resolving to the fixture's configured provider effort
[
{"seq":24,"channel":"user","verb":"reload","detail":"reload","ok":true,"at":"2026-09-10T21:53:45.070Z"},
{"seq":28,"channel":"user","verb":"see","detail":"see(label=/^Effort\\s+High/)","ok":true,"at":"2026-09-10T21:53:45.671Z"},
{"seq":32,"channel":"user","verb":"click","detail":"click(Run task)","ok":true,"at":"2026-09-10T21:53:45.965Z"},
{"seq":33,"channel":"probe","verb":"eventually","detail":"eventually(reloaded effort reaches provider)","ok":true,"at":"2026-09-10T21:53:46.467Z"},
{"seq":61,"channel":"user","verb":"see","detail":"see(label=/^Effort\\s+Unavailable/)","ok":true,"at":"2026-09-10T21:53:52.404Z"},
{"seq":62,"channel":"probe","verb":"dom","detail":"dom(\"[data-slot=\\\"model-select-root\\\"] button:disabled\")","ok":true,"at":"2026-09-10T21:53:52.405Z"}
]
[
{"model":"reasoning-model","reasoningEffort":"high","at":"2026-09-10T21:53:44.153Z"},
{"model":"reasoning-model","reasoningEffort":"high","at":"2026-09-10T21:53:46.003Z"}
]Lines 82-91 assert an actual reload, retained High display, and a second High provider request. Lines 117-119 assert an actual disabled button containing Effort and Unavailable, not only text visibility. The passing final step and fourth request establish continuation through the unsupported-model send. There are six JSON witnesses plus the action trace. Zero visual-artifact/expectation counters in Focused DiagnosticsThe Node command's original terminal assertion names included: All 30 Node tests passed. These are diagnostic test assertions, not a new OS-sampling or renderer-profile experiment. The Bun command reported: No historical control run, old renderer sample, or old Warden receipt is promoted to this signed SHA. Browser Validation FailureClassification: repository-wide static browser callback validation/type diagnostic. Signed HEAD, exact command Exact actionable output: Inspection confirms that line 21 passes a template-string callback to Publication StatusPrepared as a local temporary draft only. No publisher, upload, PR comment, push, or Warden command was run. Source paths are local originals, not hosted artifacts. The orchestrator owns any subsequent publication and overall PR verdict. |
Deploying openwork with
|
| Latest commit: |
6f49390
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9da1da67.openwork.pages.dev |
| Branch Preview URL: | https://fix-v2-reasoning-effort.openwork.pages.dev |
Warden review summary — ClearNative 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 (85712 ms), confidentiality-review (153484 ms), spec-provenance-review (111538 ms), desktop-den-sync-review (161112 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (6f493909bc9399071eafd4e87b8e5698928dbaa8). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
6f49390 to
df34657
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (df346577f609e9699604a3181a4d18c43e593bda). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Verified signatures: completeRe-signed the PR history with authorization and pushed using an explicit old-head force-with-lease. GitHub reports all 6 PR commits
Fresh signed-head verification: native-v2 headless MODEL-01 passed; 30 CDP/catalog tests and 100 focused app/server tests passed. Browser callback check exited 1 at Fresh bare |
|
Heads-up from the nightly E2E gate: Not a product bug — a lane prerequisite the journey can't get. Two options: gate the case on the engine at the spec level (skip with reason when the world isn't v2), or declare the requirement so the planner reports it as "prerequisite unmet" instead of failed — #4849 introduces |
Summary
Latest final review: bare
pnpm warden:checkexited 0 on6f493909bc9399071eafd4e87b8e5698928dbaa8, with unchanged origin/dev0b219dc4e5f2868c258dbe960d58c657dbe8d99b. All four applicable skills completed with no findings; largeserver.tswas excluded under security/confidentiality size limits, not fully reviewed. Run789c6c0f-2026-09-10T21-31-48-350Z. This supersedes prior-head review metadata below. Final-head headless MODEL-01 passed after the merge refresh.Cause and Scope
The original adapter changes alone did not complete the product path: the server's public model sanitizer removed the entire variants field. The server now projects safe
{ id }entries without exposing provider settings. Existing adapter changes from #4812 remain intact.The apparent renderer/model-switch loop was a CDP input defect. During the stall, a temporary monitor showed a live 500 ms page timer and stable React commit counts with no renderer errors. An OS sample showed the Chrome browser process busy in AppKit key-equivalent handling. Restoring only
nativeVirtualKeyCode: windowsVirtualKeyCodereproduced the stall with the same journey and stable-click logic. Removing it restored completion. Temporary monitors, OS sampling code and profiling hooks are not included in the final commit.The journey also exposed a moving-target click race: a semantic CustomExact lookup could still click High while the menu animated. The driver now requires stable geometry within the existing deadline, and the journey confirms each actual UI selection before sending. No timeout was increased.
Verification
Final refreshed head:
6f493909bc9399071eafd4e87b8e5698928dbaa8Merged already-fetched
origin/devat0b219dc4e5f2868c258dbe960d58c657dbe8d99bin merge commit3b63b6748e05e5894d6b172945e8f15194ad2a2a. The only conflict was adjacent catalog registrations; both MODEL-01 and upstream MCP-consent registration were retained. Automatic adapter/mock/chat-world merges preserve both sides. A five-line expected MODEL-01 entry was added to the catalog metadata test. No new product behavior or timeout changes were made in this refresh.Server typecheck, browser callback validation (872 callbacks), and the focused journey channel scan passed on the earlier
27c8d113head; they were not rerun during this minimal merge refresh. The initial catalog check on merge commit3b63b6748failed because its expected list omitted MODEL-01 (29 passed, 1 failed); the final-head rerun above includes the corrected expectation and is green.Runner declaration:
engine=v2 surface=web case=MODEL-01; placement: local (--local).The fixture cold-boots the real app, server and pinned native engine with a synthetic provider. It does not use Electron or live provider credentials. The unrelated legacy picker case in the same file is deliberately not selected; this is not a claim that the entire mixed file ran.
Preserved Assertions
/modelrequest has no variant field and its provider request has no reasoning effort. The engine canonicalizes that omitted field to its internaldefaultvariant in the session response; the test asserts these two boundaries separately rather than assuming the response omits the field.Local Evidence Receipts
Final runner receipt:
evals/results/.testkit/cli-run-1789075804877.jsonFinal evidence directory:
evals/results/test-runs/2026-09-10T21-30-06-415Z-model-01-selected-reasoning-effort-survives-reload-and-reaches-the-native-provid/The directory contains
test-run.json, six JSON artifacts, and the trusted action trace. Bothtest-run.jsonand01-model-01-headless-runtime.jsonrecord final head6f493909bc9399071eafd4e87b8e5698928dbaa8. The unsupported-model artifact records provider efforts[high, high, low, null]and the exact outgoing model references.Controlled same-worktree comparison, same command and assertions:
cli-run-1789071708204.jsoncli-run-1789071758523.jsonRuntime.evaluate ... globalThisstallcli-run-1789071998634.jsonDiagnostic React/heartbeat receipt:
evals/results/test-runs/2026-09-10T20-10-59-104Z-model-01-selected-reasoning-effort-survives-reload-and-reaches-the-native-provid/07-model-01-process-diagnostics.jsonMatching browser-process sample:
evals/results/model-01-renderer-54777.sample.txtLimitations
Pre-Refresh Local Review
The following review belongs to the previously published head, not the refreshed head. Warden was not rerun during this refresh, as requested. No fetch or push was performed; the local refreshed commits still need publication to update PR #4853.
Bare
pnpm warden:checkexited 0 at clean HEAD27c8d113baf3461775e4ff0d64601fdd582e0d48; before/after origin/dev was077058748bdb02c0638bc961ca8a7072385c92d2. All four applicable reviews completed with no findings: security, confidentiality, provenance, and desktop/Den sync. Run01a9e6f6-2026-09-10T21-18-39-992Z. Warden reported two file-scope skips, including the large server entrypoint; this is not full-file clearance of every changed file. Standard GitHub checks and approvals remain required.