surface per-app provider pins that silently override the task schedule - #6392
Merged
Conversation
An app's per-task provider/model pin always wins over the global Task Schedule's pin at spawn time (#4783), but nothing showed that a pin was even set unless you expanded that row's Configure panel. That let a schedule-level provider change look like it took effect when a stale per-app pin was still routing every run elsewhere -- e.g. layered- intelligence's schedule pin pointed at the fleet GPU OpenCode provider while migration 184's per-app pin (carried over from the old global job) kept routing it to the local Ollama provider instead, with no visible sign of the mismatch anywhere in the UI. Add a "Provider override" badge to the collapsed row whenever the app's pin names a different provider than the schedule's own pin, and extract the divergence check into a `providerPinDivergesFromSchedule` helper alongside the existing `hasProviderPin`/`providerPinPatch` pair so other surfaces can reuse it.
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.
Summary
providerPinDivergesFromSchedulehelper alongside the existinghasProviderPin/providerPinPatchpair so other surfaces can reuse it.Test plan
client/node_modules/.bin/vitest run src/components/apps/tabs/AutomationTab.test.jsx src/components/cos/constants.test.js— 61/61 pass, including 4 new cases covering diverges/matches/no-override.client/node_modules/.bin/biome lint --error-on-warningson all 4 changed files — clean.