[PR #1628] [MERGED] fix: prevent title regeneration on auto compact #10001

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1628
Author: @timoclsn
Created: 8/5/2025
Status: Merged
Merged: 8/5/2025
Merged by: @adamdotdevin

Base: devHead: fix-title-regeneration


📝 Commits (2)

  • 6418898 fix: prevent title regeneration on auto compact
  • 4bac1be fix(session): improve default title creation for child sessions

📊 Changes

1 file changed (+13 additions, -2 deletions)

View changed files

📝 packages/opencode/src/session/index.ts (+13 -2)

📄 Description

The previous title generation check only checked if the message count is 1. This could cause the title generation to be re-triggered on auto compact, as there could again be a state where only one message is present.

This PR fixed this by only triggering the title generation if the title format is the default title.


🔄 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/1628 **Author:** [@timoclsn](https://github.com/timoclsn) **Created:** 8/5/2025 **Status:** ✅ Merged **Merged:** 8/5/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix-title-regeneration` --- ### 📝 Commits (2) - [`6418898`](https://github.com/anomalyco/opencode/commit/6418898cf43d3d21fcc083cb6b1f92fda881f184) fix: prevent title regeneration on auto compact - [`4bac1be`](https://github.com/anomalyco/opencode/commit/4bac1befab260c501e09b1222e1fc701fcfa590a) fix(session): improve default title creation for child sessions ### 📊 Changes **1 file changed** (+13 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+13 -2) </details> ### 📄 Description The previous title generation check only checked if the message count is 1. This could cause the title generation to be re-triggered on auto compact, as there could again be a state where only one message is present. This PR fixed this by only triggering the title generation if the title format is the default title. --- <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:32 -05:00
yindo closed this issue 2026-02-16 18:14:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10001