File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1970,7 +1970,11 @@ export default function ChatView(props: ChatViewProps) {
19701970 const handleNewThreadInActiveProject = useCallback ( ( ) => {
19711971 startNewThreadForProject ( activeProjectRef , handleNewThread ) ;
19721972 } , [ activeProjectRef , handleNewThread ] ) ;
1973- const activeDraftLogicalProjectKey = ! isServerThread ? draftThread ?. logicalProjectKey : undefined ;
1973+ const projectGroupingSettings = useClientSettings ( selectProjectGroupingSettings ) ;
1974+ const activeDraftLogicalProjectKey =
1975+ ! isServerThread && activeProject
1976+ ? deriveLogicalProjectKeyFromSettings ( activeProject , projectGroupingSettings )
1977+ : undefined ;
19741978 const handleOpenDraftProjectSettings = useCallback ( ( ) => {
19751979 if ( ! activeDraftLogicalProjectKey ) return ;
19761980 void navigate ( {
@@ -1985,7 +1989,6 @@ export default function ChatView(props: ChatViewProps) {
19851989 const activeProjectKey = activeProject
19861990 ? `${ activeProject . environmentId } :${ activeProject . workspaceRoot } `
19871991 : null ;
1988- const projectGroupingSettings = useClientSettings ( selectProjectGroupingSettings ) ;
19891992 const clientSettingsHydrated = useClientSettingsHydrated ( ) ;
19901993 const [ pendingFileSurfaceIdsByProject , setPendingFileSurfaceIdsByProject ] = useState <
19911994 ReadonlyMap < string , ReadonlySet < string > >
You can’t perform that action at this time.
0 commit comments