Skip to content

Autotitle conversations whose reply is wrapped in a markdown json fence - #816

Merged
mattlindsey merged 1 commit into
AllYourBot:mainfrom
mattlindsey:fix-title
Oct 2, 2026
Merged

mattlindsey merged 1 commit into
AllYourBot:mainfrom
mattlindsey:fix-title

Conversation

@mattlindsey

@mattlindsey mattlindsey commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Claude (via AIBackend::RubyLLM) answers the autotitle prompt with a fenced ```json ... ``` block despite the JSON-only instruction, so JSON.parse failed, the job logged "Unusable reply", and new conversations stayed untitled in the sidebar.
  • AutotitleConversationJob now strips a markdown fence before parsing; unfenced and non-string replies are untouched.
  • Adds a test for a fenced Claude reply.

Verify in dev

  • Start a new conversation with a Claude assistant, wait for the reply, and confirm a title appears in the left sidebar without a page reload

Verify in production

🤖 Generated with Claude Code

Claude via RubyLLM answers the title prompt with ```json ... ``` despite the
JSON-only instruction, so JSON.parse failed and the title stayed blank.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mattlindsey
mattlindsey merged commit d8a9b95 into AllYourBot:main Oct 2, 2026
7 checks passed
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.

1 participant