Skip to content

Conversation

uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Sep 26, 2025

Description

Do not set config loading to false before config from hub is fetched.

In case of local config, config is already loaded in core before gui initializes (due to the constructor call).
In case of profile config, config takes time to load (due to data fetching from remote server) and profileId is not yet set.

resolves CON-3946

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-general-review or @continue-detailed-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

before.mp4
after.mp4

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Fixes premature clearing of the config loading state when fetching config from the hub. The UI now stays in “Loading” until remote profile config is ready, preventing the empty-state flash and addressing CON-3946.

  • Bug Fixes
    • Keep configLoading true when profileId is null and result.content.result.configLoadInterrupted; wait for configUpdate before clearing loading.
    • Update SelectedAssistantButton to prioritize the loading spinner over the “Create your first agent” message.

@uinstinct uinstinct requested a review from a team as a code owner September 26, 2025 11:41
@uinstinct uinstinct requested review from tingwai and removed request for a team September 26, 2025 11:41
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 26, 2025
const buttonPadding = isSidebar ? "px-2 py-1.5" : "px-0 py-0.5";
const buttonStyle = isSidebar ? {} : { fontSize: fontSize(-3) };

console.log("debug1 config loading", configLoading);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR LGTM, can you remove this first?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh just saw you'll be out, I can remove it

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 26, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 26, 2025
Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uinstinct I'm wondering if this will lead to infinite loading for local folks or folks with e.g. an error in their yaml schema. Why is the method for detecting config not yet loaded to check configLoadInterrupted?

@dosubot dosubot bot removed the lgtm This PR has been approved by a maintainer label Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants