mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: fix continue session navigation to use most recent session instead of oldest session
This commit is contained in:
parent
4d20e1c3c6
commit
8166612467
2 changed files with 2 additions and 4 deletions
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue