Skip to content

fix(core): remove unnecessary per-message title LLM calls#13804

Merged
adamdotdevin merged 1 commit intoanomalyco:devfrom
rmk40:fix/remove-per-message-title-llm-call
Feb 16, 2026
Merged

fix(core): remove unnecessary per-message title LLM calls#13804
adamdotdevin merged 1 commit intoanomalyco:devfrom
rmk40:fix/remove-per-message-title-llm-call

Conversation

@rmk40
Copy link
Contributor

@rmk40 rmk40 commented Feb 16, 2026

What does this PR do?

Fixes #13802

summarizeMessage() in summary.ts makes a small-model (Haiku) call on every user message to generate a per-message summary.title. This field is only consumed as a fallback label in MessageNav (packages/ui/src/components/message-nav.tsx) — and only when getLabel is not provided. The main app always provides getLabel (raw prompt text), and the TUI never displays it. The only place it's actually reached is the enterprise share page tooltip.

The session-level title from ensureTitle() (one Haiku call per session) is unaffected.

This removes the LLM call and unused imports from summarizeMessage(), keeping the diff computation intact. Net effect: eliminates N small-model calls per session (one per user message).

How did you verify your code works?

Typecheck passes (same pre-existing errors on dev in provider.ts and app.tsx). The removed code path has no callers beyond summarizeMessage() itself, and the only consumer of summary.title falls through to an i18n fallback string.

summarizeMessage() was making a small-model (Haiku) call on every user
message to generate per-message titles that are effectively unused.
The session-level title from ensureTitle() is unaffected.

Fixes anomalyco#13802
@rmk40 rmk40 force-pushed the fix/remove-per-message-title-llm-call branch from c30b855 to d7e393c Compare February 16, 2026 06:45
@adamdotdevin adamdotdevin merged commit 45fa5e7 into anomalyco:dev Feb 16, 2026
6 checks passed
github-actions bot pushed a commit to chrn11/opencode that referenced this pull request Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary Haiku calls on every user message for per-message title generation

2 participants