Skip to content

fix: enable title generation after compaction - #381

Open
sleepinginsummer wants to merge 1 commit into
agegr:mainfrom
sleepinginsummer:fix/enable-title-after-compaction
Open

fix: enable title generation after compaction#381
sleepinginsummer wants to merge 1 commit into
agegr:mainfrom
sleepinginsummer:fix/enable-title-after-compaction

Conversation

@sleepinginsummer

Copy link
Copy Markdown
Contributor

修改内容

  • 标题生成按钮同时参考当前上下文用户消息数和持久化会话消息数
  • 避免上下文压缩移除用户消息后错误禁用按钮
  • 新增该场景的回归测试

验证

  • node --test components/AppShell.auto-name.test.mjs
  • node_modules/.bin/tsc --noEmit
  • node_modules/.bin/eslint components/AppShell.tsx components/AppShell.auto-name.test.mjs
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant