🔧 refactor: simplify response ID to use topicId directly#13410
🔧 refactor: simplify response ID to use topicId directly#13410
Conversation
Remove resp_ prefix and random suffix encoding from response IDs. Response ID now equals topicId directly, simplifying multi-turn conversation support via previous_response_id. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@nekomeowww - This is a backend API refactor in |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4053489ca
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## canary #13410 +/- ##
=========================================
Coverage 66.97% 66.97%
=========================================
Files 1930 1930
Lines 156495 156495
Branches 18761 15836 -2925
=========================================
+ Hits 104816 104818 +2
+ Misses 51559 51557 -2
Partials 120 120
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
❤️ Great PR @arvinxx ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
Remove resp_ prefix and random suffix encoding from response IDs. Response ID now equals topicId directly, simplifying multi-turn conversation support via previous_response_id. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
resp_prefix and random suffix encoding. Response ID now equalstopicIddirectly.extractTopicIdFromResponseIdnow returns the ID as-is instead of parsing encoded format.responseId.slice(5)withresponseIdfor sub-item IDs (fc_,msg_,fco_prefixes).This prepares for client-side function tool execution (LOBE-6536) where
previous_response_idequalstopicIdfor conversation continuity.Fixes LOBE-6536
Test plan
previous_response_idcorrectly resolves to topicId🤖 Generated with Claude Code