File tree Expand file tree Collapse file tree
packages/app/src/pages/session Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { DialogSelectFile } from "@/components/dialog-select-file"
1515import { DialogSelectModel } from "@/components/dialog-select-model"
1616import { DialogSelectMcp } from "@/components/dialog-select-mcp"
1717import { DialogFork } from "@/components/dialog-fork"
18+ import { PlatformProvider , usePlatform } from "@/context/platform"
1819import { showToast } from "@opencode-ai/ui/toast"
1920import { findLast } from "@opencode-ai/util/array"
2021import { createSessionTabs } from "@/pages/session/helpers"
@@ -49,6 +50,7 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
4950 const terminal = useTerminal ( )
5051 const layout = useLayout ( )
5152 const navigate = useNavigate ( )
53+ const platform = usePlatform ( )
5254 const { params, tabs, view } = useSessionLayout ( )
5355
5456 const info = ( ) => {
@@ -487,7 +489,12 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
487489 description : language . t ( "command.session.fork.description" ) ,
488490 slash : "fork" ,
489491 disabled : ! params . id || visibleUserMessages ( ) . length === 0 ,
490- onSelect : ( ) => dialog . show ( ( ) => < DialogFork /> ) ,
492+ onSelect : ( ) =>
493+ dialog . show ( ( ) => (
494+ < PlatformProvider value = { platform } >
495+ < DialogFork />
496+ </ PlatformProvider >
497+ ) ) ,
491498 } ) ,
492499 ...share ,
493500 ]
You can’t perform that action at this time.
0 commit comments