File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ export function ConversationProvider({
24
24
25
25
const value = useMemo ( ( ) => ( { conversationId } ) , [ conversationId ] ) ;
26
26
27
- return < ConversationContext value = { value } > { children } </ ConversationContext > ;
27
+ return (
28
+ < ConversationContext . Provider value = { value } >
29
+ { children }
30
+ </ ConversationContext . Provider >
31
+ ) ;
28
32
}
29
33
30
34
export function useConversation ( ) {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function useDocumentTitleFromState(suffix = "OpenHands") {
18
18
useEffect ( ( ) => {
19
19
if ( conversation ?. title ) {
20
20
lastValidTitleRef . current = conversation . title ;
21
- document . title = `${ conversation . title } - ${ suffix } ` ;
21
+ document . title = `${ conversation . title } | ${ suffix } ` ;
22
22
} else {
23
23
document . title = suffix ;
24
24
}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import { useSettings } from "#/hooks/query/use-settings";
36
36
import { clearFiles , clearInitialPrompt } from "#/state/initial-query-slice" ;
37
37
import { RootState } from "#/store" ;
38
38
import { displayErrorToast } from "#/utils/custom-toast-handlers" ;
39
+ import { useDocumentTitleFromState } from "#/hooks/use-document-title-from-state" ;
39
40
40
41
function AppContent ( ) {
41
42
useConversationConfig ( ) ;
@@ -51,6 +52,9 @@ function AppContent() {
51
52
const dispatch = useDispatch ( ) ;
52
53
const endSession = useEndSession ( ) ;
53
54
55
+ // Set the document title to the conversation title when available
56
+ useDocumentTitleFromState ( ) ;
57
+
54
58
const [ width , setWidth ] = React . useState ( window . innerWidth ) ;
55
59
56
60
const secrets = React . useMemo (
You can’t perform that action at this time.
0 commit comments