Changesets · Branches · Tags · Compare
| Changeset | 8e5e5aa429337c3732c595827043d27702f75681ffed49fbfeb3989e66c26bb1 |
|---|---|
| Author | Tomasz Stefaniak <tomasz.p.stefaniak@gmail.com> · 2025-07-24 11:49 -07:00 |
| Committer | Tomasz Stefaniak <tomasz.p.stefaniak@gmail.com> · 2025-07-24 12:11 -07:00 |
| Parents | 476bc6bc2ea8 |
3 files changed
modified core/config/ConfigHandler.ts +3 −3
| @@ -438,7 +438,7 @@ | ||
| 438 | 438 | if (!this.currentProfile) { |
| 439 | 439 | return { |
| 440 | 440 | config: undefined, |
| 441 | - errors: [], | |
| 441 | + errors: [{ message: "Current profile not found", fatal: true }], | |
| 442 | 442 | configLoadInterrupted: true, |
| 443 | 443 | }; |
| 444 | 444 | } |
| @@ -494,7 +494,7 @@ | ||
| 494 | 494 | if (!this.currentProfile) { |
| 495 | 495 | return { |
| 496 | 496 | config: undefined, |
| 497 | - errors: [], | |
| 497 | + errors: [{ message: "Current profile not found", fatal: true }], | |
| 498 | 498 | configLoadInterrupted: true, |
| 499 | 499 | }; |
| 500 | 500 | } |
| @@ -507,7 +507,7 @@ | ||
| 507 | 507 | if (!this.currentProfile) { |
| 508 | 508 | return { |
| 509 | 509 | config: undefined, |
| 510 | - errors: [], | |
| 510 | + errors: [{ message: "Current profile not found", fatal: true }], | |
| 511 | 511 | configLoadInterrupted: true, |
| 512 | 512 | }; |
| 513 | 513 | } |
modified gui/src/components/modelSelection/ModelSelect.tsx +1 −2
| @@ -11,7 +11,6 @@ | ||
| 11 | 11 | import { IdeMessengerContext } from "../../context/IdeMessenger"; |
| 12 | 12 | import { AddModelForm } from "../../forms/AddModelForm"; |
| 13 | 13 | import { useAppDispatch, useAppSelector } from "../../redux/hooks"; |
| 14 | -import { EMPTY_CONFIG } from "../../redux/slices/configSlice"; | |
| 15 | 14 | import { setDialogMessage, setShowDialog } from "../../redux/slices/uiSlice"; |
| 16 | 15 | import { updateSelectedModelByRole } from "../../redux/thunks/updateSelectedModelByRole"; |
| 17 | 16 | import { |
| @@ -94,6 +93,7 @@ | ||
| 94 | 93 | |
| 95 | 94 | const isInEdit = useAppSelector((store) => store.session.isInEdit); |
| 96 | 95 | const config = useAppSelector((state) => state.config.config); |
| 96 | + const isConfigLoading = useAppSelector((state) => state.config.loading); | |
| 97 | 97 | const ideMessenger = useContext(IdeMessengerContext); |
| 98 | 98 | const buttonRef = useRef<HTMLButtonElement>(null); |
| 99 | 99 | const [options, setOptions] = useState<Option[]>([]); |
| @@ -192,7 +192,6 @@ | ||
| 192 | 192 | ); |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | - const isConfigLoading = config === EMPTY_CONFIG; | |
| 196 | 195 | const hasNoModels = allModels?.length === 0; |
| 197 | 196 | |
| 198 | 197 | return ( |
modified gui/src/redux/slices/configSlice.ts +1 −0
| @@ -68,6 +68,7 @@ | ||
| 68 | 68 | } else { |
| 69 | 69 | state.config = config; |
| 70 | 70 | } |
| 71 | + state.loading = false; | |
| 71 | 72 | }, |
| 72 | 73 | updateConfig: ( |
| 73 | 74 | state, |