Skip to content

Generated titles sometimes include response text instead of being concise titles #948

Closed

Description

@rekram1-node

I have noticed this primarily with verbose prompts / with attachments.

Example: https://opencode.ai/s/9ssLo9kS

Prompt:

Read @packages/opencode/src/format/formatter.ts and explain which formatters are supported. I actually only care about Go.

Generated Title:

Go file formatter support analysis The file shows multiple formatters are supported, but for Go specifically:

Activity

  1. rekram1-node commented on Jul 13, 2025

    @rekram1-node
    ContributorAuthor

    Another example:
    https://opencode.ai/s/2LssFCM3

    Prompt

    Read @packages/opencode/src/session/prompt/title.txt How could I improve this prompt?

    Title

    Analyzing prompt improvement for title generation task Here are key improvements I'd suggest for the title generation

  2. rekram1-node commented on Jul 13, 2025

    @rekram1-node
    ContributorAuthor

    Made a PR for this, from my experience the xml tag style prompts generally help the llm obey better, and from the test cases I tried it seems to no longer have that responding in title gen issue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions