Repository navigation
fix(macos): forget outcome, Try it on new profiles, reload, assign mode, settings edits, upgrade preview, toolbar add (Spec 108-retro-mac) - #1452
Merged
Conversation
…de, settings edits, upgrade preview, toolbar add (Spec 108-retro-mac) Forget shows its result (and a disconnect_error warning) in the sheet. A new profile gets Try it. Reload discards the draft and adopts the saved profile. Assign sends profile and mode in one binding change. Saving Anonymous callers adopts only its own key. A profile change invalidates the admin-key upgrade preview. The toolbar plus hand-off and pending routes are consumed while a server detail is open.
Deploying mcpproxy-docs with
|
| Latest commit: |
dcf1a39
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://09b922de.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://108-retro-sol-fixes-macos.mcpproxy-docs.pages.dev |
F1.1: ClientBindingModel.forget() and finalizeRotation() now clear guardRefusal (not only errorMessage), so a stale binding refusal from an earlier row action no longer shows in the Forget sheet and masks the real failure. F3.1: ServersView mounts ServerDetailView with .id(server.id), so a .serverDetail route or notification for another server while a detail is open remounts the detail instead of leaving it on the old server.
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 36832713361 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the verified post-merge review findings of the macOS profiles work (#1442, Spec 108-k) and of the toolbar hand-off (#1427, Spec 109-i). Code changes are under
native/macos/only; the REST, CLI, MCP and Web surfaces and the wire contract are unchanged.Spec:
specs/108-profiles-v3/(tasks T120a-T120f, FR-047 note, quickstart unit-gate filter) andspecs/109-ux-navigation-consistency/(task T141a). Findings R1-R6 are Spec 108 work; F4.1 (with F6.1) belongs to Spec 109-i and is fixed inServersView.swift, which both specs touch.User-visible changes (macOS app)
forget-result,forget-close.POST /profiles/trywithout a name). A new profile has no tool table because there is no saved profile to compute effective tools for. The editor layout is driven byProfileEditorModel.sections.PUT /clients/{id}/binding, so it can change only the lock of a client already on the profile. When the binding already matches, nothing is sent and the sheet says "already on ...".anonymous_profilekey in the Settings store (ConfigStore.adoptSaved) instead of reloading everything, so other unsaved edits on the same tab survive. The Raw tab still shows the saved value.ServersView.body, which stays mounted, so the Add Server sheet opens over an open server detail and is no longer replayed when the detail closes. A route that arrives while a detail is open is consumed immediately.Decisions
.onReceive(.showAddServer/.showServerDetail)handlers insideserverListVieware left as they are; they are harmless and will be tracked as a low follow-up.docs/development/macos-tray.mdstay with the docs PR (108-l, T124).Tests
All new tests were written first. Red was a compile failure for the model, section and settings tests (missing
ForgetResult,assign,AssignOutcome,sections,adoptSaved,commitSaved); the two source-guard tests for the toolbar hand-off failed at runtime before theServersViewchange.ClientBindingModelTests: Forget result texts and announcement, Assign (one request, lock-only change, unchanged sends nothing, refused without a client credential, guard refusal kept, note wording), upgrade preview invalidation, previewed profile is what Apply sends, a late preview is dropped.ProfileEditorModelTests: Reload adopts the server version, edits during a reload are kept, sections for new and existing profiles, Try on a new profile sends the unsaved draft, the view rendersmodel.sections.AnonymousProfileSectionTests: unrelated unsaved edits survive a save,adoptSavedbefore load is a no-op, the section never callsstore.load().ServersViewRoutingTests: the add hand-off and route consumers live onbody, notserverListView.swift buildand the fullswift testsuite pass (1611 tests).