Repository navigation
fix: cannot not show embed ID in listMemories - #17211
Conversation
📝 WalkthroughWalkthrough
ChangesMemory display resolution
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/service/memory.go`:
- Around line 1443-1444: Update the model display-name resolution in the
listMemories response mapping to pass TenantLLMID and TenantEmbdID to
resolveTenantModelDisplayName for DAO lookups, while retaining LLMID and EmbdID
as the fallback display values. Adjust the helper signature or call sites as
needed so both tenant and raw IDs are available.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e694126c-9a03-4e5f-a924-a19b9b757433
📒 Files selected for processing (1)
internal/service/memory.go
There was a problem hiding this comment.
🧹 Nitpick comments (1)
internal/service/memory_message_test.go (1)
172-206: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winCover unresolved tenant model IDs too.
This only exercises the early empty-ID fallback. Add a case with non-empty, unknown
TenantLLMID/TenantEmbdIDvalues and assert the raw IDs are returned, so DAO lookup failures remain protected. As per coding guidelines, preserve valid behavior with focused tests.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@internal/service/memory_message_test.go` around lines 172 - 206, Extend TestListMemoriesFallsBackToRawModelIDWithoutTenantModelID with a focused case using non-empty but unresolved TenantLLMID and TenantEmbdID values, then assert ListMemories returns the raw LLMID and EmbdID. Preserve the existing empty-ID fallback assertions and valid model-resolution behavior.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@internal/service/memory_message_test.go`:
- Around line 172-206: Extend
TestListMemoriesFallsBackToRawModelIDWithoutTenantModelID with a focused case
using non-empty but unresolved TenantLLMID and TenantEmbdID values, then assert
ListMemories returns the raw LLMID and EmbdID. Preserve the existing empty-ID
fallback assertions and valid model-resolution behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6693ea26-a468-42dc-b555-9f6bc92f416f
📒 Files selected for processing (2)
internal/service/memory.gointernal/service/memory_message_test.go
🚧 Files skipped from review as they are similar to previous changes (1)
- internal/service/memory.go
Summary
As title