mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
chore: clean [LOBE-XXX] code annotations (2026-06-10) (#15623)
chore: clean up [LOBE-XXX] code annotations (2026-06-10) Remove LOBE-XXX markers from comments and URLs across 7 files: - apps/cli/hetero.ts & hetero.test.ts: Remove LOBE-10157 markers, keep context - apps/server/ModelRuntime: Remove LOBE-10056, keep PK migration note - packages/database/rbac.ts: Remove LOBE-9193, keep API doc - scripts/codemodWorkspaceNav.ts: Remove LOBE-9024 from description - parse.ts & parse.test.ts: Replace LOBE-10141/LOBE-123 with generic IDs Co-authored-by: lobehub-bot <lobehub-bot@users.noreply.github.com>
This commit is contained in:
@@ -650,7 +650,7 @@ describe('hetero exec command', () => {
|
||||
});
|
||||
|
||||
it('resets the per-message text accumulator at message boundaries (no cross-message duplication)', async () => {
|
||||
// LOBE-10157 Bug 3: the `replace` snapshot accumulator must not span
|
||||
// The `replace` snapshot accumulator must not span
|
||||
// message boundaries. Two assistant messages separated by a
|
||||
// stream_end/stream_start boundary must each snapshot only their OWN
|
||||
// text — otherwise the second message re-emits the first's text verbatim.
|
||||
|
||||
@@ -261,7 +261,7 @@ class SerialServerIngester {
|
||||
// adapter's `openMainMessage`) must reset it — otherwise it spans the
|
||||
// whole run and every later message's snapshot re-emits all prior
|
||||
// messages' text verbatim, which the server then persists into the new
|
||||
// DB message (LOBE-10157 Bug 3: cross-message text duplication). Reset
|
||||
// DB message: cross-message text duplication. Reset
|
||||
// AFTER flushing the just-ended message's pending snapshot above.
|
||||
if (event.type === 'stream_start' || event.type === 'stream_end') {
|
||||
this.accumulatedText = '';
|
||||
|
||||
@@ -408,7 +408,7 @@ export const initModelRuntimeFromDB = async (
|
||||
): Promise<ModelRuntime> => {
|
||||
// 1. Get user's provider configuration from database
|
||||
// NOTE: workspace-scoped ai_infra is deferred until the ai_infra surrogate-`_id`
|
||||
// PK migration (LOBE-10056) lands; AiProviderModel stays personal-scoped for now.
|
||||
// PK migration lands; AiProviderModel stays personal-scoped for now.
|
||||
const aiProviderModel = new AiProviderModel(db, userId);
|
||||
|
||||
// Use getAiProviderById with KeyVaultsGateKeeper.getUserKeyVaults as decryptor
|
||||
|
||||
Reference in New Issue
Block a user