on main help sign in
fix: fix "failed to generate title: context deadline exceeded" error

This only happens on initializing a new project.

commitc8fd01b13267212c3deee032e6b068a7ee3f1a67 authorAndrey Nering <andreynering@users.noreply.github.com> dateFri 13 Jun 2025, 15:15 (1 year ago) parent8adc4c0
1 file changed+1−1
internal/llm/agent/agent.go+1−1
internal/llm/agent/agent.go+1−1
@@ -241,7 +241,7 @@ func (a *agent) processGeneration(ctx context.Context, sessionID, content string
241241 logging.ErrorPersist("panic while generating title")
242242 })
243243 titleErr := a.generateTitle(context.Background(), sessionID, content)
244− if titleErr != nil {
244+ if titleErr != nil && !errors.Is(titleErr, context.Canceled) && !errors.Is(titleErr, context.DeadlineExceeded) {
245245 logging.ErrorPersist(fmt.Sprintf("failed to generate title: %v", titleErr))
246246 }
247247 }()