fix(hub): page title conversation collection past tool-noise windows #2316
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 237 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.327
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #2316"
general
weight: 0.35
github-actions[bot]
Problem
Manual Generate on the session title fails with
422 empty("No conversation content is available for a title suggestion") on long-running agent sessions, even though the conversation contains plenty of user/assistant text.TitleSuggestionService.suggestTitlereads a single newest 200-row window (getMessagesByPositionlimit 200) and feeds it tobuildTitleConversation. On a busy agent session the newest window can be entirely non-conversational rows — tool calls, tool results, reasoning, progress, bookkeeping — so the extraction yields nothing and the request 422s. A long turn easily emits hundreds of such rows; on one production session the last user prompt sat ~550 rows back, far outside the window.The sibling scans in the same class (
hasTitleResponse,hasCompletedFirstTurn) already page backward with abeforecursor for exactly this reason — the conversation builder just never did.Fix
Page backward past non-conversational rows with the same
before-cursor pattern, until real user/assistant text enters the collected set, the input budget is reached, or the store is exhausted:TITLE_SUGGESTION_MAX_SCAN_PAGES = 25pages (5,000 rows), so a noise-only session cannot walk unbounded history on every (rate-limited) request.TITLE_SUGGESTION_MAX_INPUT_CHARS - 2_000or a short page signals the store end; the input cap and per-line truncation ofbuildTitleConversationare unchanged.empty422 as before.Tests
suggestTitlenow succeeds and the provider prompt contains the exchange (previouslyempty).empty422, provider never called.🤖 Generated with Claude Code