mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 19:24:22 +01:00
tui: fix continue session navigation to use most recent session instead of oldest session
This commit is contained in:
@@ -177,7 +177,7 @@ function App() {
|
||||
local.model.set({ providerID, modelID }, { recent: true })
|
||||
}
|
||||
if (args.continue) {
|
||||
const match = sync.data.session.at(-1)?.id
|
||||
const match = sync.data.session.at(0)?.id
|
||||
if (match) {
|
||||
route.navigate({
|
||||
type: "session",
|
||||
|
||||
@@ -10,7 +10,5 @@ export interface Args {
|
||||
|
||||
export const { use: useArgs, provider: ArgsProvider } = createSimpleContext({
|
||||
name: "Args",
|
||||
init: (props: Args) => {
|
||||
return props
|
||||
},
|
||||
init: (props: Args) => props,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user