mirror of
https://github.com/cline/cline.git
synced 2026-10-30 18:12:49 +08:00
* desktop: context-aware welcome suggestions for non-code folders (CLIENTS-98) * desktop: treat pending branch discovery as its own state for welcome cards The welcome-card classifier read the "no-git" sentinel as a confirmed non-repo, but page.tsx also used that value for the initial state and while a workspace switch was awaiting branch discovery, so a git repo could briefly show the plain-folder cards. Branch state is now null while discovery is pending: the welcome screen shows no cards until the folder is classified, and chat-mode cards (which never depend on git state) still show immediately. Other branch consumers keep the string contract via a "no-git" fallback. Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com> * desktop: carry nullable branch state to all consumers Propagate the pending-discovery null through ChatInputBar, WorkspaceSelector, and the welcome workspace controls instead of coercing to "no-git" at the page boundary, so only display leaves fall back and the welcome classifier is the single consumer that distinguishes pending from confirmed non-repo. --------- Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com>