feat(sessions): improve display name reliability and add creator to RECENTS tooltip#1588
Draft
quay-devel wants to merge 1 commit into
Draft
Conversation
…ECENTS tooltip Two improvements to session UX: 1. Display name generation now falls back to extracting the first sentence from the initial prompt when the Claude Haiku API call fails (API key misconfigured, timeout, network issues). Previously, failures were silent and left sessions showing as "session-UUID". 2. The RECENTS panel sidebar tooltip now shows the session creator name, matching the existing behavior on the /sessions page. Also improves MCP tool descriptions for display_name/name parameters to encourage agents to always provide meaningful session titles. ## Summary - Add `generateFallbackDisplayName()` in backend display_name.go - Fall back to prompt-based name when AI client init or API call fails - Add creator name (User icon + userContext.displayName) to sidebar tooltip - Update MCP tool descriptions in backend_tools.py and ambient-mcp/server.go ## Test plan - [ ] Create a session with an initial prompt — verify display name appears - [ ] Simulate API key failure — verify fallback name from prompt appears - [ ] Hover over a session in the RECENTS sidebar — verify creator name shows - [ ] Compare RECENTS tooltip with /sessions page tooltip — both show creator - [ ] Verify backend builds: `cd components/backend && go build ./handlers/...` - [ ] Verify frontend types: `cd components/frontend && tsc --noEmit` Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for cheerful-kitten-f556a0 canceled.
|
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
session-UUIDdisplay_name/nameparameter descriptions to encourage agents to always provide meaningful session titlesChanges
components/backend/handlers/display_name.gogenerateFallbackDisplayName(), use it when Claude API client init or API call failscomponents/frontend/src/.../sessions-sidebar.tsxcomponents/runners/ambient-runner/.../backend_tools.pydisplay_nameMCP tool parameter descriptioncomponents/ambient-mcp/server.gonameMCP tool parameter descriptionTest plan
session-UUIDcd components/backend && go build ./handlers/...passescd components/frontend && tsc --noEmitpassescd components/ambient-mcp && go build ./...passes🤖 Generated with Claude Code