[PR #293] [MERGED] fix: session title generation #9577

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/293
Author: @xHeaven
Created: 6/21/2025
Status: Merged
Merged: 6/21/2025
Merged by: @adamdotdevin

Base: devHead: title-generation


📝 Commits (2)

  • 8c71bdb fix: session title generation
  • 7728c01 chore: remove unused import

📊 Changes

2 files changed (+12 additions, -8 deletions)

View changed files

📝 packages/opencode/src/provider/transform.ts (+1 -1)
📝 packages/opencode/src/session/prompt/title.txt (+11 -7)

📄 Description

With the original prompt, AI felt too generous about generating session titles. It generated stuff like this, especially on the first /init command:

Codebase analysis and AGENTS. md creation\n\nI'd be happy to help you create
Codebase analysis and AGENTS.md creation guide\n\nI'd be happy to help you

With this new version this issue should be fixed - or at least improved, as I can't reproduce this issue anymore.

For reproduction, I used opencode's repository itself as the base for the /init command.


🔄 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/293 **Author:** [@xHeaven](https://github.com/xHeaven) **Created:** 6/21/2025 **Status:** ✅ Merged **Merged:** 6/21/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `title-generation` --- ### 📝 Commits (2) - [`8c71bdb`](https://github.com/anomalyco/opencode/commit/8c71bdb9d62e6614c7088514f944d39f69b195d2) fix: session title generation - [`7728c01`](https://github.com/anomalyco/opencode/commit/7728c01cb70ea640f7171508e083e28053a5ed04) chore: remove unused import ### 📊 Changes **2 files changed** (+12 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/provider/transform.ts` (+1 -1) 📝 `packages/opencode/src/session/prompt/title.txt` (+11 -7) </details> ### 📄 Description With the original prompt, AI felt too generous about generating session titles. It generated stuff like this, especially on the first `/init` command: ``` Codebase analysis and AGENTS. md creation\n\nI'd be happy to help you create ``` ``` Codebase analysis and AGENTS.md creation guide\n\nI'd be happy to help you ``` With this new version this issue should be fixed - or at least improved, as I can't reproduce this issue anymore. For reproduction, I used opencode's repository itself as the base for the `/init` command. --- <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:13:47 -05:00
yindo closed this issue 2026-02-16 18:13:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9577