Skip to content

fix: reconcile the saved agent model from the submitted connection (WI-1804) - #429

Merged
stefan-ernst merged 1 commit into
mainfrom
wi-1804-agent
Nov 2, 2026
Merged

stefan-ernst merged 1 commit into
mainfrom
wi-1804-agent

Conversation

@stefan-ernst

Copy link
Copy Markdown
Contributor

saveModel sent the selected connection but its completion handler reread the mutable modelConnectionId. Selecting a different connection while the request was in flight recorded the newer one as saved, so the UI showed it active and disabled Save while the server still used the submitted model.

Change

Capture the submitted connection and reconcile the saved state, model summary, and saved indicator from it. A newer selection stays unsaved and keeps Save enabled. Adds stable data-testids for the model summary and the saved indicator.

Tests

Windshiftapp/core-tests-internal#30 — a Playwright regression with a delayed response; fails against the pre-fix component with Save disabled.

…(WI-1804)

saveModel sent the selected connection but its completion handler reread the
mutable modelConnectionId. Selecting a different connection while the request
was in flight recorded the newer one as saved, so the UI showed it active and
disabled Save while the server still used the submitted model.

Capture the submitted connection and reconcile the saved state, summary, and
indicator from it; a newer selection stays unsaved and keeps Save enabled. Add
stable test ids for the model summary and the saved indicator.
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Size Change: 0 B 🆕

Total Size: 0 B

compressed-size-action

@stefan-ernst
stefan-ernst merged commit 96e8a0e into main Nov 2, 2026
21 checks passed
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