Send field-specific context for session metadata regen - #1181
Conversation
Status-only refresh now gets lane and chat identity plus the latest assistant paragraphs instead of the full transcript and git dump, and Work surfaces shimmer the requested fields while generation runs. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Warning Review limit reachedNext included review available in 40 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (16)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 7cb3a7d. Configure here.
Also skip the header land shimmer when a title regen finishes without changing the name. Co-authored-by: Cursor <cursoragent@cursor.com>

Summary
Test plan
sessionNaming.test.ts— lean status-only prompt, title-only omits git, field-aware system promptsessionMetadataService.test.ts— gather skips, title-only fallback uses transcript, lane-only does not rename from kickoffSessionCard.test.tsx/WorkSurfaceHeader.test.tsx/SessionListPane.test.tsx— in-place Naming… / Writing status… masksagentChatService.test.ts -t regenerateSessionMetadataNote
Medium Risk
Changes lane rename inputs (git + sibling threads) and fallback behavior when AI is unavailable; UI is mostly ephemeral loading state, but wrong lane naming could affect shared lane identity.
Overview
Session metadata regeneration now gathers context and builds prompts based on which fields the user asked to refresh (title, lane name, status line), while still returning all three JSON fields in one model call.
baseRef(commits, changed files, uncommitted).Work UI tracks in-flight regen per session/field via
sessionMetadataGeneratingStore, masking title, lane, and status with the same “Naming …” shimmer used for auto-created lanes (useLaneNamePendingmerges auto-create and explicit lane-name regen).Docs for chat metadata and terminals surfaces are updated to match.
Reviewed by Cursor Bugbot for commit 7cb3a7d. Configure here.