respect OLLIE_DEFAULT_AGENT env var in session creation

This commit is contained in:
Levi Neely 2026-05-08 11:33:14 +02:00
parent 88ea073135
commit 11618a7960
1 changed files with 4 additions and 1 deletions

View File

@ -307,7 +307,10 @@ func (s *SessionStore) createSession(args []string) error {
name := ""
backendOverride := ""
modelOverride := ""
agentName := "default"
agentName := os.Getenv("OLLIE_DEFAULT_AGENT")
if agentName == "" {
agentName = "default"
}
cwd := ""
for _, arg := range args {
k, v, ok := strings.Cut(arg, "=")