[PR #1059] [MERGED] Fix: better title generation (needs to change due to small models) #9794

Closed
opened 2026-02-16 18:14:11 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1059
Author: @rekram1-node
Created: 7/16/2025
Status: Merged
Merged: 7/16/2025
Merged by: @adamdotdevin

Base: devHead: fix/title-gen


📝 Commits (1)

  • 828348d fix: title generation (529, etc)

📊 Changes

1 file changed (+23 additions, -8 deletions)

View changed files

📝 packages/opencode/src/session/prompt/title.txt (+23 -8)

📄 Description

Fixes: #1060

Examples for prompts w/ Google & Anthropic below

Anthropic:

Prompt: "Help me debug this React component that's not rendering properly"
	Generated Title: Debugging React component rendering issue

Prompt: "Write a Python script to parse CSV files and generate reports"
	Generated Title: Parsing CSV files and generating reports in Python

Prompt: "Explain how to set up a CI/CD pipeline with GitHub Actions"
	Generated Title: Setting up GitHub Actions CI/CD pipeline

Prompt: "Fix this TypeScript error in my API handler"
	Generated Title: Troubleshooting TypeScript API handler error

Prompt: "How do I optimize this SQL query for better performance?"
	Generated Title: Optimizing SQL query performance

Prompt: "Add unit tests for the authentication middleware"
	Generated Title: Adding unit tests for authentication middleware

Prompt: "Refactor this function to use async/await instead of promises"
	Generated Title: Refactoring function to async/await

Prompt: "are 529s retried in this project?"
	Generated Title: Checking 529 retry implementation

Prompt: "how do I handle 401s in my application?"
	Generated Title: Handling 401 Unauthorized errors

Prompt: "what's the best way to manage cookies?"
	Generated Title: Managing secure HTTP cookies

Prompt: "I want to create a trading bot"
	Generated Title: Creating cryptocurrency trading bot

Prompt: "how do I handle inheritance in my code?"
	Generated Title: Exploring inheritance strategies in code

Prompt: "analyze my codebase"
	Generated Title: Analyzing codebase structure

Prompt: "explain what this image depicts: image.png"
	Generated Title: Analyzing uploaded image details

Prompt: "review this code main.py"
	Generated Title: Reviewing main.py code

Prompt: "what's wrong with config.json"
	Generated Title: Analyzing config.json configuration issue

Prompt: "can you make it so the config takes sharing?: 'auto' | 'disabled' mark the autoshare field as deprecated but still respect it"
	Generated Title: Configuring sharing with deprecated autoshare field

Prompt: "analyze my packages"
	Generated Title: Analyzing project package dependencies

Google:

Prompt: "Help me debug this React component that's not rendering properly"
	Generated Title: Debugging React component rendering

Prompt: "Write a Python script to parse CSV files and generate reports"
	Generated Title: Parsing CSV files and generating reports

Prompt: "Explain how to set up a CI/CD pipeline with GitHub Actions"
	Generated Title: Setting up CI/CD with GitHub Actions

Prompt: "Fix this TypeScript error in my API handler"
	Generated Title: Fixing TypeScript error in API handler

Prompt: "How do I optimize this SQL query for better performance?"
	Generated Title: Optimizing SQL query performance

Prompt: "Add unit tests for the authentication middleware"
	Generated Title: Adding unit tests for auth middleware

Prompt: "Refactor this function to use async/await instead of promises"
	Generated Title: Refactoring function to async/await

Prompt: "are 529s retried in this project?"
	Generated Title: Checking 529 retries

Prompt: "how do I handle 401s in my application?"
	Generated Title: Handling 401 errors

Prompt: "what's the best way to manage cookies?"
	Generated Title: Managing cookies

Prompt: "I want to create a trading bot"
	Generated Title: Creating trading bot

Prompt: "how do I handle inheritance in my code?"
	Generated Title: Handling inheritance in code

Prompt: "analyze my codebase"
	Generated Title: Analyzing codebase

Prompt: "explain what this image depicts: image.png"
	Generated Title: Explaining image.png

Prompt: "review this code main.py"
	Generated Title: Reviewing main.py code

Prompt: "what's wrong with config.json"
	Generated Title: Troubleshooting config.json issues

Prompt: "can you make it so the config takes sharing?: 'auto' | 'disabled' mark the autoshare field as deprecated but still respect it"
	Generated Title: Marking 'autoshare' field deprecated

Prompt: "analyze my packages"
	Generated Title: Analyzing packages

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1059 **Author:** [@rekram1-node](https://github.com/rekram1-node) **Created:** 7/16/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix/title-gen` --- ### 📝 Commits (1) - [`828348d`](https://github.com/anomalyco/opencode/commit/828348db38a10fb4937576ccf686debcefcd77b8) fix: title generation (529, etc) ### 📊 Changes **1 file changed** (+23 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/prompt/title.txt` (+23 -8) </details> ### 📄 Description Fixes: #1060 Examples for prompts w/ Google & Anthropic below ### Anthropic: ``` Prompt: "Help me debug this React component that's not rendering properly" Generated Title: Debugging React component rendering issue Prompt: "Write a Python script to parse CSV files and generate reports" Generated Title: Parsing CSV files and generating reports in Python Prompt: "Explain how to set up a CI/CD pipeline with GitHub Actions" Generated Title: Setting up GitHub Actions CI/CD pipeline Prompt: "Fix this TypeScript error in my API handler" Generated Title: Troubleshooting TypeScript API handler error Prompt: "How do I optimize this SQL query for better performance?" Generated Title: Optimizing SQL query performance Prompt: "Add unit tests for the authentication middleware" Generated Title: Adding unit tests for authentication middleware Prompt: "Refactor this function to use async/await instead of promises" Generated Title: Refactoring function to async/await Prompt: "are 529s retried in this project?" Generated Title: Checking 529 retry implementation Prompt: "how do I handle 401s in my application?" Generated Title: Handling 401 Unauthorized errors Prompt: "what's the best way to manage cookies?" Generated Title: Managing secure HTTP cookies Prompt: "I want to create a trading bot" Generated Title: Creating cryptocurrency trading bot Prompt: "how do I handle inheritance in my code?" Generated Title: Exploring inheritance strategies in code Prompt: "analyze my codebase" Generated Title: Analyzing codebase structure Prompt: "explain what this image depicts: image.png" Generated Title: Analyzing uploaded image details Prompt: "review this code main.py" Generated Title: Reviewing main.py code Prompt: "what's wrong with config.json" Generated Title: Analyzing config.json configuration issue Prompt: "can you make it so the config takes sharing?: 'auto' | 'disabled' mark the autoshare field as deprecated but still respect it" Generated Title: Configuring sharing with deprecated autoshare field Prompt: "analyze my packages" Generated Title: Analyzing project package dependencies ``` ### Google: ``` Prompt: "Help me debug this React component that's not rendering properly" Generated Title: Debugging React component rendering Prompt: "Write a Python script to parse CSV files and generate reports" Generated Title: Parsing CSV files and generating reports Prompt: "Explain how to set up a CI/CD pipeline with GitHub Actions" Generated Title: Setting up CI/CD with GitHub Actions Prompt: "Fix this TypeScript error in my API handler" Generated Title: Fixing TypeScript error in API handler Prompt: "How do I optimize this SQL query for better performance?" Generated Title: Optimizing SQL query performance Prompt: "Add unit tests for the authentication middleware" Generated Title: Adding unit tests for auth middleware Prompt: "Refactor this function to use async/await instead of promises" Generated Title: Refactoring function to async/await Prompt: "are 529s retried in this project?" Generated Title: Checking 529 retries Prompt: "how do I handle 401s in my application?" Generated Title: Handling 401 errors Prompt: "what's the best way to manage cookies?" Generated Title: Managing cookies Prompt: "I want to create a trading bot" Generated Title: Creating trading bot Prompt: "how do I handle inheritance in my code?" Generated Title: Handling inheritance in code Prompt: "analyze my codebase" Generated Title: Analyzing codebase Prompt: "explain what this image depicts: image.png" Generated Title: Explaining image.png Prompt: "review this code main.py" Generated Title: Reviewing main.py code Prompt: "what's wrong with config.json" Generated Title: Troubleshooting config.json issues Prompt: "can you make it so the config takes sharing?: 'auto' | 'disabled' mark the autoshare field as deprecated but still respect it" Generated Title: Marking 'autoshare' field deprecated Prompt: "analyze my packages" Generated Title: Analyzing packages ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:11 -05:00
yindo closed this issue 2026-02-16 18:14:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9794