Switch ollama backend reference to ollie

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-04-01 02:22:12 +02:00
parent 48cc3f3270
commit 769eb2c248
1 changed files with 3 additions and 7 deletions

10
main.go
View File

@ -173,11 +173,7 @@ func main() {
} }
refreshList(w) refreshList(w)
case "Ollama": case "Ollama":
if arg == "" { if err := createSession("ollie", arg); err != nil {
fmt.Fprintf(os.Stderr, "Error: Ollama requires a path argument\n")
continue
}
if err := createSession("ollama", arg); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err) fmt.Fprintf(os.Stderr, "Error: %v\n", err)
continue continue
} }
@ -648,13 +644,13 @@ type sessionEdit struct {
// - <id> Kill the session with that ID // - <id> Kill the session with that ID
// ~ <id> Stop the session (graceful) // ~ <id> Stop the session (graceful)
// @ <id> <alias> Set alias on the session // @ <id> <alias> Set alias on the session
// + <backend> <path> [alias] Start a new session (backends: claude, kiro-cli, ollama) // + <backend> <path> [alias] Start a new session (backends: claude, kiro-cli, ollie)
func parseSessionEdits(content string) []sessionEdit { func parseSessionEdits(content string) []sessionEdit {
var edits []sessionEdit var edits []sessionEdit
validBackends := map[string]bool{ validBackends := map[string]bool{
"claude": true, "claude": true,
"kiro-cli": true, "kiro-cli": true,
"ollama": true, "ollie": true,
} }
for _, line := range strings.Split(content, "\n") { for _, line := range strings.Split(content, "\n") {
line = strings.TrimSpace(line) line = strings.TrimSpace(line)