Repository navigation
fix(sessions): discover model names and resolve aliases safely - #4955
Conversation
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
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 (405921 ms), confidentiality-review (346313 ms), spec-provenance-review (438817 ms), desktop-den-sync-review (374980 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 (38667ed96bace4663412815590dfc5091140bae5). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Signed-off-by: Guillaume Loret <[email protected]>
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (ea624cff042e6dea7430e9fef7ed0cc2f6ae6d11). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Screenshots (added after merge)No authentic before/after screenshot pair for the requested sidebar/session-name or error-control change is available: this PR changes agent-facing control results, not those visual surfaces. The summary phrase “Session lists show model and provider names instead of ids” refers to the Compared exact adjacent commits:
What actually changed
Verification and limits
Images: none captured or uploaded. DOM/pixel/vision screenshot checks were not applicable because no matching new visual state was identified. Raw tool output displayed in chat would demonstrate the data contract, not a newly changed sidebar or error control; no mock UI, edited pixels, or unrelated screenshots are substituted. Cleanup: both task-owned detached worktrees were clean and removed. No Electron instance was launched, no running user app was accessed, no temporary harness was created, no secrets were fetched, and no source changes or commits were made. Existing retired-provider bindings and durable event-only error capture are not repaired by this PR. |
Summary
What this PR does: makes model bindings visible and safe to create. Session lists show model and provider names instead of ids; a policy-filtered
models.listaffordance lists the models a person or agent may use;session.createaccepts a model alias/display name and checks the model exists before creating the session;session.readexposeslastError, so a session stuck on a dead model is detectable instead of failing silently. Production change: 229 lines.What this PR does not do: it does not repair sessions already bound to a retired provider, and it does not change
cloud-provider-sync. The incident root cause — the desktop sync removes a retired provider without re-binding the sessions that used it — is documented in the included RCA and remains open. Manual repair (re-pick this/all sessions) is #4979, stacked on this PR. The automatic fix (re-bind or refuse to drop a provider still used by live sessions) is not implemented anywhere yet.Context: the 2026-09-11 Den provider migration (
lpr_→ipr_/gwm_) left sessions with dead model ids and no way to see which model a session used. Report:reports/rca-model-migration-dead-ids-2026-09-12.md.Verification
Passed locally on the final head:
pnpm evals:pr specs/session-model-aliases.test.ts(1 test, 33 assertion sections, zero skips); focused server units (123/123), renderer units (9/9), app/server typechecks. Removing alias resolution or error projection independently makes the spec fail. Head-matching test evidence is published in the PR comment.Broader archive-contract, spec-layer typecheck, and layer-lint failures reproduce identically on clean base 0bd71eb; commands/signatures are in the RCA. Daytona credentials were unavailable.
Boundaries
No OPE-48 re-pick UI or session migration. Pre-assistant/event-only run errors remain a durable-receipt follow-up; lastError is snapshot/window scoped. #4950 owns honest acceptance receipts (overlapping create function); #4937 owns tool-parts/activity. Neither duplicated. Exact incident migration time is unverified; the notification timestamp is a coalesced entry creation time.
Report:
reports/rca-model-migration-dead-ids-2026-09-12.md.