Skip to content

fix(session): log warning when title generation fails#29737

Open
BenSharir wants to merge 1 commit into
anomalyco:devfrom
BenSharir:fix/title-generation-logging
Open

fix(session): log warning when title generation fails#29737
BenSharir wants to merge 1 commit into
anomalyco:devfrom
BenSharir:fix/title-generation-logging

Conversation

@BenSharir
Copy link
Copy Markdown

Issue for this PR

Closes #29734

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Replaces Effect.ignore with Effect.catchCause + warning log at the title generation call site. This makes title generation failures visible in logs instead of being silently swallowed.

Before: failures completely silent, sessions get timestamp titles with no indication why.
After: warning logged with error details, making diagnosis possible.

This is a minimal fix (4 lines changed). For fallback model support, see PR #27939 which adds configurable fallback chains.

How did you verify your code works?

  • Reviewed that elog and Cause are already in scope (lines 83 and 48)
  • Change follows existing patterns in the file (e.g., line 381 uses same Effect.catchCause + elog.error pattern)

Screenshots / recordings

N/A - logging change only

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Replace Effect.ignore with Effect.catchCause + warning log so title
generation failures are visible instead of silently swallowed.

Fixes anomalyco#29734
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session title generation silently fails with no fallback or logging

1 participant