Skip to content

Commit

Permalink
fix: output correct model if ContinueLast (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
sedlund authored Aug 28, 2024
1 parent 5fe5c3a commit 96a7150
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,13 @@ func askInfo() error {
}
}

if config.ContinueLast {
found, err := db.FindHEAD()
if err == nil && found != nil && found.Model != nil {
config.Model = *found.Model
}
}

return huh.NewForm(
huh.NewGroup(
huh.NewSelect[string]().
Expand Down

0 comments on commit 96a7150

Please sign in to comment.